/* NAVIGATOR TOUR — стили сайта. Mobile First: базовые правила для 360–430 px,
   медиазапросы расширяют макет для планшетов и компьютеров. */

/* Фирменный шрифт названия: Montserrat Black (SIL OFL 1.1, см. fonts/Montserrat-OFL.txt).
   Латиница и кириллица — отдельные файлы; браузер загружает только нужный (unicode-range).
   Кириллица добавлена 16.11.2026 для русского названия «НАВИГАТОР ТУР» — тот же шрифт и начертание. */
@font-face {
  font-family: "Navigator Brand";
  src: url("/assets/fonts/montserrat-latin-900.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Navigator Brand";
  src: url("/assets/fonts/montserrat-cyrillic-900.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --ink: #15292a;
  --muted: #5f706d;
  --green: #0f5c4d;
  --green-2: #137a64;
  --green-soft: #e6f2ee;
  --sand: #f7f4ec;
  --line: #e3e7e2;
  --accent: #f2994a;
  --wa: #1fa855;
  --tg: #2589bd;
  --max: #6655c7;
  --navy: #205b87; /* цвет названия «НАВИГАТОР ТУР» в шапке (вариант B, согласован 14.11.2026) */
  --danger: #b3362f;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(16, 44, 36, .08);
  --gutter: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.55 var(--font); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-2); }
.lead { font-size: 1.08rem; color: #33463f; }
:focus-visible { outline: 3px solid #7fc3ad; outline-offset: 2px; }

/* ---- Кнопки ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border: 0; border-radius: 12px;
  background: var(--green); color: #fff; font-weight: 700; text-decoration: none;
  cursor: pointer; transition: background .15s, transform .1s;
}
.btn:hover { background: var(--green-2); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: .9rem; border-radius: 10px; }
.btn-light { background: var(--green-soft); color: var(--green); }
.btn-light:hover { background: #d5ebe3; }
.btn-wa { background: var(--wa); }
.btn-wa:hover { background: #188f47; }
.btn-tg { background: var(--tg); }
.btn-tg:hover { background: #1f76a4; }
.btn-max { background: var(--max); }
.btn-max:hover { background: #5545b0; }
.btn-block { width: 100%; }
.btn svg { fill: currentColor; stroke: none; width: 22px; height: 22px; }

/* ---- Шапка ---- */
.preview-bar { position: sticky; top: 0; z-index: 60; background: var(--accent); color: #fff; text-align: center; font-weight: 700; padding: 6px var(--gutter); font-size: .85rem; }
.site-header {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 var(--gutter); padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px);
}
.brand { color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: .14em; font-size: 1.05rem; line-height: 1; }
.site-header .brand b { color: var(--navy); }
/* Логотип HP слева от надписи: вся область (эмблема + текст) — одна ссылка на главную */
.brand-with-logo { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-logo { flex: none; width: 34px; height: 34px; object-fit: contain; }
/* Очень узкие экраны (320–359 px): эмблема и надпись чуть компактнее, чтобы не наезжать на кнопки шапки */
@media (max-width: 359px) { .brand-logo { width: 24px; height: 24px; } .brand-with-logo { gap: 6px; } .site-header .brand b { font-size: .94rem; } }
@media (min-width: 1000px) { .brand-logo { width: 40px; height: 40px; } .brand-with-logo { gap: 11px; } }
.brand b { display: block; font-family: "Navigator Brand", "Arial Black", var(--font); font-weight: 900; font-size: 1.12rem; letter-spacing: .03em; white-space: nowrap; }
.brand span { display: block; margin-top: 4px; font-size: .55rem; letter-spacing: .24em; color: var(--green-2); font-weight: 700; }
.header-actions { display: flex; gap: 4px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: none; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--sand); }
.icon-btn svg { width: 24px; height: 24px; }
.fav-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.site-menu {
  position: fixed; inset: 60px 0 auto 0; display: none; flex-direction: column;
  max-height: calc(100dvh - 60px); overflow-y: auto; padding: 8px var(--gutter) 20px;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.site-menu.open { display: flex; }
.site-menu a { padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.site-menu a[aria-current="page"] { color: var(--green); }
.site-menu .menu-phone { display: flex; align-items: center; gap: 10px; margin-top: 10px; border: 0; color: var(--wa); font-size: 1.15rem; }
.site-menu .menu-phone svg { fill: currentColor; stroke: none; width: 26px; height: 26px; }

/* ---- Главный экран ---- */
.hero { position: relative; display: flex; align-items: flex-end; min-height: 72vh; min-height: 72svh; color: #fff; background: var(--green); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero.has-slides .hero-bg { opacity: 0; transition: opacity .9s ease; }
.hero.has-slides .hero-bg.is-active { opacity: 1; }
.hero-dots { position: absolute; z-index: 2; top: 10px; right: calc(var(--gutter) - 12px); display: flex; }
.hero-dot { display: grid; place-items: center; width: 32px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 1px 4px rgba(0, 0, 0, .35); transition: background .2s, transform .2s; }
.hero-dot.is-active::before { background: #fff; transform: scale(1.25); }
.hero-dot:focus-visible { outline: 2px solid #fff; outline-offset: -6px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .hero.has-slides .hero-bg { transition-duration: .2s; } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 30, 25, .1) 20%, rgba(5, 30, 25, .78)); }
.hero-copy { position: relative; z-index: 1; padding: 32px var(--gutter) 36px; max-width: 720px; }
.hero .eyebrow { color: #bfe8da; }
.hero h1 { font-size: 2rem; }
.hero p { color: #e8f3ef; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn { flex: 1 1 200px; }

/* ---- Секции ---- */
.section { padding: 40px var(--gutter); max-width: 1240px; margin: 0 auto; }
.section.narrow, .page.narrow { max-width: 760px; }
.page { padding: 28px var(--gutter) 40px; max-width: 1240px; margin: 0 auto; }
.section-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.section-heading h2 { margin: 4px 0 0; }
.section-heading > a { font-weight: 600; text-decoration: none; }
.breadcrumbs { padding: 12px var(--gutter) 0; max-width: 1240px; margin: 0 auto; font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.breadcrumbs a { color: var(--muted); }

/* ---- Фильтры ---- */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 calc(-1 * var(--gutter)) 8px; padding-inline: var(--gutter); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: none; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---- Карточки экскурсий ---- */
.tour-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.tour-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
/* Фото карточек экскурсий: единая область 4:3 для всех карточек. Картинка позиционируется абсолютно,
   поэтому пропорции исходного файла не влияют на высоту блока; лишнее аккуратно обрезается (cover),
   по умолчанию по центру. Индивидуальная позиция кадра — переменная --card-img-pos (см. ниже). */
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
@supports not (aspect-ratio: 1 / 1) { .card-media { height: 0; padding-top: 75%; } }
.card-media img, .card-media .img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: var(--card-img-pos, center); }
.img-placeholder { width: 100%; height: 100%; object-fit: cover; }
/* Индивидуальная позиция кадра в карточке: задаётся по адресу экскурсии (data-slug), например
   .tour-card[data-slug="…"] { --card-img-pos: center 35%; }  — остальные карточки центрируются. */
.img-placeholder { background: linear-gradient(135deg, var(--green-soft), var(--sand)); min-height: 120px; }
.badge { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; }
.fav-btn { position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; }
.fav-btn svg { width: 22px; height: 22px; }
.fav-btn[aria-pressed="true"] { color: #e0445b; }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.card-body h3 { margin: 4px 0 6px; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tour-card .fav-btn, .tour-card .card-bottom .btn { position: relative; z-index: 2; }
.tour-card .fav-btn { position: absolute; }
.tour-card { cursor: pointer; }
.tour-card:hover h3 a { color: var(--green); }
.card-body h3 a:focus-visible { outline: none; }
.tour-card:has(h3 a:focus-visible) { outline: 3px solid #7fc3ad; outline-offset: 2px; }
.card-body p { color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.card-facts { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .85rem; color: var(--muted); }
.card-facts li { display: flex; align-items: center; gap: 6px; }
.card-facts svg { width: 17px; height: 17px; color: var(--green-2); }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.price { color: var(--green); font-weight: 800; font-size: 1.2rem; }
.price.big { font-size: 1.6rem; }

/* ---- Блоки главной ---- */
.welcome .perks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.perks li { position: relative; padding: 12px 14px 12px 42px; border-radius: 12px; background: var(--sand); font-weight: 600; }
.perks li::before { content: "✓"; position: absolute; left: 16px; color: var(--green-2); font-weight: 800; }
.service-grid, .review-grid, .article-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.service-card { display: block; padding: 18px; border-radius: var(--radius); background: var(--sand); color: var(--ink); text-decoration: none; }
.service-card p { color: var(--muted); margin: 0; }
/* Зелёный блок «Не знаете, что выбрать?»: та же ширина, что у содержимого остальных секций
   (контейнер 1240 px минус боковые отступы), по центру страницы. */
.cta-box { width: calc(100% - 2 * var(--gutter)); max-width: calc(1240px - 2 * var(--gutter)); margin: 16px auto; padding: 28px 20px; border-radius: 20px; background: var(--green); color: #fff; text-align: center; }
.cta-box .hero-actions { justify-content: center; }
.cta-box .hero-actions .btn { flex: 0 1 320px; }
.cta-box p { color: #d9eee6; }
.promos { display: grid; gap: 14px; }
.promo { display: grid; overflow: hidden; border-radius: var(--radius); background: #fff4e8; border: 1px solid #f6d3b2; }
.promo img { aspect-ratio: 16 / 7; object-fit: cover; width: 100%; }
.promo > div { padding: 16px; }
.promo .eyebrow { color: #c8661a; }

/* ---- Отзывы ---- */
.review-card { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow-wrap: anywhere; }
.review-card header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.rating { color: #c8861a; font-weight: 700; white-space: nowrap; }
.review-tour { display: inline-block; margin-bottom: 6px; margin-right: 10px; font-size: .85rem; }
.review-body p { margin-bottom: .6em; }
.review-photos { display: flex; gap: 8px; margin: 8px 0; }
.review-photos img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
/* Скриншоты отзывов: на телефоне — на всю ширину карточки, на компьютере — до 260 px; пропорции сохраняются, ничего не обрезается */
.review-shots { display: grid; gap: 10px; margin: 8px 0; }
.review-shot { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #111; cursor: zoom-in; }
.review-shot img { display: block; width: 100%; height: auto; }
.review-shot:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (min-width: 640px) { .review-shot { max-width: 260px; } }
/* Окно просмотра скриншота */
.review-viewer { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 56px 12px 16px; border: 0; background: transparent; }
.review-viewer[open] { display: flex; align-items: center; justify-content: center; position: fixed; inset: 0; z-index: 200; }
.review-viewer::backdrop { background: rgba(0, 0, 0, .86); }
.review-viewer:not(:modal)[open] { background: rgba(0, 0, 0, .86); }
.rv-image { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; background: #111; }
.rv-close { position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.rv-close:hover, .rv-close:focus-visible { background: rgba(255, 255, 255, .32); }
html.rv-lock { overflow: hidden; }
.pager { display: flex; justify-content: space-between; margin-top: 18px; font-weight: 600; }
/* Карусель «Отзывы туристов» на главной. Прокрутка как в галерее фото экскурсии (scroll-snap):
   телефон — одна карточка и край следующей, планшет — две, компьютер — три. */
.review-carousel { position: relative; }
.rc-track { display: flex; align-items: stretch; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; scrollbar-width: none; scroll-behavior: smooth; }
.rc-track::-webkit-scrollbar { display: none; }
.rc-track:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); }
.rc-slide { flex: 0 0 86%; min-width: 0; scroll-snap-align: start; display: flex; }
.rc-slide > .review-card { flex: 1; min-width: 0; }
/* Скриншот в карусели: крупно, без обрезки и растяжения, но не выше 380 px (на телефоне — 340 px) */
.review-carousel .review-shot { max-width: none; }
.review-carousel .review-shot img { width: auto; max-width: 100%; max-height: 340px; margin: 0 auto; object-fit: contain; }
.rc-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.rc-dots { display: flex; justify-content: center; }
.rc-dot { display: grid; place-items: center; width: 28px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.rc-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--line); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); transition: background .2s, transform .2s; }
.rc-dot.is-active::before { background: var(--green); transform: scale(1.25); }
.rc-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 8px; }
.rc-arrow { display: none; width: 44px; height: 44px; padding: 0 0 3px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.rc-arrow:hover:not(:disabled) { background: var(--sand); }
.rc-arrow:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.rc-arrow:disabled { opacity: .35; cursor: default; box-shadow: none; }
.rc-all { margin: 10px 0 0; text-align: center; }
.rc-all a { display: inline-block; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--green); font-weight: 700; text-decoration: none; }
.rc-all a:hover, .rc-all a:focus-visible { background: var(--green-soft); }
@media (min-width: 640px) {
  .rc-slide { flex-basis: calc((100% - 14px) / 2); }
  .rc-track { margin: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .rc-arrow { display: inline-grid; place-items: center; }
  .review-carousel .review-shot img { max-height: 380px; }
}
@media (min-width: 1000px) { .rc-slide { flex-basis: calc((100% - 28px) / 3); } }
@media (prefers-reduced-motion: reduce) { .rc-track { scroll-behavior: auto; } .rc-dot::before { transition: none; } }

/* ---- FAQ ---- */
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq-item summary { padding: 14px 44px 14px 16px; font-weight: 700; cursor: pointer; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font-size: 1.4rem; color: var(--green); }
.faq-item[open] summary::after { content: "−"; }
.faq-item > div { padding: 0 16px 6px; color: #33463f; }

/* ---- Статьи ---- */
.article-card { display: block; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.article-card img, .article-card .img-placeholder { aspect-ratio: 16 / 9; width: 100%; height: auto; min-height: 0; object-fit: cover; }
.article-card > div { padding: 14px 16px; }
.article-card p { color: var(--muted); margin: 0; font-size: .92rem; }
.article-cover { width: 100%; border-radius: var(--radius); margin: 12px 0 18px; aspect-ratio: 16 / 9; object-fit: cover; }
.prose h2 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .3em 0; }

/* ---- Страница экскурсии ---- */
.tour-page { max-width: 860px; margin: 0 auto; padding: 12px var(--gutter) 40px; }
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery-item { flex: 0 0 86%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--sand); scroll-snap-align: start; cursor: zoom-in; }
.gallery[data-count="1"] .gallery-item { flex-basis: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-empty { padding: 40px 16px; border-radius: var(--radius); background: var(--sand); color: var(--muted); text-align: center; }
.tour-head { position: relative; margin-top: 18px; }
.tour-head h1 { padding-right: 4px; }
.fav-inline { position: static; width: auto; height: 40px; padding: 0 14px; gap: 6px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .9rem; }
.facts { list-style: none; margin: 16px 0; padding: 14px; display: grid; gap: 12px; border-radius: var(--radius); background: var(--sand); font-size: .95rem; }
.facts li { display: flex; gap: 10px; align-items: flex-start; }
.facts svg { color: var(--green-2); margin-top: 2px; }
/* Экскурсии с отправлением в отдельные дни недели (например, Фанранг) */
.facts .fact-days strong { color: #9a520f; }
.facts .fact-days svg { color: #c76a14; }
.date-hint { display: block; margin-top: 6px; color: var(--muted); font-size: .86rem; font-weight: 600; }
.date-hint.warn { color: #b3261e; }
/* Страница «О компании»: заключительная строка — отдельный заметный блок */
.about-page .prose p { font-size: 1.05rem; }
.about-highlight { margin: 24px 0; padding: 18px 20px; border-left: 4px solid var(--navy); border-radius: var(--radius); background: var(--green-soft); color: var(--navy); font-size: 1.12rem; font-weight: 800; line-height: 1.45; }
/* «О компании» из блоков (раздел админки «О компании») */
.about-highlight > :first-child { margin-top: 0; }
.about-highlight > :last-child { margin-bottom: 0; }
.about-highlight p { margin: .4em 0; font-size: inherit; }
.about-highlight ul, .about-highlight ol { margin: 0; padding-left: 1.2em; }
.about-highlight li { margin: .25em 0; }
.about-heading { margin: 1.5em 0 .6em; }
.about-page > .prose, .about-page > .about-photo-text { margin: 0 0 1em; }
.about-page img { max-width: 100%; }
.about-photo { margin: 22px auto; }
.about-photo img, .about-photo-text img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.about-photo.size-medium { max-width: 520px; }
.about-photo.size-small { max-width: 320px; }
.about-photo figcaption, .about-photo-text figcaption, .about-manager-photo figcaption { margin-top: 6px; color: var(--muted); font-size: .9rem; text-align: center; }
.about-photo-text { display: grid; gap: 14px; margin: 22px 0; }
.about-photo-text figure { margin: 0; }
.about-photo-text .prose > :first-child { margin-top: 0; }
.about-video-block { margin: 8px 0 22px; }
.about-manager { display: grid; gap: 16px; margin: 26px 0; padding: 18px; border-radius: var(--radius); background: var(--sand); }
.about-manager-photo { margin: 0 auto; width: min(100%, 260px); }
.about-manager-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; border-radius: var(--radius); }
.about-manager-photo.crop-top img { object-position: center 15%; }
.about-manager-photo.crop-bottom img { object-position: center 85%; }
.about-manager-text h3 { margin: 0 0 4px; font-size: 1.3rem; }
.about-manager-role { margin: 0 0 10px; color: var(--green); font-weight: 700; }
.about-manager-text .prose > :first-child { margin-top: 0; }
.about-contacts { margin: 28px 0 8px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.about-contacts h2 { margin-bottom: 6px; }
.about-contacts .big-phone { font-size: 1.7rem; overflow-wrap: anywhere; }
.about-contacts .contact-row { margin: 12px 0 6px; }
.about-contact-line { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; }
.about-contact-line svg { flex: none; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--green); stroke-width: 2; }
.about-contact-line .address-note { display: block; color: var(--muted); font-size: .9rem; }
@media (min-width: 640px) {
  .about-photo-text { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; gap: 22px; }
  .about-photo-text.side-right { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .about-photo-text.side-right figure { order: 2; }
  .about-manager { grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 22px; padding: 22px; }
  .about-manager-photo { width: 100%; }
}
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 8px 0 14px; }
.detail-block { margin: 26px 0; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--green-2); font-weight: 800; }
.not-included .check-list li::before { content: "＋"; color: var(--accent); }
.program { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.program li { position: relative; padding: 0 0 14px 40px; counter-increment: step; }
.program li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 800; display: grid; place-items: center; font-size: .85rem; }
.program li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 30px; bottom: 4px; border-left: 2px dotted #bcd8cf; }
.program li p { margin: 0 0 .3em; }
.program-day { display: block; font-weight: 800; color: var(--green); }
h3.program-day { font-size: 1.05rem; margin: 6px 0 12px; }
.program + h3.program-day { margin-top: 10px; }
.option-list { padding-left: 1.1em; }
.option-list li { margin-bottom: 8px; }
/* ---- Вертикальные видео экскурсий (9:16) ----
   Один ролик — по центру, ширина до 400 px и не выше ~80 % экрана; несколько — лента с прокруткой. */
.vvideos { --vv-w: min(100%, 400px, calc(80vh * 9 / 16)); display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 0 8px; scrollbar-width: thin; }
.vvideos::before, .vvideos::after { content: ""; margin: auto; } /* центрирование, когда ролики помещаются */
.vvideo { flex: 0 0 var(--vv-w); margin: 0; scroll-snap-align: center; min-width: 0; }
.vvideos:not([data-count="1"]) .vvideo { flex-basis: min(82%, 340px, calc(76vh * 9 / 16)); }
.vvideo-frame { position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: #0e2a33; }
@supports not (aspect-ratio: 9 / 16) { .vvideo-frame { height: 0; padding-top: 177.78%; } }
.vvideo-frame iframe, .vvideo-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vvideo-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; } /* для собственных роликов в будущем */
.vvideo-play { display: block; padding: 0; margin: 0; cursor: pointer; color: #fff; background: #0e2a33; font: inherit; }
.vvideo-play img { width: 100%; height: 100%; object-fit: cover; }
.vvideo[data-platform="instagram"] .vvideo-play { background: linear-gradient(160deg, #515bd4 0%, #8134af 35%, #dd2a7b 70%, #feda77 100%); }
.vvideo[data-platform="tiktok"] .vvideo-play { background: radial-gradient(circle at 30% 25%, #25f4ee55, transparent 45%), radial-gradient(circle at 75% 80%, #fe2c5555, transparent 45%), #111; }
.vvideo-icon { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: rgba(0, 0, 0, .55); box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.vvideo-icon::after { content: ""; position: absolute; left: 27px; top: 21px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; }
.vvideo-play:hover .vvideo-icon, .vvideo-play:focus-visible .vvideo-icon { background: rgba(0, 0, 0, .75); }
.vvideo-badge { position: absolute; left: 10px; bottom: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(0, 0, 0, .6); font-size: .8rem; font-weight: 700; }
.vvideo figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; margin-top: 6px; font-size: .9rem; }
.vvideo figcaption span { font-weight: 600; }
.vvideo figcaption a { color: var(--green); font-weight: 600; }
/* Instagram показывает свою карточку (шапка, ролик, подпись): высоту задаёт сама платформа */
.vvideo-frame.is-instagram { aspect-ratio: auto; height: auto; padding: 0; overflow: visible; background: none; }
.vvideo-frame.is-instagram .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; }
/* Видео внутри статьи блога */
.article-video { margin: 1em 0 1.4em; }
.contact-row { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-row .btn { flex: 1 1 140px; }

/* Нижняя панель бронирования (мобильная) */
.sticky-book {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter); padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06);
}
.sticky-book small { display: block; color: var(--muted); font-size: .75rem; }
.sticky-book strong { color: var(--green); font-size: 1.15rem; }
.sticky-book .btn { flex: 0 1 200px; }
.sticky-book.hide { transform: translateY(110%); }
.sticky-book { transition: transform .2s; }

/* ---- Формы ---- */
.booking { margin: 32px calc(-1 * var(--gutter)) 0; padding: 22px var(--gutter); background: var(--sand); border-radius: 0; }
.field { display: block; margin: 0 0 14px; font-weight: 600; font-size: .95rem; border: 0; padding: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; font-weight: 700; }
.field input:not([type=radio]):not([type=checkbox]), .field select, .field textarea {
  display: block; width: 100%; min-height: 48px; margin-top: 6px; padding: 11px 12px;
  border: 1px solid #cfd8d3; border-radius: 10px; background: #fff; font-weight: 400; font-size: 16px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-2); outline: none; box-shadow: 0 0 0 3px #cfe9df; }
.field .invalid, input.invalid { border-color: var(--danger) !important; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 12px; }
.radio, .checkbox { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; font-weight: 500; cursor: pointer; }
.radio input, .checkbox input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--green); }
.radio small, .checkbox small, .extra-row small { display: block; color: var(--muted); font-weight: 400; }
.extra-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; font-weight: 500; }
.extra-row input { width: 84px !important; flex: none; margin: 0 !important; }
.group-box { padding: 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.counter-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-weight: 600; }
.counter { display: flex; align-items: center; gap: 6px; }
.counter button { width: 44px; height: 44px; border: 1px solid #cfd8d3; border-radius: 12px; background: #fff; font-size: 1.3rem; cursor: pointer; }
.counter input { width: 56px !important; min-height: 44px !important; margin: 0 !important; text-align: center; padding: 6px !important; -moz-appearance: textfield; }
.counter input::-webkit-inner-spin-button { -webkit-appearance: none; }
.children-list { display: grid; gap: 10px; margin-top: 8px; }
.child-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 10px; border-radius: 10px; background: var(--sand); }
.child-row strong { grid-column: 1 / -1; font-size: .9rem; }
.child-row label { font-size: .85rem; font-weight: 600; }
.child-row input { min-height: 44px !important; margin-top: 4px !important; }
.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: 11px 4px; border: 1px solid #cfd8d3; border-radius: 10px; background: #fff; text-align: center; font-weight: 600; font-size: .92rem; cursor: pointer; }
.segmented input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid #7fc3ad; }
/* Выбор мессенджера: цвета как у кнопок мессенджеров на сайте */
.messengers .m-wa span { color: var(--wa); border-color: #b7dfc6; }
.messengers .m-tg span { color: var(--tg); border-color: #b9d8ea; }
.messengers .m-max span { color: var(--max); border-color: #cdc6ee; }
.messengers .m-wa input:checked + span { background: var(--wa); border-color: var(--wa); color: #fff; }
.messengers .m-tg input:checked + span { background: var(--tg); border-color: var(--tg); color: #fff; }
.messengers .m-max input:checked + span { background: var(--max); border-color: var(--max); color: #fff; }
.height-note { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: #eef5fb; color: #23415f; font-size: .88rem; line-height: 1.45; }
.price-summary { margin: 18px 0; padding: 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.price-summary table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.price-summary td { padding: 5px 0; vertical-align: top; }
.price-summary td:last-child { text-align: right; white-space: nowrap; padding-left: 10px; }
.price-summary .total td { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 800; font-size: 1.05rem; color: var(--green); }
.price-summary .warn { color: #a5560f; font-size: .88rem; margin: 10px 0 0; }
.agree { font-size: .95rem; }
.alarm { padding: 12px 14px; border-radius: 12px; background: #fff4e8; color: #8a4a12; font-weight: 600; }
.form-status { margin-top: 12px; font-weight: 600; }
.form-status.error { color: var(--danger); }
.form-status.success { padding: 16px; border-radius: 12px; background: var(--green-soft); color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Услуги, контакты ---- */
.service { padding: 20px 0; border-bottom: 1px solid var(--line); }
.service img { border-radius: var(--radius); margin-bottom: 12px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.rate-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 14px; padding: 14px 16px; border-radius: 12px; background: var(--green-soft); font-size: 1.1rem; }
.rate-box strong { color: var(--green); font-size: 1.3rem; }
.big-phone { display: block; margin: 8px 0; font-size: 2rem; font-weight: 800; color: var(--green); text-decoration: none; letter-spacing: .02em; }
.contacts-address-title { margin-top: 1.6rem; } /* дополнительный отступ ~ в одну строку текста от кнопок мессенджеров */
.about-videos { margin: 28px 0 8px; }
.about-videos h2 { margin-bottom: 12px; }
.office-map:not(:empty) { height: 280px; margin-top: 16px; border-radius: var(--radius); overflow: hidden; }

/* ---- Карта ---- */
.map-wrap { margin: 0 calc(-1 * var(--gutter)); }
#city-map { height: 62vh; height: 62svh; min-height: 340px; background: var(--sand); }
.map-card { position: relative; margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.map-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }
.map-card .close { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; font-size: 1.4rem; cursor: pointer; }
.map-pin { background: none; border: 0; }
.map-pin svg { display: block; width: 25px; height: 41px; stroke-width: 1.5; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
.map-legend { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: .92rem; }
.map-legend-pin svg { display: block; width: 15px; height: 25px; }
.leaflet-popup-content { margin: 10px 12px; }

/* ---- Помощник подбора ---- */
.wizard-step h2 { font-size: 1.2rem; }
.wizard-options { display: grid; gap: 10px; margin: 14px 0; }
.wizard-options label { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; }
.wizard-options input { width: 22px; height: 22px; accent-color: var(--green); }
.wizard-options label:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.wizard-progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-bottom: 18px; }
.wizard-progress span { display: block; height: 100%; background: var(--green); transition: width .2s; }
.wizard-nav { display: flex; gap: 10px; }
.wizard-nav .btn { flex: 1; }

/* ---- Лайтбокс ---- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .94); touch-action: pan-y; }
.lightbox img { max-width: 100vw; max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-close { top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-count { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); color: #fff; font-size: .9rem; }

/* ---- Подвал ---- */
.site-footer { padding: 32px var(--gutter) calc(96px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: #cfdcd7; }
.footer-inner { display: grid; gap: 22px; max-width: 1240px; margin: 0 auto; }
.site-footer .brand { color: #fff; }
.site-footer a { color: #cfdcd7; }
.footer-phone { display: block; color: #fff !important; font-size: 1.5rem; font-weight: 800; text-decoration: none; }
.footer-contacts p { display: flex; gap: 8px; margin: 6px 0; }
.footer-messengers { margin: 12px 0; }
.footer-messengers .btn { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 8px 10px; font-size: .9rem; color: #fff; }
.footer-messengers .btn svg { width: 20px; height: 20px; }
.footer-address { align-items: flex-start; }
.footer-address svg { margin-top: 3px; flex: none; }
.footer-address > span { min-width: 0; }
/* Пояснение к адресу — второй строкой, меньшим шрифтом */
.site-footer .footer-address .address-note { display: block; margin-top: 4px; font-size: .82rem; line-height: 1.4; color: #aebfba; }
.site-footer .address-link { color: #fff; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.site-footer .address-note { color: #aebfba; }
.address-note { color: var(--muted); }
.faq-ask { margin-top: 28px; padding: 18px; border-radius: var(--radius); background: var(--sand); }
.faq-ask p { margin-top: 0; }
.footer-nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 16px; font-size: .92rem; }
.footer-nav a { text-decoration: none; }
.site-footer small { display: block; max-width: 1240px; margin: 22px auto 0; color: #91a59f; }

/* ---- Планшет ---- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  h1 { font-size: 2.2rem; }
  .hero h1 { font-size: 2.6rem; }
  .tour-grid, .service-grid, .review-grid, .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-item { flex-basis: 70%; }
  .booking { margin-inline: 0; border-radius: 20px; padding: 26px; }
  .promo { grid-template-columns: 2fr 3fr; }
  .promo img { aspect-ratio: auto; height: 100%; }
  .welcome .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Компьютер ---- */
@media (min-width: 1000px) {
  .site-header { height: 72px; }
  .site-header .brand { margin-right: 16px; }
  .menu-toggle { display: none; }
  .site-menu { position: static; display: flex; flex-direction: row; align-items: center; gap: 2px; max-height: none; padding: 0; border: 0; box-shadow: none; background: none; overflow: visible; order: 0; margin-left: auto; }
  .site-menu a { padding: 8px 10px; border: 0; font-size: .9rem; border-radius: 8px; }
  .site-menu a:hover { background: var(--sand); }
  .site-menu .menu-phone { margin: 0 0 0 8px; font-size: 1rem; }
  /* Бренд (логотип + «НАВИГАТОР ТУР») не сжимается и не перекрывается меню; номер телефона — в одну строку */
  .site-header .brand-with-logo { flex: none; }
  .site-menu .menu-phone span { white-space: nowrap; }
  .header-actions { order: 2; margin-left: 8px; }
  .hero { min-height: 560px; }
  .hero-copy { padding: 60px 48px 64px; }
  .hero h1 { font-size: 3.2rem; }
  .tour-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-grid, .review-grid, .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 180px; margin: 0; padding: 0; overflow: visible; }
  .gallery-item { aspect-ratio: auto; }
  .gallery-item:first-child { grid-row: span 2; }
  .gallery-item:nth-child(n+6) { display: none; }
  .gallery[data-count="1"] { grid-template-columns: 1fr; grid-auto-rows: 420px; }
  .sticky-book { display: none; }
  .site-footer { padding-bottom: 40px; }
  .footer-inner { grid-template-columns: 1.2fr 1.4fr 2fr; }
  .map-wrap { margin: 0; }
  #city-map { border-radius: var(--radius); }
}

/* Компьютеры с шириной 1000–1439 px: меню из 9 пунктов компактнее, чтобы помещаться рядом с брендом (с 16.11.2026, пункт «О компании»). */
@media (min-width: 1000px) and (max-width: 1439px) {
  .site-header .brand { margin-right: 10px; }
  .site-menu { gap: 0; }
  .site-menu a { padding: 6px 6px; font-size: .84rem; line-height: 1.2; }
  .site-menu .menu-phone { margin-left: 4px; font-size: .92rem; }
  .site-menu .menu-phone svg { width: 22px; height: 22px; }
}
@media (min-width: 1000px) and (max-width: 1199px) {
  /* Узкие ноутбуки: в шапке только значок WhatsApp, номер — в подвале и на странице «Контакты» */
  .site-menu .menu-phone span { display: none; }
}
/* Страница 404 (public/404.html) */
.not-found-title { margin-top: 1.6em; font-size: 1.15rem; }
.not-found-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; padding: 0; list-style: none; }
.not-found-links a { color: var(--green); font-weight: 700; }
