/* =====================================================================
   Photo Tours — авторские путешествия
   Общие стили для всех страниц. Мобильная версия — основная,
   планшет и десктоп добавляются через min-width.
   ===================================================================== */

:root {
  /* Палитра бренда */
  --sky:   #A9C9D8;   /* голубой — главный цвет бренда */
  --sand:  #D9C2A0;   /* песочный */
  --milk:  #F6F3ED;   /* молочный — основной фон */
  --slate: #526B78;   /* сине-серый — заголовки, кнопки */
  --terra: #9A5B40;   /* терракотовый — акценты (затемнён для читаемости, контраст 4.8:1) */

  --ink:   #2F3C45;   /* основной текст */
  --muted: #5C6870;   /* второстепенный текст (контраст 5:1) */
  --paper: #FBF9F5;   /* карточки */
  --line:  rgba(82, 107, 120, .16);
  --sand-soft: #EFE5D6;

  /* Шрифты */
  --f-display: "Forum", "Times New Roman", serif;          /* заголовки */
  --f-accent:  "Bona Nova", Georgia, serif;               /* курсивные акценты */
  --f-body:    "Ysabeau Office", "Segoe UI", Roboto, sans-serif; /* текст и интерфейс */

  /* Ритм */
  --gutter: 20px;
  --max: 1320px;
  --section: clamp(88px, 14vw, 180px);
  --radius: 4px;
  --radius-lg: 18px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 68px;
}

@media (min-width: 768px) { :root { --gutter: 40px; --header-h: 84px; } }
@media (min-width: 1200px) { :root { --gutter: 64px; } }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--milk);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px) { body { font-size: 18px; } }

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * .6) 0; }

/* ---------- Типографика ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--slate);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.75rem, 10vw, 6.5rem); }
h2 { font-size: clamp(2.25rem, 6.5vw, 4.25rem); }
h3 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); line-height: 1.15; }

/* курсивный акцент внутри заголовков: <em>…</em> */
h1 em, h2 em, h3 em, .accent {
  font-family: var(--f-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 22px;
}
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); line-height: 1.6; color: var(--ink); max-width: 36em; }
.muted { color: var(--muted); }

.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 7vw, 80px); }
.section-head p { max-width: 34em; color: var(--muted); margin: 0; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 64px; }
}

/* ---------- Кнопки и ссылки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 30px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
  white-space: nowrap;
}
.btn--solid { background: var(--slate); color: var(--milk); }
.btn--solid:hover { background: #435a66; }
.btn--ghost { border: 1px solid currentColor; }
.btn--ghost:hover { background: var(--slate); border-color: var(--slate); color: var(--milk); }
.btn--light { background: var(--milk); color: var(--slate); }
.btn--light:hover { background: #fff; }
.btn--ghost-light { border: 1px solid rgba(246, 243, 237, .7); color: var(--milk); }
.btn--ghost-light:hover { background: var(--milk); color: var(--slate); border-color: var(--milk); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--slate);
}
.link-arrow::after {
  content: ""; width: 36px; height: 1px; background: currentColor;
  transition: width .5s var(--ease);
}
.link-arrow:hover::after { width: 56px; }

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  color: var(--slate);
  background: rgba(246, 243, 237, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--f-display); font-size: 22px; letter-spacing: .04em; }
.logo__tag { font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; margin-top: 6px; }
@media (min-width: 768px) { .logo__name { font-size: 26px; } }

.nav { display: none; }
.nav a {
  position: relative; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header__cta { display: none; }

@media (min-width: 1024px) {
  .nav { display: flex; gap: 40px; }
  .header__cta { display: inline-flex; min-height: 46px; padding: 0 24px; }
  .burger { display: none; }
}

/* прозрачная шапка поверх первого экрана на главной */
.header--over { background: transparent; border-color: transparent; color: var(--milk); backdrop-filter: none; -webkit-backdrop-filter: none; }
.header--over .header__cta { border-color: rgba(246, 243, 237, .7); color: var(--milk); }
.header--over .header__cta:hover { background: var(--milk); color: var(--slate); }
.header.is-hidden { transform: translateY(-100%); }

.burger { width: 44px; height: 44px; margin-right: -10px; display: grid; place-content: center; gap: 7px; }
@media (min-width: 1024px) { .burger { display: none; } }
.burger span { display: block; width: 26px; height: 1px; background: currentColor; transition: transform .4s var(--ease), opacity .3s; }
.menu-open .burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* мобильное меню */
.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--milk); color: var(--slate);
  padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.mobile-menu nav { display: grid; gap: 6px; }
.mobile-menu nav a { font-family: var(--f-display); font-size: 40px; line-height: 1.25; }
.mobile-menu__foot { display: grid; gap: 14px; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open .header { background: var(--milk); color: var(--slate); border-color: var(--line); }
.menu-open { overflow: hidden; }

/* ---------- Первый экран (hero) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--milk); overflow: hidden; isolation: isolate;
  background: var(--slate);
}
.hero__media, .hero__media picture, .hero__media img, .hero__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero__media video { opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__media video.is-playing { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(40, 55, 64, .45) 0%, rgba(40, 55, 64, 0) 26%),
    linear-gradient(0deg, rgba(36, 48, 56, .72) 0%, rgba(36, 48, 56, .25) 45%, rgba(36, 48, 56, 0) 70%);
}
.hero__content { width: 100%; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(36px, 7vw, 72px); }
.hero .eyebrow { color: var(--milk); opacity: .9; }
.hero h1 { color: var(--milk); max-width: 11em; }
.hero__lead { max-width: 30em; margin: 26px 0 36px; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: rgba(246, 243, 237, .9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn { flex: 1 1 200px; }
@media (min-width: 600px) { .hero__actions .btn { flex: 0 0 auto; } }

.hero__next {
  display: flex; gap: 16px; align-items: center; justify-content: space-between;
  margin-top: clamp(40px, 7vw, 72px); padding-top: 20px;
  border-top: 1px solid rgba(246, 243, 237, .3);
  font-size: 14px;
}
.hero__next small { display: block; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; opacity: .7; margin-bottom: 4px; }
.hero__next strong { font-family: var(--f-display); font-weight: 400; font-size: 20px; }
.hero__next .link-arrow { color: var(--milk); flex-shrink: 0; }
.hero__next .link-arrow::after { width: 24px; }

/* ---------- Цифры ---------- */
.stats { display: grid; }
.stat { display: grid; grid-template-columns: 116px 1fr; gap: 20px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); }
.stat:last-child { border-bottom: 1px solid var(--line); }
.stat__num { font-family: var(--f-display); font-size: clamp(3rem, 9vw, 4.75rem); line-height: 1; color: var(--slate); white-space: nowrap; }
.stat__num sup { font-size: .45em; vertical-align: top; position: relative; top: .25em; margin-left: 2px; color: var(--terra); }
.stat__label { font-size: 15px; color: var(--muted); max-width: 16em; line-height: 1.45; }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .stats--5 { grid-template-columns: repeat(5, 1fr); gap: 28px; }
  .stats--5 .stat__num { font-size: clamp(2.6rem, 4.4vw, 4rem); }
  .stats--5 .stat__num--word { font-size: clamp(2rem, 3vw, 2.8rem); }
  .stats--5 .stat { align-content: start; align-items: start; }
  .stats--5 .stat__num { min-height: 1.1em; display: flex; align-items: flex-end; }
  .stats--5 .stat__num sup { align-self: flex-start; top: .1em; }
  .stat { grid-template-columns: 1fr; gap: 14px; padding: 32px 0 0; border-bottom: 0 !important; }
}

/* ---------- Обо мне (тизер) ---------- */
.about-teaser { display: grid; gap: 48px; align-items: center; }
.about-teaser__photo { position: relative; }
.about-teaser__photo .frame { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand-soft); }
.about-teaser__photo img { width: 100%; height: 100%; object-fit: cover; }
.about-teaser__text h2 { margin-bottom: 28px; }
.about-teaser__text .link-arrow { margin-top: 18px; }
@media (min-width: 900px) {
  .about-teaser { grid-template-columns: 5fr 6fr; gap: clamp(64px, 8vw, 128px); }
}

/* ---------- Принципы ---------- */
.principles { display: grid; gap: 0; border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 48px 1fr; gap: 8px 16px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.principle__num { font-family: var(--f-accent); font-style: italic; color: var(--terra); font-size: 20px; line-height: 1.5; }
.principle h3 { font-size: 1.6rem; margin-bottom: 8px; }
.principle p { margin: 0; color: var(--muted); }
@media (min-width: 900px) {
  .principles { grid-template-columns: 1fr 1fr; column-gap: 64px; border-top: 0; }
  .principle { border-top: 1px solid var(--line); border-bottom: 0; padding: 40px 0; }
}

/* ---------- Карточки туров ---------- */
.tour-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px;
  scroll-padding: 0 var(--gutter); scrollbar-width: none;
}
.tour-rail::-webkit-scrollbar { display: none; }
.tour-rail > * { scroll-snap-align: start; }
@media (min-width: 600px) { .tour-rail { grid-auto-columns: 46%; } }
@media (min-width: 1024px) {
  .tour-rail { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); grid-auto-columns: auto; gap: 56px 40px; overflow: visible; margin: 0; padding: 0; }
  .tour-rail > :nth-child(even) { margin-top: 96px; }
}

.tour-card { display: block; color: var(--ink); }
.tour-card__media {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--sand-soft);
}
.tour-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tour-card:hover .tour-card__media img { transform: scale(1.04); }
.tour-card__badges { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: .08em;
  background: rgba(246, 243, 237, .92); color: var(--slate);
}
.chip--terra { background: var(--terra); color: var(--milk); }
.tour-card__body { padding: 22px 4px 0; }
.tour-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tour-card__meta span + span::before { content: "·"; margin-right: 14px; color: var(--terra); }
.tour-card h3 { margin: 12px 0 6px; }
.tour-card__sub { color: var(--muted); margin: 0; }
.tour-card__price { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.tour-card__price b { font-family: var(--f-display); font-weight: 400; font-size: 22px; color: var(--slate); }
.price-soon { white-space: nowrap; font-family: var(--f-accent); font-style: italic; color: var(--muted); font-size: 17px; }

/* ---------- Календарь поездок ---------- */
.calendar { border-top: 1px solid var(--line); }
.calendar__row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 4px 16px; align-items: center;
  grid-template-areas: "date title arrow" "date info arrow";
  padding: 22px 0; border-bottom: 1px solid var(--line);
  transition: background-color .5s var(--ease), padding .5s var(--ease);
}
.calendar__date { grid-area: date; font-family: var(--f-display); font-size: 30px; line-height: 1; color: var(--slate); }
.calendar__date small { display: block; font-family: var(--f-body); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--terra); margin-top: 6px; }
.calendar__title { grid-area: title; font-family: var(--f-display); font-size: 22px; line-height: 1.2; color: var(--ink); }
.calendar__info { grid-area: info; font-size: 14px; color: var(--muted); }
.calendar__arrow { grid-area: arrow; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--slate); transition: background-color .4s, color .4s; }
.calendar__row:hover .calendar__arrow { background: var(--slate); color: var(--milk); border-color: var(--slate); }
@media (min-width: 900px) {
  .calendar__row { grid-template-columns: 120px 1.2fr 1fr auto; grid-template-areas: "date title info arrow"; padding: 28px 0; }
  .calendar__row:hover { padding-left: 16px; padding-right: 16px; background: var(--paper); }
  .calendar__date { font-size: 38px; }
  .calendar__title { font-size: 28px; }
  .calendar__info { font-size: 15px; }
}

/* ---------- Отзывы (скриншоты) ---------- */
.review-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 68%;
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px;
  scroll-padding: 0 var(--gutter); scrollbar-width: none;
}
.review-rail::-webkit-scrollbar { display: none; }
.review-rail > * { scroll-snap-align: start; }
@media (min-width: 600px) { .review-rail { grid-auto-columns: 40%; } }
@media (min-width: 1024px) { .review-rail { grid-auto-columns: calc((100% - 48px) / 4); margin: 0; padding: 0 0 8px; } }

.review-card { display: grid; gap: 14px; }
.review-card__shot {
  aspect-ratio: 9 / 16; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--paper); border: 1px solid var(--line);
  position: relative;
}
.review-card__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.review-card__caption { font-size: 14px; color: var(--muted); }
.review-card__caption b { display: block; font-weight: 500; color: var(--ink); font-size: 15px; }

/* заглушка скриншота — схематичная переписка без текста */
.shot-placeholder { position: absolute; inset: 0; padding: 22px 16px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, #EEF3F5, var(--paper)); }
.shot-placeholder i { display: block; height: 34px; border-radius: 16px; background: #fff; width: 72%; box-shadow: 0 1px 0 rgba(82,107,120,.06); }
.shot-placeholder i:nth-child(2n) { align-self: flex-end; background: var(--sky); opacity: .55; width: 58%; }
.shot-placeholder i:nth-child(3) { height: 64px; width: 80%; }
.shot-placeholder span { margin-top: auto; text-align: center; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.play-mark { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(246,243,237,.92); display: grid; place-items: center; color: var(--slate); }

/* ---------- Цитата / разделитель ---------- */
.quote { text-align: center; max-width: 900px; margin: 0 auto; }
.quote p { font-family: var(--f-accent); font-style: italic; font-size: clamp(1.7rem, 4.6vw, 3rem); line-height: 1.3; color: var(--slate); margin: 0; }
.quote cite { display: block; margin-top: 28px; font-style: normal; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--terra); }

/* ---------- Полноширинное фото ---------- */
.wide-photo { position: relative; height: 72vh; min-height: 420px; overflow: hidden; }
.wide-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Форма ---------- */
.cta { background: var(--slate); color: var(--milk); border-radius: 0; }
.cta h2 { color: var(--milk); }
.cta .eyebrow { color: var(--sand); }
.cta__grid { display: grid; gap: 48px; }
.cta__text p { color: rgba(246, 243, 237, .82); max-width: 28em; }
@media (min-width: 900px) { .cta__grid { grid-template-columns: 1fr 1fr; gap: 96px; align-items: end; } }

.form { display: grid; gap: 22px; }
.field { position: relative; display: grid; gap: 8px; }
.field label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 56px; padding: 14px 0;
  font: inherit; font-size: 18px; color: inherit;
  background: transparent; border: 0; border-bottom: 1px solid currentColor; border-radius: 0;
  outline: none; transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: inherit; opacity: .45; }
.field input:focus { border-bottom-color: var(--sand); }
.field.is-invalid input { border-bottom-color: #E8A58A; }
.field__error { font-size: 13px; color: #F2B9A2; min-height: 0; }
.form--light .field.is-invalid input { border-bottom-color: var(--terra); }
.form--light .field__error { color: var(--terra); }
.field input:focus-visible { outline: none; }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check input { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin: 0; border: 1px solid currentColor; border-radius: 6px; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--sand); border-color: var(--sand); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: solid var(--slate); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.check.is-invalid input { border-color: #E8A58A; }
.form--light .check.is-invalid input { border-color: var(--terra); }

.form__success { display: none; padding: 28px 0; }
.form__success h3 { color: inherit; margin-bottom: 10px; }
.form.is-sent > :not(.form__success) { display: none; }
.form.is-sent .form__success { display: block; }
.form__alt { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Подвал ---------- */
.footer { padding: 72px 0 36px; background: var(--milk); border-top: 1px solid var(--line); }
.footer__grid { display: grid; gap: 40px; }
.footer__title { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--terra); margin-bottom: 16px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a:hover { color: var(--slate); text-decoration: underline; text-underline-offset: 4px; }
.footer__bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: 13px; color: var(--muted); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
.no-js .reveal { opacity: 1; transform: none; }

/* мягкое появление героя при загрузке */
.hero .reveal { transition-duration: 1.6s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* мелкие уточнения для узких экранов */
@media (max-width: 599px) {
  .tour-card__price .link-arrow { display: none; }
  .hero__next strong { display: block; }
}

/* =====================================================================
   ЭФФЕКТЫ
   ===================================================================== */

/* ---------- 1. Открывающая сцена первого экрана ---------- */
@keyframes heroZoom { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }

.js .hero__media { animation: heroZoom 9s cubic-bezier(.16,.7,.3,1) both, heroFade 1.6s ease both; }

.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .12em; margin: 0 -.04em -.12em; }
.hero h1 .w__i { display: inline-block; transform: translateY(108%); transition: transform 1.2s cubic-bezier(.19,1,.22,1); transition-delay: calc(var(--i) * 85ms + 150ms); }
.hero.is-ready h1 .w__i { transform: none; }
/* курсив проявляется слева направо, как будто его пишут */
.hero h1 .w--ink { overflow: visible; }
.hero h1 .w--ink .w__i { transform: none; clip-path: inset(-20% 102% -30% -5%); transition: clip-path 1.6s cubic-bezier(.65,0,.35,1); transition-delay: calc(var(--i) * 85ms + 350ms); }
.hero.is-ready h1 .w--ink .w__i { clip-path: inset(-20% -8% -30% -5%); }

.js .hero [data-intro] { opacity: 0; transform: translateY(18px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--n, 0) * 1ms); }
.hero.is-ready [data-intro] { opacity: 1; transform: none; }
.js .hero .hero__next { border-top-color: transparent; position: relative; }
.hero .hero__next::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: rgba(246,243,237,.35); transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.65,0,.35,1) 1.5s; }
.hero.is-ready .hero__next::before { transform: scaleX(1); }
.no-js .hero__next::before { transform: scaleX(1); }

/* ---------- 3. Счётчики ---------- */
.stat__num { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- 4. Шторка между страницами ---------- */
@keyframes curtainOut { from { transform: translateY(0); } to { transform: translateY(-101%); } }
@keyframes curtainIn  { from { transform: translateY(101%); } to { transform: translateY(0); } }
.js body::after {
  content: "Photo Tours";
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--milk); color: var(--slate);
  font-family: var(--f-display); font-size: clamp(26px, 5vw, 40px); letter-spacing: .06em;
  pointer-events: none;
  animation: curtainOut .9s cubic-bezier(.76,0,.24,1) .25s both;
}
.js.is-leaving body::after { animation: curtainIn .5s cubic-bezier(.76,0,.24,1) both; pointer-events: all; }

/* ---------- 5. Посадочные талоны ---------- */
.passes__rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(70vw, 268px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 10px var(--gutter) 24px; scroll-padding: 0 var(--gutter);
}
.passes__rail::-webkit-scrollbar { display: none; }
.passes__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; }
.passes__nav { display: none; gap: 10px; }
.passes__nav button:disabled { opacity: .35; cursor: default; }
@media (min-width: 900px) { .passes__nav { display: flex; } .passes__rail { grid-auto-columns: 280px; gap: 20px; } }

.pass { scroll-snap-align: start; perspective: 1200px; cursor: pointer; }
/* талон появляется снизу: сдвиг вбок расширял ленту и она «дёргалась» при прокрутке */
.pass.reveal { transform: translateY(24px); transition-delay: calc(var(--i) * 80ms); }
.pass.reveal.is-visible { transform: none; }
.pass__inner { display: grid; transition: transform .9s cubic-bezier(.3,.9,.3,1); transform-style: preserve-3d; }
.pass.is-flipped .pass__inner { transform: rotateY(180deg); }
@media (hover: hover) { .pass:not(.is-flipped):hover .pass__inner { transform: translateY(-5px) rotate(-.6deg); } }

.pass__face {
  grid-area: 1 / 1; position: relative; display: flex; flex-direction: column;
  background: var(--paper); border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(82,107,120,.08), 0 14px 32px -20px rgba(47,60,69,.35);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.pass__back { transform: rotateY(180deg); }

.pass__head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: var(--tint); color: var(--slate); font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.pass__mono { font-family: var(--f-display); font-size: 13px; letter-spacing: .06em; font-weight: 400; width: 28px; height: 28px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; }

.pass__main { padding: 16px 16px 10px; }
.pass__dest { font-family: var(--f-display); font-size: 23px; line-height: 1.1; color: var(--slate); text-wrap: balance; }
.pass__place { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.35; }

.pass__route { position: relative; display: flex; align-items: center; gap: 6px; margin: 14px 0 12px; height: 18px; }
.pass__dot { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--slate); flex: none; }
.pass__dot:last-child { background: var(--terra); border-color: var(--terra); }
.pass__line { flex: 1; height: 0; border-top: 1.5px dashed rgba(82,107,120,.4); }
.pass__plane { position: absolute; left: 4px; top: 50%; width: 20px; height: 16px; margin-top: -8px; color: var(--slate); transition: left 2.4s cubic-bezier(.45,.05,.25,1) .5s; }
.pass__plane svg { width: 100%; height: 100%; fill: currentColor; }
.pass__plane::before { content: ""; position: absolute; inset: 0 -3px; background: var(--paper); z-index: -1; }
.pass.is-boarded .pass__plane { left: calc(50% - 10px); }

.pass__grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin: 0; }
.pass__grid dt { font-size: 9.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.pass__grid dd { margin: 1px 0 0; font-family: var(--f-display); font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }

/* линия отрыва с полукруглыми вырезами */
.pass__tear { position: relative; height: 18px; margin: 0 -1px; }
.pass__tear::before { content: ""; position: absolute; left: 16px; right: 16px; top: 50%; border-top: 2px dotted rgba(82,107,120,.3); }
.pass__tear::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(circle at 0 50%, var(--milk) 8px, transparent 8.5px),
  radial-gradient(circle at 100% 50%, var(--milk) 8px, transparent 8.5px); }

.pass__stub { padding: 6px 16px 10px; display: grid; gap: 8px; margin-top: auto; }
.pass__stub-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; }
.pass__stub .price-soon { font-size: 15px; }
.pass__flight { font-family: var(--f-display); font-size: 15px; letter-spacing: .04em; color: var(--muted); }
.pass__barcode { width: 100%; height: 26px; fill: var(--ink); opacity: .78; }
.pass__flip { justify-self: center; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); padding: 6px 10px; border-radius: 999px; }
.pass__flip:hover { background: rgba(82,107,120,.08); }

.pass__photo { position: relative; flex: 1 1 auto; min-height: 120px; background: var(--sand-soft); }
.pass__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pass__photo .chip { position: absolute; top: 12px; left: 12px; }
.pass__back-body { padding: 14px 16px 10px; display: flex; flex-direction: column; flex: none; }
.pass__excerpt { font-size: 14px; line-height: 1.45; color: var(--muted); margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pass__actions { display: grid; gap: 6px; }
.pass__actions .btn { min-height: 44px; font-size: 12px; padding: 0 16px; }
.pass__links { display: flex; justify-content: space-between; align-items: center; }
.pass__links .link-arrow { font-size: 11px; }
.pass__links .link-arrow::after { width: 22px; }

.form__picked { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(246,243,237,.12); font-size: 15px; }
.form__picked button { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.form--light .form__picked { background: var(--sand-soft); }

/* ---------- 6. Мозаика «Моменты» и галерея ---------- */
.moments { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; gap: 10px; }
.moment { position: relative; overflow: hidden; border-radius: 12px; background: var(--sand-soft); cursor: zoom-in; }
.moment:nth-child(1) { grid-row: span 2; }
.moment:nth-child(6) { grid-column: span 2; }
.moment img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.moment:hover img { transform: scale(1.05); }
.moment__cap { position: absolute; left: 12px; bottom: 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--milk); text-shadow: 0 1px 10px rgba(0,0,0,.35); opacity: .95; }
@media (min-width: 900px) {
  .moments { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 17vw; gap: 16px; }
  .moment:nth-child(1) { grid-row: span 2; }
  .moment:nth-child(6) { grid-column: span 2; }
  .moment { border-radius: var(--radius-lg); }
}

.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(31, 41, 48, .96); color: var(--milk); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; transition: opacity .35s var(--ease); }
.lightbox.is-open { opacity: 1; }
.lightbox__top, .lightbox__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: max(12px, env(safe-area-inset-top)) var(--gutter) 12px; }
.lightbox__bottom { padding: 12px var(--gutter) max(16px, env(safe-area-inset-bottom)); }
.lightbox__count { font-size: 13px; letter-spacing: .2em; font-variant-numeric: tabular-nums; opacity: .8; }
.lightbox__caption { flex: 1; text-align: center; font-family: var(--f-accent); font-style: italic; font-size: 18px; }
.lightbox__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(246,243,237,.3); display: grid; place-items: center; font-size: 18px; transition: background-color .3s, color .3s; }
.lightbox__btn:hover { background: var(--milk); color: var(--slate); }
.lightbox__stage { position: relative; overflow: hidden; display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none; }
.lightbox__media { max-width: 100%; max-height: 100%; object-fit: contain; will-change: transform; -webkit-user-drag: none; }
img.lightbox__media { cursor: zoom-in; }
.lb-open { overflow: hidden; }

/* ---------- Без анимации, если она отключена в настройках ---------- */
@media (prefers-reduced-motion: reduce) {
  .js body::after { display: none; }
  .js .hero__media { animation: none; }
  .js .hero [data-intro] { opacity: 1; transform: none; }
  .pass.reveal { transform: none; }
  .pass__plane { left: calc(50% - 10px); }
}
.moment::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(0deg, rgba(36,48,56,.5), rgba(36,48,56,0)); pointer-events: none; }
.moment__cap { z-index: 1; }
/* талоны одной высоты, даже если название в две строки */
.pass { display: grid; }
.pass__inner { height: 100%; }

/* ---------- Кнопки внизу экрана на телефоне ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr auto; gap: 10px;
  padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom));
  background: rgba(246, 243, 237, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .5s var(--ease);
}
.sticky-cta.is-shown { transform: none; }
.sticky-cta .btn { min-height: 48px; }
.sticky-cta__msg { color: var(--slate); padding: 0 22px; }
@media (min-width: 1024px) { .sticky-cta { display: none; } }
.lb-open .sticky-cta, .menu-open .sticky-cta { transform: translateY(110%); }

.form__or { margin: 0; text-align: center; font-size: 14px; opacity: .85; }
.form__or a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 7. Табло вылетов ---------- */
.board {
  --board-bg: #26323A; --board-tile: #33424B; --board-text: #F3E6C9; --board-dim: #C9B98F;
  background: var(--board-bg); color: var(--board-text);
  border-radius: 18px; padding: 16px 14px 10px; margin-bottom: 28px;
  box-shadow: 0 20px 40px -28px rgba(31,41,48,.7);
}
.board__head { display: flex; gap: 14px; padding: 0 4px 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--board-dim); }
.board__head span:first-child { width: calc(5 * 1.15em + 4 * 2px); flex: none; font-size: 10.5px; }
.board__row {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 6px 4px; border-top: 1px solid rgba(255,255,255,.06); color: inherit; text-align: left;
  border-radius: 8px; transition: background-color .3s;
}
.board__row:hover, .board__row:focus-visible { background: rgba(255,255,255,.05); }
.board__cells { display: flex; gap: 2px; align-items: center; font-size: clamp(12px, 3.6vw, 17px); }
.board__cells i { width: 10px; flex: none; }
.flap {
  width: 1.15em; height: 1.6em; display: grid; place-items: center; position: relative; overflow: hidden;
  background: var(--board-tile); border-radius: 3px;
  font-family: "Courier New", ui-monospace, monospace; font-weight: 700; line-height: 1;
}
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.45); }
.flap.is-flip { animation: flapFlip .08s linear; }
@keyframes flapFlip { 50% { transform: scaleY(.15); } }
.board__go { color: var(--board-dim); font-size: 18px; opacity: .7; transition: transform .3s var(--ease), opacity .3s; }
.board__row:hover .board__go { transform: translateX(4px); opacity: 1; }
@media (min-width: 900px) { .board { padding: 22px 24px 14px; } .board__cells { font-size: 19px; } }

/* талон, найденный по табло, мягко подсвечивается */
@keyframes passCalled { 0%, 100% { transform: none; } 30% { transform: translateY(-10px); } }
.pass.is-called .pass__inner { animation: passCalled 1s var(--ease); }
.pass.is-called .pass__front { box-shadow: 0 0 0 2px var(--terra), 0 14px 32px -20px rgba(47,60,69,.35); }

/* ---------- 8. Текст проявляется при чтении ---------- */
[data-read-reveal] .rr { opacity: .16; transition: opacity .35s linear; }
[data-read-reveal] .rr.on { opacity: 1; }

/* ---------- 9. Самолётик — прогресс чтения ---------- */
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; opacity: 0; transition: opacity .4s; pointer-events: none; }
.read-progress.is-on { opacity: 1; }
.header--over .read-progress { opacity: 0; }
.read-progress__fill { position: absolute; inset: 0; background: var(--terra); transform-origin: left; transform: scaleX(0); }
.read-progress__plane { position: absolute; top: -9px; left: 0; width: 22px; height: 18px; color: var(--terra); }
.read-progress__plane svg { width: 100%; height: 100%; fill: currentColor; }

/* ---------- 10. Маршрут по дням ---------- */
.route { position: relative; list-style: none; margin: 0; padding: 0; }
.route__svg { position: absolute; left: 0; top: 0; width: 48px; overflow: visible; pointer-events: none; }
.route__track { fill: none; stroke: rgba(82,107,120,.25); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.route__line { fill: none; stroke: var(--terra); stroke-width: 2.5; stroke-linecap: round; }
.route__day { position: relative; padding: 0 0 36px 64px; }
.route__day:last-child { padding-bottom: 0; }
.route__dot { position: absolute; left: calc(6px + var(--dx, 0px)); top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--slate); transition: background-color .5s, border-color .5s, transform .5s var(--ease); z-index: 1; }
.route__day.is-on .route__dot { background: var(--terra); border-color: var(--terra); transform: scale(1.15); }
.route__label { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--terra); }
.route__title { font-family: var(--f-display); font-size: clamp(1.4rem, 3.4vw, 1.8rem); color: var(--slate); margin: 4px 0 8px; line-height: 1.15; }
.route__text { color: var(--muted); margin: 0; max-width: 36em; }
.route__day > :not(.route__dot) { transition: opacity .6s var(--ease); }
.js .route__day:not(.is-on) > :not(.route__dot) { opacity: .72; }

@media (prefers-reduced-motion: reduce) {
  .flap.is-flip { animation: none; }
  [data-read-reveal] .rr { opacity: 1; }
  .pass.is-called .pass__inner { animation: none; }
}
@media (min-width: 900px) { .board { max-width: 640px; } }

/* транспорт на табло и талоне */
.board__head span:first-child { width: auto; min-width: calc(5 * 1.15em + 4 * 2px + 10px); }
.board__tr { width: 22px; height: 18px; color: var(--board-dim); flex: none; opacity: .85; transition: transform .3s var(--ease); }
.board__tr svg { width: 100%; height: 100%; fill: currentColor; }
.board__row:hover .board__tr { transform: translateX(4px); }
.pass__how { display: flex; align-items: center; gap: 6px; margin: -4px 0 12px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.pass__how-ico { width: 16px; height: 13px; flex: none; color: var(--slate); }
.pass__how-ico svg { width: 100%; height: 100%; fill: currentColor; }

/* =====================================================================
   СТРАНИЦА ТУРА
   ===================================================================== */
.tour-hero { min-height: 92svh; }
.tour-hero h1 { font-size: clamp(2.6rem, 9vw, 5.6rem); max-width: 12em; }
.crumbs { display: flex; gap: 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(246,243,237,.8); margin-bottom: 18px; }
.crumbs a:hover { color: var(--milk); text-decoration: underline; text-underline-offset: 4px; }
.tour-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tour-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: -12px 0 30px; font-size: 15px; color: rgba(246,243,237,.9); }
.tour-hero__meta > span + span::before { content: "·"; margin-right: 18px; color: var(--sand); }
.tour-hero__tr { display: inline-flex; align-items: center; gap: 8px; }
.tour-hero__tr svg { width: 20px; height: 16px; fill: currentColor; flex: none; }

/* главные цифры */
.tfacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.tfacts__item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.tfacts__item:nth-child(odd) { padding-right: 12px; }
.tfacts dt { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.tfacts dd { margin: 6px 0 0; font-family: var(--f-display); font-size: clamp(1.5rem, 4.4vw, 2.1rem); color: var(--slate); line-height: 1.1; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .tfacts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } .tfacts__item { padding: 24px 16px 24px 0; } }

/* о поездке */
.tour-intro { display: grid; gap: 36px; }
.tour-intro__lead { font-family: var(--f-display); font-size: clamp(1.6rem, 4.6vw, 2.5rem); line-height: 1.25; color: var(--slate); margin: 0; text-wrap: balance; }
.tour-intro__note { margin: 22px 0 0; font-family: var(--f-accent); font-style: italic; font-size: 1.15rem; color: var(--terra); }
.highlights { display: grid; gap: 0; border-top: 1px solid var(--line); }
.highlights li { position: relative; padding: 16px 0 16px 30px; border-bottom: 1px solid var(--line); }
.highlights li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 9px; height: 9px; border-radius: 50%; background: var(--terra); }
@media (min-width: 900px) { .tour-intro { grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: start; } }

/* галерея-слайдер */
.trail-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.trail-head .passes__nav { display: none !important; }
@media (min-width: 900px) { .trail-head .passes__nav { display: flex !important; } }
.trail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 340px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth;
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scroll-padding: 0 var(--gutter);
}
.trail::-webkit-scrollbar { display: none; }
.trail__item { position: relative; scroll-snap-align: start; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand-soft); cursor: zoom-in; padding: 0; border: 0; }
.trail__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.trail__item:hover img { transform: scale(1.04); }
.trail__item::after { content: ""; position: absolute; inset: 60% 0 0; background: linear-gradient(0deg, rgba(36,48,56,.55), rgba(36,48,56,0)); }
.trail__cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; color: var(--milk); font-size: 13px; letter-spacing: .08em; text-align: left; }

.tour-video { border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); aspect-ratio: 16 / 9; }
.tour-video video { width: 100%; height: 100%; object-fit: cover; }

/* две колонки: заголовок сбоку, содержимое справа */
.tour-cols { display: grid; gap: 36px; }
@media (min-width: 900px) {
  .tour-cols { grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
  .tour-cols__side { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* пункты дня в программе */
.route__items { display: grid; gap: 10px; margin-top: 6px; }
.route__items li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; color: var(--muted); line-height: 1.55; }
.route__time { font-family: var(--f-display); font-size: 17px; color: var(--ink); white-space: nowrap; }

/* что входит */
.incl-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .incl-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.incl-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 22px; }
.incl-card h3 { font-size: 1.6rem; margin-bottom: 16px; }
.incl-card--muted { background: transparent; }
.incl { display: grid; gap: 12px; }
.incl li { position: relative; padding-left: 30px; line-height: 1.5; }
.incl li::before { position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; }
.incl--yes li::before { content: "✓"; background: var(--slate); color: var(--milk); }
.incl--no li { color: var(--muted); }
.incl--no li::before { content: "+"; border: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* жильё */
.hotel-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 52vw; gap: 10px; }
.hotel-grid .moment:first-child:nth-last-child(odd) { grid-column: span 2; }
@media (min-width: 900px) { .hotel-grid { grid-auto-rows: 22vw; gap: 16px; } }
.hotel-grid .moment { border-radius: var(--radius-lg); }

/* итог в форме брони */
.cta__sum { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 32px; margin: 28px 0; }
.cta__sum dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--sand); }
.cta__sum dd { margin: 4px 0 0; font-family: var(--f-display); font-size: 24px; color: var(--milk); }
.cta a { text-decoration: underline; text-underline-offset: 3px; }
.cta .btn { text-decoration: none; }
@media (max-width: 480px) { .cta__sum { grid-template-columns: 1fr 1fr; } }

/* «ещё поездки» — три карточки в ряд на компьютере */
@media (min-width: 1024px) {
  .tour-rail--three { grid-template-columns: repeat(3, 1fr); }
  .tour-rail--three > :nth-child(even) { margin-top: 0; }
}
.tfacts__item:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .tfacts__item:first-child { grid-column: auto; } }
.hotel-grid .moment:nth-child(n) { grid-row: auto; grid-column: auto; }
.hotel-grid .moment:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.cta__sum > div:last-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .cta__sum > div:last-child { grid-column: auto; } }
.route__text + .route__text { margin-top: 10px; }
/* пункты дня без времени — списком с точками */
.route__items li.no-time { grid-template-columns: 14px 1fr; gap: 10px; }
.route__items li.no-time::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--terra); margin-top: .7em; }

/* =====================================================================
   ВНУТРЕННИЕ СТРАНИЦЫ: каталог, отзывы, обо мне, контакты, документы
   ===================================================================== */
.page-head { padding: calc(var(--header-h) + clamp(48px, 9vw, 110px)) 0 clamp(40px, 7vw, 80px); }
.page-head h1 { font-size: clamp(2.6rem, 8vw, 5.2rem); max-width: 12em; }
.page-head .lead { margin-top: 24px; color: var(--muted); }

/* фильтры каталога */
.filters { display: grid; gap: 18px; padding: 22px 0 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filters__group { display: grid; gap: 10px; }
.filters__title { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.filters__chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); }
.filters__chips::-webkit-scrollbar { display: none; }
.filters__chips--wrap { flex-wrap: wrap; overflow: visible; margin: 0 0 32px; padding: 0; }
@media (min-width: 900px) {
  .filters { grid-template-columns: repeat(2, 1fr); gap: 22px 48px; }
  .filters__chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
}
.fchip { flex: none; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; color: var(--slate); white-space: nowrap; transition: background-color .3s, color .3s, border-color .3s; }
.fchip:hover { border-color: var(--slate); }
.fchip[aria-pressed="true"] { background: var(--slate); border-color: var(--slate); color: var(--milk); }
.filters__count { margin: 22px 0 28px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--terra); min-height: 1em; }

.tour-grid { display: grid; gap: 48px 24px; }
@media (min-width: 640px) { .tour-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tour-grid { grid-template-columns: repeat(3, 1fr); gap: 64px 32px; } }
.catalog-empty { padding: 48px 0; text-align: center; }
.catalog-empty h3 { margin-bottom: 10px; }
.catalog-empty__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

/* отзывы */
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
@media (min-width: 768px) { .review-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; } }
@media (min-width: 1100px) { .review-grid { grid-template-columns: repeat(4, 1fr); } }
.review-grid [data-lb-index] { cursor: zoom-in; }

/* обо мне */
.about-head__grid { display: grid; gap: 40px; align-items: end; }
.about-head__photo { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand-soft); max-width: 460px; }
.about-head__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .about-head__grid { grid-template-columns: 1.2fr .8fr; gap: 80px; } }
.story p { max-width: 36em; }
.story .lead { color: var(--slate); font-family: var(--f-display); font-size: clamp(1.5rem, 3.6vw, 2.1rem); line-height: 1.3; }

/* контакты */
.contact-cards { display: grid; gap: 14px; }
@media (min-width: 768px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.contact-card { position: relative; display: grid; gap: 8px; padding: 26px 64px 26px 24px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .3s, background-color .3s; }
.contact-card:hover { transform: translateY(-4px); border-color: var(--slate); }
.contact-card__name { font-family: var(--f-display); font-size: 28px; color: var(--slate); line-height: 1.1; }
.contact-card__text { font-size: 15px; color: var(--muted); }
.contact-card__go { position: absolute; right: 22px; top: 50%; margin-top: -20px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--slate); transition: background-color .3s, color .3s; }
.contact-card:hover .contact-card__go { background: var(--slate); color: var(--milk); }
.contact-card--main { background: var(--slate); border-color: var(--slate); }
.contact-card--main .contact-card__name { color: var(--milk); }
.contact-card--main .contact-card__text { color: rgba(246,243,237,.8); }
.contact-card--main .contact-card__go { border-color: rgba(246,243,237,.4); color: var(--milk); }

/* документы */
.legal { max-width: 760px; }
.legal h2 { font-size: clamp(1.4rem, 3.4vw, 1.8rem); margin: 36px 0 12px; }
.legal p { color: var(--ink); }
.legal__note { padding: 14px 18px; border-radius: 12px; background: var(--sand-soft); font-size: 15px; }
.filters__reset { margin-left: 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); text-decoration: underline; text-underline-offset: 4px; }
figure.review-card { margin: 0; }
.review-card__shot { width: 100%; }
.stat__num--word { font-size: clamp(2.2rem, 6vw, 3.4rem); }
/* видео тура: подходит и вертикальное, и горизонтальное */
.tour-video { aspect-ratio: auto; display: flex; justify-content: center; background: transparent; border-radius: 0; overflow: visible; }
.tour-video video { width: auto; max-width: 100%; height: auto; max-height: 82vh; border-radius: var(--radius-lg); background: var(--ink); object-fit: contain; }

/* ---------- Отзывы: текстовые карточки ---------- */
.rv { margin: 0; display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); break-inside: avoid; }
.rv__stars { color: var(--terra); letter-spacing: .2em; font-size: 14px; }
.rv__text { margin: 0; font-family: var(--f-display); font-size: 19px; line-height: 1.5; color: var(--ink); }
.rv__text::before { content: "«"; } .rv__text::after { content: "»"; }
.rv__text.is-clamped { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.rv__more { align-self: flex-start; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); text-decoration: underline; text-underline-offset: 4px; margin-top: -4px; }
.rv__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rv__who { display: grid; gap: 2px; font-size: 13px; color: var(--muted); min-width: 0; }
.rv__who b { font-size: 15px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.rv__orig { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); cursor: zoom-in; transition: background-color .3s, color .3s, border-color .3s; }
.rv__orig:hover { background: var(--slate); color: var(--milk); border-color: var(--slate); }

.review-rail { grid-auto-columns: 86%; align-items: stretch; }
@media (min-width: 600px) { .review-rail { grid-auto-columns: 48%; } }
@media (min-width: 1024px) { .review-rail { grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; } }

.review-grid { display: block; columns: 1; column-gap: 20px; }
.review-grid .rv { margin-bottom: 20px; }
@media (min-width: 720px) { .review-grid { columns: 2; } }
@media (min-width: 1100px) { .review-grid { columns: 3; } }
/* оригинал отзыва в просмотре: только сообщение, на светлой подложке */
.lightbox__media[src*="/reviews/"] { max-width: min(100%, 640px); border-radius: 14px; }
@media (min-width: 900px) { .filters { grid-template-columns: 1fr; } }
.pass__links { justify-content: center; }

/* ---------- Доступность: тёмные блоки чуть глубже, чтобы мелкий светлый текст читался (контраст ≥ 4.5:1) ---------- */
:root { --slate-deep: #3A4F5B; }
.cta, .contact-card--main { background: var(--slate-deep); border-color: var(--slate-deep); }
.cta__text p { color: rgba(246, 243, 237, .92); }
.contact-card--main .contact-card__text { color: rgba(246, 243, 237, .9); }

/* ---------- Как забронировать ---------- */
.steps { counter-reset: st; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps__item { counter-increment: st; position: relative; display: grid; gap: 6px; padding: 22px 22px 22px 72px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.steps__item::before { content: counter(st); position: absolute; left: 22px; top: 20px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--slate); color: var(--milk); font-family: var(--f-display); font-size: 18px; }
.steps__item b { font-family: var(--f-display); font-weight: 400; font-size: 21px; color: var(--slate); line-height: 1.2; }
.steps__item span { color: var(--muted); font-size: 15px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } .steps__item { padding: 74px 22px 24px; } .steps__item::before { top: 24px; } }
.story__photo { margin-top: 28px; aspect-ratio: 4 / 5; max-width: 360px; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand-soft); }
.story__photo img { width: 100%; height: 100%; object-fit: cover; }
.about-head__photo img { object-position: center 30%; }
.story__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; max-width: 460px; }
.story__photos .story__photo { margin-top: 0; max-width: none; }
/* главное фото первого экрана: держим в кадре лицо */
.hero__img--anna { object-position: 55% 30%; }
@media (min-width: 900px) { .hero__img--anna { object-position: 60% 28%; } }

/* ---------- Первый экран на телефоне: лицо сверху, текст компактно внизу ---------- */
@media (max-width: 767px) {
  .hero__media .hero__img--anna { top: -16%; height: 116%; object-position: 52% 0; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(40,55,64,.35) 0%, rgba(40,55,64,0) 18%),
      linear-gradient(0deg, rgba(30,40,48,.85) 0%, rgba(30,40,48,.55) 28%, rgba(30,40,48,0) 50%);
  }
  .hero__content { padding-bottom: 28px; }
  .hero h1 { font-size: 2.3rem; line-height: 1.08; max-width: 10em; }
  .hero__lead { font-size: 15px; line-height: 1.5; margin: 14px 0 20px; max-width: 26em; }
  .hero__actions { flex-wrap: nowrap; gap: 10px; }
  .hero__actions .btn { flex: 1 1 0; min-height: 48px; padding: 0 12px; font-size: 11.5px; letter-spacing: .12em; }
}

/* ---------- Читаемость текста поверх фото ---------- */
.hero__content { text-shadow: 0 1px 14px rgba(20, 28, 34, .45); }
.hero__content .btn, .hero__content .chip { text-shadow: none; }
.tour-hero::after {
  background:
    linear-gradient(180deg, rgba(28,36,42,.45) 0%, rgba(28,36,42,0) 22%),
    linear-gradient(0deg, rgba(28,36,42,.92) 0%, rgba(28,36,42,.78) 30%, rgba(28,36,42,.35) 58%, rgba(28,36,42,.1) 100%);
}
@media (max-width: 767px) {
  .tour-hero .hero__media img { top: -18%; height: 118%; object-position: 50% 0; }
  .tour-hero .crumbs { display: none; }
  .tour-hero__chips { margin-bottom: 12px; }
  .tour-hero__chips .chip { height: 26px; font-size: 11px; padding: 0 12px; }
  .tour-hero h1 { font-size: 2.35rem; }
  .tour-hero .hero__lead { margin: 10px 0 14px; }
  .tour-hero__meta { margin: 0 0 18px; font-size: 14px; gap: 4px 12px; }
  .tour-hero__meta > span + span::before { margin-right: 12px; }
  .tour-hero__tr { flex-basis: 100%; }
  .tour-hero__tr::before { display: none; }
}
/* подписи на фото в галереях */
.trail__item::after, .moment::after { inset: 45% 0 0; background: linear-gradient(0deg, rgba(28,36,42,.7), rgba(28,36,42,0)); }
.trail__cap, .moment__cap { text-shadow: 0 1px 8px rgba(0,0,0,.5); }

/* =====================================================================
   НОВЫЕ БЛОКИ: срочность, подбор по настроению, «можно одной», вопросы
   ===================================================================== */
/* срочность на талоне */
.pass-urg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pass-urg__item { font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #E3EDF2; color: var(--slate-deep, #3A4F5B); }
.pass-urg__item--hot { background: #F4E2D8; color: var(--terra); }
/* срочность на первом экране тура */
.hero-urg { display: flex; flex-wrap: wrap; gap: 8px; margin: -14px 0 24px; }
.hero-urg__item { font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 999px; background: rgba(246,243,237,.92); color: var(--slate-deep, #3A4F5B); text-shadow: none; }
.hero-urg__item--hot { background: var(--terra); color: #fff; }
@media (max-width: 767px) { .hero-urg { margin: -8px 0 16px; } .hero-urg__item { font-size: 12px; padding: 4px 12px; } }

/* подбор по настроению */
.mood__opts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.mood__result { min-height: 200px; }
.mood__result .tour-card { transition: opacity .5s var(--ease); }
@media (min-width: 1024px) {
  .mood__result { grid-auto-flow: column; grid-auto-columns: calc((100% - 80px) / 3); grid-template-columns: none; gap: 40px; overflow-x: auto; }
  .mood__result > :nth-child(even) { margin-top: 0; }
}

/* можно поехать одной */
.alone { display: grid; gap: 20px; align-items: center; padding: clamp(28px, 6vw, 56px); border-radius: var(--radius-lg); background: var(--sand-soft); }
.alone__num { font-family: var(--f-display); font-size: clamp(5rem, 22vw, 9rem); line-height: .9; color: var(--terra); }
.alone__num span { font-size: .45em; vertical-align: top; margin-left: 4px; }
.alone h2 { margin-bottom: 14px; }
.alone p { margin: 0; color: var(--ink); max-width: 34em; }
@media (min-width: 900px) { .alone { grid-template-columns: auto 1fr; gap: 56px; } }

/* частые вопросы */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-family: var(--f-display); font-size: clamp(1.2rem, 3.4vw, 1.45rem); color: var(--slate); line-height: 1.25; }
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); transition: transform .35s var(--ease), background-color .3s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--slate); }
.faq__icon::after { transform: rotate(90deg); transition: transform .35s var(--ease); }
.faq__item[open] .faq__icon { background: var(--slate); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: var(--milk); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { margin: 0 0 22px; color: var(--muted); max-width: 40em; }
.faq__q:focus-visible { outline: 2px solid var(--terra); outline-offset: 4px; }
/* точка фокуса обложки тура (coverFocus в data.js) */
.tour-hero .hero__media[style*="--focus"] img { object-position: var(--focus); }
@media (max-width: 767px) { .tour-hero .hero__media[style*="--focus"] img { top: 0; height: 100%; object-position: var(--focus); } }
.pass__photo img, .tour-card__media img { object-position: var(--focus, 50% 50%); }

/* ---------- «О нас»: кадры Анны (видео + фото) ---------- */
.frames { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 56vw; gap: 10px; }
.frame { position: relative; overflow: hidden; border-radius: 12px; background: var(--sand-soft); cursor: zoom-in; padding: 0; border: 0; }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s var(--ease); }
.frame:hover img, .frame:hover video { transform: scale(1.04); }
.frame--0 { grid-row: span 2; }
.frame .play-mark { position: absolute; left: auto; right: 12px; top: 12px; margin: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: var(--milk); background: rgba(31,41,48,.45); }
@media (min-width: 900px) {
  .frames { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 22vw; gap: 16px; max-height: none; }
  .frame { border-radius: var(--radius-lg); }
  .frame--0 { grid-column: 1; grid-row: 1 / span 2; }
  .frame--1 { grid-column: 2 / span 2; grid-row: 1; }
  .frame--2 { grid-column: 4; grid-row: 1 / span 2; }
  .frame--3 { grid-column: 2; grid-row: 2; }
  .frame--4 { grid-column: 3; grid-row: 2; }
}
@media (min-width: 1400px) { .frames { grid-auto-rows: 310px; } }
.frame { text-align: left; }
.frame::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(to top, rgba(31,41,48,.55), rgba(31,41,48,0)); pointer-events: none; }
.frame .moment__cap { z-index: 1; right: 12px; }

/* ---------- Узкие телефоны (iPhone SE, 320–374px): кнопки не вылезают за край ---------- */
@media (max-width: 374px) {
  .hero__actions { flex-wrap: wrap; }
  .hero__actions .btn { flex: 1 1 100%; }
  .sticky-cta .btn { padding: 0 14px; font-size: 12px; letter-spacing: .1em; min-width: 0; }
  .sticky-cta__msg { padding: 0 16px; }
}
.alone--solo { grid-template-columns: 1fr !important; }
.alone--solo h2 { font-size: clamp(2rem, 6vw, 3rem); }
