/* ==========================================================================
   Carpe Diem Travel Club — главная, версия 3
   Палитра заказчика: хвойный #183D35, айвори #F5F1E8, шампанское #B49A70,
                      графит #252B29, песочный #D9D0C2
   Правила: design-taste-frontend (без надзаголовков, нумерации, теней,
   градиентов и стекла), движение — по emil-design-eng
   ========================================================================== */

/* Шрифты лежат на сайте (лицензия OFL) — Google Fonts недоступен части посетителей */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-cyrillic-500-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Цвета: одна земля (айвори), одна краска (хвойный), один акцент (шампанское) */
  --ground: #F5F1E8;
  --ground-2: #ECE5D6;
  --ink: #183D35;
  --ink-text: #20302B;
  --field: #183D35;
  --field-deep: #10291F;
  --on-field: #F5F1E8;
  --on-field-soft: #CFC8B8;
  --accent: #B49A70;
  --accent-light: #D3BF99;

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Пять размеров шрифта на всю страницу */
  --t-display: clamp(42px, 7.2vw, 118px);
  --t-h2: clamp(34px, 4.6vw, 76px);
  --t-h3: clamp(28px, 2.7vw, 44px);
  --t-body: 17px;
  --t-small: 14px;

  --margin: clamp(20px, 2.6vw, 40px);
  --gap-section: clamp(96px, 11vw, 176px);
  --header-h: 76px;

  /* Плавность и длительности — emil-design-eng */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header-h); -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  font-family: var(--font-sans); font-size: var(--t-body); line-height: 1.55;
  color: var(--ink-text); background: var(--field-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent-light); color: var(--field-deep); }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: .98; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }

.frame { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 var(--margin); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 18px; background: var(--ground); color: var(--ink); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Кнопки: плоские, круглые, с откликом на нажатие ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .12s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--gold { background: var(--accent); color: var(--field-deep); }
.btn--ghost-light { border-color: rgba(245, 241, 232, .6); color: var(--on-field); }
.btn--ink { background: var(--ink); color: var(--on-field); }
@media (hover: hover) {
  .btn--gold:hover { background: var(--accent-light); }
  .btn--ghost-light:hover { background: var(--on-field); color: var(--field-deep); border-color: var(--on-field); }
  .btn--ink:hover { background: var(--field-deep); }
}

/* ---------- Шапка: простая полоса, прозрачная над первым экраном ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  color: var(--on-field);
  transition: background-color .3s ease, color .3s ease;
}
.site-header.is-solid { background: var(--ground); color: var(--ink); }
/* Шапка: слева кнопка меню, по центру логотип, справа «Подобрать путешествие» */
.logo { display: inline-flex; align-items: center; line-height: 1; flex-shrink: 0; }
/* Логотип клиента: монограмма + надпись. На тёмном — ровное светлое золото (металлик с тенями сливался с фоном),
   на светлой шапке — хвойный. Металлическое золото — только в заставке, где логотип крупный */
/* Обе версии лежат друг на друге и плавно сменяются вместе с фоном шапки */
.logo { display: inline-grid; }
.logo__set { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 12px; transition: opacity .3s ease; }
.logo__set--ink { opacity: 0; }
.site-header.is-solid .logo__set--gold { opacity: 0; }
.site-header.is-solid .logo__set--ink { opacity: 1; }
.menu-open .site-header .logo__set--gold { opacity: 1; }
.menu-open .site-header .logo__set--ink { opacity: 0; }
.site-footer .logo__set--ink { display: none; }
.logo__crest { height: 46px; width: auto; }
.logo__word { height: 34px; width: auto; }
.site-footer .logo__crest { height: 58px; }
.site-footer .logo__word { height: 40px; }
.site-header__inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.logo { justify-self: center; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.header-cta { min-height: 42px; padding: 10px 20px; font-size: 14px; }

.menu-btn {
  justify-self: start; display: inline-flex; align-items: center; gap: 12px;
  min-height: 42px; padding: 0 16px 0 13px; border-radius: 999px;
  border: 1px solid currentColor; background: transparent; color: inherit;
  font-size: 14px; font-weight: 600;
  transition: background-color .2s ease, color .2s ease, transform .12s var(--ease-out);
}
.menu-btn:active { transform: scale(.97); }
.menu-btn__icon, .menu-btn__icon::before, .menu-btn__icon::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .25s var(--ease-out), background-color .2s; }
.menu-btn__icon::before, .menu-btn__icon::after { content: ""; position: absolute; left: 0; }
.menu-btn__icon::before { top: -6px; }
.menu-btn__icon::after { top: 6px; }
.menu-open .menu-btn__icon { background: transparent; }
.menu-open .menu-btn__icon::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn__icon::after { transform: translateY(-6px) rotate(-45deg); }
@media (hover: hover) { .menu-btn:hover { background: rgba(245, 241, 232, .14); } .site-header.is-solid .menu-btn:hover { background: rgba(24, 61, 53, .08); } }
.menu-open .site-header { background: var(--field-deep); color: var(--on-field); }

/* Полноэкранное меню */
.site-menu { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; }
.site-menu[hidden] { display: none; }
.site-menu__backdrop { position: absolute; inset: 0; background: rgba(16, 41, 31, .3); animation: fadeIn .25s ease-out; }
/* Компактная панель слева, под кнопкой меню */
.site-menu__panel {
  position: absolute; top: 8px; left: var(--margin); width: min(380px, calc(100% - 2 * var(--margin)));
  max-height: calc(100dvh - var(--header-h) - 24px);
  display: flex; flex-direction: column; gap: 28px;
  padding: 28px 32px 32px; overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55);
  background: var(--field); color: var(--on-field);
  animation: panelIn .3s var(--ease-out);
}
@keyframes panelIn { from { transform: translateY(-8px) scale(.98); opacity: 0; } }
.site-menu__panel { transform-origin: top left; }
.site-menu__list { list-style: none; margin: 0; padding: 0; }
.site-menu__list a { display: inline-block; padding: 5px 0; font-family: var(--font-serif); font-size: 30px; line-height: 1.12; opacity: .78; transition: opacity .2s ease, color .2s ease; }
.site-menu__list a[aria-current="page"] { opacity: 1; color: var(--accent-light); }
@media (hover: hover) { .site-menu__list a:hover { opacity: 1; } }
.site-menu__side { display: grid; gap: 16px; justify-items: start; }
.site-menu__lead { margin: 0; font-size: 16px; }
.site-menu__contacts { margin: 4px 0 0; display: grid; gap: 4px; font-size: 16px; color: var(--on-field-soft); }
@media (hover: hover) { .site-menu__contacts a:hover { color: var(--on-field); } }

.floating-cta { display: none; position: fixed; z-index: 48; left: var(--margin); right: var(--margin); bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateY(160%); transition: transform .4s var(--ease-out); }
.floating-cta.is-visible { transform: none; }

/* ---------- Заставка с логотипом ---------- */
/* Вся анимация на CSS: заставка уйдёт сама, даже если скрипт не загрузится; скрипт только даёт её пропустить */

.splash { display: none; }
.has-intro .splash {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px;
  background: var(--field-deep); color: var(--accent-light);
  animation: splashOut 1s var(--ease-in-out) 3s forwards;
}
.intro-lock body { overflow: hidden; }
.splash__inner { display: grid; justify-items: center; text-align: center; animation: splashInnerOut 1s var(--ease-in-out) 3s forwards; }
.splash__crest { width: clamp(110px, 12vw, 170px); height: auto; opacity: 0; animation: crestIn 1.1s var(--ease-out) .15s forwards; }
.splash__word { width: clamp(260px, 34vw, 500px); height: auto; margin-top: clamp(20px, 2.4vw, 32px); clip-path: inset(0 50% 0 50%); animation: wordIn 1.1s var(--ease-out) .7s forwards; }
.splash__line { display: block; width: 72px; height: 1px; margin-top: clamp(20px, 2.4vw, 30px); background: var(--accent); transform: scaleX(0); animation: lineIn .7s var(--ease-out) 1.45s forwards; }
.splash__motto { margin: 18px 0 0; font-family: var(--font-serif); font-style: italic; font-size: clamp(20px, 1.9vw, 28px); line-height: 1.2; color: var(--accent-light); opacity: 0; transform: translateY(10px); animation: mottoIn .8s var(--ease-out) 1.75s forwards; }
@keyframes crestIn { from { opacity: 0; transform: scale(.9); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes wordIn { to { clip-path: inset(0 0 0 0); } }
@keyframes lineIn { to { transform: none; } }
@keyframes mottoIn { to { opacity: 1; transform: none; } }
/* Уход: заставка поднимается, как занавес, логотип чуть уезжает вверх и гаснет */
@keyframes splashOut { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
@keyframes splashInnerOut { to { opacity: 0; transform: translateY(-40px); } }
/* Нажатие пропускает заставку: тот же уход, но сразу и быстрее */
.has-intro .splash.is-skipped { animation: splashSkip .7s var(--ease-in-out) forwards; }
.splash.is-skipped .splash__inner { animation: splashInnerSkip .7s var(--ease-in-out) forwards; }
@keyframes splashSkip { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
@keyframes splashInnerSkip { to { opacity: 0; transform: translateY(-40px); } }

/* ---------- 1. Первый экран ---------- */
/* Без скрипта и при «уменьшении движения» — фото сразу на весь экран */

.xhero { position: relative; height: 100svh; min-height: 620px; background: var(--field-deep); color: var(--on-field); }
.xhero__sticky { position: sticky; top: 0; height: 100svh; min-height: 620px; overflow: hidden; }
.xhero__bg { position: absolute; inset: -10%; opacity: 0; will-change: opacity; }
.xhero__bg img { width: 100%; height: 100%; object-fit: cover; }
/* фон размыт заранее в файле (hero-piaynemo-blurred.jpg): CSS-размытие на весь экран телефон пересчитывал
   каждый кадр прокрутки и тормозил. Браузером размываем только своё фото из админки (.is-raw) */
.xhero__bg img.is-raw { filter: blur(30px) saturate(.9); }
/* Раскрытие фото — только transform и opacity (их считает видеокарта): рамка масштабируется,
   фото внутри — в обратную сторону, поэтому не искажается. Раньше было clip-path: телефон каждый кадр
   перерисовывал большое фото и тормозил (2026-11-19). Значения — в main.js (initHero). */
.xhero__media { position: absolute; inset: 0; overflow: hidden; transform: translateY(var(--dy, 0px)) scale(var(--sx, 1), var(--sy, 1)); will-change: transform; }
.xhero__media picture { display: contents; }
.xhero__media img { width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--ty, 0px)) scale(var(--ix, 1), var(--iy, 1)); will-change: transform; }
/* Нейтральная подложка под текстом на фото — единственное допустимое затемнение */
.xhero__media::after { content: ""; position: absolute; inset: 0; background: rgb(16, 41, 31); opacity: var(--shade, .45); will-change: opacity; }

.xhero__copy {
  position: absolute; left: var(--margin); right: var(--margin); bottom: clamp(36px, 7vh, 80px);
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 24px 48px;
}
.xhero__title { grid-column: 1 / -1; font-size: var(--t-display); text-shadow: 0 1px 24px rgba(16, 41, 31, .35); }
.xhero__line { display: block; white-space: nowrap; }
.xhero__line--2 { padding-left: 1.2em; }
.xhero__lead { grid-column: 1; margin: 0; max-width: 32em; font-size: 18px; line-height: 1.5; color: var(--on-field); }
.xhero__actions { grid-column: 2; justify-self: end; display: flex; flex-wrap: wrap; gap: 12px; }

.xhero.is-live { height: 175svh; }
.xhero.is-live .xhero__bg { opacity: var(--bg, 0); }

/* ---------- 3. Наши услуги: раскрывающийся список на тёмном фоне ---------- */

.services { background: var(--field); color: var(--on-field); padding: var(--gap-section) 0; }
.services__head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: 64px; }
.services__head h2 { font-size: var(--t-h2); }
.services__head p { margin: 0; max-width: 30em; }
/* Фото-полосы: выбранная услуга раскрывается в большое фото с текстом, остальные — узкие полосы с подписью */
.svcg { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; height: clamp(640px, 76vh, 740px); }
.svcg__item { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--field-deep); transition: flex-grow .7s var(--ease-out); }
.svcg__item.is-active { flex-grow: 6; }
.svcg__pic { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.svcg__pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); filter: saturate(.7) brightness(.75); transition: transform 1s var(--ease-out), filter .5s ease; }
.svcg__item.is-active .svcg__pic img { transform: none; filter: none; }
@media (hover: hover) { .svcg__item:not(.is-active):hover .svcg__pic img { filter: saturate(.9) brightness(.95); } }
/* Текст фиксированной ширины, чтобы не перестраивался, пока полоса раскрывается */
.svcg__text { position: relative; z-index: 2; flex: 0 0 330px; width: min(700px, 58vw); padding: 26px 30px; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.svcg__item.is-active .svcg__text { opacity: 1; pointer-events: auto; transition: opacity .45s ease .35s; }
.svcg__text h3 { font-size: clamp(26px, 2.2vw, 36px); line-height: 1.05; margin-bottom: 12px; }
.svcg__text p { margin: 0; max-width: 36em; font-size: 16px; color: var(--on-field-soft); }
/* Пункты услуги: тонкая золотая черта вместо точки */
.svcg__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 40em; font-size: 15px; line-height: 1.45; color: var(--on-field-soft); }
.svcg__list li { position: relative; padding-left: 20px; }
.svcg__list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--accent); }
.svcg__text .svcg__label { margin-top: 14px; font-size: var(--t-small); font-weight: 600; color: var(--on-field); }
/* Девять форматов прямо в полосе «Под ключ»: строка ссылок через точку */
.svcg__formats { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: var(--t-small); font-weight: 600; }
.svcg__formats li:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--accent); }
.svcg__formats a { color: var(--accent-light); border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease; }
@media (hover: hover) { .svcg__formats a:hover { color: var(--on-field); border-color: var(--accent); } }
/* Вся полоса — кнопка; у выбранной кнопка не мешает тексту и ссылке */
.svcg__btn { position: absolute; inset: 0; z-index: 1; padding: 0; border: 0; background: transparent; }
.svcg__btn:focus-visible { outline-offset: -4px; }
.svcg__item.is-active .svcg__btn { cursor: default; }
.svcg__short { position: absolute; left: 50%; bottom: 28px; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); white-space: nowrap; font-family: var(--font-serif); font-size: 24px; line-height: 1; color: var(--on-field); transition: opacity .25s ease; }
.svcg__item.is-active .svcg__short { opacity: 0; }
/* Полное название читает экранный диктор; на телефоне оно же видно в свёрнутой строке */
.svcg__full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Девять форматов под «Путешествиями под ключ» */
.svc-formats { margin-top: 80px; animation: tocIn .5s var(--ease-out); }
.svc-formats[hidden] { display: none; }
.svc-formats__title { font-size: var(--t-h3); line-height: 1.05; margin-bottom: 40px; color: var(--accent-light); }
.svc-formats .toc__title { font-size: clamp(22px, 1.9vw, 30px); }

/* Оглавление форматов: слева названия, справа фото и текст выбранного формата */
.toc { list-style: none; margin: 0; padding: 0; position: relative; }
.toc__item { width: 40%; }
.toc__title { font-size: var(--t-h3); line-height: 1.05; }
.toc__btn {
  display: block; width: 100%; padding: 8px 0; border: 0; background: none; text-align: left;
  font: inherit; color: var(--on-field); opacity: .6;
  transition: opacity .2s ease, transform .3s var(--ease-out);
}
.toc__item.is-active .toc__btn { opacity: 1; transform: translateX(14px); }
@media (hover: hover) { .toc__btn:hover { opacity: .85; } }

.toc__panel { position: absolute; top: 0; right: 0; width: 55%; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease-out), visibility .3s; }
.toc__item.is-active .toc__panel { opacity: 1; visibility: visible; }
.toc__pic { aspect-ratio: 16 / 10; overflow: hidden; background: var(--field-deep); }
.toc__pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform .8s var(--ease-out); }
.toc__item.is-active .toc__pic img { transform: none; }
.toc__text { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px 40px; margin-top: 28px; align-items: start; }
.toc__text p { margin: 0; }
.toc__text .toc__where { font-size: var(--t-small); font-weight: 600; color: var(--accent-light); }
.toc__link { grid-column: 1 / -1; justify-self: start; margin-top: 8px; font-size: var(--t-small); font-weight: 600; border-bottom: 2px solid var(--accent); padding-bottom: 2px; transition: border-color .2s ease; }
@media (hover: hover) { .toc__link:hover { border-color: var(--on-field); } }

/* ---------- 3. Регионы мира: глобус и список ---------- */

.world { background: var(--field-deep); color: var(--on-field); padding: var(--gap-section) 0; overflow: hidden; }
.world__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px clamp(40px, 6vw, 120px); align-items: center; }
.globe { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1; justify-self: center; cursor: grab; touch-action: pan-y; user-select: none; }
.globe:active { cursor: grabbing; }
.globe__canvas { width: 100%; height: 100%; opacity: 0; transition: opacity 1s var(--ease-out); }
.globe.is-ready .globe__canvas { opacity: 1; }
.globe.is-off { display: none; }
/* Название выбранного региона под глобусом */
.globe__label { position: absolute; left: 0; right: 0; bottom: -34px; text-align: center; font-family: var(--font-serif); font-size: clamp(20px, 1.7vw, 26px); color: var(--accent-light); opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); pointer-events: none; }
.globe.has-label .globe__label { opacity: 1; transform: none; }

.world h2 { font-size: var(--t-h2); }
.world__text > p { margin: 28px 0 40px; max-width: 30em; }
.rlist { list-style: none; margin: 0; padding: 0; }
.rlist__btn {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  width: 100%; padding: 10px 0; border: 0; background: none; color: var(--on-field); text-align: left;
  opacity: .5; transition: opacity .2s ease;
}
.rlist__item.is-active .rlist__btn { opacity: 1; color: var(--accent-light); }
@media (hover: hover) { .rlist__btn:hover { opacity: .85; } }
.rlist__name { font-family: var(--font-serif); font-size: clamp(24px, 2vw, 34px); line-height: 1.1; }
.world__all { display: inline-block; font-size: var(--t-small); font-weight: 600; border-bottom: 2px solid var(--accent); padding-bottom: 2px; transition: border-color .2s ease; }
.world__all { margin-top: 32px; }
@media (hover: hover) { .world__all:hover { border-color: var(--on-field); } }

/* ---------- 4. Как мы работаем ---------- */

.howto { background: var(--ground-2); padding: var(--gap-section) 0; }
.howto__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px clamp(40px, 6vw, 120px); align-items: center; }
.howto h2 { font-size: var(--t-h2); color: var(--ink); }
.howto__statement { margin: 32px 0 0; max-width: 22em; font-family: var(--font-serif); font-size: clamp(24px, 2.1vw, 32px); line-height: 1.2; color: var(--ink); }
.howto__steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.howto__steps li { max-width: 22em; }
.howto__steps strong { display: block; margin-bottom: 4px; font-family: var(--font-serif); font-weight: 500; font-size: 24px; line-height: 1.1; color: var(--ink); }
/* Контакты в финале: четыре строки в две колонки, подпись над значением */
.howto__contacts { margin: 48px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; max-width: 640px; }
.howto__contacts > div { padding: 18px 0; border-top: 1px solid rgba(24, 61, 53, .2); min-width: 0; }
.howto__contacts dt { font-size: var(--t-small); font-weight: 600; margin-bottom: 4px; }
.howto__contacts dd { margin: 0; font-family: var(--font-serif); font-size: clamp(22px, 1.8vw, 28px); line-height: 1.15; color: var(--ink); overflow-wrap: anywhere; }
.howto__contacts a { border-bottom: 1px solid rgba(180, 154, 112, .55); transition: border-color .2s ease; }
@media (hover: hover) { .howto__contacts a:hover { border-color: var(--ink); } }
.howto__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.howto__actions .btn--ghost-light { border-color: var(--ink); color: var(--ink); }
@media (hover: hover) { .howto__actions .btn--ghost-light:hover { background: var(--ink); color: var(--on-field); } }
.howto__pic { aspect-ratio: 4 / 5; overflow: hidden; }
.howto__pic img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Раскрывающийся список «О клубе» ---------- */

.acc { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(24, 61, 53, .2); }
.acc__item { border-bottom: 1px solid rgba(24, 61, 53, .2); }
.acc h3 { font-size: clamp(22px, 1.9vw, 30px); line-height: 1.15; color: var(--ink); }
.acc__btn {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  width: 100%; padding: 22px 0; border: 0; background: none; text-align: left; font: inherit; color: inherit;
}
/* Плюс превращается в минус при раскрытии */
.acc__icon { position: relative; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(24, 61, 53, .35); transition: background-color .2s ease, border-color .2s ease; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; transition: transform .3s var(--ease-out); }
.acc__icon::after { transform: rotate(90deg); }
.acc__item.is-open .acc__icon { background: var(--ink); border-color: var(--ink); color: var(--on-field); }
.acc__item.is-open .acc__icon::after { transform: rotate(0deg); }
@media (hover: hover) { .acc__btn:hover .acc__icon { border-color: var(--ink); } }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out); }
.acc__panel > div { overflow: hidden; }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel p { margin: 0 0 26px; max-width: 40em; padding-right: 60px; }

/* ---------- 4. О клубе ---------- */

.about { background: var(--ground); padding: var(--gap-section) 0; }
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px clamp(40px, 6vw, 120px); align-items: start; }
.about h2 { font-size: var(--t-h2); color: var(--ink); }
.about__statement { margin: 32px 0 0; max-width: 18em; font-family: var(--font-serif); font-size: clamp(24px, 2.1vw, 32px); line-height: 1.2; color: var(--ink); }
/* Наша команда: три человека в ряд, биография раскрывается по клику */
.team { margin-top: clamp(72px, 8vw, 128px); }
.team__title { font-size: var(--t-h3); line-height: 1.05; color: var(--ink); margin-bottom: 32px; }
.team__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(32px, 4vw, 72px); align-items: start; }
.team__person { border-top: 1px solid rgba(24, 61, 53, .2); }
.team__btn { justify-content: flex-start; gap: 18px; }
.team__btn .acc__icon { margin-left: auto; }
.team__btn--static { display: flex; align-items: center; gap: 18px; padding: 20px 0; }
.team__mono { flex-shrink: 0; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ground-2); font-family: var(--font-serif); font-size: 30px; color: var(--ink); }
.team__photo { flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.team__who strong { display: block; font-family: var(--font-serif); font-weight: 500; font-size: clamp(24px, 2vw, 30px); line-height: 1.1; color: var(--ink); }
.team__who span { font-size: var(--t-small); }
.team__person .acc__panel p { padding-right: 0; }

/* ---------- 6. Как с нами работать ---------- */

.work { background: var(--field); color: var(--on-field); padding: var(--gap-section) 0; }
.work__head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: 72px; }
.work__head h2 { font-size: var(--t-h2); }
.work__head p { margin: 0; max-width: 30em; }
.work__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(32px, 4vw, 72px); }
.work__grid li { padding: 28px 0 44px; border-top: 1px solid rgba(245, 241, 232, .22); }
.work__grid h3 { font-size: clamp(24px, 2vw, 32px); line-height: 1.1; margin-bottom: 12px; }
.work__grid p { margin: 0; max-width: 26em; color: var(--on-field-soft); }

/* ---------- Страница «О нас»: тёмная шапка страницы ---------- */

/* Шаги подготовки поездки на странице «О нас» */
.steps { background: var(--ground-2); padding: var(--gap-section) 0; }
.steps h2 { font-size: var(--t-h2); color: var(--ink); margin-bottom: 56px; }
.steps .howto__steps { margin: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }


.page-top { background: var(--field); color: var(--on-field); padding: calc(var(--header-h) + clamp(64px, 9vw, 140px)) 0 clamp(64px, 8vw, 120px); }
.page-top h1 { font-size: var(--t-display); }
.page-top--compact { padding: calc(var(--header-h) + clamp(28px, 3vw, 48px)) 0 clamp(20px, 2vw, 32px); }
.page-top--compact h1 { font-size: var(--t-h2); }
/* Заголовок и подпись в одну строку на широком экране */
@media (min-width: 1025px) { .page-top--compact .frame { display: grid; grid-template-columns: auto minmax(0, 34em); justify-content: space-between; align-items: end; gap: 24px 64px; } .page-top--compact p { margin-top: 0 !important; } }
.page-top--compact p { margin-top: 12px !important; font-size: clamp(18px, 1.5vw, 22px) !important; }
.page-top p { margin: 28px 0 0; max-width: 24em; font-family: var(--font-serif); font-size: clamp(24px, 2.1vw, 32px); line-height: 1.2; }

/* ---------- Страница «Направления»: карта мира и выбранный регион ---------- */

.wmap { background: var(--field-deep); color: var(--on-field); padding: clamp(24px, 3vw, 40px) 0 var(--gap-section); }
.wmap__map { position: relative; width: 100%; }
.wmap__map.is-off { display: none; }
.wmap__dots, .wmap__arcs { position: absolute; inset: 0; width: 100%; height: 100%; }
.wmap__arcs { pointer-events: none; overflow: visible; }
/* Дуги: тонкие и полупрозрачные; у выбранного региона — золотые. Прорисовываются по очереди при появлении карты */
.wmap__arc { fill: none; stroke: rgba(211, 191, 153, .35); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke .3s ease, stroke-width .3s ease; }
.wmap__map.is-in .wmap__arc { animation: arcDraw 1.4s var(--ease-out) var(--d, 0ms) forwards; }
.wmap__arc.is-active { stroke: var(--accent-light); stroke-width: 1.6; }
@keyframes arcDraw { to { stroke-dashoffset: 0; } }
.wmap__end { fill: rgba(211, 191, 153, .55); }
.wmap__end.is-active { fill: var(--accent-light); }
.wmap__home { fill: var(--on-field); }
.wmap__home-label { fill: var(--on-field); font-family: var(--font-sans); font-size: 12px; font-weight: 600; }
.wmap__plane { fill: var(--on-field); }
/* Подписи регионов у концов дуг */
.wmap__label {
  position: absolute; transform: translate(-50%, -150%); padding: 4px 10px; border: 0; border-radius: 999px;
  background: rgba(16, 41, 31, .85); color: var(--on-field-soft); font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.wmap__label.is-active { background: var(--accent); color: var(--field-deep); }
@media (hover: hover) { .wmap__label:not(.is-active):hover { color: var(--on-field); } }

/* Переключатель регионов */
.wmap__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; margin: 20px 0 28px; padding-bottom: 12px; border-bottom: 1px solid rgba(245, 241, 232, .14); }
.wmap__tab { padding: 6px 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--on-field); font-family: var(--font-serif); font-size: clamp(20px, 1.7vw, 26px); line-height: 1.1; opacity: .5; transition: opacity .2s ease, border-color .2s ease; }
.wmap__tab[aria-selected="true"] { opacity: 1; border-color: var(--accent); }
@media (hover: hover) { .wmap__tab:hover { opacity: .85; } }

/* Выбранный регион: фото слева, страны справа */
.wmap__panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px clamp(32px, 4vw, 72px); align-items: start; animation: tocIn .4s var(--ease-out); }
.wmap__panel[hidden] { display: none; }
.wmap__pic { position: sticky; top: calc(var(--header-h) + 24px); aspect-ratio: 3 / 2; overflow: hidden; background: var(--field); }
.wmap__pic img { width: 100%; height: 100%; object-fit: cover; }
.wmap__title { font-size: clamp(28px, 2.4vw, 38px); margin-bottom: 10px; }
.dest__lead { margin: 0 0 20px; max-width: 40em; color: var(--on-field-soft); }
.dest__sub { margin: 14px 0 4px; font-size: var(--t-small); font-weight: 600; color: var(--accent-light); }
.dest__sub:first-child { margin-top: 0; }
/* Страны колонками — только названия (сезоны убраны по просьбе клиента 2026-11-03) */
.dest__list { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.dest__list > div { padding: 8px 0; border-top: 1px solid rgba(245, 241, 232, .14); }
.dest__list dt { font-family: var(--font-serif); font-size: 19px; line-height: 1.15; }
.dest__list dd { margin: 2px 0 0; font-size: 13px; color: var(--accent-light); }
.dest__cta { margin-top: 24px; }

/* ---------- Страница «Форматы»: девять строк — фото и текст по очереди слева и справа ---------- */

.flist { background: var(--ground); padding: clamp(56px, 7vw, 104px) 0 var(--gap-section); }
.frow { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px clamp(40px, 6vw, 112px); align-items: center; scroll-margin-top: calc(var(--header-h) + 24px); }
.frow + .frow { margin-top: clamp(72px, 9vw, 136px); }
.frow--flip .frow__pic { order: 2; }
.frow__pic { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ground-2); }
.frow__pic img { width: 100%; height: 100%; object-fit: cover; }
.frow__title { font-size: var(--t-h2); color: var(--ink); }
.frow__lead { margin: 20px 0 28px; max-width: 26em; font-family: var(--font-serif); font-size: clamp(22px, 1.9vw, 28px); line-height: 1.25; color: var(--ink); }
.frow__label { margin: 0 0 10px; font-size: var(--t-small); font-weight: 600; color: var(--ink); }
.frow__where { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.frow__where li { padding: 7px 14px; border: 1px solid rgba(24, 61, 53, .25); border-radius: 999px; font-size: var(--t-small); }
.frow__cta { margin-top: 32px; }

/* ---------- Отзывы с Яндекс Карт: три карточки в ряд на тёмном ---------- */

.reviews { background: var(--field-deep); color: var(--on-field); padding: var(--gap-section) 0; }
.reviews__head { text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.reviews h2 { font-size: var(--t-h2); }
.reviews__rating { display: inline-flex; align-items: baseline; flex-wrap: wrap; justify-content: center; gap: 6px 12px; margin: 20px 0 0; font-size: var(--t-small); color: var(--on-field-soft); }
.reviews__rating strong { font-family: var(--font-serif); font-size: 30px; font-weight: 500; line-height: 1; color: var(--on-field); }
.stars { color: var(--accent); letter-spacing: .12em; font-size: 18px; line-height: 1; }
.reviews__cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
/* Карточка — тонкая золотая рамка, без теней */
.rcard { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 2.4vw, 36px); border: 1px solid rgba(180, 154, 112, .45); border-radius: 20px; }
.rcard blockquote { margin: 0; flex: 1; }
.rcard blockquote p { margin: 0; font-family: var(--font-serif); font-size: clamp(19px, 1.45vw, 22px); line-height: 1.35; }
.rcard__who { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; padding-top: 16px; border-top: 1px solid rgba(245, 241, 232, .14); font-size: var(--t-small); }
.rcard__who strong { font-weight: 600; }
.rcard__who span { color: var(--accent-light); }
.reviews__foot { display: flex; justify-content: center; margin-top: clamp(36px, 4vw, 56px); }

/* ---------- Подвал ---------- */

.site-footer { background: var(--field-deep); color: var(--on-field-soft); padding: 72px 0 28px; overflow: hidden; }
.footer__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px 48px; }
.footer__row nav { justify-self: center; }
.site-footer .logo { color: var(--on-field); justify-self: start; }
.footer__nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 16px; }
.footer__contacts { margin: 0; display: grid; gap: 4px; text-align: right; font-size: 16px; }
@media (hover: hover) { .footer__nav a:hover, .footer__contacts a:hover { color: var(--on-field); } }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 56px; font-size: 14px; }
.footer__note { margin: 8px 0 0; font-size: 12px; color: rgba(207, 200, 184, .6); }
.footer__legal { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid rgba(245, 241, 232, .12); font-size: 13px; color: rgba(207, 200, 184, .75); }

/* ---------- Появление частей секций (один раз, при входе в экран) ---------- */

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Форма подбора и окно ---------- */

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > label, fieldset.field > legend { font-size: var(--t-small); font-weight: 600; color: var(--ink); padding: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
fieldset.field > legend { margin-bottom: 8px; }
.field input { width: 100%; min-height: 52px; padding: 12px 16px; font: inherit; font-size: 16px; color: var(--ink-text); background-color: #fff; border: 1px solid #CFC6B5; border-radius: 0; transition: border-color .2s ease; }
.field input::placeholder { color: #7D817B; }
.field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: #A4452F; }
.field__error { font-size: 14px; color: #A4452F; margin: 0; }
.form__note { font-size: 14px; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(24, 61, 53, .35); font-size: var(--t-small); transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.chip input:checked + span { background-color: var(--ink); border-color: var(--ink); color: var(--on-field); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-success { padding: 24px 0; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__fail { margin: 0; font-size: 14px; color: #A4452F; }
.form-success h3 { font-size: 40px; color: var(--ink); margin-bottom: 10px; }
.form-success p { margin: 0; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(16, 41, 31, .72); animation: fadeIn .2s ease-out; }
.modal__dialog { position: relative; width: 100%; max-width: 680px; max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; background: var(--ground); color: var(--ink-text); padding: 48px 44px 40px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .5); animation: dialogIn .3s var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes tocIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__close { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ground-2); color: var(--ink); display: grid; place-items: center; transition: transform .12s var(--ease-out); }
.modal__close:active { transform: scale(.94); }
.modal__close svg { width: 18px; height: 18px; }
.modal h2 { font-size: 48px; color: var(--ink); margin-bottom: 12px; }
.modal__lead { margin: 0 0 28px; }
.modal-open { overflow: hidden; }

/* ---------- Без лишнего движения: содержимое на месте, перемещений нет ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Адаптив ---------- */

@media (max-width: 1024px) {
  .xhero__copy { grid-template-columns: 1fr; }
  .xhero__actions { grid-column: 1; justify-self: start; }
  .howto__grid, .world__grid { grid-template-columns: 1fr; }
  /* Глобус встаёт между текстом и списком, чтобы при выборе региона его было видно */
  .world__grid { gap: 0; }
  .world__text { display: contents; }
  .world h2 { order: 1; }
  .world__text > p { order: 2; margin-bottom: 24px; }
  .globe { order: 3; max-width: 460px; margin-bottom: 56px; }
  .rlist { order: 4; }
  .world__all { order: 5; justify-self: start; }
  .services__head { grid-template-columns: 1fr; margin-bottom: 40px; }
  .wmap__panel { grid-template-columns: 1fr; }
  .dest__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wmap__pic { position: static; aspect-ratio: 16 / 10; }
  .frow { grid-template-columns: 1fr; }
  .frow--flip .frow__pic { order: 0; }
  .reviews__cards { grid-template-columns: 1fr; }
  .svcg { flex-direction: column; height: auto; gap: 8px; }
  .svcg__item { flex: none; min-height: 76px; transition: none; }
  .svcg__pic { flex: none; height: 0; transition: height .5s var(--ease-out); }
  .svcg__item.is-active .svcg__pic { height: 220px; }
  .svcg__text { flex: none; width: auto; display: none; padding: 20px 20px 24px; }
  .svcg__item.is-active .svcg__text { display: block; }
  .svcg__short { display: none; }
  .svcg__full { left: 20px; right: 20px; top: 38px; text-align: left; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; transform: translateY(-50%); font-family: var(--font-serif); font-size: 22px; line-height: 1.1; color: var(--on-field); }
  .svcg__item.is-active .svcg__full { opacity: 0; }
  .svc-formats { margin-top: 56px; }
  .steps .howto__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .toc__item { width: 100%; }
  .toc__item.is-active .toc__btn { transform: none; }
  .toc__panel { position: static; width: 100%; display: none; opacity: 1; visibility: visible; padding: 12px 0 32px; }
  .toc__item.is-active .toc__panel { display: block; animation: tocIn .35s var(--ease-out); }
  .toc__text { grid-template-columns: 1fr; margin-top: 20px; }
  .footer__row { grid-template-columns: 1fr; gap: 28px; }
  .footer__row nav { justify-self: start; }
  .footer__contacts { text-align: left; }
  .howto__pic { aspect-ratio: 16 / 10; order: -1; }
  .about__grid { grid-template-columns: 1fr; }
  .team__list { grid-template-columns: 1fr; }
  .work__head { grid-template-columns: 1fr; margin-bottom: 48px; }
  .work__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  :root { --header-h: 66px; --t-body: 16px; --t-small: 14px; --t-h3: 26px; }
  .site-header .logo__crest { display: none; }
  .site-header .logo__word { height: 28px; }
  .header-cta { min-height: 42px; padding: 10px 16px; font-size: 14px; }
  .menu-btn { min-height: 42px; padding: 0 12px; }
  .site-header__inner { grid-template-columns: auto 1fr auto; gap: 12px; }
  .site-header .logo { justify-self: start; }
  .site-menu__list a { font-size: 25px; }
  .site-menu__panel { padding: 22px 22px 26px; gap: 22px; }
  .menu-btn__text { display: none; }
  .hide-sm { display: none; }
  .floating-cta { display: flex; }

  .xhero__title { font-size: clamp(36px, 10vw, 54px); }
  .xhero__line { white-space: normal; }
  .xhero__line--2 { padding-left: 0; }
  .xhero__lead { font-size: 17px; }
  .xhero__actions { width: 100%; }
  .xhero__actions .btn { flex: 1 1 100%; }



  .howto__steps { grid-template-columns: 1fr; }
  .globe { max-width: 300px; }
  .howto__actions .btn { flex: 1 1 100%; }
  .site-footer { padding-bottom: 96px; }
  .footer__contacts { text-align: left; }

  .form__row { grid-template-columns: 1fr; }
    .work__grid { grid-template-columns: 1fr; }
  .dest__list { grid-template-columns: 1fr; }
  .wmap__label { display: none; }
  .frow__pic { aspect-ratio: 16 / 11; }
  .frow__cta { width: 100%; }
  .wmap__tabs { gap: 6px 18px; }
  .howto__contacts { grid-template-columns: 1fr; }
  .steps .howto__steps { grid-template-columns: 1fr; }
  .work__grid li { padding: 24px 0 32px; }
  .acc__btn { padding: 18px 0; }
  .acc__panel p { padding-right: 0; }
  .modal { padding: 0; place-items: end stretch; }
  .modal__dialog { max-width: none; padding: 40px 20px calc(28px + env(safe-area-inset-bottom)); max-height: 92dvh; }
  .modal h2 { font-size: 36px; }
}

/* ===== Круизы: поиск (виджет PAC GROUP widget.gocruise.ru) в цветах сайта ===== */
.cruise-search { background: var(--ground); padding: clamp(40px, 5vw, 72px) 0 var(--gap-section); }
.cruise-search .ces-app {
  --ces-global-border-radius: 6px;
  --ces-form-bg-color: var(--field);
  --ces-form-input-label-color: var(--on-field);
  --ces-form-footer-border-top-color: rgba(180, 154, 112, .35);
  --ces-modal-overlay: rgba(16, 41, 31, .72);
  --ces-form-button-border-radius: 999px;
  --ces-form-button-color: var(--accent);
  --ces-form-button-hover-color: var(--accent-light);
  --ces-form-button-submit-color: var(--accent);
  --ces-form-button-submit-hover-color: var(--accent-light);
  --ces-result-card-bg-color: var(--ground-2);
  --ces-result-card-shadow: none;
  --ces-result-card-button-price-color: var(--ink);
  --ces-result-card-button-price-hover-color: var(--field-deep);
  --ces-result-card-button-date-color: var(--accent);
  --ces-result-card-button-date-hover-color: #9C845C;
  font-family: var(--font-sans);
  color: var(--ink-text);
}
.cruise-search .ces-app button, .cruise-search .ces-app input, .cruise-search .ces-app select { font-family: var(--font-sans); }
.cruise-search .ces-search-form__button { color: var(--field-deep); font-weight: 600; }
.cruise-search .ces-search-form__button_type_reset { background: transparent; border: 1px solid rgba(245, 241, 232, .6); color: var(--on-field); }
.cruise-search__note { margin: 32px 0 0; font-size: var(--t-small); color: var(--ink-text); }
.link-btn { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--accent); cursor: pointer; }
@media (hover: hover) { .link-btn:hover { color: var(--field-deep); border-color: var(--ink); } }
.cruise-search .ces-search-results__title::before { text-transform: none; font-family: var(--font-serif); font-weight: 500; font-size: var(--t-h3); letter-spacing: 0; color: var(--ink); }
.cruise-search .ces-cruise__title { font-family: var(--font-serif); font-weight: 500; font-size: 28px; color: var(--ink); }
.cruise-search .ces-cruise-options__min-price, .cruise-search .ces-cruise-options__min-price * { color: var(--ink); }
.cruise-search .ces-cruise-tag__value { background: var(--ink); color: var(--on-field); }
.cruise-search .ces-select-box__label, .cruise-search .ces-person-control__label, .cruise-search .ces-date-picker__label, .cruise-search .ces-form-switch__label { text-transform: none; letter-spacing: 0; }
/* Кнопка «Подобрать круиз» в полосе «Круизы» — ведёт на страницу поиска круизов */
.svcg__text .svcg__cta { margin-top: 20px; min-height: 44px; padding: 10px 22px; font-size: var(--t-small); }
/* Окна виджета (цены, каюты, бронирование) — поверх шапки сайта (у шапки z-index 50) */
.cruise-search .ces-modal-backdrop { z-index: 60; }
.cruise-search .ces-modal-overlay { z-index: 0; }
.cruise-search .ces-modal { position: relative; z-index: 1; }
/* «О компании»: лозунг и фраза под заголовком */
.about__lead { margin: 18px 0 0; font-family: var(--font-serif); font-size: clamp(24px, 2.2vw, 34px); line-height: 1.2; color: var(--ink); }
.about__text { margin: 12px 0 0; max-width: 28em; color: var(--ink-text); }
/* «Количество ночей» от–до вместо «Продолжительности» виджета (как на pac.ru) */
.cruise-search .cd-hidden { display: none !important; }
.cruise-search .cd-nights .ces-select-box__label { margin-bottom: 4px; }
.cruise-search .cd-nights__row { display: flex; align-items: center; gap: 6px; color: var(--on-field); }
.cruise-search .cd-nights select { -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2710%27 height=%276%27%3E%3Cpath d=%27M1 1l4 4 4-4%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%271.5%27/%3E%3C/svg%3E") no-repeat right 8px center; height: 26px; min-width: 64px; padding: 2px 24px 2px 8px; border: 0; border-radius: 0; color: #000; font: 14px var(--font-sans); cursor: pointer; }
/* Форма «Подобрать путешествие»: поле «О поездке», счётчик знаков, согласие */
.field textarea { width: 100%; min-height: 112px; padding: 12px 16px; font: inherit; font-size: 16px; line-height: 1.45; color: var(--ink-text); background-color: #fff; border: 1px solid #CFC6B5; border-radius: 0; resize: vertical; transition: border-color .2s ease; }
.field textarea::placeholder { color: #7D817B; }
.field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field textarea[aria-invalid="true"], .consent input[aria-invalid="true"] + span { border-color: #A4452F; }
.field__count { margin: -2px 0 0; font-size: 13px; color: #7D817B; text-align: right; }
.field__count.is-short { color: #A4452F; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.consent + .field__error { margin-top: -10px; }
/* Заголовок окна не заходит под крестик закрытия */
.modal__dialog > h2 { padding-right: 52px; }

/* ===== Наши партнёры (partners.html, собирается tools/build_partners.py) =====
   Таблички без анимации; логотипы перекрашены в хвойный через mask — у всех один цвет */
.partners { background: var(--ground); padding: clamp(56px, 7vw, 112px) 0 0; }
.partners:last-of-type { padding-bottom: var(--gap-section); }
.partners h2 { font-size: var(--t-h3); margin: 0 0 clamp(24px, 3vw, 40px); }
.partners__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.partner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 176px; padding: 28px 20px 20px; background: #FBF9F4; border: 1px solid rgba(24, 61, 53, 0.14); border-radius: 4px; }
.partner__logo { display: block; width: 78%; max-width: 220px; height: var(--h, 48px); background: var(--ink); -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.partner__img { display: block; max-width: 78%; max-height: var(--h, 48px); width: auto; height: auto; object-fit: contain; }
.partners__more { margin: 24px 0 0; line-height: 1.3; max-width: 34em; font-family: var(--font-serif); font-size: clamp(20px, 1.6vw, 24px); color: var(--ink-text); }
.partner__name { font-size: var(--t-small); color: rgba(32, 48, 43, 0.7); text-align: center; }
@media (max-width: 1024px) { .partners__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .partners__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .partner { min-height: 128px; padding: 20px 12px 14px; gap: 10px; }
  .partner__logo { width: 88%; height: calc(var(--h, 48px) * 0.72); }
  .partner__name { font-size: 13px; }
}

/* ===== Юридические документы (consent.html, собирается tools/build_legal.py) ===== */
.page-top--doc h1 { max-width: 26em; }
@media (min-width: 1025px) { .page-top--compact.page-top--doc .frame { display: block; } }
.legal-doc { background: var(--ground); padding: clamp(40px, 5vw, 72px) 0 var(--gap-section); }
.legal-doc__text p, .legal-doc__text ul { max-width: 46em; }
.legal-doc__text h2 { max-width: 30em; margin: 2.2em 0 0.9em; font-size: clamp(22px, 1.8vw, 28px); line-height: 1.2; color: var(--ink); }
.legal-doc__text h3 { max-width: 40em; margin: 1.8em 0 0.7em; font-family: var(--font-sans); font-weight: 600; font-size: 17px; line-height: 1.4; color: var(--ink); }
.legal-doc__text ul { margin: 0 0 1.1em; padding-left: 1.3em; }
.legal-doc__text li { margin: 0 0 0.6em; font-size: var(--t-body); line-height: 1.6; color: var(--ink-text); overflow-wrap: anywhere; }
.legal-doc__text strong { font-weight: 600; color: var(--ink); }
.legal-doc__text p { margin: 0 0 1.1em; font-size: var(--t-body); line-height: 1.65; color: var(--ink-text); overflow-wrap: anywhere; hyphens: auto; }
.consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer__legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer__legal a:hover { color: var(--accent-light); }

/* ===== Журнал (journal.html, собирается tools/build_journal.py) — карточки статей из Дзена ===== */
.journal { background: var(--ground); padding: clamp(48px, 6vw, 96px) 0 var(--gap-section); }
.journal--empty h2 { font-size: var(--t-h3); margin: 0 0 16px; }
.journal--empty p { margin: 0 0 32px; font-size: var(--t-body); line-height: 1.6; color: var(--ink-text); max-width: 32em; }
.journal__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 3vw, 48px) clamp(16px, 2vw, 32px); }
.jcard__link { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.jcard__pic { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--ground-2); margin-bottom: 18px; }
.jcard__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.jcard__date { font-size: var(--t-small); color: rgba(32, 48, 43, 0.6); }
.jcard__title { font-size: clamp(24px, 2vw, 30px); line-height: 1.15; margin: 8px 0 10px; }
.jcard__text { margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: var(--ink-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.jcard__more { font-size: var(--t-small); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .jcard__link:hover .jcard__pic img { transform: scale(1.03); } .jcard__link:hover .jcard__title { color: var(--ink); } }
.journal__all { margin: clamp(40px, 5vw, 64px) 0 0; }
@media (max-width: 1024px) { .journal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .journal__grid { grid-template-columns: 1fr; } }

.cruise-search__offer { margin: 24px 0 0; max-width: 60em; font-size: 13px; line-height: 1.5; color: rgba(32, 48, 43, 0.65); }

/* WordPress: полоса админки сверху (видят только вошедшие в админку) — шапку сайта сдвигаем под неё */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Cookie: плашка внизу и окно настроек (рекомендации юриста, 2026-11-18) */
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
@media (hover: hover) { .btn--line:hover { background: var(--ink); color: var(--on-field); } }
.cookie-bar {
  position: fixed; z-index: 70; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); width: min(560px, calc(100% - 40px));
  background: var(--ground); color: var(--ink-text); border: 1px solid var(--accent); padding: 22px 24px 18px;
  font-size: 14px; line-height: 1.5; animation: cookieIn .45s var(--ease-out);
}
@keyframes cookieIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cookie-bar__text { margin: 0 0 16px; }
.cookie-bar__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-bar__actions .btn { min-height: 44px; padding: 10px 20px; font-size: 14px; }
.cookie-bar__links { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.cookie-bar__links a, .cookie-bar__link { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.cookie-bar__link, .footer__cookie { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.footer__cookie { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer__cookie:hover { color: var(--accent-light); }
@media (max-width: 680px) {
  .cookie-bar { left: 12px; width: calc(100% - 24px); bottom: calc(12px + env(safe-area-inset-bottom)); padding: 18px 18px 14px; font-size: 13px; }
  .cookie-bar__actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .cookie-bar { animation: none; } }
.cookie-set h2 { font-size: 40px; }
.cookie-set__item { border-top: 1px solid var(--ground-2); padding: 18px 0 4px; }
.cookie-set__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.cookie-set__head h3 { font-family: var(--font-sans); font-size: 17px; font-weight: 700; color: var(--ink); margin: 0; }
.cookie-set__item p { margin: 0 0 10px; font-size: 14px; }
.cookie-set__item a { color: var(--ink); text-decoration: underline; }
.cookie-set__always { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.cookie-set__note { margin: 8px 0 24px; padding-top: 16px; border-top: 1px solid var(--ground-2); font-size: 13px; }
.switch { position: relative; display: inline-flex; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch__track { width: 48px; height: 28px; border-radius: 999px; background: #C9C2B3; transition: background-color .2s ease; position: relative; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease-out); }
.switch input:checked + .switch__track { background: var(--ink); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 680px) { .cookie-set h2 { font-size: 32px; } }
