/* ===== БАЗОВЫЕ СТИЛИ ===== */
:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-dark: #1f2937;
    --text-medium: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --bg-dark: #1f2937;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
}

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

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    transition: all 0.3s ease;
}

/* Закрыть скролл при открытом меню */
body.menu-open {
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ШАПКА ===== */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== НАВИГАЦИЯ (ДЕСКТОП) ===== */
.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: all 0.3s ease;
}

.nav__link {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav__link:hover {
    color: var(--primary-color);
}

.button {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.button--primary {
    background: var(--primary-color);
    color: white;
}

.button--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.button--accent {
    background: var(--accent-gradient);
    color: white;
}

.button--large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ===== ГЛАВНЫЙ БАННЕР ===== */
.hero {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

.hero__container {
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* ===== ОСОБЕННОСТИ ===== */
.features {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card__icon {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.feature-card__title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* ===== CTA ===== */
.cta {
    padding: 4rem 0;
    text-align: center;
    background: var(--bg-dark);
    color: white;
}

.cta__container {
    max-width: 700px;
    margin: 0 auto;
}

.cta__title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.cta__subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.cta__note {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.7;
}

/* ===== ДОКУМЕНТЫ ===== */
.document {
    padding: 3rem 0;
    max-width: 800px;
}

.document h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.document h2 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-dark);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.document p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* ===== ПОДВАЛ ===== */
.footer {
    background: #111827;
    color: #d1d5db;
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 4rem;
}

.footer a {
    color: #a5b4fc;
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Планшеты */
@media (max-width: 1024px) {
    .hero__title {
        font-size: 2.4rem;
    }
}

/* Мобильные устройства - гамбургер меню */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    /* Навигация скрыта по умолчанию */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 30px 30px;
        gap: 0;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    /* Когда меню активно - показываем */
    .nav.active {
        right: 0;
    }
    
    .nav__link {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        width: 100%;
        font-size: 1.1rem;
    }
    
    .nav .button--primary {
        margin-top: 20px;
        width: 100%;
        text-align: center;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__subtitle {
        font-size: 1.1rem;
    }
    
    .features {
        padding: 3rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cta__title {
        font-size: 1.8rem;
    }
}

/* Маленькие телефоны */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero__title {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .footer {
        padding: 2rem 0;
    }
}
