/* ==========================================================================
   E-bike Tara — design tokens
   Тема: топографическая карта / профиль высоты маршрута.
   Тёмная хвойная база + светлые "поляны"-секции, акценты — мох и глина каньона.
   Шрифты подключаются динамически из includes/head.php по настройкам админки
   (админка → Типографика), поэтому здесь нет статического @import шрифтов.
   ========================================================================== */

:root {
    --ink: #16231a;
    --ink-2: #1f2e22;
    --ink-3: #283b2c;
    --cream: #f3eee2;
    --cream-2: #eae3d2;
    --cream-3: #ded4b9;
    --moss: #7a9b57;
    --moss-light: #a9c37f;
    --clay: #b5652d;
    --clay-light: #d68a52;
    --river: #3b6b72;
    --text-dark: #1f2a1d;
    --text-dark-muted: rgba(31, 42, 29, 0.66);
    --text-light: #f3eee2;
    --text-light-muted: rgba(243, 238, 226, 0.66);
    --border-dark: rgba(243, 238, 226, 0.14);
    --border-light: rgba(31, 42, 29, 0.12);
    --scale: 1; /* глобальный масштаб текста — задаётся из админки (Типографика) */

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;

    --container: 1160px;
    --radius: 18px;
    --radius-sm: 10px;
}

* { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    /* Отключает автоматическое увеличение мелкого текста мобильным Safari
       ("font boosting") — без этого правила iOS может непредсказуемо раздувать
       шрифт коротких элементов в тесных flex-блоках (например RU/EN/SR
       переключателя языка), и они наезжают друг на друга. */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--ink);
    color: var(--text-light);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

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

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

:focus-visible {
    outline: 2px solid var(--moss-light);
    outline-offset: 3px;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
    font-family: var(--font-mono);
    font-size: calc(var(--scale) * 12.5px);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--moss-light);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--moss-light);
    display: inline-block;
}
.section--light .eyebrow { color: var(--clay); }
.section--light .eyebrow::before { background: var(--clay); }
/* .about-copy переиспользуется и на светлой секции «О нас» (главная), и на тёмной
   странице тура (tour.php) — правило .about-copy p (ниже) по специфичности бьёт
   базовый .eyebrow и красит его в тёмный на тёмном фоне. Явно возвращаем светлый. */
.section--ink .about-copy .eyebrow { color: var(--moss-light); font-size: calc(var(--scale) * 12.5px); margin-bottom: 14px; }

/* ---------- Rich-text content (описания, отредактированные через Quill в админке) ---------- */
.why-card ul, .why-card ol,
.tour-desc ul, .tour-desc ol,
.individual-box ul, .individual-box ol,
.about-copy ul, .about-copy ol,
.emtb-copy ul, .emtb-copy ol,
.faq-a ul, .faq-a ol,
.review-quote ul, .review-quote ol,
.tour-detail-copy ul, .tour-detail-copy ol {
    margin: 0 0 14px 22px;
    padding: 0;
}
.why-card ul, .tour-desc ul, .individual-box ul, .about-copy ul, .emtb-copy ul, .faq-a ul, .review-quote ul, .tour-detail-copy ul { list-style: disc; }
.why-card ol, .tour-desc ol, .individual-box ol, .about-copy ol, .emtb-copy ol, .faq-a ol, .review-quote ol, .tour-detail-copy ol { list-style: decimal; }
.why-card li, .tour-desc li, .individual-box li, .about-copy li, .emtb-copy li, .faq-a li, .review-quote li, .tour-detail-copy li { margin-bottom: 4px; }
.why-card em, .tour-desc em, .individual-box em, .about-copy em, .emtb-copy em, .faq-a em, .review-quote em, .tour-detail-copy em { font-style: italic; }
.why-card a:not(.btn), .tour-desc a:not(.btn), .individual-box a:not(.btn), .faq-a a:not(.btn), .review-quote a:not(.btn), .tour-detail-copy a:not(.btn) { color: var(--moss-light); text-decoration: underline; text-underline-offset: 2px; }
.about-copy a:not(.btn), .emtb-copy a:not(.btn) { color: var(--clay); text-decoration: underline; text-underline-offset: 2px; }
/* .tour-detail-copy вложен в .about-copy на странице тура — та же коллизия специфичности,
   что и у .eyebrow выше; .about-copy a той же специфичности и идёт позже, поэтому побеждает без явного переопределения. */
.tour-detail-copy a:not(.btn) { color: var(--moss-light); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.08;
    margin: 0;
    letter-spacing: -0.01em;
}
h2 { font-size: clamp(calc(var(--scale) * 30px), 4vw, calc(var(--scale) * 46px)); }
h3 { font-size: calc(var(--scale) * 22px); font-weight: 600; }

p { line-height: 1.65; margin: 0; }

.section-head {
    max-width: 620px;
    margin-bottom: 52px;
}
.section-head p { color: var(--text-light-muted); margin-top: 14px; font-size: calc(var(--scale) * 17px); }
.section--light .section-head p { color: var(--text-dark-muted); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 28px;
    border-radius: 100px;
    font-weight: 700;
    font-size: calc(var(--scale) * 15px);
    border: 1px solid transparent;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--clay); color: #fff8ef; }
.btn-primary:hover { background: var(--clay-light); }
.btn-ghost { border-color: var(--border-dark); color: var(--text-light); }
.btn-ghost:hover { border-color: var(--moss-light); color: var(--moss-light); }
.section--light .btn-ghost { border-color: var(--border-light); color: var(--text-dark); }
.section--light .btn-ghost:hover { border-color: var(--clay); color: var(--clay); }
.btn-block { width: 100%; }

/* ---------- Sections & contour divider (signature element) ---------- */
.section { position: relative; padding: 108px 0; }
.section--light { background: var(--cream); color: var(--text-dark); }
.section--ink { background: var(--ink); }
.section--ink-2 { background: var(--ink-2); }

.contour-divider {
    display: block;
    width: 100%;
    height: 46px;
    line-height: 0;
}
.contour-divider svg { width: 100%; height: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
    /* Лёгкая постоянная тень сверху — держит контраст навигации над любым
       слайдом слайдера, даже со светлым фоном и тёмным текстом. */
    background: linear-gradient(180deg, rgba(15, 24, 17, 0.45) 0%, rgba(15, 24, 17, 0) 100%);
}
.site-header.is-scrolled {
    background: rgba(22, 35, 26, 0.86);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--border-dark);
    padding: 12px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: calc(var(--scale) * 19px);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}
.logo-mark { width: 30px; height: 30px; color: var(--moss-light); flex-shrink: 0; }
img.logo-mark { object-fit: cover; border-radius: 7px; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: calc(var(--scale) * 14.5px);
    font-weight: 600;
}
.nav-links a { color: var(--text-light-muted); transition: color 0.18s ease; white-space: nowrap; }
.nav-links a:hover { color: var(--text-light); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn { padding: 11px 22px; font-size: calc(var(--scale) * 14px); }
.lang-switch {
    display: flex;
    gap: 2px;
    font-family: var(--font-mono);
    font-size: calc(var(--scale) * 12px);
    font-weight: 700;
}
.lang-switch a { padding: 6px 9px; border-radius: 6px; color: var(--text-light-muted); }
.lang-switch a:hover { color: var(--text-light); }
.lang-switch a.active { background: rgba(122,155,87,0.18); color: var(--moss-light); }
.lang-switch--mobile { margin: 22px 0 0; }
.nav-toggle {
    display: none;
    width: 42px; height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border-dark);
    background: transparent;
    color: var(--text-light);
    align-items: center;
    justify-content: center;
}

/* ---------- Hero slider ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    overflow: hidden;
    background: var(--ink);
}
.hero-slider { position: absolute; inset: 0; }
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.1s ease;
    display: flex;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; pointer-events: none; z-index: 0; }
/* Активный слайд — единственный видимый, поэтому его видео/iframe должны
   принимать тапы: если браузер (чаще всего мобильный Safari) заблокировал
   автовоспроизведение и показал свою кнопку play, её нужно иметь возможность нажать. */
.hero-slide.active .hero-slide-video { pointer-events: auto; }
.hero-slide-scrim { position: absolute; inset: 0; }
.hero-slide.text-light .hero-slide-scrim {
    background: linear-gradient(180deg, rgba(22,35,26,0.45) 0%, rgba(22,35,26,0.35) 45%, rgba(22,35,26,0.72) 100%);
}
.hero-slide.text-dark .hero-slide-scrim {
    background: linear-gradient(180deg, rgba(243,238,226,0.55) 0%, rgba(243,238,226,0.4) 45%, rgba(243,238,226,0.75) 100%);
}
.hero-slide-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 168px 28px 96px;
}
.hero-slide-inner.align-left { align-items: flex-start; text-align: left; }
.hero-slide-inner.align-center { align-items: center; text-align: center; }
.hero-slide-inner.align-right { align-items: flex-end; text-align: right; }
.hero-slide-inner.align-left .hero-actions { justify-content: flex-start; }
.hero-slide-inner.align-center .hero-actions { justify-content: center; }
.hero-slide-inner.align-right .hero-actions { justify-content: flex-end; }
.hero-slide-copy { max-width: 620px; }
.hero-slide.text-light .hero-slide-copy { color: var(--text-light); }
.hero-slide.text-dark .hero-slide-copy { color: var(--text-dark); }
.hero-slide.text-light .hero-slide-copy p { color: var(--text-light-muted); }
.hero-slide.text-dark .hero-slide-copy p { color: var(--text-dark-muted); }
.hero-slide-copy h1 { margin-bottom: 22px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-mono);
    font-size: calc(var(--scale) * 12.5px);
    letter-spacing: 0.06em;
    color: var(--moss-light);
    background: rgba(122, 155, 87, 0.12);
    border: 1px solid rgba(122, 155, 87, 0.35);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 26px;
}
.hero-badge::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--moss-light);
    box-shadow: 0 0 0 4px rgba(169, 195, 127, 0.22);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-slide-copy h1.size-sm { font-size: clamp(calc(var(--scale) * 28px), 3.6vw, calc(var(--scale) * 40px)); }
.hero-slide-copy h1.size-md { font-size: clamp(calc(var(--scale) * 32px), 4.6vw, calc(var(--scale) * 54px)); }
.hero-slide-copy h1.size-lg { font-size: clamp(calc(var(--scale) * 38px), 5.6vw, calc(var(--scale) * 68px)); }
.hero-slide-copy > p { font-size: calc(var(--scale) * 18px); margin-bottom: 32px; }
.hero-slide.text-dark .hero-badge {
    color: var(--clay);
    background: rgba(181, 101, 45, 0.12);
    border-color: rgba(181, 101, 45, 0.35);
}
.hero-slide.text-dark .hero-badge::before { background: var(--clay); box-shadow: 0 0 0 4px rgba(181,101,45,0.2); }

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 64px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}
.hero-dot {
    width: 9px; height: 9px;
    border-radius: 100px;
    background: rgba(255,255,255,0.4);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}
.hero-dot.active { width: 26px; background: #fff; }
.hero .contour-divider { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(22,35,26,0.5);
    border: 1px solid var(--border-dark);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.hero-arrow:hover { background: var(--clay); border-color: var(--clay); }
.hero-arrow--prev { left: 24px; }
.hero-arrow--next { right: 24px; }
@media (max-width: 720px) {
    .hero-arrow { width: 38px; height: 38px; }
    .hero-arrow--prev { left: 10px; }
    .hero-arrow--next { right: 10px; }
}

/* ---------- Why us ---------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    overflow: hidden;
}
.why-card {
    background: var(--ink);
    padding: 34px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 220px;
}
.why-card .num {
    font-family: var(--font-mono);
    font-size: calc(var(--scale) * 13px);
    color: var(--moss-light);
}
.why-card h3 { color: var(--text-light); font-size: calc(var(--scale) * 20px); }
.why-card p { color: var(--text-light-muted); font-size: calc(var(--scale) * 15px); }

/* ---------- Schedule ---------- */
.schedule-panel {
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}
.schedule-panel iframe { display: block; width: 100%; height: 560px; border: 0; }
.schedule-tabs {
    display: flex; gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}
.schedule-tab {
    font-family: var(--font-body);
    font-size: calc(var(--scale) * 14px);
    font-weight: 700;
    color: var(--text-dark-muted);
    background: none;
    border: none;
    border-radius: 100px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}
.schedule-tab:hover { background: var(--cream-2); }
.schedule-tab.active { color: var(--clay); background: var(--cream-2); }

/* ---------- Tours ---------- */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    margin-bottom: 26px;
}
.tour-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ink-2);
    border: 1px solid var(--border-dark);
    display: flex;
    flex-direction: column;
}
.tour-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.tour-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tour-card:hover .tour-media img { transform: scale(1.05); }
.tour-badge {
    position: absolute; top: 16px; left: 16px;
    font-family: var(--font-mono);
    font-size: calc(var(--scale) * 11.5px);
    letter-spacing: 0.04em;
    background: rgba(22, 35, 26, 0.78);
    backdrop-filter: blur(6px);
    color: var(--moss-light);
    padding: 7px 13px;
    border-radius: 100px;
    border: 1px solid rgba(122,155,87,0.4);
}
.tour-badge.on-request { color: var(--clay-light); border-color: rgba(181,101,45,0.45); }
.tour-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.tour-meta {
    font-family: var(--font-mono);
    font-size: calc(var(--scale) * 12.5px);
    color: var(--text-light-muted);
    display: flex;
    gap: 10px;
    align-items: center;
}
.tour-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.tour-card h3 { color: var(--text-light); }
.tour-desc {
    color: var(--text-light-muted);
    font-size: calc(var(--scale) * 14.5px);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tour-desc p { margin: 0; }
.tour-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.tour-price { font-family: var(--font-mono); font-weight: 600; color: var(--text-light); font-size: calc(var(--scale) * 15px); }
.tour-link { font-weight: 700; font-size: calc(var(--scale) * 14px); color: var(--moss-light); display: inline-flex; align-items: center; gap: 6px; }
.tour-link svg { width: 15px; height: 15px; transition: transform 0.18s ease; }
.tour-card:hover .tour-link svg { transform: translateX(3px); }

.individual-note { font-size: calc(var(--scale) * 13.5px); color: var(--text-light-muted); margin-bottom: 22px; }
.individual-box {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    padding: 44px;
    background: linear-gradient(135deg, var(--ink-2), var(--ink-3));
}
.individual-box h3 { color: var(--text-light); font-size: calc(var(--scale) * 26px); margin-bottom: 14px; }
.individual-box > div > p { color: var(--text-light-muted); margin-bottom: 20px; }
.individual-list { display: flex; flex-direction: column; gap: 12px; }
.individual-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-light); font-size: calc(var(--scale) * 14.5px); }
.individual-list svg { width: 18px; height: 18px; color: var(--moss-light); flex-shrink: 0; margin-top: 2px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
.about-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-stat {
    position: absolute; left: 20px; bottom: 20px;
    background: var(--cream);
    color: var(--text-dark);
    padding: 12px 18px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: calc(var(--scale) * 12.5px);
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.about-copy p { font-size: calc(var(--scale) * 17px); margin-bottom: 18px; color: var(--text-dark-muted); }
.about-copy strong { color: var(--text-dark); }
/* Тот же .about-grid/.about-copy используется и на странице тура (tour.php), но там секция тёмная —
   нужен светлый приглушённый цвет текста вместо тёмного из блока «О нас» на главной. */
.tour-detail-copy p { font-size: calc(var(--scale) * 17px); margin-bottom: 18px; color: var(--text-light-muted); }
.tour-detail-copy strong { color: var(--text-light); }
/* --full — тот же rich-текст, но во весь контейнер (блок «Подробнее о туре» между
   маршрутом по дням и галереей), а не в узкой колонке .about-copy — без ограничения
   ширины длинные абзацы растягивались бы на всю ширину секции и плохо читались. */
.tour-detail-copy--full { max-width: 760px; }
.about-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.about-badges span {
    font-size: calc(var(--scale) * 13.5px); font-weight: 600;
    padding: 9px 16px;
    border-radius: 100px;
    border: 1px solid var(--border-light);
    background: var(--cream-2);
}

/* ---------- E-MTB ---------- */
.emtb-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.emtb-copy p { color: var(--text-dark-muted); font-size: calc(var(--scale) * 17px); margin-bottom: 18px; }
.emtb-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-dark); border: 1px solid var(--border-dark); border-radius: var(--radius-sm); overflow: hidden; margin-top: 34px; }
.emtb-stat { background: var(--ink); padding: 20px 16px; text-align: center; }
.emtb-stat .value { font-family: var(--font-mono); font-size: calc(var(--scale) * 22px); font-weight: 600; color: var(--moss-light); }
.emtb-stat .label { font-size: calc(var(--scale) * 12.5px); color: var(--text-light-muted); margin-top: 6px; }
.emtb-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; }
.emtb-media img { width: 100%; height: 100%; object-fit: cover; }
.emtb-caption {
    position: absolute; right: 18px; bottom: 18px;
    font-family: var(--font-mono);
    font-size: calc(var(--scale) * 12px);
    background: rgba(22,35,26,0.75);
    backdrop-filter: blur(6px);
    padding: 9px 14px;
    border-radius: 100px;
    color: var(--text-light);
    border: 1px solid var(--border-dark);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-dark); }
.faq-q {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 24px 4px;
    background: none; border: none;
    text-align: left;
    font-family: var(--font-display);
    font-size: calc(var(--scale) * 19px);
    font-weight: 600;
    color: var(--text-light);
}
.faq-q .icon { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-dark); color: var(--text-light); display: flex; align-items: center; justify-content: center; transition: transform 0.25s ease, background 0.2s ease; }
.faq-item.open .faq-q .icon { background: var(--clay); border-color: var(--clay); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 4px 24px; color: var(--text-light-muted); font-size: calc(var(--scale) * 15.5px); max-width: 640px; }
/* max-height у .faq-item.open .faq-a выставляется в JS (scrollHeight) — ответы теперь rich-text и могут быть длиннее фиксированной константы. */
#faq .faq-list > .faq-item:nth-child(n+6) { display: none; }
.faq-more-btn { display: block; margin: 32px auto 0; }

/* ---------- Reviews ---------- */
.reviews-track-wrap { position: relative; max-height: 100vh; overflow: hidden; }
.reviews-track-wrap.is-capped::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 140px;
    background: linear-gradient(to bottom, transparent, var(--ink-2));
    pointer-events: none;
}
.reviews-more-btn { display: block; margin: 28px auto 0; }
.modal-body .reviews-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.reviews-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.review-card {
    background: var(--ink-2);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    padding: 32px;
}
.review-quote { font-family: var(--font-display); font-size: calc(var(--scale) * 18px); font-style: italic; color: var(--text-light); line-height: 1.55; }
.review-quote p { margin: 0; }
.review-quote p:first-child::before { content: '«'; }
.review-quote p:last-child::after { content: '»'; }
.review-meta { margin-top: 22px; display: flex; align-items: center; gap: 12px; }
.review-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--moss);
    color: var(--ink);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-family: var(--font-mono);
}
.review-name { font-weight: 700; font-size: calc(var(--scale) * 14.5px); color: var(--text-light); }
.review-sub { font-size: calc(var(--scale) * 13px); color: var(--text-light-muted); }

/* ---------- CTA ---------- */
.cta-section {
    background: linear-gradient(135deg, var(--moss) 0%, #5f7f42 100%);
    border-radius: 28px;
    padding: 72px 56px;
    text-align: center;
    color: var(--ink);
    margin: 0 28px;
    max-width: calc(var(--container) - 56px);
    margin-left: auto; margin-right: auto;
}
.cta-section h2 { color: #14210f; }
.cta-section p { color: rgba(20, 33, 15, 0.75); font-size: calc(var(--scale) * 17px); margin: 16px auto 32px; max-width: 480px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-section .btn-primary { background: #14210f; color: var(--cream); }
.cta-section .btn-primary:hover { background: #1f321a; }
.cta-section .btn-ghost { border-color: rgba(20,33,15,0.35); color: #14210f; }
.cta-section .btn-ghost:hover { border-color: #14210f; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; padding-bottom: 34px; border-bottom: 1px solid var(--border-dark); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 26px; font-size: calc(var(--scale) * 14px); }
.footer-links a { color: var(--text-light-muted); }
.footer-links a:hover { color: var(--text-light); }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; font-size: calc(var(--scale) * 13px); color: var(--text-light-muted); flex-wrap: wrap; gap: 10px; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
    .hero-slide-inner { padding: 140px 20px 110px; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .tours-grid { grid-template-columns: 1fr; }
    .individual-box { grid-template-columns: 1fr; padding: 32px; }
    .about-grid, .emtb-grid { grid-template-columns: 1fr; gap: 34px; }
    .emtb-media { order: -1; aspect-ratio: 16/10; }
    .cta-section { padding: 52px 28px; margin: 0 16px; }
}
@media (max-width: 720px) {
    .nav-links, .header-actions .btn-ghost-nav { display: none; }
    .header-actions > .lang-switch { display: none; }
    /* На узких экранах (iPhone mini/SE и т.п.) логотипу, кнопке и гамбургеру
       втроём не хватает ширины строки — гамбургер обрезается за краем экрана.
       Кнопка и так продублирована в самом мобильном меню, поэтому в шапке её прячем. */
    .header-actions > .btn { display: none; }
    .nav-toggle { display: flex; }
    .section { padding: 76px 0; }
    .why-grid { grid-template-columns: 1fr; }
    .emtb-stats { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
}

/* ---------- Mobile nav drawer ---------- */
.mobile-nav {
    position: fixed; inset: 0; z-index: 200;
    background: var(--ink);
    display: flex; flex-direction: column;
    padding: 24px 28px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-nav a { font-family: var(--font-display); font-size: calc(var(--scale) * 26px); padding: 14px 0; border-bottom: 1px solid var(--border-dark); color: var(--text-light); }
.mobile-nav .btn { margin-top: 30px; }
.mobile-nav-close { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border-dark); background: none; color: var(--text-light); display: flex; align-items: center; justify-content: center; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Tour detail page: parameters, days, gallery ---------- */
.tour-detail-section { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--border-dark); }

.load-bars { display: flex; flex-direction: column; gap: 22px; max-width: 480px; }
.load-bar-label { display: flex; justify-content: space-between; font-size: calc(var(--scale) * 14.5px); margin-bottom: 10px; }
.load-bar-label span:first-child { font-weight: 700; color: var(--text-light); }
.load-bar-value { color: var(--text-light-muted); font-family: var(--font-mono); font-size: calc(var(--scale) * 12.5px); }
.load-dots { display: flex; gap: 8px; }
.load-dot { width: 34px; height: 8px; border-radius: 5px; background: var(--border-dark); }
.load-dot.filled { background: var(--moss-light); }

.days-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.day-card { background: var(--ink-2); border: 1px solid var(--border-dark); border-radius: var(--radius-sm); padding: 22px; }
.day-card h4 { font-family: var(--font-display); font-size: calc(var(--scale) * 19px); color: var(--text-light); margin-bottom: 14px; }
.day-stat { display: flex; justify-content: space-between; font-size: calc(var(--scale) * 14px); padding: 8px 0; border-bottom: 1px solid var(--border-dark); color: var(--text-light-muted); }
.day-stat span:last-child { color: var(--text-light); font-weight: 600; }

.tour-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.tour-gallery-grid a { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--border-dark); }
.tour-gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.tour-gallery-grid a:hover img { transform: scale(1.06); }

/* ---------- Modal (общий попап: FAQ "Ещё", отзывы "Ещё", лайтбокс галереи) ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
    background: rgba(22, 35, 26, 0.86);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
body.modal-open { overflow: hidden; }
.modal-panel {
    position: relative;
    background: var(--ink-2);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    max-width: 640px;
    width: 100%;
    max-height: 86vh;
    overflow-y: auto;
    padding: 48px 40px 40px;
}
.modal-panel:focus { outline: none; }
.modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-dark);
    background: var(--ink);
    color: var(--text-light);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover { border-color: var(--moss-light); color: var(--moss-light); }

/* Медиа-вариант — лайтбокс галереи тура */
.modal-panel--media {
    max-width: 92vw;
    max-height: 92vh;
    padding: 0;
    background: transparent;
    border: none;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-gallery-img { max-width: 100%; max-height: 92vh; border-radius: var(--radius-sm); object-fit: contain; display: block; }
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border-dark);
    background: rgba(22, 35, 26, 0.75);
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-nav--prev { left: -8px; }
.modal-nav--next { right: -8px; }
.modal-nav:hover { background: var(--clay); }
@media (max-width: 720px) {
    .modal-nav--prev { left: 4px; }
    .modal-nav--next { right: 4px; }
}
