/* ========== FCN — Critical CSS ========== */
/* Объединённый файл: fonts + variables + base + layout                  */
/* Загружается одним HTTP-запросом вместо 4                              */
/* Шрифты: только основные (кириллица и латиница), ext-варианты удалены */

/* ========== Шрифты ========== */

/* Inter — cyrillic */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/inter-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Inter — latin */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Space Grotesk — latin */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
    src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ========== FCN — Дизайн-токены ========== */

:root {
    /* === Тёмная тема (по умолчанию) === */

    /* Фон */
    --bg-primary: #0C0C0E;
    --bg-secondary: #141418;
    --bg-tertiary: #1C1C22;
    --bg-elevated: #24242C;

    /* Бренд: красный */
    --red: #E63946;
    --red-light: #FF4D5A;
    --red-dark: #C62D38;
    --red-bg: rgba(230, 57, 70, 0.1);

    /* Бренд: золото (сусальное золото) */
    --gold: #C9A84C;
    --gold-light: #DBBF6A;
    --gold-dark: #A88B34;
    --gold-bg: rgba(201, 168, 76, 0.1);
    --gold-gradient: linear-gradient(135deg, #C9A84C 0%, #E8D48B 40%, #C9A84C 60%, #A88B34 100%);

    /* Текст */
    --text-primary: #F0F0F2;
    --text-secondary: #8A8A96;
    --text-muted: #5C5C68;

    /* Границы */
    --border: #2A2A34;
    --border-light: #3A3A46;

    /* Навигация */
    --nav-bg: rgba(12, 12, 14, 0.8);
    --nav-bg-scroll: rgba(12, 12, 14, 0.95);

    /* Тени — 3-слойная физическая система */
    /* Ambient: рассеянный ореол под объектом */
    --shadow-ambient-sm:  0 4px  28px  rgba(0, 0, 0, 0.35);
    --shadow-ambient-md:  0 8px  56px  rgba(0, 0, 0, 0.42);
    --shadow-ambient-lg:  0 20px 100px rgba(0, 0, 0, 0.50);
    --shadow-ambient-xl:  0 32px 140px rgba(0, 0, 0, 0.55);

    /* Diffuse: мягкая полутень */
    --shadow-diffuse-sm:  0 2px  8px  rgba(0, 0, 0, 0.50);
    --shadow-diffuse-md:  0 4px  16px rgba(0, 0, 0, 0.58);
    --shadow-diffuse-lg:  0 6px  28px rgba(0, 0, 0, 0.65);
    --shadow-diffuse-xl:  0 10px 40px rgba(0, 0, 0, 0.70);

    /* Direct: резкая тень от основного источника */
    --shadow-direct-sm:   0 1px 3px  rgba(0, 0, 0, 0.70);
    --shadow-direct-md:   0 2px 6px  rgba(0, 0, 0, 0.76);
    --shadow-direct-lg:   0 3px 10px rgba(0, 0, 0, 0.82);
    --shadow-direct-xl:   0 5px 16px rgba(0, 0, 0, 0.88);

    /* Составные (ambient + diffuse + direct) */
    --shadow-sm: var(--shadow-ambient-sm), var(--shadow-diffuse-sm), var(--shadow-direct-sm);
    --shadow-md: var(--shadow-ambient-md), var(--shadow-diffuse-md), var(--shadow-direct-md);
    --shadow-lg: var(--shadow-ambient-lg), var(--shadow-diffuse-lg), var(--shadow-direct-lg);
    --shadow-xl: var(--shadow-ambient-xl), var(--shadow-diffuse-xl), var(--shadow-direct-xl);

    /* Цветные свечения */
    --shadow-glow-red:
        0 4px  32px rgba(230, 57, 70, 0.30),
        0 0    80px rgba(230, 57, 70, 0.18),
        0 2px  8px  rgba(0, 0, 0, 0.60);
    --shadow-glow-gold:
        0 4px  32px rgba(201, 168, 76, 0.28),
        0 0    80px rgba(201, 168, 76, 0.16),
        0 2px  8px  rgba(0, 0, 0, 0.60);

    /* Тень навигации */
    --shadow-nav:
        0 1px  0   rgba(255, 255, 255, 0.06),
        0 2px  12px rgba(0, 0, 0, 0.55),
        0 10px 40px rgba(0, 0, 0, 0.30);

    /* Внутренний блик для объёма */
    --inset-highlight:        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --inset-highlight-strong: inset 0 1px 0 rgba(255, 255, 255, 0.12);

    /* Градиенты */
    --gradient-hero: radial-gradient(ellipse at 20% 0%, rgba(230, 57, 70, 0.1) 0%, transparent 50%),
                     radial-gradient(ellipse at 80% 100%, rgba(201, 168, 76, 0.08) 0%, transparent 50%);
    --gradient-btn: linear-gradient(135deg, #E63946 0%, #FF4D5A 50%, #E63946 100%);
    --gradient-btn-gold: linear-gradient(135deg, #C9A84C 0%, #DBBF6A 50%, #C9A84C 100%);
    --gradient-card: linear-gradient(135deg, rgba(201, 168, 76, 0.05) 0%, rgba(230, 57, 70, 0.05) 100%);

    /* Скругления */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Переходы */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Сетка */
    --max-width: 1280px;
    --nav-height: 72px;

    /* Отступы секций */
    --section-py: 80px;
    --section-py-mobile: 56px;
}

/* === Светлая тема === */
[data-theme="light"] {
    --bg-primary: #FAFAFA;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F0F0F4;
    --bg-elevated: #E8E8EE;

    --red: #D62839;
    --red-light: #E63946;
    --red-dark: #B81F2E;
    --red-bg: rgba(214, 40, 57, 0.08);

    --gold: #B8942E;
    --gold-light: #C9A84C;
    --gold-dark: #9A7A1E;
    --gold-bg: rgba(184, 148, 46, 0.08);
    --gold-gradient: linear-gradient(135deg, #B8942E 0%, #DBBF6A 40%, #B8942E 60%, #9A7A1E 100%);

    --text-primary: #1A1A20;
    --text-secondary: #5C5C68;
    --text-muted: #8A8A96;

    --border: #D8D8E0;
    --border-light: #C8C8D2;

    --nav-bg: rgba(250, 250, 250, 0.85);
    --nav-bg-scroll: rgba(250, 250, 250, 0.98);

    --shadow-ambient-sm:  0 4px  28px  rgba(0, 0, 0, 0.06);
    --shadow-ambient-md:  0 8px  56px  rgba(0, 0, 0, 0.08);
    --shadow-ambient-lg:  0 20px 100px rgba(0, 0, 0, 0.10);
    --shadow-ambient-xl:  0 32px 140px rgba(0, 0, 0, 0.12);

    --shadow-diffuse-sm:  0 2px  8px  rgba(0, 0, 0, 0.10);
    --shadow-diffuse-md:  0 4px  16px rgba(0, 0, 0, 0.12);
    --shadow-diffuse-lg:  0 6px  28px rgba(0, 0, 0, 0.14);
    --shadow-diffuse-xl:  0 10px 40px rgba(0, 0, 0, 0.16);

    --shadow-direct-sm:   0 1px 3px  rgba(0, 0, 0, 0.14);
    --shadow-direct-md:   0 2px 6px  rgba(0, 0, 0, 0.16);
    --shadow-direct-lg:   0 3px 10px rgba(0, 0, 0, 0.18);
    --shadow-direct-xl:   0 5px 16px rgba(0, 0, 0, 0.20);

    --shadow-sm: var(--shadow-ambient-sm), var(--shadow-diffuse-sm), var(--shadow-direct-sm);
    --shadow-md: var(--shadow-ambient-md), var(--shadow-diffuse-md), var(--shadow-direct-md);
    --shadow-lg: var(--shadow-ambient-lg), var(--shadow-diffuse-lg), var(--shadow-direct-lg);
    --shadow-xl: var(--shadow-ambient-xl), var(--shadow-diffuse-xl), var(--shadow-direct-xl);

    --shadow-glow-red:
        0 4px  32px rgba(214, 40, 57, 0.16),
        0 0    80px rgba(214, 40, 57, 0.08),
        0 2px  8px  rgba(0, 0, 0, 0.14);
    --shadow-glow-gold:
        0 4px  32px rgba(184, 148, 46, 0.14),
        0 0    80px rgba(184, 148, 46, 0.07),
        0 2px  8px  rgba(0, 0, 0, 0.14);

    --shadow-nav:
        0 1px  0   rgba(0, 0, 0, 0.06),
        0 2px  12px rgba(0, 0, 0, 0.10),
        0 10px 40px rgba(0, 0, 0, 0.07);

    --inset-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.60);
    --inset-highlight-strong: inset 0 1px 0 rgba(255, 255, 255, 0.80);

    --gradient-hero: radial-gradient(ellipse at 20% 0%, rgba(214, 40, 57, 0.06) 0%, transparent 50%),
                     radial-gradient(ellipse at 80% 100%, rgba(184, 148, 46, 0.05) 0%, transparent 50%);
    --gradient-btn: linear-gradient(135deg, #D62839 0%, #E63946 50%, #D62839 100%);
    --gradient-btn-gold: linear-gradient(135deg, #B8942E 0%, #C9A84C 50%, #B8942E 100%);
    --gradient-card: linear-gradient(135deg, rgba(184, 148, 46, 0.04) 0%, rgba(214, 40, 57, 0.04) 100%);
}

/* === Отключение анимаций при необходимости === */
@media (prefers-reduced-motion: reduce) {
    :root {
        --transition: 0.01ms;
        --transition-fast: 0.01ms;
        --transition-slow: 0.01ms;
    }
}

/* ========== FCN — Базовые стили ========== */

/* Сброс */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scrollbar-gutter: stable;
}

body {
    font-family: 'Inter', 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background var(--transition), color var(--transition);
    overflow-x: hidden;
}

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

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

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

/* ========== Типографика ========== */

/* Заголовки — Space Grotesk для акцента */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
}

.h1,
h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.h2,
h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

.h3,
h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
}

.h4,
h4 {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 600;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.7;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

/* ========== Утилиты цвета ========== */

.text-gold {
    color: var(--gold);
}

.text-red {
    color: var(--red);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

/* Градиентный текст — сусальное золото */
.text-gradient-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-red {
    background: var(--gradient-btn);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========== Сетка и контейнер ========== */

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

@media (min-width: 768px) {
    .container {
        padding: 0 32px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 40px;
    }
}

.section {
    padding: var(--section-py-mobile) 0;
}

@media (min-width: 768px) {
    .section {
        padding: var(--section-py) 0;
    }
}

/* ========== Заголовок секции ========== */

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header .h2 {
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 64px;
    }
}

/* ========== Грид утилиты ========== */

.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

.grid-4 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========== Анимации при скролле ========== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Задержки для каскадной анимации */
.animate-delay-1 {
    transition-delay: 0.1s;
}

.animate-delay-2 {
    transition-delay: 0.2s;
}

.animate-delay-3 {
    transition-delay: 0.3s;
}

.animate-delay-4 {
    transition-delay: 0.4s;
}

.animate-delay-5 {
    transition-delay: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ========== Вспомогательные ========== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

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

.flex {
    display: flex;
}

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

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

.flex-wrap {
    flex-wrap: wrap;
}

.gap-8 {
    gap: 8px;
}

.gap-12 {
    gap: 12px;
}

.gap-16 {
    gap: 16px;
}

.gap-24 {
    gap: 24px;
}

/* ========== FCN — Навигация ========== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
    background: var(--nav-bg-scroll);
    border-bottom-color: rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-nav);
}

[data-theme="light"] .nav.scrolled {
    border-bottom-color: var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .nav-inner {
        padding: 0 32px;
    }
}

/* Логотип */
.nav-logo {
    display: flex;
    align-items: center;
    z-index: 1001;
    flex-shrink: 0;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

@media (min-width: 768px) {
    .logo-img {
        height: 56px;
    }
}

/* Навигационные ссылки */
.nav-links {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex: 1;
    min-width: 0;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--red);
    border-radius: 1px;
}

.nav-links a[href="/advertisers.php"] {
    color: var(--text-primary);
    font-weight: 600;
}

.nav-mobile-links a[href="/advertisers.php"] {
    color: var(--text-primary);
    font-weight: 700;
}

/* Правая часть навигации */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
    flex-shrink: 0;
}

/* Переключатель темы */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    transition: background var(--transition-fast), border-color var(--transition-fast);
    cursor: pointer;
}

.theme-toggle:hover {
    background: var(--bg-elevated);
    border-color: var(--border-light);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    fill: var(--text-secondary);
    transition: fill var(--transition-fast);
}

/* Иконки темы — тёмная тема: солнышко */
.theme-toggle .icon-sun { display: block; fill: #F5C542; }
.theme-toggle .icon-moon { display: none; }

/* Светлый фон кнопки в тёмной теме */
.theme-toggle {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Светлая тема: луна, стандартный фон */
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle {
    background: var(--bg-tertiary);
    border-color: var(--border);
}

[data-theme="light"] .nav-login {
    color: var(--text-primary);
}

/* Кнопка входа в навигации */
.nav-login {
    display: flex;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary, #aaa);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.nav-login:hover {
    color: var(--text-secondary);
    transform: scale(1.1);
}

.nav-login svg {
    width: 20px;
    height: 20px;
}

@media (min-width: 768px) {
    .nav-login {
        display: flex;
    }
}

/* Кнопка регистрации в навигации */
.nav-cta {
    display: none;
    flex-shrink: 0;
    width: 152px;
}

@media (min-width: 768px) {
    .nav-cta {
        display: inline-flex;
    }
}

/* Гамбургер меню */
.nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

@media (min-width: 1024px) {
    .nav-burger {
        display: none;
    }
}

.nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-burger.active span:nth-child(2) {
    opacity: 0;
}

.nav-burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Мобильное меню */
.nav-mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Атмосфера — тот же градиент, что у Hero-секции */
    background: var(--bg-primary);
    background-image:
        radial-gradient(ellipse at 15% 25%, rgba(230, 57, 70, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(201, 168, 76, 0.05) 0%, transparent 50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: var(--nav-height) 24px 40px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: none;
}

.nav-mobile.active {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--transition), visibility var(--transition);
}

/* Расширяем навигацию при открытом мобильном меню */
.nav:has(.nav-mobile.active) {
    height: 100dvh;
    background: var(--bg-primary);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
}

.nav:has(.nav-mobile.active) .nav-logo,
.nav:has(.nav-mobile.active) .nav-login,
.nav:has(.nav-mobile.active) .nav-cta,
.nav:has(.nav-mobile.active) .nav-actions .theme-toggle {
    display: none;
}

/* Скрываем кнопку темы в шапке на маленьких экранах */
@media (max-width: 429px) {
    .nav-actions .theme-toggle {
        display: none;
    }
}

.nav:has(.nav-mobile.active) .nav-inner {
    justify-content: flex-end;
    height: var(--nav-height);
}

/* Ссылки в мобильном меню */
.nav-mobile-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 440px);
    border-top: 1px solid var(--border);
}

.nav-mobile-links a {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    display: block;
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

/* Красная черта-акцент слева при ховере */
.nav-mobile-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--red);
    border-radius: 0 2px 2px 0;
    transform: scaleY(0);
    transform-origin: center;
    transition: transform var(--transition-fast);
}

.nav-mobile-links a:hover {
    color: var(--text-primary);
    padding-left: 14px;
}

.nav-mobile-links a:hover::before {
    transform: scaleY(1);
}

/* Кнопки входа и регистрации */
.nav-mobile-cta {
    display: flex;
    gap: 12px;
    width: min(100%, 440px);
}

.nav-mobile-cta .btn {
    flex: 1;
}

.nav-mobile-cta .btn-outline {
    color: var(--text-primary);
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border);
    border-top-color: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 5px 16px rgba(0, 0, 0, 0.44),
        0 2px 6px rgba(0, 0, 0, 0.60),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.nav-mobile-cta .btn-outline:hover {
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-tertiary) 100%);
    border-color: var(--border-light);
    border-top-color: rgba(255, 255, 255, 0.10);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.52),
        0 5px 14px rgba(0, 0, 0, 0.64),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

/* Блок переключения темы */
.nav-mobile-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    width: min(100%, 440px);
}

.nav-mobile-theme-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Последовательная анимация появления пунктов меню */
@media (prefers-reduced-motion: no-preference) {
    @keyframes menuItemIn {
        from { opacity: 0; transform: translateX(-14px); }
        to   { opacity: 1; transform: translateX(0); }
    }

    .nav-mobile.active .nav-mobile-links a {
        animation: menuItemIn 0.28s cubic-bezier(0.4, 0, 0.2, 1) both;
    }

    .nav-mobile.active .nav-mobile-links a:nth-child(1) { animation-delay: 0.06s; }
    .nav-mobile.active .nav-mobile-links a:nth-child(2) { animation-delay: 0.10s; }
    .nav-mobile.active .nav-mobile-links a:nth-child(3) { animation-delay: 0.14s; }
    .nav-mobile.active .nav-mobile-links a:nth-child(4) { animation-delay: 0.18s; }

    .nav-mobile.active .nav-mobile-cta {
        animation: menuItemIn 0.28s cubic-bezier(0.4, 0, 0.2, 1) 0.30s both;
    }

    .nav-mobile.active .nav-mobile-footer {
        animation: menuItemIn 0.28s cubic-bezier(0.4, 0, 0.2, 1) 0.35s both;
    }
}

/* ========== Футер ========== */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 32px;
    }
}

/* Лого и описание в футере */
.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
}

.footer-logo .logo-img {
    height: 40px;
}

@media (min-width: 768px) {
    .footer-logo .logo-img {
        height: 56px;
    }
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Колонки футера */
.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--text-primary);
}

/* Нижняя строка футера */
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.footer-socials a:hover {
    background: var(--bg-elevated);
    border-color: var(--border-light);
}

.footer-socials svg {
    width: 16px;
    height: 16px;
    fill: var(--text-secondary);
}

/* Организованный футер (index.html) */

.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .footer-main {
        grid-template-columns: 2fr 1fr;
        gap: 32px;
    }
}

@media (min-width: 1024px) {
    .footer-main {
        grid-template-columns: 2fr 1fr 1.5fr;
        gap: 40px;
    }
}

.footer-main .footer-brand {
    max-width: none;
}

.footer-main .footer-desc {
    margin-bottom: 20px;
}

/* Подписи к контактным email */
.footer-contact-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

/* Секция «О нас» в футере (для остальных страниц) */

.footer-about {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    margin-bottom: 40px;
}

.footer-about-header h3 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.footer-about-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.footer-about-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .footer-about-body {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
}

.footer-about-legal {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-about-legal p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-about-legal a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-about-legal a:hover {
    color: var(--text-primary);
}

.footer-about-contacts h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-contact-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.footer-contact-card:hover {
    background: var(--bg-elevated);
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.footer-contact-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.footer-contact-email {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-contact-arrow {
    font-size: 1.25rem;
    color: var(--gold);
    flex-shrink: 0;
    margin-left: 16px;
}

.footer-about-logos-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-about-logos {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-logo-footnote {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-logo-badge {
    height: 48px;
    width: auto;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.footer-logo-badge:hover {
    opacity: 1;
}

/* Переключение логотипов по цветовой теме */
.footer-logo-light-only {
    display: none;
}

[data-theme="light"] .footer-logo-dark-only {
    display: none;
}

[data-theme="light"] .footer-logo-light-only {
    display: inline;
}

/* Отступ от фиксированной навигации */
main {
    padding-top: var(--nav-height);
}

