/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Цветовая палитра */
    --color-bg: #0A192F;        /* Основной фон (Глубокий синий) */
    --color-bg-card: #112240;   /* Фон карточек (Светлее) */
    --color-bg-header: rgba(10, 25, 47, 0.95); /* Полупрозрачный хедер */
    
    --color-accent: #FF5722;    /* Акцент (Оранжевый) */
    --color-accent-hover: #E64A19;
    
    --color-text: #E6F1FF;      /* Основной текст */
    --color-text-muted: #8892b0;/* Второстепенный текст */
    --color-border: rgba(230, 241, 255, 0.1); /* Границы */

    /* Шрифты */
    --font-main: 'Roboto', sans-serif;
    --font-head: 'Montserrat', sans-serif;

    /* Размеры */
    --container-width: 1240px;
    --header-height: 80px;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* Отступ для контента, так как меню фиксированное */
main {
    flex: 1;
    margin-top: var(--header-height); 
}

/* =========================================
   2. UTILITIES & TYPOGRAPHY
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 80px 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* Заголовки */
h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    color: #fff;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-accent);
    margin-top: 15px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Цвета текста */
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background-color: var(--color-accent);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--color-accent);
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: transparent;
    color: var(--color-accent);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
}

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

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--color-bg-header);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-head);
    letter-spacing: 1px;
    color: #fff;
}

nav ul {
    display: flex;
    gap: 25px;
}

nav a {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    padding-bottom: 5px;
    position: relative;
}

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

nav a:hover, nav a.active {
    color: #fff;
}

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

.burger {
    display: none;
    cursor: pointer;
    color: #fff;
    font-size: 1.8rem;
}

/* =========================================
   4. HERO SECTIONS
   ========================================= */
   
/* Главная страница (Hero Home) */
.hero-home {
    height: calc(100vh - var(--header-height)); /* На весь экран */
    min-height: 650px;
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.7)), 
                url('https://images.unsplash.com/photo-1596700868853-46132049f3e4?auto=format&fit=crop&q=80&w=1920') no-repeat center/cover;
    display: flex;
    align-items: center;
    margin-top: -80px; /* Компенсация отступа main для прозрачности */
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

/* Внутренние страницы (Page Hero) */
.page-hero {
    background-color: var(--color-bg-card);
    padding: 60px 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.breadcrumb a:hover {
    color: var(--color-accent);
}

/* =========================================
   5. HOMEPAGE BLOCKS (NEW)
   ========================================= */

/* Блок статистики */
.stats-bar {
    background-color: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 60px 0;
}

.stats-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3.5rem;
    color: var(--color-accent);
    margin-bottom: 5px;
    line-height: 1;
    font-family: var(--font-head);
}

.stat-item p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Блок преимуществ с иконками */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-box {
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.feature-box:hover {
    border-color: var(--color-accent);
    background: var(--color-bg-card);
    transform: translateY(-5px);
}

/* Схема работы (Steps) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.step-card {
    position: relative;
    padding: 20px 10px;
}

.step-number {
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03); /* Очень прозрачный */
    position: absolute;
    top: -20px;
    left: 0;
    z-index: 0;
    line-height: 1;
    font-family: var(--font-head);
}

.step-content {
    position: relative;
    z-index: 1;
}

/* Секция с формой (CTA) */
.cta-section {
    background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.9)), 
                url('https://images.unsplash.com/photo-1596040033229-a9821ebd058d?auto=format&fit=crop&w=1200&q=80') center/cover fixed;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

/* =========================================
   6. CARDS & GRIDS (GENERAL)
   ========================================= */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 30px;
    transition: var(--transition);
    border-radius: 4px;
}

.card:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

/* =========================================
   7. FORMS
   ========================================= */
form input, form select, form textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--color-bg);
    border: 1px solid #233554;
    color: #fff;
    border-radius: 2px;
    font-family: var(--font-main);
    transition: var(--transition);
    outline: none;
    font-size: 1rem;
}

form input:focus, form select:focus, form textarea:focus {
    border-color: var(--color-accent);
}

label {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    background-color: #020c1b;
    padding: 60px 0 20px;
    margin-top: auto;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h5 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover, .legal-links a:hover {
    color: var(--color-accent);
}

.copyright {
    opacity: 0.6;
}

/* =========================================
   9. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 1024px) {
    .grid-2 {
        gap: 30px;
    }
    .hero-home h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    /* Навигация */
    .burger {
        display: block;
    }
    nav {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--color-bg);
        flex-direction: column;
        padding: 40px;
        transition: 0.3s ease-in-out;
        border-top: 1px solid var(--color-border);
    }
    nav.active {
        right: 0;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    nav a {
        font-size: 1.1rem;
    }

    /* Главная */
    .hero-home {
        text-align: center;
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-home .hero-content {
        padding: 0 15px;
    }
    
    /* Сетки */
    .grid-2, .steps-grid, .stats-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stats-wrapper {
        gap: 30px;
    }
    
    .footer-top {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 50px 0;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
}
