:root {
    --theme-bg-color: #1B1155;
    --theme-header-color: #1B1155;
    --theme-header-gradient: #2a1a7c;
    --text-main: #ffffff;
    --text-muted: #a5b4fc;
    --accent-color: #CE1CF0;
    --accent-hover: #E41CFC;
    --white: #ffffff;
    --border-color: #312e81;
    --hero-overlay-from: rgba(27,17,85,0.75);
    --hero-overlay-to: rgba(27,17,85,0.95);
    --hero-badge-bg: rgba(206,28,240,0.15);
    --hero-badge-border: rgba(206,28,240,0.4);
    --hero-badge-text: #e57dfa;
    --accent-shadow: rgba(206,28,240,0.35);
    --container-max: 1100px;
    --radius: 8px;
    --logo-max-height: 45px;
}

/* --- БАЗОВІ СТИЛІ --- */
body {
    padding-top: 200px;

    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--theme-bg-color);
    color: var(--text-main);
    line-height: 1.7;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- СТИЛІ ДЛЯ ЛОГОТИПУ --- */
.logo img {
    max-height: var(--logo-max-height);
    width: auto;
    display: block;
}

/* --- ШАПКА САЙТУ (HEADER) --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: linear-gradient(135deg, var(--theme-header-color), var(--theme-header-gradient));
    color: var(--text-main);
    padding: 0.8rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- ОНОВЛЕНІ СТИЛІ ДЛЯ НАВІГАЦІЇ ТА КНОПОК У ХЕДЕРІ --- */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    flex: 1;
}

.logo {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: block;
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex: 2;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    margin: 0 18px;
    font-weight: 700;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-hover);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.mobile-auth {
    display: none;
}

.header-right {
    display: flex;
    align-items: center;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.btn-login {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-login:hover {
    color: var(--accent-hover);
}

header .btn {
    margin-top: 0;
    padding: 10px 28px;
    font-size: 1.05rem;
}

.btn-reg {
    background: var(--accent-color);
    color: var(--white);
    padding: 8px 18px;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: 0.3s;
}

.btn-reg:hover {
    transform: translateY(-2px);
    background: var(--accent-hover);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.burger {
    display: none;
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 5px 0;
    transition: 0.3s;
}

/* --- ОСНОВНИЙ КОНТЕНТ --- */
main {
    padding: 2rem 0;
    min-height: 60vh;
}

h1, h2, h3 {
    color: var(--white);
    margin-top: 1.5rem;
}

/* --- ГОЛОВНІ КНОПКИ В ТЕКСТІ --- */
.btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 12px 28px;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: bold;
    font-size: 1rem;
    margin-top: 1.5rem;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    background: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    color: var(--white);
}

/* --- HERO СЕКЦІЯ --- */
.hero {
    background-image: linear-gradient(var(--hero-overlay-from), var(--hero-overlay-to)), url('/images/hero_banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5.5rem 1rem 3rem;
    gap: 3rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background: var(--hero-badge-bg);
    border: 1px solid var(--hero-badge-border);
    color: var(--hero-badge-text);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: 999px;
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
    color: var(--white);
}

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-muted);
    max-width: 560px;
    margin: 0;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn-hero-primary {
    background: var(--accent-color);
    color: var(--white);
    padding: 14px 36px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-hero-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--accent-shadow);
    color: var(--white);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--white);
    padding: 13px 36px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    text-transform: uppercase;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-hero-secondary:hover {
    border-color: rgba(255,255,255,0.7);
    transform: translateY(-3px);
    color: var(--white);
}

/* --- HERO FEATURES STRIP --- */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 2rem;
    width: 100%;
    max-width: 700px;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-feat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.feat-icon {
    font-size: 1.2rem;
    line-height: 1;
}

/* --- АДАПТИВ HERO --- */
@media (max-width: 600px) {
    .hero {
        padding: 5.5rem 1rem 2rem;
        gap: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        text-align: center;
        padding: 14px 20px;
    }

    .hero-features {
        gap: 0.75rem 1.25rem;
    }
}

footer {
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

.no-scroll {
    overflow: hidden;
}

/* --- АДАПТИВНІСТЬ (МОБІЛЬНА ВЕРСІЯ) --- */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--theme-header-color);
        padding: 40px 20px;
        z-index: 999;
        box-sizing: border-box;
    }

    .burger { display: block; }
    .logo-wrapper { flex: 1; }
    .header-right { flex: 0; }
    .auth-buttons { display: none; }

    .mobile-auth {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 30px;
        padding-top: 30px;
        border-top: 1px solid rgba(255,255,255,0.1);
        width: 100%;
    }
}
