/* =====================================================================
   Vladimir Suzdal Trips — макет в композиции childless.ch
   Палитра: золото #C99700 / #E5AD26, тёмно-синий #16243A, светлый #F6F5F3
   Шрифты: заголовки — Cormorant Garamond, текст — Inter
   Система: эм-масштабирование (1em = viewport / (1728 / 16))
   ===================================================================== */

/* ------------------------------ Tokens ------------------------------ */
:root {
  --cubic: cubic-bezier(0.65, 0.05, 0, 1);
  --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur: 0.735s;
  --ease: 0.735s cubic-bezier(0.65, 0.05, 0, 1);
  --dur-l: 1.2s;

  --gap: 2em;
  --container-padding: clamp(2em, 3.5vw, 4em);
  --content-width: 85em;
  --section-padding: 3.5em;
  --header-height: 4.6em;

  --size-container-ideal: 1728;
  --size-container-min: 992px;
  --size-container-max: 1920px;
  --size-container: clamp(var(--size-container-min), 100vw, var(--size-container-max));
  /* Исправленный масштаб: комфортный базовый кегль (15-17.5px) на ноутбуках (включая MacBook Air M1) и десктопах */
  --size-font: clamp(15px, 0.3vw + 12px, 17.5px);

  --ink: #141414;
  --ink-soft: #3a3a3a;
  --mute: #6b6b6b;
  --navy: #16243A;
  --navy-deep: #0E1826;
  --accent: #C99700;
  --accent-bright: #E5AD26;
  --surface: #F6F5F3;
  --sky: #EAF4FB;
  --line: rgba(20, 20, 20, 0.12);
  --line-soft: rgba(20, 20, 20, 0.08);
  --on-dark: #fff;
  --on-dark-mute: rgba(255, 255, 255, 0.72);
  --white: #fff;

  --font-head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

/* ------------------------------ Reset ------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--size-font);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
svg { max-width: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--accent-bright); color: var(--ink); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 500;
  background: var(--ink); color: #fff; padding: .8em 1.2em; border-radius: 2px;
}
.skip-link:focus { left: 1em; top: 1em; }

/* --------------------------- Primitives ----------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--content-width) + var(--container-padding) * 2);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  position: relative;
  padding-block: var(--section-padding);
  scroll-margin-top: calc(var(--header-height) + 1em);
}

.eyebrow {
  display: inline-block;
  font-size: max(12px, .82em);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 300; letter-spacing: -.01em; }

/* ------------------------------ Buttons ----------------------------- */
.ico { width: 1em; height: 1em; display: block; }

/* Кнопки: прямоугольные (стиль прошлой версии сайта) */
.btn001 {
  --c: var(--ink);
  --bg: transparent;
  --fg: var(--c);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-body);
  font-size: .88em;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--fg);
  background: var(--bg);
  border: .0625em solid var(--c);
  border-radius: 2px;
  padding: 1.4em 2.1em;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.btn001__text-wrapper { display: block; }
.btn001__circle {
  width: 1.15em; height: 1.15em;
  display: grid; place-items: center;
  color: inherit;
}
.btn001__arrow { transition: transform var(--ease); }
.btn001:hover { --bg: var(--c); --fg: #fff; }
.btn001:hover .btn001__arrow { transform: translateX(.3em); }
.btn001.is--accent { --c: var(--accent); --bg: var(--accent); --fg: #fff; }
.btn001.is--accent:hover { --c: var(--accent-bright); --bg: var(--accent-bright); --fg: #fff; }
.btn001.is--light { --c: #fff; --bg: transparent; --fg: #fff; }
.btn001.is--light:hover { --c: #fff; --bg: #fff; --fg: var(--navy); }
.btn001.is--big { padding: 1.5em 2.2em; font-size: .95em; }

.link-underline { position: relative; display: inline-block; padding-bottom: .15em; }
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: .0625em; background: currentColor;
  transform-origin: right; transform: scaleX(1);
  transition: transform var(--ease);
}
.link-underline:hover::after { transform-origin: left; transform: scaleX(0); }

/* ------------------------------- Header ----------------------------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--white);
  border-bottom: .0625em solid transparent;
  transition: transform var(--dur-l) var(--cubic), border-color var(--dur) var(--cubic);
}
.header.is--scrolled { border-bottom-color: var(--line); }
.header.is--hidden { transform: translateY(-100%) rotate(.001deg); }

.nav-wrapper { display: block; }
.header-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1em;
  height: var(--header-height);
}
/* десктоп: логотип слева, меню по центру, кнопка справа */
.nav-logo { grid-column: 1; grid-row: 1; justify-self: start; }
.nav { grid-column: 2; grid-row: 1; justify-self: center; display: flex; gap: 2em; align-items: center; }
.nav-cta { grid-column: 3; grid-row: 1; justify-self: end; display: flex; justify-content: flex-end; align-items: center; gap: 1.4em; }

.nav-logo { display: inline-flex; flex-direction: column; align-items: flex-start; text-align: left; line-height: 1.05; }
.nav-logo__name {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(24px, 1.75em, 32px);
  letter-spacing: .02em;
  white-space: nowrap;
  color: var(--ink);
}
.nav-logo__tag {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 3px;
}

.btn-nav { position: relative; display: inline-block; font-size: max(14px, .92em); line-height: 1.15; padding-bottom: .1em; }
.btn-nav__content { display: block; overflow: hidden; }
.btn-nav__text { display: block; text-shadow: 0 1.15em 0 currentColor; transition: transform 0s var(--cubic); }
.btn-nav::after {
  content: ""; position: absolute; left: 50%; bottom: -.2em;
  width: .34em; height: .34em; border-radius: 50%;
  background: currentColor; opacity: 0;
  transform: translate(-50%, .7em);
  transition: transform var(--ease), opacity var(--ease);
}
.btn-nav:hover .btn-nav__text { transform: translateY(-1.15em); transition: transform var(--ease); }
.btn-nav:hover::after { opacity: 1; transform: translate(-50%, 0); }

.burger { display: none; position: relative; font-size: .875em; }
/* mobile menu */
.mobile-wrapper {
  position: fixed; inset: 0; z-index: 90;
  background: var(--navy); color: #fff;
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
  transition: clip-path var(--dur-l) var(--cubic);
}
.mobile-wrapper[data-nav="open"] { clip-path: inset(0 0 0 0); pointer-events: all; }
.mobile-wrapper__content {
  height: 100%;
  padding: calc(var(--header-height) + 2.5em) var(--container-padding) 3em;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 3em; overflow-y: auto;
}
.mobile-nav { display: flex; flex-direction: column; gap: .15em; }
.mobile-nav__link {
  font-family: var(--font-head); font-weight: 300;
  font-size: 3em; line-height: 1.3; overflow: hidden;
}
.mobile-nav__link span { display: block; transform: translateY(110%); transition: transform var(--dur-l) var(--cubic); }
.mobile-wrapper[data-nav="open"] .mobile-nav__link span { transform: translateY(0); }
.mobile-wrapper[data-nav="open"] .mobile-nav__link:nth-child(2) span { transition-delay: .05s; }
.mobile-wrapper[data-nav="open"] .mobile-nav__link:nth-child(3) span { transition-delay: .1s; }
.mobile-wrapper[data-nav="open"] .mobile-nav__link:nth-child(4) span { transition-delay: .15s; }
.mobile-wrapper[data-nav="open"] .mobile-nav__link:nth-child(5) span { transition-delay: .2s; }
.mobile-wrapper__lower { display: flex; flex-direction: column; gap: 1.4em; }
.mobile-wrapper__lower .label { font-size: .72em; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-mute); }
.mobile-socials { display: flex; gap: 1.4em; }
.mobile-wrapper .btn001 { --c: #fff; }

/* ------------------------------- Hero ------------------------------- */
/* заголовок лежит поверх фотографии */
.is--hero { overflow: hidden; padding-block: 0; }
.img-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.img-container img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.img-container::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 24, 38, .34) 0%, rgba(14, 24, 38, .16) 42%, rgba(14, 24, 38, .62) 100%);
}
.hero-wrapper {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  width: 100%;
}
.h1-hero {
  font-size: 6.5em;
  line-height: .86;
  font-weight: 300;
  letter-spacing: -.02em;
  text-align: center;
  max-width: 100%;
  color: #fff;
}
.h1-hero .outer-word { display: block; }
.h1-hero .is--sub {
  font-size: .3em;
  letter-spacing: .01em;
  line-height: 1.4;
  margin-top: .9em;
  color: rgba(255, 255, 255, .82);
}

.arrow-wrapper {
  position: fixed; right: 4em; bottom: 4em; z-index: 50;
  width: 3em; height: 3em; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white);
  border: .0625em solid var(--line);
  transition: transform var(--ease), opacity var(--ease), filter var(--ease);
}
body.is--scrolled .arrow-wrapper { transform: translateY(-50%); opacity: 0; filter: blur(10px); pointer-events: none; }

/* ------------------------------ Intro ------------------------------- */
.is--intro {
  display: flex; align-items: center; justify-content: center;
  padding-block: var(--section-padding);
}
.intro-wrapper {
  display: flex; flex-direction: column; align-items: center;
  gap: 3.3em;
  text-align: center;
}
.text-intro {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 2.75em;
  line-height: 1.22;
  letter-spacing: -.01em;
}
.text-intro.is--second { color: var(--mute); font-size: 1.95em; }

/* ---------------------------- Angebote ------------------------------ */
.is--angebote { overflow: hidden; }
.header-angebote {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 1.5em;
  max-width: calc(var(--content-width) + var(--container-padding) * 2);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}
.header-angebote .line { flex: 1; height: .0625em; background: var(--line); }
.header-angebote .ornament { flex: none; width: 2.2em; height: 2.2em; color: var(--accent); }

.container.is--angebote { display: flex; flex-direction: column; align-items: center; gap: 5em; }
.header-title { display: flex; flex-direction: column; gap: .75em; text-align: center; align-items: center; }
.h2-angebote { font-size: 3.5em; line-height: 1.1; }
.p-angebote { font-size: 1.06em; line-height: 1.5; color: var(--ink-soft); }

/* Карточки маршрутов: на десктопе 3 в ряд, на планшете 2, на телефоне 1 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4em 2.5em;
  width: 100%;
}

.angebote-card {
  display: flex; flex-direction: column;
  gap: 1.6em;
  color: var(--ink);
}
.angebote-card__media {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  background: var(--surface);
}
.angebote-card__image {
  display: block;
  width: 100%; height: auto;
  aspect-ratio: 4 / 5;   /* портретный кадр: делаем обложки слегка приземистее (4:5) */
  object-fit: cover;
  transition: transform .9s var(--cubic);
}
.angebote-card:hover .angebote-card__image { transform: scale(1.04); }
.angebote-card__content {
  display: flex; flex-direction: column; gap: .7em;
  text-align: left;
}
.angebote-card__index { font-size: max(12px, .8em); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.angebote-card__title { font-family: var(--font-head); font-weight: 400; font-size: 1.9em; line-height: 1.12; color: var(--ink); }
.angebote-card__text { font-size: 1em; line-height: 1.5; color: var(--mute); }
.angebote-card__meta { font-size: max(13px, .85em); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.angebote-card__button { display: flex; justify-content: flex-start; margin-top: auto; }
.angebote-card .btn001__circle { transition: transform var(--ease); }
.angebote-card:hover .btn001__circle { transform: translateX(3px); }

.h2-small { font-size: 2.75em; line-height: 1.1; }

/* -------------------------------- FAQ ------------------------------- */
/* на десктопе текст и аккордеон идут в один столбик */
.container.is--faq { display: flex; flex-direction: column; gap: 3.5em; }
.faq__left-wrapper { display: flex; flex-direction: column; gap: 1.8em; align-items: flex-start; }
.faq__subtitle { font-size: 1em; line-height: 1.5; color: var(--mute); }
.accordion { border-top: .0625em solid var(--line); }
.accordion__item { border-bottom: .0625em solid var(--line); }
.accordion__trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5em;
  padding: 1.6em 0;
  font-size: 1.15em;
  text-align: left;
}
.accordion__icon { flex: none; position: relative; width: 1.1em; height: 1.1em; }
.accordion__icon::before, .accordion__icon::after { content: ""; position: absolute; background: var(--ink); transition: transform var(--ease); }
.accordion__icon::before { left: 0; top: 50%; width: 100%; height: .0625em; transform: translateY(-50%); }
.accordion__icon::after { top: 0; left: 50%; height: 100%; width: .0625em; transform: translateX(-50%); }
.accordion__item[data-open] .accordion__icon::after { transform: translateX(-50%) scaleY(0); }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s cubic-bezier(.625, .05, 0, 1); }
.accordion__item[data-open] .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel-inner { overflow: hidden; }
.accordion__panel-inner p { padding-bottom: 1.6em; color: var(--ink-soft); line-height: 1.55; }

/* ---------------------------- Контакты / CTA ------------------------ */
.section-head { display: flex; flex-direction: column; gap: .9em; }
.section-head.is--center { align-items: center; text-align: center; }
.section-lead { font-size: 1.05em; line-height: 1.55; color: var(--mute); }

.contacts-grid {
  display: grid; grid-template-columns: 1fr; gap: 3em;
  margin-top: 4.5em; align-items: stretch;
}
.contacts-box {
  background: var(--surface); border-radius: 2px;
  padding: 3.5em;
  display: flex; flex-direction: column; gap: 2.2em;
}
.contacts-box h3 { font-family: var(--font-head); font-weight: 400; font-size: 1.9em; line-height: 1.15; }
.contact-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(17em, 1fr)); gap: 2em; }
.contact-row { display: flex; gap: 1.1em; align-items: flex-start; }
.contact-row svg { flex: none; width: 1.25em; height: 1.25em; margin-top: .15em; color: var(--accent); }
.contact-row > span { display: flex; flex-direction: column; gap: .3em; }
.contact-row b { font-weight: 600; font-size: .95em; }
.contact-row > span > span { font-size: .95em; line-height: 1.5; color: var(--mute); }
.contact-tel { align-self: flex-start; font-size: .95em; color: var(--accent); border-bottom: .0625em solid currentColor; transition: color var(--ease); }
.contact-tel:hover { color: var(--accent-bright); }
.contacts-box .btn001 { align-self: flex-start; }

/* ------------------------------ Footer ------------------------------ */
/* футер в стиле прошлой версии сайта: тёмно-синий, во всю ширину */
.footer { background: var(--navy); color: var(--on-dark-mute); padding-block: 6em 2.5em; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 4em;
  padding-bottom: 4em; border-bottom: .0625em solid rgba(255, 255, 255, .12);
}
.footer-brand { display: flex; flex-direction: column; }
.footer-logo { font-family: var(--font-head); font-weight: 400; font-size: 1.75em; line-height: 1.1; color: #fff; }
.footer-tag { margin-top: .5em; font-size: max(12px, .82em); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .58); }
.footer-brand p { margin-top: 1.5em; max-width: 24em; font-size: .95em; line-height: 1.6; color: rgba(255, 255, 255, .68); }
.footer-col h4 { margin-bottom: 1.6em; font-family: var(--font-body); font-size: max(13px, .85em); font-weight: 600; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: #fff; }
.footer-col ul { display: flex; flex-direction: column; gap: .85em; }
.footer-col a { font-size: .95em; color: rgba(255, 255, 255, .72); transition: color var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.2em;
  padding-top: 2em; font-size: .85em; color: rgba(255, 255, 255, .5);
}

/* --------------------------- Reveal on scroll ----------------------- */
.js .reveal { opacity: 1; transform: none; }
.js .reveal.is--reveal-pending { transform: translateY(10px); transition: transform .42s cubic-bezier(.22, .61, .36, 1); transition-delay: 0s; }
.js .reveal.is--in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.is--reveal-pending { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------ Media ------------------------------- */
@media screen and (max-width: 991px) {
  :root {
    --container-padding: 1.5em;
    --header-height: 5em;
    --size-font: clamp(14px, 1.5vw, 15px);
  }
  /* мобильная шапка: логотип слева, кнопка «Меню» справа */
  .header-wrapper { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .nav-logo { grid-column: 1; justify-self: start; align-items: flex-start; }
  .nav-cta { grid-column: 2; justify-self: end; }
  .nav-cta .btn001 { display: none; }
  .burger { display: block; }
  .h1-hero { font-size: 5.5em; }
  .h2-angebote { font-size: 2.8em; }
  .h2-small { font-size: 2.2em; }
  .text-intro { font-size: 2.1em; }
  .text-intro.is--second { font-size: 1.6em; }
  .container.is--faq { gap: 3em; }
  .faq__left-wrapper, .faq__right-wrapper { width: 100%; }
  .contacts-grid { grid-template-columns: 1fr; gap: 2.5em; margin-top: 3.5em; }
  /* планшет: 3 ряда уже не влезают нормально по тексту — оставляем 2 в ряд */
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 3em; }
}
@media screen and (max-width: 767px) {
  :root {
    --container-padding: 1.25em;
    --section-padding: 2.5em;
    --header-height: 4.25em;
    --size-font: clamp(14px, 3.6vw, 16px);
  }
  .h1-hero { font-size: 4.2em; }
  .h1-hero .is--sub { font-size: .5em; }
  .h2-angebote { font-size: 2.4em; }
  .h2-small { font-size: 2em; }
  .text-intro { font-size: 1.9em; }
  .text-intro.is--second { font-size: 1.5em; }
  .img-container { min-height: 88vh; }
  .card-grid { grid-template-columns: 1fr; gap: 3em; }
  .contact-rows { gap: 1.8em; }
  .contacts-box { padding: 2.5em; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5em; }
  .arrow-wrapper { right: 1.25em; bottom: 1.25em; }
  .footer-bottom { flex-direction: column; gap: .8em; }
}
@media screen and (max-width: 479px) {
  :root {
    --header-height: 3.75em;
    --size-font: clamp(13px, 4vw, 15px);
  }
  .h1-hero { font-size: 3.6em; }
  .h2-angebote { font-size: 2.1em; }
  .h2-small { font-size: 1.8em; }
  .text-intro { font-size: 1.7em; }
  .text-intro.is--second { font-size: 1.4em; }
  .mobile-nav__link { font-size: 2.4em; }
}

/* =====================================================================
   НОВЫЙ HERO — EDITORIAL LAYOUT / ASYMMETRIC GRID
   Текст-«плакат» по центру, фото-вырезки асимметрично по краям
   
   Этот блок переопределяет старые стили hero благодаря:
   1. Позиции в конце файла (каскад)
   2. Более специфичным селекторам (.is--hero .h1-hero)
   ===================================================================== */
.is--hero {
  --hero-bg: #fff;
  --hero-ink: var(--navy);
  --hero-gold: #8F6A1F;
  position: relative;
  min-height: 100svh;
  background: var(--hero-bg);
  overflow: hidden;
  padding-block: 0;
}

.hero-editorial {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(110px, 16vh, 170px) 24px clamp(70px, 10vh, 120px);
}

/* мягкое белое «облако» под заголовком — чтобы текст читался поверх фото */
.hero-editorial::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(46% 42% at 50% 48%, rgba(255, 255, 255, .93) 30%, rgba(255, 255, 255, .72) 62%, rgba(255, 255, 255, 0) 98%);
}

.hero-photo {
  position: absolute;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #ece9e3;
  box-shadow: 0 22px 50px rgba(22, 36, 58, .16);
  opacity: 0;
  translate: 0 30px;
  scale: .985;
  animation: hero-photo-in 1.1s cubic-bezier(.22, .61, .36, 1) forwards;
  will-change: transform;
}
.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Слоты раскладки. Какой слот получит какое фото — решает index.php.
   Слоты разбиты на шесть зон (слева сверху / слева снизу / справа сверху /
   справа снизу / сверху по центру / снизу по центру): внутри одной зоны
   слоты не выбираются вместе, а слоты из разных зон между собой не
   пересекаются, поэтому композиция всегда остаётся чистой.

   Размер каждой фотографии — min(доля ширины, доля высоты, предел в px).
   Доля высоты нужна, чтобы на низких окнах (например, 1280×640) фото
   не налезали друг на друга: вместе они всегда занимают меньше высоты
   экрана, чем есть свободного места.

   На левой стороне стоят два фото друг над другом, поэтому высота
   каждого ограничена половиной колонки (34vh ≈ 42.5vh по высоте кадра
   при пропорции 4:5). Пропорция задана жёстко — иначе кадр с более
   вертикальным исходником стал бы выше и задел соседа. */

/* слева сверху */
.hero-photo--lu-big   { width: min(27vw, 34vh, 620px); top: max(3vh, 78px); left: -4vw; aspect-ratio: 4/5; }
.hero-photo--lu-mid   { width: min(23vw, 29vh, 520px); top: max(6vh, 92px); left: 0;    aspect-ratio: 4/5; }
/* слева снизу */
.hero-photo--ld-big   { width: min(27vw, 34vh, 620px); bottom: -6vh; left: -3vw; aspect-ratio: 4/5; }
.hero-photo--ld-mid   { width: min(23vw, 29vh, 520px); bottom: -2vh; left: 1vw;  aspect-ratio: 4/5; }
/* справа сверху (начинается сразу под шапкой) */
.hero-photo--rt-big   { width: min(30vw, 42vh, 620px); top: max(3vh, 86px); right: -4vw; }
.hero-photo--rt-mid   { width: min(24vw, 36vh, 540px); top: max(4vh, 88px); right: 1vw; }
/* справа снизу */
.hero-photo--rb-big   { width: min(26vw, 30vh, 560px); bottom: -6vh; right: 0; }
.hero-photo--rb-mid   { width: min(21vw, 26vh, 480px); bottom: -2vh; right: 8vw; }
.hero-photo--rb-sm    { width: min(17vw, 20vh, 400px); bottom: 2vh;  right: 1vw; aspect-ratio: 1/1; }
/* Сверху и снизу по центру — фото в «кармане» между боковыми колоннами.
   Высота ограничена свободной полосой над/под заголовком. Полоса зависит
   и от высоты, и от ширины окна (заголовок масштабируется по vw, поэтому
   на узких окнах он ниже, а полоса выше): полоса ≈ 50vh - 7.5vw - const. */
.hero-photo--tc-wide  { width: min(26vw, max(0px, calc(75vh - 11.25vw - 187px)), 375px); height: min(max(0px, calc(50vh - 7.5vw - 125px)), 250px); top: max(3vh, 86px);  left: 0; right: 0; margin-inline: auto; }
.hero-photo--tc-sm    { width: min(20vw, max(0px, calc(66vh - 10vw - 167px)), 267px);    height: min(max(0px, calc(50vh - 7.5vw - 125px)), 200px); top: max(5vh, 92px);  left: 0; right: 0; margin-inline: auto; }
.hero-photo--tc-wide img,
.hero-photo--tc-sm img { object-position: 50% 22%; }
.hero-photo--bc-wide  { width: min(30vw, max(0px, calc(75vh - 11.25vw - 60px)), 450px);  height: min(max(0px, calc(50vh - 7.5vw - 40px)), 300px);  bottom: -2vh; left: 0; right: 0; margin-inline: auto; }
.hero-photo--bc-sm    { width: min(24vw, max(0px, calc(66vh - 10vw - 55px)), 347px);     height: min(max(0px, calc(50vh - 7.5vw - 40px)), 260px);  bottom: -1vh; left: 0; right: 0; margin-inline: auto; }
.hero-photo--bc-wide img,
.hero-photo--bc-sm img { object-position: 50% 25%; }

/* очерёдность появления — по позиции в разметке */
.hero-editorial > .hero-photo:nth-of-type(1) { animation-delay: .12s; }
.hero-editorial > .hero-photo:nth-of-type(2) { animation-delay: .26s; }
.hero-editorial > .hero-photo:nth-of-type(3) { animation-delay: .40s; }
.hero-editorial > .hero-photo:nth-of-type(4) { animation-delay: .52s; }
.hero-editorial > .hero-photo:nth-of-type(5) { animation-delay: .62s; }
.hero-editorial > .hero-photo:nth-of-type(6) { animation-delay: .72s; }

@keyframes hero-photo-in {
  to { opacity: 1; translate: 0 0; scale: 1; }
}

.is--hero .hero-wrapper {
  position: relative;
  z-index: 3;
  text-align: center;
  display: block;
  will-change: transform, opacity;
}

.is--hero .h1-hero {
  color: var(--hero-ink);
  text-align: center;
  text-shadow: none;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(30px, 6vw, 88px);
  line-height: .98;
  letter-spacing: -.01em;
}
.is--hero .outer-word { display: block; }
.is--hero .outer-word:nth-child(2) {
  font-style: italic;
  color: var(--hero-gold);
}
.is--hero .outer-word.is--sub {
  margin-top: clamp(18px, 3vh, 30px);
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(11px, 1.1vw, 14px);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(22, 36, 58, .62);
}

/* Горизонтальная «журнальная» лента фото — только для мобильных.
   Живёт в обычном потоке над заголовком, поэтому hero больше не
   обязан быть во весь экран. */
.hero-strip { display: none; }

@media (max-width: 820px) {
  /* Мобильный hero: сверху лента кадров, под ней заголовок. */
  .is--hero {
    min-height: 0;
    background: #fff;
    padding-block: calc(var(--header-height) + 14px) 44px;
  }
  .hero-editorial { position: static; display: block; padding: 0; }

  /* «облако» и тёмная вуаль были нужны для фона во весь экран — теперь нет */
  .hero-editorial::before,
  .hero-editorial::after { display: none; }

  /* фото-вырезки десктопной раскладки на мобильных не показываем */
  .hero-photo { display: none; }

  .hero-strip {
    display: block;
    width: 100%;
    overflow: hidden;
    padding-block: 8px 34px;            /* место под тень кадров */
    margin-bottom: 24px;
  }
  .hero-strip__track {
    display: flex;
    align-items: center;                /* кадры разной высоты — по одной линии */
    width: max-content;
    will-change: transform;
    /* Ленту двигает js: автобег + перетаскивание. pan-y оставляет
       вертикальный скролл страницы браузеру, горизонтальные жесты
       забираем себе — поэтому страница не «дёргается» вбок. */
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
  }
  .hero-strip__track.is--dragging { cursor: grabbing; }

  .hero-strip__item {
    flex: 0 0 auto;
    display: block;
    /* 60% ширины экрана — кадр заметно уже, чем в первой версии;
       на широких окнах упирается в высоту, чтобы лента не растягивала секцию */
    width: min(60vw, 33vh);
    margin-right: 7vw;                  /* воздух между кадрами */
    padding: 0;
    border: 0;
    appearance: none;
    -webkit-appearance: none;
    overflow: hidden;
    cursor: zoom-in;
    /* размытая подложка 28px приходит прямо в style="…" и мгновенно
       занимает место кадра, пока грузится сам файл */
    background-color: #ece9e3;
    background-size: cover;
    background-position: 50% 35%;
    background-repeat: no-repeat;
    box-shadow: 0 12px 26px rgba(22, 36, 58, .14);
  }
  .hero-strip__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  .hero-strip__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 35%;
    pointer-events: none;               /* жест считаем на самой ленте */
    -webkit-user-drag: none;
  }
  /* кадр проявляется поверх подложки, а не «выскакивает» пустым */
  .js .hero-strip__item img { opacity: 0; transition: opacity .5s ease; }
  .js .hero-strip__item img.is-loaded { opacity: 1; }

  /* заголовок снова по центру на белом фоне (как на десктопе) */
  .is--hero .h1-hero { font-size: clamp(30px, 8vw, 52px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo { animation: none; opacity: 1; translate: none; scale: none; }
  .js .hero-strip__item img { opacity: 1; transition: none; }
}

/* ============================== Лайтбокс =============================
   Полноэкранный просмотр фотографий: лента в мобильном hero и галереи
   на страницах экскурсий. Разметку собирает js/landing.js и показывает
   через <dialog>.showModal() — поэтому Esc, фокус и подложка работают
   сами, а стрелки ‹ › и свайп переключают кадры. */
html.is--locked { overflow: hidden; }

dialog.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  /* 100dvh — видимая высота на мобильных: с 100% кадр уезжал за нижний
     край, потому что layout-viewport выше экрана с адресной строкой */
  height: 100dvh;
  max-height: none;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
}
dialog.lightbox::backdrop { background: rgba(8, 11, 16, .95); }

.lightbox__stage {
  position: absolute;
  inset: 0;
  margin: 0;
  /* flex, а не grid: у grid-элемента max-height: 100% считается от
     auto-трека (он равен высоте фото), поэтому кадр вырастал больше
     экрана. Во flex процент считается от высоты сцены — фото всегда
     вписывается в экран за вычетом отступов. */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3.4vh, 52px) clamp(58px, 8vw, 120px);
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity .35s var(--ease-out-quad);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .55);
}
.lightbox__img.is--ready { opacity: 1; }

.lightbox__bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: calc(14px + env(safe-area-inset-top, 0px)) clamp(14px, 2.4vw, 28px) 14px;
  pointer-events: none;
}
.lightbox__count {
  font-size: .78em;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}
.lightbox__close,
.lightbox__nav {
  pointer-events: auto;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  transition: background .3s var(--ease-out-quad), border-color .3s var(--ease-out-quad);
}
.lightbox__close { width: 44px; height: 44px; }
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .5); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
}
.lightbox__nav.is--prev { left: clamp(8px, 1.6vw, 22px); }
.lightbox__nav.is--next { right: clamp(8px, 1.6vw, 22px); }
.lightbox__nav[hidden] { display: none; }

@media (max-width: 640px) {
  .lightbox__stage { padding: calc(70px + env(safe-area-inset-top, 0px)) 12px calc(70px + env(safe-area-inset-bottom, 0px)); }
  /* Navigation stays vertically centred on every screen. */
  .lightbox__nav {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(8, 11, 16, .55);
  }
  .lightbox__nav.is--prev { left: 14px; }
  .lightbox__nav.is--next { right: 14px; }
  .lightbox__img { box-shadow: none; }
}

/* Опционально: тёмная версия hero (раскомментировать при желании):
.is--hero { --hero-bg: #16243A; --hero-ink: #F2EDE4; --hero-gold: #E5AD26; }
.is--hero .outer-word.is--sub { color: rgba(242, 237, 228, .65); }
.hero-photo { box-shadow: 0 22px 50px rgba(0, 0, 0, .35); background: #24365a; }
*/

/* Contact invitation: desktop split layout, stacked on mobile. */
/* Секция контакта (во всю ширину) */
.is--contact .contact-invite {
  display: flex;
  flex-direction: column;
  background: var(--navy);
  background: linear-gradient(150deg, #182840 0%, #0e1724 100%);
  color: #fff;
  padding: clamp(3em, 5.5vw, 5em) clamp(2.5em, 5vw, 5em);
  border-radius: 4px;
  border: 1px solid rgba(229, 173, 38, .18);
  box-shadow: 0 12px 36px rgba(14, 24, 38, .16);
  width: 100%;
}
.contact-invite .eyebrow { color: #e5bd65; font-size: max(12px, .82em); letter-spacing: .2em; font-weight: 500; }
.contact-invite h2 {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(2.8em, 5vw, 4.6em);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: .4em 0 .35em;
  color: #fff;
}
.contact-invite h2 em {
  font-weight: 300;
  color: #e5bd65;
  font-style: italic;
}
.contact-invite__lead {
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1.15em, 1.8vw, 1.35em);
  line-height: 1.6;
  max-width: 48ch;
  margin-bottom: 2.4em;
  font-weight: 300;
}
.contact-invite__how {
  padding: 1.6em 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  margin-bottom: 2.2em;
}
.contact-invite__how-label {
  display: block;
  font-size: .8em;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: #e5bd65;
  margin-bottom: .45em;
  font-weight: 500;
}
.contact-invite__how-text {
  font-family: var(--font-head);
  font-size: clamp(1.5em, 2.5vw, 2.1em);
  line-height: 1.3;
  color: #fff;
  font-weight: 400;
  letter-spacing: .01em;
  margin: 0;
}
.contact-invite__action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .9em;
}
.contact-invite__action .btn001 {
  align-self: flex-start;
  font-size: 15px;
  padding: 1.3em 2.2em;
}
.contact-invite__note {
  color: rgba(255, 255, 255, .65);
  font-size: .85em;
  line-height: 1.5;
  margin: 0;
}
@media screen and (max-width: 767px) {
  .is--contact .contact-invite {
    padding: 2.2em 1.5em;
  }
  .contact-invite h2 { font-size: clamp(2.2em, 8vw, 3em); }
  .contact-invite__signature { margin-top: 1.8em; }
  .contact-invite__action {
    width: 100%;
  }
  .contact-invite__action .btn001 {
    width: 100%;
  }
}

/* Navigation and secondary type: keep headings and body copy unchanged. */
.nav-cta .btn001 { font-size: .82em; font-weight: 500; letter-spacing: .07em; line-height: 1.2; padding: 1.1em 1.6em; }
.burger { width: 44px; height: 44px; padding: 9px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.burger-lines { display: flex; width: 26px; height: 20px; flex-direction: column; justify-content: space-between; }
.burger-lines > span { display: block; width: 100%; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; transform-origin: center; }
.burger[data-nav="open"] .burger-lines > span:nth-child(1) { transform: translateY(9.25px) rotate(45deg); }
.burger[data-nav="open"] .burger-lines > span:nth-child(2) { opacity: 0; }
.burger[data-nav="open"] .burger-lines > span:nth-child(3) { transform: translateY(-9.25px) rotate(-45deg); }
.burger:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
@media screen and (max-width: 991px) {
  .nav-logo__name { font-size: clamp(22px, 3vw, 26px); line-height: 1.08; letter-spacing: 0; }
  .nav-logo__tag { font-size: 10px; line-height: 1.4; letter-spacing: .16em; margin-top: 3px; }
  .nav-cta { gap: 0; }
}
@media screen and (max-width: 767px) {
  .nav-logo__name { font-size: clamp(21px, 5.6vw, 25px); }
  .btn001, .btn001.is--big { font-size: .82em; letter-spacing: .07em; line-height: 1.25; }
  .btn001.js-book-open {
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: .08em !important;
    padding: 1.15em 1.7em !important;
    min-height: 52px !important;
    box-sizing: border-box !important;
  }
  .btn001.js-book-open .btn001__circle {
    width: 30px !important;
    height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }
  .btn001.js-book-open .btn001__circle svg,
  .btn001.js-book-open .btn001__arrow {
    width: 24px !important;
    height: 24px !important;
    stroke-width: 2.2 !important;
  }
  .eyebrow, .angebote-card__index, .angebote-card__meta,
  .footer-tag, .footer-col h4, .mobile-wrapper__lower .label,
  .contact-invite__label, .contact-invite__facts dt,
  .contact-invite__signature > span { font-size: max(11px, .78em); letter-spacing: .1em; }
  .contact-invite__note { font-size: max(12px, .8em); }
  .is--tour-details .det-card b, .is--tour-related .rel-card__meta, .tour-hero .tour-price__unit { font-size: max(11px, .76em); letter-spacing: .1em; }
}
@media (prefers-reduced-motion: reduce) { .burger-lines > span { transition: none; } }

@media (max-width: 767px) {
  .hero-strip, .hero-strip__track { touch-action: pan-y pinch-zoom; }
  .hero-strip.is--dragging .hero-strip__track { cursor: grabbing; }
}
.lightbox__close:focus-visible, .lightbox__nav:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
