/* ============================================================
   SYUNIK X — style.css
   Автор: Artyom Tatintsyan
   ============================================================
   СОДЕРЖАНИЕ:
   1.  CSS-переменные (тёмная / светлая тема)
   2.  Сброс и базовые элементы
   3.  Preloader
   4.  Header / Nav / Logo
   5.  Hero секция
   6.  Секции — общие стили
   7.  О регионе (About)
   8.  Карточки мест + кнопка 3D
   9.  Модальное окно 3D
   10. Почему стоит посетить
   11. История — Timeline (исправлено)
   12. Персональный гид
   13. До / После
   14. Квиз
   15. Мини-игра
   16. Фотоальбом + Лайтбокс
   17. Интервью
   18. Почему недооценён
   19. Footer
   20. Кнопка наверх + утилиты
   21. Адаптив
   ============================================================ */


/* ============================================================
   1. CSS-ПЕРЕМЕННЫЕ
   ============================================================ */

:root,
[data-theme="dark"] {

    /* === ФОНЫ === */
    --bg-primary: #07090f;
    --bg-secondary: #0d1220;
    --bg-card: #111827;
    --bg-card-hover: #162035;
    --bg-glass: rgba(13, 18, 32, 0.7);
    --bg-header: rgba(7, 9, 15, 0.9);
    --bg-modal: rgba(0, 0, 0, 0.88);
    --bg-input: #111827;

    /* === ТЕКСТ === */
    --text-primary: #e8f0ff;
    --text-secondary: #8a9bbf;
    --text-muted: #4a5578;
    --text-on-accent: #07090f;

    /* === АКЦЕНТЫ ===
     Главный: бирюзово-зелёный (технологичный)
     Второй:  синий (глубина)
  */
    --accent: #3dffcb;
    --accent-dim: #2ac9a0;
    --accent-hover: #7affd8;
    --accent-light: rgba(61, 255, 203, 0.1);
    --accent-glow: rgba(61, 255, 203, 0.3);
    --accent-glow-strong: rgba(61, 255, 203, 0.6);

    --accent2: #4d8cff;
    --accent2-light: rgba(77, 140, 255, 0.12);
    --accent2-glow: rgba(77, 140, 255, 0.3);

    /* Градиент акцента */
    --grad-accent: linear-gradient(135deg, #3dffcb 0%, #4d8cff 100%);
    --grad-accent-rev: linear-gradient(135deg, #4d8cff 0%, #3dffcb 100%);

    /* === ГРАНИЦЫ === */
    --border: rgba(255, 255, 255, 0.07);
    --border-mid: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(61, 255, 203, 0.35);

    /* === ТЕНИ === */
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.7);
    --shadow-accent: 0 0 40px rgba(61, 255, 203, 0.2);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);

    /* === СКРУГЛЕНИЯ === */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-full: 9999px;

    /* === ПЕРЕХОДЫ === */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --tr: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --tr-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --tr-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* === ШРИФТЫ === */
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* === PLACEHOLDER === */
    --ph-bg: #0e1525;
    --ph-border: rgba(255, 255, 255, 0.07);
    --ph-text: #2a3550;
}


[data-theme="light"] {

    --bg-primary: #f0f4fa;
    --bg-secondary: #e4ebf5;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f8ff;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --bg-header: rgba(240, 244, 250, 0.92);
    --bg-modal: rgba(10, 20, 40, 0.75);
    --bg-input: #ffffff;

    --text-primary: #0e1a30;
    --text-secondary: #3d5070;
    --text-muted: #8090b0;
    --text-on-accent: #ffffff;

    --accent: #00b89a;
    --accent-dim: #009d84;
    --accent-hover: #00d4b0;
    --accent-light: rgba(0, 184, 154, 0.1);
    --accent-glow: rgba(0, 184, 154, 0.25);
    --accent-glow-strong: rgba(0, 184, 154, 0.5);

    --accent2: #2d6fff;
    --accent2-light: rgba(45, 111, 255, 0.1);
    --accent2-glow: rgba(45, 111, 255, 0.25);

    --grad-accent: linear-gradient(135deg, #00b89a 0%, #2d6fff 100%);
    --grad-accent-rev: linear-gradient(135deg, #2d6fff 0%, #00b89a 100%);

    --border: rgba(0, 0, 0, 0.07);
    --border-mid: rgba(0, 0, 0, 0.12);
    --border-accent: rgba(0, 184, 154, 0.35);

    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.13);
    --shadow-accent: 0 0 40px rgba(0, 184, 154, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);

    --ph-bg: #e8eef7;
    --ph-border: rgba(0, 0, 0, 0.08);
    --ph-text: #a0aec0;
}


/* ============================================================
   2. СБРОС И БАЗОВЫЕ ЭЛЕМЕНТЫ
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background: var(--bg-primary);
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    margin: 0;
    min-height: 100dvh;
    transition:
        background-color var(--tr-slow),
        color var(--tr-slow);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    color: var(--text-primary);
    transition: color var(--tr-slow);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--tr);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    background: none;
}

select,
input {
    font-family: var(--font-body);
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 10px 14px;
    transition: border-color var(--tr), background var(--tr-slow);
}

select:focus,
input:focus {
    outline: none;
    border-color: var(--accent);
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-dim);
    border-radius: 3px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ============================================================
   КНОПКИ
   ============================================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--grad-accent);
    color: var(--text-on-accent);
    padding: 13px 28px;
    border-radius: var(--r-full);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    transition: var(--tr-bounce);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: opacity var(--tr);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--accent-glow);
    color: var(--text-on-accent);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--border-accent);
    padding: 11px 24px;
    border-radius: var(--r-full);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--tr);
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    color: var(--accent-hover);
}


/* ============================================================
   3. PRELOADER
   ============================================================ */

#preloader {
    position: fixed;
    inset: 0;
    background: #07090f;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

#preloader .preloader-logo .logo-syunik {
    color: #e8f0ff !important;
    -webkit-text-fill-color: #e8f0ff !important;
}

#preloader .preloader-sub {
    color: rgba(255, 255, 255, 0.3) !important;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.preloader-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    animation: plFadeUp 0.6s ease both;
}

@keyframes plFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preloader-sub {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    animation: plFadeUp 0.6s 0.2s ease both;
}

.preloader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    animation: plFadeUp 0.6s 0.1s ease both;
}

.preloader-fill {
    height: 100%;
    background: var(--grad-accent);
    animation: plLoad 2s ease forwards;
}

@keyframes plLoad {
    0% {
        width: 0%;
    }

    70% {
        width: 80%;
    }

    100% {
        width: 100%;
    }
}

/* ============================================================
   4. ЛОГО SYUNIK X
   ============================================================ */

.logo {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    text-decoration: none;
}

.logo-syunik {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    transition: color var(--tr-slow);
}

/* Футуристичная буква X */
.logo-x {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 0 8px var(--accent-glow-strong));
    transition: filter var(--tr);
}

.logo-x::after {
    content: 'X';
    position: absolute;
    inset: 0;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(6px) brightness(1.5);
    opacity: 0.5;
    z-index: -1;
}

.logo:hover .logo-x {
    filter: drop-shadow(0 0 16px var(--accent-glow-strong));
}


/* ============================================================
   4b. HEADER / NAV
   ============================================================ */

#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: background var(--tr), box-shadow var(--tr), backdrop-filter var(--tr);
    padding-top: env(safe-area-inset-top, 0px);
}

#main-header.scrolled {
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
    padding: 0 18px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 16px;
}

@supports (padding-top: env(safe-area-inset-top)) {
    #main-header {
        padding-top: env(safe-area-inset-top);
        background-clip: padding-box;
    }

    .header-inner {
        height: 66px;
    }
}

@supports (padding-top: env(safe-area-inset-top)) {
    .mobile-nav {
        top: calc(56px + env(safe-area-inset-top));
    }
}

/* Десктопное меню */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}

.desktop-nav a {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    padding: 6px 9px;
    border-radius: var(--r-sm);
    transition: color var(--tr), background var(--tr);
    white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--accent);
    background: var(--accent-light);
}

/* Панель управления */
.controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Переключатель языка */
.lang-switcher {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    overflow: hidden;
    padding: 3px;
    gap: 2px;
}

.lang-btn {
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: var(--r-full);
    border: none;
    cursor: pointer;
    transition: var(--tr);
}

.lang-btn.active {
    background: var(--grad-accent);
    color: var(--text-on-accent);
}

.lang-btn:hover:not(.active) {
    color: var(--accent);
}

/* Кнопки иконок (тема, звук) */
.ctrl-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--tr-bounce);
    position: relative;
    overflow: hidden;
}

.ctrl-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-accent);
    opacity: 0;
    transition: opacity var(--tr);
}

.ctrl-btn:hover {
    border-color: var(--border-accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.ctrl-btn svg {
    position: relative;
    z-index: 1;
}

/* Иконки темы */
[data-theme="dark"] .icon-theme-dark {
    display: block;
}

[data-theme="dark"] .icon-theme-light {
    display: none;
}

[data-theme="light"] .icon-theme-dark {
    display: none;
}

[data-theme="light"] .icon-theme-light {
    display: block;
}

/* Бургер */
.burger-btn {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: var(--tr);
    padding: 10px;
}

.burger-btn span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--tr);
}

.burger-btn.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.burger-btn.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger-btn.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero {
    position: relative;
    overflow: hidden;
    /* чтобы видео не вылазило */
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

/* Мобильное меню */
/* Мобильное меню */
.mobile-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 0 20px;
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mobile-nav.open {
    max-height: 600px;
    padding: 10px 20px 18px;
}

.mobile-nav a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 12px;
    border-radius: var(--r-md);
    transition: var(--tr);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--accent);
    background: var(--accent-light);
}

/* Canvas частицы */
#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}


/* ============================================================
   5. HERO
   ============================================================ */
#hero {
    position: relative;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Фотофон */
.hero-bg-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Небольшой параллакс-эффект через JS */
    will-change: transform;
    transition: transform 0.1s linear;
}

/* Фолбэк если нет фото */
.hero-bg-photo.no-photo {
    background: linear-gradient(135deg,
            #07090f 0%,
            #0d1a2e 40%,
            #0a1525 100%);
}

/* Градиентные оверлеи */
.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom,
            rgba(7, 9, 15, 0.4) 0%,
            rgba(7, 9, 15, 0.2) 30%,
            rgba(7, 9, 15, 0.55) 70%,
            rgba(7, 9, 15, 0.92) 100%);
    transition: background var(--tr-slow);
}

/* Светлая тема — не белый, тёплый тёмный оверлей */
[data-theme="light"] .hero-overlay-gradient {
    background: linear-gradient(to bottom,
            rgba(10, 18, 40, 0.5) 0%,
            rgba(10, 18, 40, 0.25) 30%,
            rgba(10, 18, 40, 0.6) 70%,
            rgba(10, 18, 40, 0.88) 100%);
}

/* Noise-текстура */
.hero-overlay-noise {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.04;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* Контент Hero — ВСЕГДА белый текст (фон тёмный независимо от темы) */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 24px;
    max-width: 860px;
    width: 100%;
}

/* Тег-строка сверху */
.hero-line-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    animation: fadeSlideUp 0.8s 0.3s both;
}

.hero-line-top span:first-child,
.hero-line-top span:last-child {
    display: block;
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.35);
}

.hero-line-text {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-display);
    font-weight: 500;
    text-transform: uppercase;
}

/* Заголовок */
.hero-title-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 22px;
    animation: fadeSlideUp 0.8s 0.5s both;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(3.8rem, 10vw, 7.5rem);
    letter-spacing: 0.06em;
    line-height: 1;
    /* Текст на Hero всегда белый — не зависит от темы */
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.12em;
}

/* Буква X в заголовке Hero */
.hero-title-x {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent !important;
    background-clip: text;
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 0 20px var(--accent-glow-strong));
    animation: xPulse 3s ease-in-out infinite;
}

@keyframes xPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 20px var(--accent-glow-strong));
    }

    50% {
        filter: drop-shadow(0 0 35px var(--accent-glow-strong)) brightness(1.2);
    }
}

/* Свечение под X */
.hero-title-glow {
    position: absolute;
    bottom: -10px;
    right: -15px;
    width: 160px;
    height: 80px;
    background: radial-gradient(ellipse at center,
            var(--accent-glow) 0%,
            transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

/* Описание Hero — всегда белый */
.hero-desc {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 36px;
    line-height: 1.7;
    animation: fadeSlideUp 0.8s 0.7s both;
}

/* CTA-кнопки */
.hero-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    animation: fadeSlideUp 0.8s 0.9s both;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: var(--r-full);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    transition: var(--tr-bounce);
    cursor: pointer;
    border: none;
}

.hero-btn-primary {
    background: var(--grad-accent);
    color: var(--text-on-accent);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.hero-btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px var(--accent-glow);
    color: var(--text-on-accent);
}

.hero-btn-outline {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    color: #fff;
}

/* Статистика под кнопками — Hero, всегда белая */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 44px;
    animation: fadeSlideUp 0.8s 1.1s both;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 28px;
}

.hero-stat strong {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat span {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.04em;
    text-align: center;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
}

/* Скролл-индикатор */
.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeSlideUp 0.8s 1.4s both;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-dot {
    width: 3px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        opacity: 1;
        transform: translateY(0);
    }

    50% {
        opacity: 0.3;
        transform: translateY(10px);
    }
}

.scroll-indicator span {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   SYUNIK X — style.css ЧАСТЬ 2 + 3
   Секции, компоненты, адаптив
   ============================================================ */


/* ============================================================
   6. СЕКЦИИ — ОБЩИЕ СТИЛИ
   ============================================================ */

.section {
    padding: 110px 0;
    position: relative;
    transition: background-color var(--tr-slow);
}

.section-dark {
    background: var(--bg-secondary);
}

/* Тег над заголовком */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    padding: 5px 14px;
    border-radius: var(--r-full);
    background: var(--accent-light);
    border: 1px solid var(--border-accent);
    transition: background var(--tr-slow), color var(--tr-slow);
}

.section-tag::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    display: block;
    animation: tagDot 2s ease-in-out infinite;
}

@keyframes tagDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.6);
    }
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 14px;
    position: relative;
    display: inline-block;
    color: var(--text-primary);
    transition: color var(--tr-slow);
}

.section-header h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--grad-accent);
    border-radius: 2px;
    margin: 14px auto 0;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
    transition: color var(--tr-slow);
}


/* ============================================================
   7. О РЕГИОНЕ (ABOUT)
   ============================================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-text p {
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 20px;
    transition: color var(--tr-slow);
}

/* Счётчики статистики */
.about-stats {
    display: flex;
    gap: 0;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.stat-item+.stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: var(--border);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    display: inline;
    font-size: 1rem;
    color: var(--text-muted);
    transition: color var(--tr-slow);
}

.stat-desc {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 5px;
    letter-spacing: 0.05em;
    transition: color var(--tr-slow);
}

/* Фрейм с декором */
.about-img-frame {
    position: relative;
}

.about-img-frame .img-placeholder {
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 380px;
}

.about-img-deco {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: var(--r-sm);
}

.deco-tl {
    top: -14px;
    left: -14px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    border-radius: var(--r-sm) 0 0 0;
}

.deco-br {
    bottom: -14px;
    right: -14px;
    border-bottom: 2px solid var(--accent2);
    border-right: 2px solid var(--accent2);
    border-radius: 0 0 var(--r-sm) 0;
}


/* ============================================================
   8. КАРТОЧКИ МЕСТ + КНОПКА 3D
   ============================================================ */

.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 24px;
}

.place-card {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform var(--tr-bounce), box-shadow var(--tr),
        border-color var(--tr), background var(--tr-slow);
    position: relative;
}

.place-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-lg), var(--shadow-accent);
    border-color: var(--border-accent);
}

/* Блик на карточке при hover */
.place-card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg,
            transparent 40%,
            rgba(255, 255, 255, 0.06) 50%,
            transparent 60%);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 5;
}

.place-card:hover .place-card-shine {
    left: 150%;
}

.place-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

.place-img-wrap .img-placeholder {
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
    border-radius: 0;
    min-height: 100%;
}

.place-img-wrap .img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.place-card:hover .place-img-wrap img {
    transform: scale(1.07);
}

/* Кнопка 3D */
.btn-3d {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--grad-accent);
    color: var(--text-on-accent);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 6px 12px;
    border-radius: var(--r-full);
    border: none;
    cursor: pointer;
    transition: var(--tr-bounce);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-3d:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow-strong);
}

.place-info {
    padding: 20px 22px 24px;
}

.place-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    transition: color var(--tr-slow);
}

.place-info p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
    transition: color var(--tr-slow);
}

.place-tags {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: var(--r-full);
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid var(--border-accent);
    transition: background var(--tr-slow), color var(--tr-slow);
}


/* ============================================================
   9. МОДАЛЬНОЕ ОКНО 3D
   ============================================================ */

.modal-3d {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: var(--bg-modal);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-3d.open {
    opacity: 1;
    visibility: visible;
}

.modal-3d-inner {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    width: 100%;
    max-width: 980px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-accent);
    box-shadow: var(--shadow-lg), var(--shadow-accent);
    transform: scale(0.93) translateY(20px);
    transition: transform 0.4s var(--ease);
}

.modal-3d.open .modal-3d-inner {
    transform: scale(1) translateY(0);
}

.modal-3d-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
    flex-shrink: 0;
    transition: background var(--tr-slow);
}

.modal-3d-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-3d-badge {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 4px 10px;
    border-radius: var(--r-full);
    background: var(--grad-accent);
    color: var(--text-on-accent);
}

.modal-3d-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color var(--tr-slow);
}

.modal-3d-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.modal-3d-hint {
    font-size: 0.76rem;
    color: var(--text-muted);
    transition: color var(--tr-slow);
}

.modal-close-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--tr);
    flex-shrink: 0;
}

.modal-close-btn:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}

.modal-3d-frame-wrap {
    flex: 1;
    min-height: 420px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.modal-3d-frame-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.modal-3d-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 14px 22px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
    flex-shrink: 0;
    flex-wrap: wrap;
    transition: background var(--tr-slow);
}


/* ============================================================
   10. ПОЧЕМУ СТОИТ ПОСЕТИТЬ
   ============================================================ */

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}

.why-card {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    padding: 34px 26px;
    border: 1px solid var(--border);
    text-align: center;
    transition: transform var(--tr-bounce), box-shadow var(--tr),
        border-color var(--tr), background var(--tr-slow);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--grad-accent);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease);
    transform-origin: left;
}

.why-card:hover::before {
    transform: scaleX(1);
}

.why-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-card), var(--shadow-accent);
}

.why-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    background: var(--accent-light);
    border: 1.5px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon-wrap .img-placeholder.small {
    width: 68px;
    height: 68px;
    min-height: 68px;
    border-radius: 50%;
}

.why-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--accent);
    transition: color var(--tr-slow);
}

.why-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.75;
    transition: color var(--tr-slow);
}


/* ============================================================
   11. ИСТОРИЯ — TIMELINE (ИСПРАВЛЕН БАГ ПОЛУКРУГА)
   ============================================================ */

.timeline-container {
    margin-bottom: 44px;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    /* Важно: ограничиваем ширину контейнером */
    width: 100%;
    max-width: 100%;
}

.timeline-track {
    padding: 28px 12px 50px;
    min-width: 560px;
}

/* Метки под точками — уменьшаем на мобиле */
.tl-year {
    font-size: 0.55rem;
}

.tl-name {
    font-size: 0.52rem;
}

.timeline-line-bg {
    position: absolute;
    top: 38px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    z-index: 0;
}

.timeline-line-progress {
    position: absolute;
    top: 38px;
    left: 20px;
    height: 2px;
    background: var(--grad-accent);
    border-radius: 2px;
    z-index: 1;
    width: 0%;
    transition: width 0.5s var(--ease);
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-dots {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.tl-dot-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    flex: 1;
}

/* ====================================================
   ФИКС ПОЛУКРУГА:
   Используем padding вместо scale для увеличения,
   overflow: visible на родителе,
   фиксированный border-radius: 50%
   ==================================================== */
.tl-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    /* явно 50% */
    border: 2px solid var(--border-mid);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: border-color 0.35s var(--ease),
        background 0.35s var(--ease),
        box-shadow 0.35s var(--ease);
    /* НЕ используем transform: scale — это и было причиной полукруга */
    overflow: visible;
    /* кольцо должно быть видно */
}

.tl-dot-inner {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-mid);
    transition: background 0.35s var(--ease), transform 0.35s var(--ease);
    flex-shrink: 0;
}

/* Кольцо — отдельный псевдоэлемент, не влияет на форму dot */
.tl-dot-ring {
    position: absolute;
    /* Кольцо больше dot на 10px с каждой стороны */
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    transform: scale(0.7);
    pointer-events: none;
}

/* Активное состояние — dot меняет цвет, НЕ меняет размер */
.tl-dot.active {
    border-color: var(--accent);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 3px var(--accent-light),
        0 0 18px var(--accent-glow);
}

.tl-dot.active .tl-dot-inner {
    background: var(--accent);
    transform: scale(1.2);
}

.tl-dot.active .tl-dot-ring {
    opacity: 1;
    transform: scale(1);
}

/* Hover — тоже без scale */
.tl-dot-wrap:hover .tl-dot {
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.tl-dot-wrap:hover .tl-dot-inner {
    background: var(--accent);
}

/* Метки */
.tl-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 12px;
    gap: 3px;
}

.tl-year {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    letter-spacing: 0.04em;
    transition: color 0.35s ease;
}

.tl-dot-wrap.active .tl-year,
.tl-dot-wrap:hover .tl-year {
    color: var(--accent);
}

.tl-name {
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.35s ease;
}

.tl-dot-wrap.active .tl-name {
    color: var(--text-secondary);
}

/* Панель события */
.history-panel {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    min-height: 180px;
    transition: background var(--tr-slow), border-color var(--tr);
}

.history-panel-content {
    padding: 36px 44px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.history-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 120px;
    color: var(--text-muted);
}

.history-empty-state p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    transition: color var(--tr-slow);
}

.history-event-year {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 10px;
}

.history-event-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
    line-height: 1.35;
    transition: color var(--tr-slow);
}

.history-event-text {
    font-size: 0.96rem;
    color: var(--text-secondary);
    line-height: 1.85;
    max-width: 680px;
    transition: color var(--tr-slow);
}


/* ============================================================
   12. ПЕРСОНАЛЬНЫЙ ГИД
   ============================================================ */

.guide-wizard {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.guide-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--bg-card);
    border-radius: var(--r-lg);
    padding: 28px 30px;
    border: 1px solid var(--border);
    transition: background var(--tr-slow), border-color var(--tr);
}

.guide-step:hover {
    border-color: var(--border-accent);
}

.guide-step-num {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    flex-shrink: 0;
    width: 48px;
    margin-top: 2px;
}

.guide-step-content {
    flex: 1;
}

.guide-step-content h4 {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    transition: color var(--tr-slow);
}

.guide-options-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Кнопки опций — стандартные */
.guide-opt-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    padding: 9px 16px;
    border-radius: var(--r-md);
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--tr-bounce);
}

.guide-opt-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px var(--accent-glow);
}

.guide-opt-btn.active {
    background: var(--grad-accent);
    color: var(--text-on-accent);
    border-color: transparent;
    box-shadow: 0 6px 20px var(--accent-glow);
}

/* Маленькие кнопки (дни) */
.guide-opt-small {
    padding: 9px 18px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    min-width: 52px;
    justify-content: center;
}

.guide-generate-wrap {
    text-align: center;
}

.guide-gen-btn {
    padding: 15px 40px;
    font-size: 0.97rem;
}

/* Результат */
.guide-result {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    border: 1px solid var(--border-accent);
    box-shadow: var(--shadow-accent);
    overflow: hidden;
    animation: fadeInUp 0.5s ease;
    transition: background var(--tr-slow);
}

.guide-result-header {
    padding: 26px 30px 20px;
    border-bottom: 1px solid var(--border);
}

.guide-result-header h3 {
    font-size: 1.2rem;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.guide-result-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.guide-meta-tag {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: var(--r-full);
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid var(--border-accent);
}

#guide-result-content {
    padding: 20px 30px 26px;
}

.guide-route-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.guide-route-step:last-child {
    border-bottom: none;
}

.guide-route-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--grad-accent);
    color: var(--text-on-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
    font-family: var(--font-display);
}

.guide-route-info strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.93rem;
    font-weight: 600;
    margin-bottom: 3px;
    transition: color var(--tr-slow);
}

.guide-route-info span {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.55;
    transition: color var(--tr-slow);
}


/* ============================================================
   13. ДО / ПОСЛЕ
   ============================================================ */

.ba-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.ba-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 18px;
    color: var(--text-primary);
    transition: color var(--tr-slow);
}

.ba-slider-wrap {
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: col-resize;
    user-select: none;
    position: relative;
}

.ba-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 3;
    overflow: hidden;
}

.ba-before {
    position: absolute;
    inset: 0;
}

.ba-after {
    position: absolute;
    inset: 0;
    width: 50%;
    overflow: hidden;
}

.ba-before .img-placeholder,
.ba-after .img-placeholder {
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
    border-radius: 0;
    min-height: 100%;
}

.ba-before img,
.ba-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.ba-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: var(--r-full);
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    pointer-events: none;
    z-index: 5;
}

.ba-label.after {
    left: auto;
    right: 12px;
    background: var(--grad-accent);
    color: var(--text-on-accent);
}

/* Ползунок */
.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--accent);
    transform: translateX(-50%);
    cursor: col-resize;
    z-index: 10;
    box-shadow: 0 0 12px var(--accent-glow-strong);
}

.ba-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
    transition: background var(--tr-slow);
}

.ba-handle::after {
    content: '◀ ▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.55rem;
    color: var(--accent);
    letter-spacing: 2px;
    pointer-events: none;
    z-index: 1;
}

.ba-desc {
    font-size: 0.86rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 14px;
    line-height: 1.65;
    transition: color var(--tr-slow);
}


/* ============================================================
   14. КВИЗ
   ============================================================ */

.quiz-wrap {
    max-width: 680px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--r-xl);
    padding: 42px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: background var(--tr-slow);
}

.quiz-progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 36px;
}

.quiz-progress-fill {
    height: 100%;
    background: var(--grad-accent);
    border-radius: 4px;
    transition: width 0.5s var(--ease);
    box-shadow: 0 0 8px var(--accent-glow);
}

.quiz-q-num {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.quiz-question {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.45;
    margin-bottom: 28px;
    transition: color var(--tr-slow);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--r-md);
    padding: 14px 20px;
    font-size: 0.92rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: var(--tr);
    width: 100%;
}

.quiz-option:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
    transform: translateX(5px);
}

.quiz-option.correct {
    border-color: #2ecc71;
    background: rgba(46, 204, 113, 0.12);
    color: #2ecc71;
}

.quiz-option.wrong {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.quiz-option:disabled {
    cursor: not-allowed;
    pointer-events: none;
}

.quiz-result {
    text-align: center;
    padding: 10px 0;
    animation: fadeInUp 0.5s ease;
}

.quiz-result h3 {
    font-size: 1.8rem;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
}

.quiz-result p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 28px;
    line-height: 1.7;
    transition: color var(--tr-slow);
}


/* ============================================================
   15. МИНИ-ИГРА
   ============================================================ */

.game-wrap {
    max-width: 660px;
    margin: 0 auto;
}

.game-start {
    background: var(--bg-card);
    border-radius: var(--r-xl);
    padding: 50px 42px;
    text-align: center;
    border: 1px solid var(--border);
    transition: background var(--tr-slow);
}

.game-start-img {
    max-width: 380px;
    height: 220px;
    margin: 0 auto 28px;
    border-radius: var(--r-lg);
    overflow: hidden;
}

.game-start h3 {
    font-size: 1.55rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    transition: color var(--tr-slow);
}

.game-start p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 28px;
    line-height: 1.7;
    transition: color var(--tr-slow);
}

.game-score-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px 18px;
    background: var(--bg-card);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-bottom: none;
    transition: background var(--tr-slow);
}

.game-img-wrap {
    background: var(--bg-card);
    padding: 0 28px 20px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    transition: background var(--tr-slow);
}

.game-img-wrap .img-placeholder {
    height: 280px;
    border-radius: var(--r-lg);
    overflow: hidden;
}

.game-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: var(--bg-card);
    padding: 20px 28px 28px;
    border-radius: 0 0 var(--r-xl) var(--r-xl);
    border: 1px solid var(--border);
    border-top: none;
    transition: background var(--tr-slow);
}

.game-option {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--r-md);
    padding: 13px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--tr);
    line-height: 1.3;
}

.game-option:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px var(--accent-glow);
}

.game-option.correct {
    border-color: #2ecc71;
    background: rgba(46, 204, 113, 0.12);
    color: #2ecc71;
}

.game-option.wrong {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.game-option:disabled {
    cursor: not-allowed;
    pointer-events: none;
}

.game-result {
    background: var(--bg-card);
    border-radius: var(--r-xl);
    padding: 52px 42px;
    text-align: center;
    border: 1px solid var(--border-accent);
    box-shadow: var(--shadow-accent);
    animation: fadeInUp 0.5s ease;
    transition: background var(--tr-slow);
}

.game-result-icon {
    font-size: 3.5rem;
    margin-bottom: 18px;
    line-height: 1;
}

.game-result h3 {
    font-size: 1.75rem;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.game-result p {
    color: var(--text-secondary);
    font-size: 0.96rem;
    margin-bottom: 22px;
    line-height: 1.7;
    transition: color var(--tr-slow);
}

.game-final-score {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 28px;
    line-height: 1;
}


/* ============================================================
   16. ФОТОАЛЬБОМ + ЛАЙТБОКС
   ============================================================ */

.album-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 22px;
    border-radius: var(--r-full);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tr);
    font-family: var(--font-display);
    letter-spacing: 0.04em;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-btn.active {
    background: var(--grad-accent);
    border-color: transparent;
    color: var(--text-on-accent);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 14px;
}

.album-item {
    position: relative;
    border-radius: var(--r-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    transition: transform var(--tr-bounce), box-shadow var(--tr);
}

.album-item:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-md), var(--shadow-accent);
    z-index: 2;
}

.album-item .img-placeholder {
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
    border-radius: 0;
}

.album-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.album-item:hover img {
    transform: scale(1.08);
}

.album-item.hidden {
    display: none;
}

.album-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto;
    bottom: auto;

    background: none;
    /* если не хочешь затемнение */
    padding: 0;

    transform: none;
    /* ВАЖНО — убираем выезд */
}

/* .album-item:hover .album-overlay {
    transform: translateY(0);
} */

.album-overlay span {
    font-size: 0.85rem;
    font-weight: 600;
    /* Всегда белый — фон под ним тёмный */
    color: #ffffff;
}

/* Лайтбокс */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 9500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
}

.lightbox p {
    margin-top: 16px;
    /* Всегда полупрозрачно-белый на тёмном фоне */
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--tr);
}

.lightbox-close:hover {
    background: #e74c3c;
    border-color: #e74c3c;
}


/* ============================================================
   17. ИНТЕРВЬЮ
   ============================================================ */

.interviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 26px;
}

.interview-card {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform var(--tr-bounce), box-shadow var(--tr),
        border-color var(--tr), background var(--tr-slow);
}

.interview-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-md), var(--shadow-accent);
}

.interview-video-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    position: relative;
}

.interview-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.interview-info {
    padding: 20px 22px 24px;
}

.interview-person {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.interview-person .img-placeholder.tiny {
    width: 52px;
    height: 52px;
    min-height: 52px;
    border-radius: 50%;
    flex-shrink: 0;
}

.interview-person img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.interview-person strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    transition: color var(--tr-slow);
}

.interview-person span {
    font-size: 0.78rem;
    color: var(--accent);
}

.interview-info>p {
    font-size: 0.87rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    transition: color var(--tr-slow);
}


/* ============================================================
   18. ПОЧЕМУ НЕДООЦЕНЁН
   ============================================================ */

.underrated-grid {
    margin-bottom: 60px;
}

.underrated-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--tr);
}

.underrated-item:last-child {
    border-bottom: none;
}

.underrated-item:hover .underrated-num {
    -webkit-text-fill-color: transparent;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
}

.underrated-num {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--border-mid);
    line-height: 1;
    flex-shrink: 0;
    width: 80px;
    transition: var(--tr-slow);
}

.underrated-content h3 {
    font-size: 1.18rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: color var(--tr-slow);
}

.underrated-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.78;
    transition: color var(--tr-slow);
}

.underrated-hero-img {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.underrated-hero-img .img-placeholder.wide {
    height: 420px;
    width: 100%;
    min-height: 420px;
    aspect-ratio: unset;
    border-radius: 0;
}

.underrated-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.underrated-quote {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 70px 50px 40px;
}

.underrated-quote blockquote {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.5vw, 1.55rem);
    font-style: italic;
    /* Всегда белый — фон тёмный градиент */
    color: rgba(255, 255, 255, 0.92);
    max-width: 600px;
    line-height: 1.5;
}


/* ============================================================
   19. FOOTER
   ============================================================ */

#footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 70px 0 0;
    transition: background var(--tr-slow);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 300px;
    transition: color var(--tr-slow);
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
    transition: color var(--tr-slow);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: color var(--tr), transform var(--tr);
    display: inline-block;
}

.footer-col ul a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer-col>p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    transition: color var(--tr-slow);
}

.creator-name {
    font-size: 1rem !important;
    font-weight: 700;
    color: var(--text-primary) !important;
    font-family: var(--font-display);
    margin-bottom: 14px !important;
    transition: color var(--tr-slow) !important;
}

.footer-email {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 20px;
    transition: color var(--tr);
}

.footer-email:hover {
    color: var(--accent-hover);
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text-secondary);
    transition: var(--tr-bounce);
}

.social-link:hover {
    background: var(--grad-accent);
    border-color: transparent;
    color: var(--text-on-accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--accent-glow);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: color var(--tr-slow);
}

.footer-conf-note {
    font-size: 0.78rem !important;
    font-weight: 600;
    font-family: var(--font-display);
    letter-spacing: 0.06em;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ============================================================
   20. КНОПКА НАВЕРХ + УТИЛИТЫ
   ============================================================ */

#back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    background: var(--grad-accent);
    color: var(--text-on-accent);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 800;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s ease,
        transform var(--tr-bounce), box-shadow var(--tr);
    box-shadow: 0 6px 22px var(--accent-glow);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--accent-glow);
}

/* IMG PLACEHOLDER */
.img-placeholder {
    background: var(--ph-bg);
    border: 2px dashed var(--ph-border);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    transition: background var(--tr-slow), border-color var(--tr-slow);
}

.img-placeholder::before {
    content: attr(data-label);
    font-size: 0.72rem;
    color: var(--ph-text);
    text-align: center;
    padding: 12px;
    line-height: 1.5;
    position: absolute;
    z-index: 0;
    transition: color var(--tr-slow);
}

.img-placeholder img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-placeholder.small {
    min-height: 68px;
    width: 68px;
    height: 68px;
    border-radius: 50%;
}

.img-placeholder.tiny {
    min-height: 52px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
}

.img-placeholder.wide {
    min-height: 420px;
    width: 100%;
}

/* AOS */
[data-aos] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(-28px);
}

[data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(28px);
}

[data-aos="fade-left"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

[data-aos-delay="80"] {
    transition-delay: 0.08s;
}

[data-aos-delay="100"] {
    transition-delay: 0.10s;
}

[data-aos-delay="150"] {
    transition-delay: 0.15s;
}

[data-aos-delay="200"] {
    transition-delay: 0.20s;
}

[data-aos-delay="250"] {
    transition-delay: 0.25s;
}

[data-aos-delay="300"] {
    transition-delay: 0.30s;
}

[data-aos-delay="350"] {
    transition-delay: 0.35s;
}

[data-aos-delay="400"] {
    transition-delay: 0.40s;
}

[data-aos-delay="450"] {
    transition-delay: 0.45s;
}

[data-aos-delay="500"] {
    transition-delay: 0.50s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Particles canvas */
#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.45;
}

/* Активные ссылки меню */
.desktop-nav a.active,
.mobile-nav a.active {
    color: var(--accent);
    background: var(--accent-light);
}


/* ============================================================
   21. АДАПТИВ — МЕДИАЗАПРОСЫ
   ============================================================ */

/* Планшет — до 1100px */
@media (max-width: 1100px) {
    .desktop-nav a {
        font-size: 0.72rem;
        padding: 5px 7px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer-grid .footer-col:first-child {
        grid-column: 1 / -1;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Планшет — до 900px */
@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .burger-btn {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }

    .ba-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .places-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .interviews-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr 1fr;
    }

    .timeline-container {
        overflow-x: auto;
    }
}

/* Мобильный — до 640px */
@media (max-width: 640px) {
    .section {
        padding: 72px 0;
    }

    .container {
        padding: 0 18px;
    }

    .header-inner {
        padding: 0 12px;
        height: 56px;
        gap: 8px;
    }

    .logo-syunik {
        font-size: 0.95rem;
    }

    .logo-x {
        font-size: 1.1rem;
    }

    .controls {
        gap: 4px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }

    .header-inner {
        padding: 0 10px;
        gap: 6px;
        justify-content: space-between;
    }

    .logo {
        flex-shrink: 0;
    }

    /* Скрываем иконки звука на очень маленьких экранах чтобы освободить место */

    .ctrl-btn {
        width: 36px;
        height: 36px;
    }

    .ctrl-glass-icon {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        flex-shrink: 0;
    }

    .ctrl-glass-group {
        padding: 2px;
        flex-shrink: 0;
    }

    .lang-pill {
        padding: 4px 7px;
        font-size: 0.6rem;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 0.68rem;
    }

    .hero-title {
        font-size: clamp(2.8rem, 13vw, 4rem);
    }

    .hero-stats {
        gap: 0;
    }

    .hero-stat {
        padding: 0 14px;
    }

    .hero-stat strong {
        font-size: 1.2rem;
    }

    .hero-btns {
        gap: 10px;
    }

    .hero-btn {
        padding: 12px 22px;
        font-size: 0.85rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-item+.stat-item::before {
        display: none;
    }

    .stat-item {
        border-top: 1px solid var(--border);
        padding-top: 20px;
    }

    .places-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .quiz-wrap {
        padding: 28px 22px;
    }

    .game-options {
        grid-template-columns: 1fr;
    }

    .game-score-bar {
        padding: 18px 20px 14px;
    }

    .game-img-wrap {
        padding: 0 20px 16px;
    }

    .game-options {
        padding: 16px 20px 24px;
    }

    .game-start {
        padding: 36px 24px;
    }

    .game-result {
        padding: 36px 24px;
    }

    .album-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .underrated-item {
        flex-direction: column;
        gap: 8px;
    }

    .underrated-num {
        font-size: 2.4rem;
        width: auto;
    }

    .underrated-quote {
        padding: 40px 24px 24px;
    }

    .underrated-hero-img .img-placeholder.wide {
        min-height: 260px;
    }

    .guide-step {
        flex-direction: column;
        gap: 14px;
        padding: 22px 20px;
    }

    .guide-step-num {
        font-size: 1.4rem;
    }

    .modal-3d {
        padding: 12px;
    }

    .modal-3d-frame-wrap {
        min-height: 280px;
    }

    .modal-3d-footer {
        flex-direction: column;
        gap: 10px;
    }

    .modal-3d-hint {
        display: none;
    }

    .history-panel-content {
        padding: 24px 22px;
    }

    /* История — убираем выход за рамки */
    #history .container {
        overflow: hidden;
        padding: 0 12px;
    }

    #history .timeline-container {
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
        width: calc(100% + 24px);
    }

    .timeline-track {
        padding: 28px 12px 50px;
        min-width: 580px;
    }

    #back-to-top {
        bottom: 18px;
        right: 18px;
        width: 42px;
        height: 42px;
    }

    .section-header {
        margin-bottom: 44px;
    }
}

/* Маленькие телефоны — до 380px */
@media (max-width: 380px) {
    .album-grid {
        grid-template-columns: 1fr;
    }

    .game-options {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        display: none;
    }

    .lang-switcher {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* Ландшафт телефонов */
@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        min-height: 100vh;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-stats {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }
}

/* ============================================================
   NEON PARTICLES — дополнительный слой частиц
   ============================================================ */

#neon-particles {
    position: fixed;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    /* Частицы видны поверх фона но под контентом */
    mix-blend-mode: screen;
    opacity: 0.7;
}

/* Светлая тема — частицы чуть прозрачнее */
[data-theme="light"] #neon-particles {
    opacity: 0.35;
    mix-blend-mode: multiply;
}

/* ============================================================
   НОВЫЕ ПРОЗРАЧНЫЕ КНОПКИ УПРАВЛЕНИЯ
   Вставить в самый конец style.css
   ============================================================ */

/* ---------- Стеклянная группа (языки) ---------- */
.ctrl-glass-group {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 3px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 16px rgba(0, 0, 0, 0.2);
}

.ctrl-glass-group:hover {
    border-color: var(--border-accent);
    box-shadow: 0 0 16px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.ctrl-glass-sep {
    width: 1px;
    height: 14px;
    background: var(--border-mid);
    flex-shrink: 0;
}

.lang-pill {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 5px 11px;
    border-radius: 24px;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    line-height: 1;
}

.lang-pill:hover:not(.active) {
    color: var(--text-secondary);
}

.lang-pill.active {
    background: var(--grad-accent);
    color: var(--text-on-accent);
    box-shadow: 0 2px 12px var(--accent-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.lang-pill:hover:not(.active) {
    color: var(--text-secondary);
}

[data-theme="light"] .lang-pill:hover:not(.active) {
    color: var(--text-primary);
}

/* Активный язык */
.lang-pill.active {
    background: var(--grad-accent);
    color: var(--text-on-accent);
    box-shadow:
        0 2px 12px var(--accent-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .lang-pill.active {
    background: var(--grad-accent);
    color: #ffffff;
    box-shadow:
        0 2px 12px var(--accent-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .lang-pill:not(.active) {
    color: var(--text-muted);
}

[data-theme="light"] .ctrl-glass-group {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .ctrl-glass-sep {
    background: var(--border-mid);
}

[data-theme="light"] .ctrl-glass-icon {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ---------- Иконочные стеклянные кнопки ---------- */
.ctrl-glass-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.28s ease, background 0.28s ease,
        border-color 0.28s ease, box-shadow 0.28s ease,
        transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Внутреннее свечение при hover */
.ctrl-glass-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg,
            rgba(61, 255, 203, 0.12),
            rgba(77, 140, 255, 0.08));
    opacity: 0;
    transition: opacity 0.28s ease;
}

.ctrl-glass-icon:hover::before {
    opacity: 1;
}

.ctrl-glass-icon:hover {
    color: var(--accent);
    border-color: var(--border-accent);
    box-shadow: 0 0 18px var(--accent-glow),
        0 4px 14px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}


.ctrl-glass-icon:active {
    transform: translateY(0px) scale(0.95);
}

/* SVG иконки */
.ctrl-glass-icon svg {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* ---------- Бургер-кнопка ---------- */
.ctrl-glass-icon.burger-btn {
    flex-direction: column;
    gap: 4px;
    /* Переопределяем display чтобы работал flex-direction */
    display: none;
    /* показывается только на мобиле */
    padding: 10px;
}

.burger-line {
    display: block;
    width: 18px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.3s ease,
        opacity 0.3s ease,
        background 0.3s ease;
}

[data-theme="light"] .burger-line {
    background: rgba(0, 0, 0, 0.55);
}

/* Состояние открытого меню */
.burger-btn.open .burger-line:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

.burger-btn.open .burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger-btn.open .burger-line:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}

/* ---------- Показываем бургер на мобиле ---------- */
@media (max-width: 900px) {
    .ctrl-glass-icon.burger-btn {
        display: flex;
    }
}

/* ---------- Иконки темы — переключение ---------- */
[data-theme="dark"] .icon-theme-dark {
    display: block;
}

[data-theme="dark"] .icon-theme-light {
    display: none;
}

[data-theme="light"] .icon-theme-dark {
    display: none;
}

[data-theme="light"] .icon-theme-light {
    display: block;
}

/* ---------- Мобильные кнопки — меньше ---------- */
@media (max-width: 640px) {
    .ctrl-glass-group {
        padding: 2px;
    }

    .lang-pill {
        padding: 4px 9px;
        font-size: 0.63rem;
    }

    .ctrl-glass-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }
}

/* ---------- Очень маленькие экраны ---------- */

@media (max-width: 380px) {
    .album-grid {
        grid-template-columns: 1fr;
    }

    .game-options {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        display: none;
    }

    .lang-switcher {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    /* Звук всегда виден, убираем только на совсем маленьких если нет места */
    /* #sound-toggle { display: none; } — НЕ скрываем */
}

/* ============================================================
   ПЕПЕЛ — canvas (фиксирован к экрану)
   ============================================================ */

#neon-particles {
    position: fixed;
    /* фиксирован — НЕ скроллится */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    /* не мешает кликам */
    mix-blend-mode: screen;
    opacity: 1;
    /* Важно: не трогаем transform — остаётся на месте при скролле */
    will-change: opacity;
}

/* Светлая тема — тише и без screen */
[data-theme="light"] #neon-particles {
    opacity: 1;
    mix-blend-mode: normal;
}

/* ============================================================
   ПАНЕЛЬ ЦВЕТОВЫХ ТЕМ
   ============================================================ */

/* Обёртка — фиксирована справа */
#theme-panel-wrap {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100;
}

@media (max-width: 640px) {
    #theme-panel-wrap {
        top: auto;
        bottom: 80px;
        transform: none;
    }

    .theme-panel {
        top: auto;
        bottom: 0;
        transform: none;
        border-radius: 16px 16px 0 0;
        border-right: 1px solid var(--border-accent);
        max-height: 70vh;
    }

    .theme-panel.open {
        right: 0;
    }
}

/* Скрытое состояние панели-триггера */
#theme-panel-wrap.hidden-trigger #theme-panel-trigger {
    opacity: 0.2;
    transform: translateX(80%);
}

#theme-panel-wrap.hidden-trigger #theme-panel-trigger:hover {
    opacity: 1;
    transform: translateX(0);
}

#theme-panel-wrap.hidden-trigger {
    transition: all 0.4s ease;
}

/* Кнопка-триггер (таб справа) */
#theme-panel-trigger {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-right: none;
    border-radius: 10px 0 0 10px;
    padding: 12px 14px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.75rem;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.05em;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--tr);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    writing-mode: horizontal-tb;
}

#theme-panel-trigger:hover {
    color: var(--accent);
    background: var(--bg-card-hover);
    padding-right: 18px;
}

#theme-panel-trigger svg {
    flex-shrink: 0;
    color: var(--accent);
}

/* Сама панель */
.theme-panel {
    position: fixed;
    right: -300px;
    /* скрыта по умолчанию */
    top: 50%;
    transform: translateY(-50%);
    width: 260px;
    max-height: 85vh;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-right: none;
    border-radius: 16px 0 0 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1099;
}

/* Открытое состояние */
.theme-panel.open {
    right: 0;
}

/* Заголовок панели */
.theme-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.theme-panel-header span {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--tr-slow);
}

.theme-panel-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--tr);
}

.theme-panel-close:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}

/* Список тем */
.theme-panel-list {
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.theme-panel-list::-webkit-scrollbar {
    width: 4px;
}

.theme-panel-list::-webkit-scrollbar-track {
    background: transparent;
}

.theme-panel-list::-webkit-scrollbar-thumb {
    background: var(--border-accent);
    border-radius: 2px;
}

/* Кнопка одной темы */
.theme-swatch {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 9px 12px;
    cursor: pointer;
    transition: var(--tr);
    position: relative;
    text-align: left;
}

.theme-swatch:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateX(-3px);
}

/* Активная тема */
.theme-swatch.active {
    border-color: var(--accent);
    background: var(--accent-light);
}

/* Превью цветов */
.swatch-preview {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.swatch-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

/* Название темы */
.theme-swatch span {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    flex: 1;
    transition: color var(--tr-slow);
}

.theme-swatch.active span {
    color: var(--accent);
    font-weight: 700;
}

/* Галочка */
.swatch-check {
    font-size: 0.75rem;
    color: var(--accent);
    opacity: 0;
    transition: opacity var(--tr);
    flex-shrink: 0;
}

.theme-swatch.active .swatch-check {
    opacity: 1;
}

/* Мобильный вид */
@media (max-width: 640px) {
    #theme-panel-trigger span {
        display: none;
    }

    #theme-panel-trigger {
        padding: 10px 12px;
    }

    .theme-panel {
        width: 230px;
    }
}

@media (max-width: 640px) {
    .timeline-container {
        /* Показываем полосу прокрутки чтобы пользователь знал что можно скроллить */
        scrollbar-width: thin;
        scrollbar-color: var(--accent-dim) transparent;
    }

    /* Подсказка о горизонтальной прокрутке */
    .timeline-container::after {
        content: '';
        display: block;
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to right, transparent, var(--bg-secondary));
        pointer-events: none;
    }

    .timeline-container {
        position: relative;
    }
}

/* ============================================================
   ФИКС: текст поверх градиентных акцентов в светлых темах
   ============================================================ */
[data-theme="light"] .btn-primary,
[data-theme="light"] .hero-btn-primary,
[data-theme="light"] .filter-btn.active,
[data-theme="light"] .lang-pill.active,
[data-theme="light"] .guide-opt-btn.active,
[data-theme="light"] .guide-route-num {
    color: #0e1a30 !important;
    -webkit-text-fill-color: #0e1a30 !important;
}

/* Арктика и другие светлые акценты — тёмный текст на светлом акценте */
[data-theme="light"] .section-tag {
    color: var(--accent-dim);
}

[data-theme="light"] .tag {
    color: var(--accent-dim);
}

/* Исправляем читаемость текста на карточках в светлой теме */
[data-theme="light"] .place-info h3,
[data-theme="light"] .place-info p,
[data-theme="light"] .why-card p,
[data-theme="light"] .guide-step-content h4 {
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
}

/* Фикс для схем с белым акцентом (Arctic, Granite) */
[data-theme="light"] .logo-x,
[data-theme="light"] .hero-title-x {
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

/* Градиентный текст — принудительно делаем читаемым */
[data-theme="light"] .stat-number,
[data-theme="light"] .history-event-year,
[data-theme="light"] .guide-step-num,
[data-theme="light"] .guide-result-header h3,
[data-theme="light"] .quiz-result h3,
[data-theme="light"] .game-result h3,
[data-theme="light"] .game-final-score,
[data-theme="light"] .footer-conf-note {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: brightness(0.75);
}

@media (min-width: 641px) {
    .mobile-nav {
        top: 66px;
    }
}

/* Убираем рывок мобильного браузера */
@supports (-webkit-touch-callout: none) {
    body {
        min-height: -webkit-fill-available;
    }
}

/* Убираем горизонтальный overflow только на мобильных */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
    }
}

.img-placeholder.wide {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.img-placeholder.wide img {
    width: 100%;
    display: block;
    border-radius: 16px;
}

/* УДАЛИ или закомментируй ЭТО */
/*
.img-placeholder.wide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}
*/

.underrated-quote {
    position: absolute;
    bottom: 20px;
    left: 30px;
    z-index: 2;
    color: #fff;
    max-width: 600px;
}

.underrated-quote blockquote {
    font-size: 22px;
    font-style: italic;
}

/* ============================================================
   LITE MODE BUTTON
   ============================================================ */
.lite-btn .lite-btn-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    color: var(--text-secondary);
    user-select: none;
}

.lite-btn.active {
    border-color: var(--border-accent);
    box-shadow: 0 0 18px var(--accent-glow);
}

.lite-btn.active .lite-btn-text {
    color: var(--accent);
}

/* ============================================================
   LITE MODE (включается атрибутом на <html>: data-lite="true")
   ============================================================ */

/* скрываем canvas-эффекты */
html[data-lite="true"] #particles-canvas,
html[data-lite="true"] #neon-particles {
    display: none !important;
}

/* отключаем AOS-анимации */
html[data-lite="true"] [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* отключаем бесконечные анимации на Hero */
html[data-lite="true"] .hero-title-x {
    animation: none !important;
}

/* (опционально) убираем тяжелый blur */
html[data-lite="true"] .ctrl-glass-icon,
html[data-lite="true"] .ctrl-glass-group,
html[data-lite="true"] .mobile-nav,
html[data-lite="true"] #main-header.scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* ============================================================
   WHY-VISIT: вместо иконок — буква X (адаптация под тему/гамму)
   ============================================================ */
.why-x-icon {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;

    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: 0.08em;
    line-height: 1;

    /* “под цвет фона”: мягкий водяной знак */
    color: var(--text-primary);
    opacity: 0.14;

    /* чуть “вписываем” в стиль сайта (можно убрать, если не надо) */
    text-shadow: 0 0 18px var(--accent-glow);
}

/* Чтобы на светлой теме X не терялся */
[data-theme="light"] .why-x-icon {
    opacity: 0.10;
}

/* ============================================================
   GAME COVER: SYUNIK QUIZ вместо картинки (адаптация к теме/гамме)
   ============================================================ */
.game-start-cover {
    max-width: 380px;
    height: 220px;
    margin: 0 auto 28px;
    border-radius: var(--r-lg);
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    /* фон “в стиле сайта” */
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    position: relative;
}

/* мягкий акцентный блик под текущую цветовую схему */
.game-start-cover::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: var(--grad-accent);
    opacity: 0.10;
    filter: blur(30px);
    transform: rotate(12deg);
}

.game-start-cover-title {
    position: relative;
    z-index: 1;

    font-family: var(--font-display);
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 1.35rem;

    /* текст под цветовую схему */
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    /* читаемость */
    filter: drop-shadow(0 0 16px var(--accent-glow));
}

/* Hero video fallback: если видео не готово — держим poster/фон */
#hero-video {
    background: radial-gradient(circle at 30% 30%, rgba(61, 255, 203, 0.10), transparent 55%),
        radial-gradient(circle at 70% 40%, rgba(77, 140, 255, 0.10), transparent 60%),
        linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

/* ===================== Пасхалки HUD ===================== */
.egg-hud {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;

    display: inline-flex;
    gap: 10px;
    align-items: center;

    padding: 8px 14px;
    border-radius: var(--r-full);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);

    opacity: 0;
    pointer-events: none;
    /* по умолчанию не кликабельный */
    transition: opacity var(--tr), transform var(--tr);
}

.egg-hud.visible {
    opacity: 1;
    pointer-events: auto;
}

.egg-hud.hide {
    opacity: 0 !important;
    transform: translateX(-50%) translateY(-8px);
    pointer-events: none !important;
}

.egg-hud strong {
    color: var(--accent);
    letter-spacing: 0.06em;
}

/* ── крестик ── */
.egg-hud-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;
    margin-left: 2px;

    background: none;
    border: none;
    border-radius: 50%;

    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1;

    cursor: pointer;
    opacity: 0.55;
    transition: opacity var(--tr), background var(--tr), color var(--tr);

    flex-shrink: 0;
}

.egg-hud-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

@media (max-width: 640px) {
    .egg-hud {
        top: 70px;
        font-size: 0.85rem;
    }
}

/* ===================== Пасхалки элементы ===================== */
.easter-egg {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(61, 255, 203, 0.20), rgba(77, 140, 255, 0.12));
    opacity: 0.1;
    cursor: pointer;
    z-index: 5;
    transition: opacity var(--tr), transform var(--tr), box-shadow var(--tr);
}

.easter-egg:hover {
    opacity: 0.1;
    transform: scale(1.08);
    box-shadow: 0 0 16px var(--accent-glow);
}

.easter-egg.found {
    opacity: 0.35;
    box-shadow: 0 0 18px var(--accent-glow-strong);
}

/* Позиции (можешь менять как захочешь) */
#hero .egg-1 {
    right: 18px;
    bottom: 90px;
}

#about .egg-2 {
    left: 18px;
    top: 120px;
}

#places .egg-3 {
    right: 22px;
    top: 140px;
}

#album .egg-4 {
    left: 22px;
    top: 150px;
}

#footer .egg-5 {
    right: 26px;
    top: 40px;
}

/* ===================== Режим квеста (интрига) ===================== */
html[data-quest="true"] #main-header.scrolled {
    box-shadow: 0 0 0 1px var(--border-accent), 0 12px 40px rgba(0, 0, 0, 0.45);
}

html[data-quest="true"] body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        repeating-linear-gradient(135deg,
            rgba(255, 255, 255, 0.02) 0px,
            rgba(255, 255, 255, 0.02) 10px,
            transparent 10px,
            transparent 22px);
    opacity: 0.35;
    mix-blend-mode: overlay;
}

/* если тема открыта */
html[data-secret-unlocked="true"] .logo-x {
    filter: drop-shadow(0 0 14px rgba(255, 209, 102, 0.35));
}

.egg-hud.hide {
    opacity: 0 !important;
    transform: translateX(-50%) translateY(-8px);
    pointer-events: none !important;
}

/* GOLD swatch скрыт по умолчанию */
#swatch-gold {
    display: none;
}

/* после unlock показываем и поднимаем вверх + свечение */
html[data-secret-unlocked="true"] #swatch-gold {
    display: flex;
    order: -999;
    /* вверх списка */
    border-color: rgba(255, 209, 102, 0.55);
    box-shadow: 0 0 22px rgba(255, 209, 102, 0.22);
}

html[data-secret-unlocked="true"] #swatch-gold:hover {
    box-shadow: 0 0 34px rgba(255, 209, 102, 0.32);
    transform: translateX(-4px);
}

/* ===================== SECRET MODAL ===================== */
.secret-modal {
    position: fixed;
    inset: 0;
    z-index: 9600;
    background: var(--bg-modal);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 18px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .35s ease, visibility .35s ease;
}

.secret-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.secret-modal-inner {
    width: min(980px, 100%);
}

/* ---- стили из secret.html (почти 1в1) ---- */
.secret-wrap {
    text-align: center;
    width: min(980px, 100%);
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-accent);
    position: relative;
}

.secret-head {
    padding: 26px 26px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.secret-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 6px;
    background: linear-gradient(135deg, #ffd166, #ff2d55);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.secret-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.scratch-area {
    position: relative;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background:
        radial-gradient(circle at 30% 20%, rgba(61, 255, 203, 0.08), transparent 55%),
        radial-gradient(circle at 70% 40%, rgba(77, 140, 255, 0.08), transparent 60%),
        linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

.hidden-message {
    text-align: center;
    max-width: 720px;
    padding: 10px 14px;
    position: relative;
    z-index: 1;
}

.gold-line {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.7vw, 2rem);
    font-weight: 700;
    background: linear-gradient(90deg, #ffd166, #fff4c2, #ff9a3c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 14px rgba(255, 209, 102, 0.20));
    margin-bottom: 10px;
}

#scratchCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    touch-action: none;
    z-index: 2;
}

.secret-foot {
    padding: 18px 26px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--bg-secondary);
}

.secret-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: var(--r-full);
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--border-accent);
    background: var(--bg-card);
    color: var(--text-primary);
    transition: var(--tr);
}

.secret-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 209, 102, 0.45);
}

.secret-btn.primary {
    background: linear-gradient(135deg, #ffd166, #ff2d55);
    color: #07090f;
    border-color: transparent;
}

.gold-line.small {
    font-size: clamp(18px, 2vw, 25px);
    opacity: 0.8;
}

.gold-line.big {
    font-size: clamp(30px, 5vw, 55px);
    font-weight: 800;
}

@media (max-width: 600px) {
    .secret-foot {
        justify-content: center;
        /* по центру */
        flex-direction: column;
        /* одна под другой */
        align-items: center;
    }

    .secret-btn {
        width: 100%;
        max-width: 260px;
        /* чтобы не были слишком широкими */
    }
}
    