/* =========================================================================
   PATAGONIA WANTED — design system
   National Geographic × экспедиционный журнал
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* — Тёмный лес — */
  --forest-900: #080f0b;   /* footer / самый тёмный */
  --forest-800: #0c1810;
  --forest-700: #122018;
  --forest-600: #1a3023;

  /* — Пергамент — */
  --parch-100: #faf8f3;
  --parch-200: #f5f1e8;
  --parch-300: #ece5d6;

  /* — Зелёные акценты — */
  --fern:   #568b68;
  --sage:   #3d6b4f;
  --lichen: #7aab8e;

  /* — Тёплый / песок — */
  --sand:   #b8956a;

  /* — Текст — */
  --ink:        #1c241e;   /* текст на пергаменте */
  --ink-soft:   #4a5650;
  --cream:      #e4dece;   /* текст на тёмном */
  --cream-soft: #a9b0a4;

  /* — Линии — */
  --line-dark:  rgba(228, 222, 206, 0.16);
  --line-light: rgba(28, 36, 30, 0.14);

  /* — Типографика — */
  --display: 'Playfair Display', Georgia, serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* — Раскладка — */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--parch-200);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* ============================ TYPOGRAPHY ================================= */

.display {
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; margin: 0; line-height: 1.1; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0;
}

.eyebrow--dark { color: var(--sage); }

.lede {
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.55;
  font-weight: 300;
}

.measure { max-width: 62ch; }
.measure-sm { max-width: 46ch; }

/* ============================ LAYOUT ===================================== */

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(72px, 11vh, 140px); }
.section--tight { padding-block: clamp(56px, 8vh, 96px); }

.section--dark  { background: var(--forest-800); color: var(--cream); }
.section--dark .eyebrow { color: var(--sand); }
.section--darker { background: var(--forest-900); color: var(--cream); }
.section--light { background: var(--parch-200); color: var(--ink); }
.section--cream { background: var(--parch-100); color: var(--ink); }

.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--parch-100); }

/* thin top rule used to open editorial sections */
.rule { height: 1px; background: var(--line-light); border: 0; margin: 0; }
.section--dark .rule { background: var(--line-dark); }

/* ============================ NAV ======================================= */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.nav__inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.nav.scrolled,
.nav--solid {
  background: rgba(8, 15, 11, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line-dark);
}

.brand { display: flex; align-items: center; gap: 11px; color: var(--parch-100); }
.brand__mark {
  width: 30px; height: 30px; flex: 0 0 auto;
  border: 1.5px solid var(--lichen); border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
}
.brand__mark::after {
  content: ""; width: 9px; height: 9px;
  background: var(--fern); border-radius: 50%;
}
.brand__name {
  font-family: var(--display); font-weight: 800; font-size: 18px;
  letter-spacing: 0.01em; line-height: 1;
}
.brand__name small {
  display: block; font-family: var(--mono); font-weight: 400;
  font-size: 9.5px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--lichen); margin-top: 3px;
}

.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-size: 14px; font-weight: 500; color: var(--cream);
  letter-spacing: 0.01em; position: relative; padding-block: 4px;
  transition: color .2s ease;
}
.nav__links a:hover { color: var(--parch-100); }
.nav__links a.active { color: var(--lichen); }
.nav__links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1.5px; background: var(--lichen);
}

.nav__cta { display: flex; align-items: center; gap: 14px; }

/* burger (mobile) */
.burger {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line-dark);
  background: transparent; border-radius: 6px; cursor: pointer;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.burger span { width: 18px; height: 1.5px; background: var(--cream); transition: .25s; }

/* ============================ BUTTONS =================================== */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 600; font-size: 14.5px;
  letter-spacing: 0.01em; line-height: 1;
  padding: 14px 26px; border-radius: 2px; cursor: pointer;
  border: 1px solid transparent; transition: all .22s ease; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }

.btn--primary { background: var(--fern); color: #fff; }
.btn--primary:hover { background: #4f8260; transform: translateY(-1px); box-shadow: 0 10px 26px -12px rgba(86,139,104,.8); }

.btn--ghost { background: transparent; color: var(--cream); border-color: var(--line-dark); }
.btn--ghost:hover { border-color: var(--lichen); color: var(--parch-100); }

.btn--ghost-dark { background: transparent; color: var(--ink); border-color: var(--line-light); }
.btn--ghost-dark:hover { border-color: var(--sage); color: var(--sage); }

.btn--lg { padding: 17px 34px; font-size: 15.5px; }

/* text link with arrow */
.tlink {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sage); transition: gap .22s ease, color .22s ease;
}
.section--dark .tlink, .tlink--light { color: var(--lichen); }
.tlink:hover { gap: 15px; }
.tlink svg { width: 15px; height: 15px; }

/* ============================ PLACEHOLDERS ============================== */
/* Заглушки под реальные фото. Заменяются на <img> или background-image. */

.ph {
  position: relative; overflow: hidden;
  background-color: var(--forest-700);
  background-image:
    repeating-linear-gradient(135deg,
      rgba(122,171,142,0.07) 0 2px,
      transparent 2px 16px);
  display: grid; place-items: center;
}
.ph--light {
  background-color: var(--parch-300);
  background-image:
    repeating-linear-gradient(135deg,
      rgba(61,107,79,0.10) 0 2px,
      transparent 2px 16px);
}
.ph__tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--lichen);
  border: 1px dashed rgba(122,171,142,0.4); border-radius: 3px;
  padding: 7px 12px; background: rgba(8,15,11,0.35);
  text-align: center; max-width: 80%;
}
.ph--light .ph__tag {
  color: var(--sage); border-color: rgba(61,107,79,0.4);
  background: rgba(255,255,255,0.4);
}

/* ============================ HERO ===================================== */

.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--cream); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media .ph { width: 100%; height: 100%; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top,
    rgba(8,15,11,0.97) 0%,
    rgba(8,15,11,0.74) 26%,
    rgba(8,15,11,0.40) 58%,
    rgba(8,15,11,0.18) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(56px, 9vh, 110px); padding-top: calc(var(--nav-h) + 40px); }
.hero h1 {
  font-weight: 900; color: var(--parch-100);
  font-size: clamp(42px, 7.2vw, 104px); line-height: 0.98; letter-spacing: -0.015em;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
  max-width: 17ch;
}
.hero p.lede { color: var(--cream); margin-top: 26px; max-width: 54ch; text-shadow: 0 1px 20px rgba(0,0,0,0.5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 0;
  margin-top: 54px; border-top: 1px solid var(--line-dark);
}
.hero__meta .mi {
  padding: 18px 34px 0 0; margin-right: 34px;
  border-right: 1px solid var(--line-dark);
}
.hero__meta .mi:last-child { border-right: 0; }
.hero__meta .mi b {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: 26px; color: var(--parch-100); line-height: 1;
}
.hero__meta .mi span {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--cream-soft); margin-top: 7px; display: block;
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 3; font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--cream-soft);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--lichen), transparent);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0%,100%{opacity:.3; transform:scaleY(.6); transform-origin:top} 50%{opacity:1; transform:scaleY(1)} }

/* ============================ EXPEDITION CARDS ========================= */

.cards { display: grid; gap: 26px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.xcard {
  background: var(--forest-700); color: var(--cream);
  border: 1px solid var(--line-dark); border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.xcard:hover { transform: translateY(-5px); border-color: rgba(122,171,142,0.4); box-shadow: 0 26px 50px -28px rgba(0,0,0,0.7); }
.xcard__media { aspect-ratio: 4/3; position: relative; }
.xcard__media .ph { position: absolute; inset: 0; }
.xcard__flag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--sand); color: var(--forest-900); padding: 6px 11px; border-radius: 2px; font-weight: 500;
}
.xcard__body { padding: 28px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.xcard__tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lichen); }
.xcard h3 { color: var(--parch-100); font-size: 26px; margin-top: 12px; line-height: 1.08; }
.xcard p { color: var(--cream-soft); font-size: 15px; line-height: 1.6; margin: 14px 0 0; }
.xcard__details { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-dark); }
.xcard__details span { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--cream-soft); display: inline-flex; align-items: center; gap: 7px; }
.xcard__details span b { color: var(--lichen); font-weight: 500; }
.xcard__foot { margin-top: auto; padding-top: 22px; }

/* ============================ TOUR ROWS ================================ */

.trow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.trow + .trow { margin-top: clamp(56px, 9vh, 120px); }
.trow--flip .trow__media { order: 2; }
.trow__media { aspect-ratio: 5/4; border-radius: 4px; overflow: hidden; }
.trow__media .ph { width: 100%; height: 100%; }
.trow__num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--sand); }
.trow h3 { font-size: clamp(28px, 3.4vw, 44px); margin-top: 16px; }
.trow p { margin-top: 18px; }

/* ============================ TIMELINE (Carretera) ==================== */

.tline { position: relative; margin-top: 56px; padding-left: 0; }
.tline::before {
  content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px;
  width: 1.5px; background: linear-gradient(var(--fern), var(--sand));
}
.tstop { position: relative; padding: 0 0 clamp(40px,6vh,64px) 56px; }
.tstop:last-child { padding-bottom: 0; }
.tstop::before {
  content: ""; position: absolute; left: 7px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--forest-800); border: 2.5px solid var(--fern);
}
.tstop__day { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sand); }
.tstop h4 { font-size: 24px; margin-top: 8px; color: var(--parch-100); }
.tstop p { color: var(--cream-soft); margin-top: 10px; font-size: 15px; max-width: 56ch; }
.tstop__km { float: right; font-family: var(--mono); font-size: 12px; color: var(--lichen); }

/* ============================ STAT STRIP ============================== */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border-block: 1px solid var(--line-dark); }
.stats .stat { background: var(--forest-800); padding: 38px 28px; text-align: center; }
.stat b { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5vw, 60px); color: var(--parch-100); line-height: 1; display: block; }
.stat span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-soft); margin-top: 12px; display: block; }

/* ============================ CTA ===================================== */

.cta {
  position: relative; overflow: hidden; text-align: center;
  color: var(--cream); padding-block: clamp(80px, 13vh, 150px);
}
.cta__media { position: absolute; inset: 0; z-index: 0; }
.cta__media .ph { width: 100%; height: 100%; }
.cta__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(8,15,11,0.82), rgba(8,15,11,0.92)); }
.cta__inner { position: relative; z-index: 2; }
.cta h2 { color: var(--parch-100); font-size: clamp(34px, 5vw, 62px); max-width: 18ch; margin-inline: auto; }
.cta p { color: var(--cream); margin: 22px auto 0; max-width: 50ch; }
.cta .btn { margin-top: 38px; }
.cta__note { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--cream-soft); margin-top: 18px; text-transform: uppercase; }

/* ============================ FOOTER ================================== */

.foot { background: var(--forest-900); color: var(--cream-soft); padding-block: clamp(56px, 8vh, 84px) 36px; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lichen); margin: 0 0 18px; font-weight: 500; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.foot a { font-size: 14.5px; color: var(--cream-soft); transition: color .2s; }
.foot a:hover { color: var(--parch-100); }
.foot__brand .brand { color: var(--parch-100); margin-bottom: 18px; }
.foot__brand p { font-size: 14.5px; line-height: 1.6; max-width: 34ch; }
.foot__bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: clamp(44px,7vh,72px); padding-top: 26px; border-top: 1px solid var(--line-dark); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--cream-soft); text-transform: uppercase; }

/* ============================ CAROUSEL LIGHTBOX ======================== */

.carousel-lb {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.carousel-lb.open {
  opacity: 1;
  pointer-events: auto;
}
.carousel-lb__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  padding: 12px;
  user-select: none;
}

/* ============================ PLACE PAGES ============================== */

.place-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cream-soft);
  transition: color 0.2s, gap 0.2s;
}
.place-hero__back:hover { color: var(--parch-100); gap: 12px; }

.place-hero__back svg { flex-shrink: 0; }

/* place highlights list */
.place-hero + section ul li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 15px;
  color: var(--ink);
  padding-left: 18px;
  position: relative;
}
.place-hero + section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fern);
}

/* ============================ ROUTE PLANNER ============================ */

/* Шаг 1 — карточки стиля */
.rstyle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rstyle-card {
  display: flex;
  flex-direction: column;
  aspect-ratio: 1;
  border: 2px solid var(--line-light);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  padding: 0;
  text-align: left;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.rstyle-card:hover { border-color: var(--sage); }

.rstyle-card__img {
  flex: 1;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.rstyle-card:hover .rstyle-card__img { }

.rstyle-card__hover {
  position: absolute;
  inset: 0;
  background: rgba(8,15,11,0);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  transition: background 0.35s ease;
}
.rstyle-card__hover p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--parch-100);
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.3s ease 0.08s, transform 0.3s ease 0.08s;
}
.rstyle-card:hover .rstyle-card__hover { background: rgba(8,15,11,0.68); }
.rstyle-card:hover .rstyle-card__hover p { opacity: 1; transform: translateY(0); }

.rstyle-card__foot {
  flex-shrink: 0;
  padding: 16px 20px;
  background: rgba(8,15,11,0.78);
  backdrop-filter: blur(8px);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--parch-100);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.25s;
}

.rstyle-card__check {
  width: 22px; height: 22px;
  border: 1.5px solid var(--lichen);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: transparent;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.rstyle-card[aria-pressed="true"] {
  border-color: var(--fern);
  box-shadow: 0 0 0 1px var(--fern), 0 20px 50px -24px rgba(86,139,104,0.55);
}
.rstyle-card[aria-pressed="true"] .rstyle-card__foot { background: rgba(86,139,104,0.88); }
.rstyle-card[aria-pressed="true"] .rstyle-card__check {
  background: var(--fern); border-color: var(--fern); color: #fff;
}

.rstyle-expanded {
  margin-top: 32px;
  padding: 30px 36px;
  background: var(--forest-700);
  border-left: 3px solid var(--fern);
  border-radius: 0 4px 4px 0;
}
.rstyle-expanded p {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.68;
  color: var(--cream);
  margin: 0;
}
.rstyle-expanded p + p { margin-top: 14px; }

/* Шаг 2 — регионы */
.rregions {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  overflow: hidden;
}

.rregion {
  background: var(--forest-800);
  padding: 26px 30px;
  border-bottom: 1px solid var(--line-dark);
  transition: background 0.2s;
}
.rregion:last-child { border-bottom: 0; }
.rregion:has(.rregion__cb:checked) { background: var(--forest-700); }

.rregion__toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  user-select: none;
}

.rregion__cb { display: none; }

.rregion__box {
  width: 22px; height: 22px; flex-shrink: 0;
  border: 1.5px solid var(--line-dark);
  display: grid; place-items: center;
  transition: border-color 0.2s;
}
.rregion__box::after {
  content: "";
  width: 10px; height: 10px;
  background: var(--fern);
  opacity: 0;
  transition: opacity 0.2s;
}
.rregion__cb:checked ~ .rregion__box { border-color: var(--fern); }
.rregion__cb:checked ~ .rregion__box::after { opacity: 1; }

.rregion__name {
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  color: var(--parch-100);
}

.rregion__desc {
  margin: 10px 0 0 38px;
  font-size: 14.5px;
  color: var(--cream-soft);
  line-height: 1.6;
}

.rregion__places {
  list-style: none;
  margin: 18px 0 4px 38px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.rregion__places a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lichen);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.rregion__places a:hover {
  border-color: var(--lichen);
  background: rgba(122,171,142,0.1);
  color: var(--parch-100);
}

/* Шаги 3–5 — вопросы */
.rq-group { margin-bottom: clamp(40px,6vh,64px); }
.rq-group:last-child { margin-bottom: 0; }

.rq-title {
  font-size: clamp(20px,2.6vw,28px);
  color: var(--ink);
  margin: 0 0 22px;
}

.rq-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rq-option { position: relative; cursor: pointer; }
.rq-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.rq-option span {
  display: block;
  padding: 13px 26px;
  border: 1.5px solid var(--line-light);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  user-select: none;
}
.rq-option:hover span { border-color: var(--sage); }
.rq-option input:checked + span {
  background: var(--fern);
  border-color: var(--fern);
  color: #fff;
}

/* Шаг 6 — контакт */
.rcontact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rcontact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rcontact-field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-soft);
}
.rcontact-field input {
  background: rgba(228,222,206,0.06);
  border: 1px solid var(--line-dark);
  color: var(--parch-100);
  font-family: var(--body);
  font-size: 16px;
  padding: 14px 18px;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
}
.rcontact-field input::placeholder { color: var(--cream-soft); opacity: 0.6; }
.rcontact-field input:focus { border-color: var(--lichen); }

@media (max-width: 900px) {
  .rstyle-grid { grid-template-columns: 1fr; }
  .rstyle-card { aspect-ratio: 4/3; }
  .rregion { padding: 22px 20px; }
  .rregion__desc, .rregion__places { margin-left: 38px; }
}
@media (max-width: 560px) {
  .rregion__desc, .rregion__places { margin-left: 0; margin-top: 12px; }
  .rq-options { flex-direction: column; }
}

/* ============================ GALLERY CAROUSEL ========================= */

.gallery-carousel {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 480px;
  overflow: hidden;
  background: var(--forest-900);
}

.gallery-carousel__track { position: absolute; inset: 0; }

.gallery-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.85s ease;
}
.gallery-carousel__slide.active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}
@media (hover: hover) {
  .gallery-carousel__slide.active img:hover { transform: scale(1.04); }
}

.gallery-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  background: rgba(8, 15, 11, 0.45);
  backdrop-filter: blur(8px);
  color: var(--parch-100);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.22s, border-color 0.22s;
}
.gallery-carousel__arrow:hover {
  background: rgba(8, 15, 11, 0.78);
  border-color: var(--lichen);
}
.gallery-carousel__arrow--prev { left: clamp(16px, 3vw, 40px); }
.gallery-carousel__arrow--next { right: clamp(16px, 3vw, 40px); }
.gallery-carousel__arrow svg { width: 20px; height: 20px; }

.gallery-carousel__dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 9px;
  align-items: center;
}

.gallery-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  padding: 0;
  border: none;
  background: rgba(228, 222, 206, 0.35);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.gallery-carousel__dot.active {
  background: var(--parch-100);
  transform: scale(1.35);
}

@media (max-width: 560px) {
  .gallery-carousel { height: 56vw; min-height: 300px; }
  .gallery-carousel__arrow { width: 40px; height: 40px; }
  .gallery-carousel__arrow svg { width: 16px; height: 16px; }
}

/* ============================ MOBILE ================================== */

.mobile-menu { display: none; }

@media (max-width: 900px) {
  .nav__links, .nav__cta .btn { display: none; }
  .burger { display: flex; }
  .cards--3, .cards--2 { grid-template-columns: 1fr; }
  .trow, .trow--flip .trow__media { grid-template-columns: 1fr; order: 0; }
  .trow__media { order: -1 !important; }
  .stats { grid-template-columns: 1fr 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot__brand { grid-column: 1 / -1; }

  .mobile-menu {
    position: fixed; inset: 0; z-index: 99; background: var(--forest-900);
    display: flex; flex-direction: column; justify-content: center;
    padding: var(--gutter); transform: translateX(100%); transition: transform .4s cubic-bezier(.4,0,.2,1);
  }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu a { font-family: var(--display); font-size: 30px; color: var(--parch-100); padding-block: 14px; border-bottom: 1px solid var(--line-dark); }
  .mobile-menu .btn { margin-top: 32px; align-self: flex-start; }
  .mobile-menu__close { position: absolute; top: 22px; right: var(--gutter); background: none; border: 0; color: var(--cream); font-size: 30px; cursor: pointer; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .hero__meta .mi { border-right: 0; padding-right: 0; margin-right: 0; flex: 1 1 45%; }
}

/* ── Мобильные фиксы ──────────────────────────────────────── */
@media (max-width: 900px) {
  /* Манифест: 2 колонки → 1 */
  .manifesto-grid { grid-template-columns: 1fr !important; }

  /* Горизонтальные карточки форматов → вертикально */
  .formats-duo { grid-template-columns: 1fr !important; }
  .formats-duo .xcard { flex-direction: column !important; }
  .formats-duo .xcard__media { flex: none !important; aspect-ratio: 16/9 !important; width: 100% !important; }

  /* Флагман-ряд: убираем лишний верхний отступ */
  .trow { gap: 32px; }

  /* Статы в один столбец */
  .stats { grid-template-columns: 1fr 1fr; }

  /* Футер: 1 колонка на маленьких экранах */
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  /* Hero meta — плотнее */
  .hero__meta { gap: 16px; flex-wrap: wrap; }
  .hero__meta .mi { flex: 1 1 40%; }

  /* Маршрут-планнер: регионы */
  .rregion { padding: 18px 16px; }
  .rregion__name { font-size: 18px; }
  .rregion__desc { margin-left: 0; margin-top: 8px; font-size: 14px; }
  .rregion__places { margin-left: 0; margin-top: 12px; }
  .rregion__places a { font-size: 11px; padding: 6px 12px; }

  /* Вопросы: пилюли во всю ширину */
  .rq-options { flex-direction: column; gap: 8px; }
  .rq-option span { padding: 14px 20px; font-size: 16px; }
  .rq-title { font-size: 20px; }

  /* Расширенный текст карточки стиля */
  .rstyle-expanded { padding: 20px 18px; }
}

@media (max-width: 560px) {
  /* Футер в 1 колонку */
  .foot__grid { grid-template-columns: 1fr; }
  .foot__brand { grid-column: auto; }

  /* Контактная форма: поля во всю ширину */
  .rcontact-field input { font-size: 16px; padding: 14px; }

  /* Статы */
  .stats { grid-template-columns: 1fr; }
}

/* ── Place photo grid ─────────────────────────────── */
.place-photos { background: var(--forest-900); padding: 0; }
.place-photos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.place-photos__item {
  margin: 0;
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--forest-800);
}
.place-photos__item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.place-photos__item:hover img { transform: scale(1.04); }

@media (max-width: 700px) {
  .place-photos__grid { grid-template-columns: repeat(2, 1fr); gap: 3px; }
}
@media (max-width: 400px) {
  .place-photos__grid { grid-template-columns: 1fr; }
}

/* ── Lightbox ─────────────────────────────────────── */
.lb-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(4,8,5,0.94); z-index: 10000;
  align-items: center; justify-content: center;
  cursor: zoom-out; padding: 20px;
}
.lb-overlay.open { display: flex; }
.lb-overlay__img {
  max-width: min(92vw, 1300px); max-height: 90vh;
  object-fit: contain; cursor: default;
  box-shadow: 0 8px 60px rgba(0,0,0,0.6);
}
.lb-overlay__close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; color: #fff;
  font-size: 36px; line-height: 1; cursor: pointer;
  opacity: 0.7; padding: 4px 8px; transition: opacity 0.2s;
}
.lb-overlay__close:hover { opacity: 1; }

/* ══════════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE — new pages (assets/styles.css)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Hero section */
  .hero { min-height: 85vh; }
  .hero__inner h1 { font-size: clamp(34px, 8vw, 60px); }
  .hero__actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero__meta { flex-wrap: wrap; gap: 12px 0; }
  .hero__meta .mi { border-right: none; padding-right: 16px; }

  /* Place detail pages */
  .place-hero { padding-top: calc(var(--nav-h) + 32px) !important; }

  /* Routes page */
  .routes-grid, .route-cards { grid-template-columns: 1fr !important; }

  /* Places page — region tabs scroll horizontal */
  .region-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
  .region-tab  { white-space: nowrap; flex-shrink: 0; }

  /* Place cards in grid */
  .places-grid { grid-template-columns: 1fr !important; }
  .place-card.is-open { grid-column: 1 !important; }
}

@media (max-width: 700px) {
  /* Route detail page hero */
  .route-hero__content h1 { font-size: clamp(28px, 7vw, 48px); }
  .route-hero__stats { flex-wrap: wrap; gap: 16px; }
  .route-hero__stat { min-width: 100px; }

  /* Day-by-day */
  .day-list .day { grid-template-columns: 50px 1fr !important; gap: 0 16px !important; }

  /* Index page sections */
  .section--cream .wrap > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Photo grid on place pages */
  .place-photos__grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 480px) {
  /* Nav logo smaller on tiny screens */
  .brand img, .nav__inner .brand img { height: 40px !important; }

  /* Full-width buttons in hero */
  .hero__actions .btn { width: 100%; justify-content: center; }

  /* Route hero stats */
  .route-hero__stats { grid-template-columns: 1fr 1fr; display: grid; }

  /* Place photos: 1 column on very small */
  .place-photos__grid { grid-template-columns: 1fr !important; }

  /* Foot */
  .foot__grid { grid-template-columns: 1fr; }
  .foot__bar { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── Lang switcher ────────────────────────────────── */
.lang-switcher { display:flex; gap:3px; align-items:center; margin-left:6px; }
.lang-btn { background:none; border:1px solid rgba(228,222,206,0.25); color:var(--cream); font-size:10px; font-family:var(--body); letter-spacing:0.08em; padding:4px 7px; cursor:pointer; transition:all 0.2s; border-radius:2px; line-height:1; }
.lang-btn:hover { border-color:rgba(228,222,206,0.6); }
.lang-btn.active { background:rgba(228,222,206,0.15); border-color:var(--cream); color:var(--parch-100); font-weight:600; }
@media (max-width:900px) { .nav__cta .lang-switcher { display:none; } .mobile-menu .lang-switcher { display:flex; margin:16px 0 0; } }

/* ── Messenger picker popup ──────────────────────────── */
.msg-picker__box { background:#1a2a1c; border:1px solid rgba(228,222,206,0.12); border-radius:12px; padding:32px 28px 28px; max-width:340px; width:90%; position:relative; text-align:center; box-shadow:0 20px 60px rgba(0,0,0,0.5); }
.msg-picker__label { color:var(--cream,#e4dece); font-size:15px; margin:0 0 20px; letter-spacing:0.03em; }
.msg-picker__btns { display:flex; gap:12px; justify-content:center; }
.msg-picker__btn { display:inline-flex; align-items:center; gap:10px; padding:13px 22px; border-radius:8px; font-size:15px; font-weight:600; text-decoration:none; transition:transform 0.15s, opacity 0.15s; }
.msg-picker__btn:hover { transform:translateY(-2px); opacity:0.92; }
.msg-picker__btn--tg { background:#2AABEE; color:#fff; }
.msg-picker__btn--wa { background:#25D366; color:#fff; }
.msg-picker__close { position:absolute; top:10px; right:14px; background:none; border:none; color:rgba(228,222,206,0.5); font-size:24px; line-height:1; cursor:pointer; padding:4px 6px; }
.msg-picker__close:hover { color:#e4dece; }
@media (max-width:400px) { .msg-picker__btns { flex-direction:column; } .msg-picker__btn { justify-content:center; } }
