:root {
    --primary-color: #6366F1;
    --secondary-color: #E0E7FF;
    --text-color-primary: #1F2937;
    --text-color-secondary: #4B5563;
    --background-color: #F9FAFB;
    --button-primary-bg: #E0E7FF;
    --button-primary-text: #6366F1;
    --button-secondary-bg: white;
    --button-secondary-text: #1F2937;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color-primary);
    background-color: var(--background-color);
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
}

/* --- Header & Navigation (Mobile First) --- */
.header {
    background-color: var(--background-color);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: none;
}

.logo {
    height: 30px;
}

.nav-toggle {
    display: block;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 24px;
    color: var(--text-color-primary);
}

.join-now-button {
    display: block;
    padding: 12px 24px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    border-radius: 9999px;
    text-align: center;
    border: none;
}

.desktop-nav {
    display: none;
}

/* Выпадающее меню */
.nav-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    padding: 32px;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.nav-menu.open {
    transform: translateX(0);
    overflow-y: auto;
    height: 100vh;
    overscroll-behavior: contain;
}

.nav-close {
    cursor: pointer;
    border: none;
    background: none;
    font-size: 24px;
    color: var(--text-color-primary);
}

.nav-menu .nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nav-menu .nav-links a {
    text-decoration: none;
    color: var(--text-color-primary);
    font-weight: 500;
    font-size: 19.2px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-join-button {
    width: 100%;
    margin-top: auto;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
}

.hero-image-container {
    position: relative;
    height: auto;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    padding: 32px 16px;
    text-align: left;
}

.hero-text {
    text-align: left;
}

.hero-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    color: var(--text-color-secondary);
    font-size: 16px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-buttons .btn {
    width: 100%;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 9999px;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--button-primary-bg);
    color: var(--button-primary-text);
}

.btn-secondary {
    background-color: var(--button-secondary-bg);
    color: var(--button-secondary-text);
    border: 1px solid #D1D5DB;
}

.btn-primary:hover {
    background-color: #c0c8f1;
}

.btn-secondary:hover {
    background-color: #F3F4F6;
}

/* --- Tablet Styles (от 768px) --- */
@media (min-width: 768px) {
    .header {
        padding: 16px 32px;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .join-now-button {
        display: block;
    }
    
    .desktop-nav {
        display: none;
    }

    .nav-menu {
        display: flex;
    }

    .hero-content {
        padding: 32px;
        text-align: left;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .hero-buttons .btn {
        width: auto;
    }
}

/* --- Desktop Styles (от 1440px) --- */
@media (min-width: 1440px) {
    .nav-toggle {
        display: none;
    }

    .header {
        padding: 16px 32px;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 20px;
    }
    
    .desktop-nav {
        display: block;
        justify-self: start;
    }
    
    .desktop-nav .nav-links {
        list-style: none;
        display: flex;
        flex-direction: row;
        gap: 24px;
    }
    
    .desktop-nav .nav-links a {
        text-decoration: none;
        color: var(--text-color-primary);
        font-weight: 500;
        font-size: 16px;
        position: relative;
    }
    
    .desktop-nav .nav-links a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -5px;
        width: 0;
        height: 2px;
        background-color: var(--primary-color);
        transition: width 0.3s ease;
    }
    
    .desktop-nav .nav-links a:hover::after,
    .desktop-nav .nav-links a.active::after {
        width: 100%;
    }
    
    .join-now-button {
        justify-self: end;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-image-container {
        max-height: 600px;
        height: 600px;
    }
    
    .hero-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        align-items: center;
        text-align: left;
        padding: 64px 32px;
    }
    
    .hero-text {
        grid-column: 1 / 2;
        text-align: left;
    }
    
    .hero-title {
        font-size: 56px;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 0;
    }
    
    .hero-buttons {
        grid-column: 2 / 3;
        justify-self: start;
        flex-direction: row;
    }
    
    .mobile-join-button {
        display: none;
    }
}