/* ============================================================
   МАРШРУТ — экскурсионное бюро
   Тон: тёплая карта. Кремовая бумага, глубокий индиго и
   терракота, округлый гротеск. Первый экран — нитка маршрута
   с тремя точками, а не фотография достопримечательности.
   ============================================================ */

:root {
  --cream: #faf6ee;
  --cream-2: #f2ebdd;
  --ink: #1a1c2b;
  --muted: #62667c;
  --line: #ded5c3;
  --indigo: #23306b;
  --indigo-2: #18234f;
  --terra: #b64d33;
  --terra-2: #a5412a;

  --body: "Onest", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --cart-bg: #fffdf8;
  --cart-fg: var(--ink);
  --cart-shadow: -22px 0 70px rgba(26, 28, 43, 0.26);

  --gut: clamp(16px, 4.5vw, 56px);
  --sec-y: clamp(50px, 6.5vw, 96px);
}

body { background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.62; }
.wrap { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: var(--gut); }

h1, h2, h3 { font-weight: 700; line-height: 1.1; letter-spacing: -0.018em; }
.kicker { margin-bottom: 16px; color: var(--terra); font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.p { max-width: 34em; margin-bottom: 14px; color: var(--muted); }

/* ── Кнопки ─────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 13px 26px; border: 2px solid transparent; border-radius: 999px;
  background: transparent;
  font-size: 14.5px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--lg { padding: 16px 32px; font-size: 15.5px; }
.btn--sm { padding: 9px 17px; font-size: 13px; }
.btn--full { width: 100%; }
.btn--terra { background: var(--terra); color: #fff; }
.btn--terra:hover { background: var(--terra-2); }
.btn--terra:disabled { background: #cfc6b6; cursor: not-allowed; }
.btn--line { border-color: var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--indigo); color: var(--indigo); }
.btn__q:not(:empty) { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 999px; background: rgba(255,255,255,0.26); font-size: 11px; }
[data-add][data-in-cart] { background: var(--indigo); }

/* ── Шапка ──────────────────────────────────────────────── */

.hdr { position: sticky; top: var(--demo-bar-h); z-index: 100; background: rgba(250,246,238,0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 24px; padding-block: 13px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: 0.12em; text-decoration: none; }
.brand__mark { width: 27px; height: 27px; color: var(--terra); }

.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--terra); }
.hdr__side { display: flex; align-items: center; gap: 12px; }

.cart-btn { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--indigo); border-radius: 999px; background: none; color: var(--indigo); padding: 9px 17px; font-size: 13.5px; font-weight: 700; }
.cart-btn:hover { background: var(--indigo); color: var(--cream); }
.cart-btn__n { display: grid; place-items: center; min-width: 19px; height: 19px; border-radius: 999px; background: var(--terra); color: #fff; font-size: 11px; font-variant-numeric: tabular-nums; }

.burger { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 9px 8px; }
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 900px) {
  .hdr__in { position: relative; }
  .nav { display: none; position: absolute; inset: 100% 0 auto; flex-direction: column; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 4px var(--gut) 16px; margin: 0; }
  .nav[data-open] { display: flex; }
  .nav a { padding: 13px 0; border-top: 1px solid var(--line); font-size: 16px; }
  .hdr__side { margin-left: auto; }
  .burger { display: block; }
}

/* ── Первый экран ───────────────────────────────────────── */

.hero { padding-block: clamp(38px, 5vw, 78px); }
.hero__in { display: grid; gap: clamp(32px, 4vw, 60px); align-items: center; }
.hero h1 { font-size: clamp(34px, 5.6vw, 64px); }
.hero h1 em { font-style: normal; color: var(--terra); }
.lede { max-width: 31em; margin-top: 20px; color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.marks { display: grid; gap: 18px; margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); }
.marks b { display: block; font-size: 24px; font-weight: 700; color: var(--indigo); }
.marks span { color: var(--muted); font-size: 12.5px; }
@media (min-width: 520px) { .marks { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .hero__in { grid-template-columns: 1.06fr 0.94fr; } }

/* Нитка маршрута с тремя точками на бумажной сетке. */
.hero__art { position: relative; min-height: 280px; display: grid; place-items: center; }
.map {
  position: relative; width: min(100%, 400px); aspect-ratio: 4 / 3; border-radius: 18px;
  background:
    repeating-linear-gradient(0deg, rgba(26,28,43,0.05) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(26,28,43,0.05) 0 1px, transparent 1px 26px),
    var(--cream-2);
  border: 1px solid var(--line);
}
.map__path { position: absolute; inset: 18% 16%; border: 3px dashed var(--terra); border-radius: 60% 30% 55% 25%; opacity: 0.75; }
.map__pin { position: absolute; width: 16px; height: 16px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--indigo); }
.map__pin--1 { left: 22%; top: 26%; }
.map__pin--2 { right: 20%; top: 40%; background: var(--terra); }
.map__pin--3 { left: 44%; bottom: 18%; }

/* ── Секции ─────────────────────────────────────────────── */

.sec { padding-block: var(--sec-y); }
.sec--cream { background: var(--cream-2); }
.sec--deep { background: var(--indigo); color: #ccd3ee; }
.sec__head { max-width: 46em; margin-bottom: clamp(24px, 3vw, 40px); }
.sec__head h2 { font-size: clamp(26px, 3.8vw, 42px); }
.sec__head p { margin-top: 14px; color: var(--muted); }
.sec__head--light h2 { color: #fff; }
.sec__head--light p { color: #a6b0d6; }

.filters { display: grid; gap: 12px; margin-bottom: 28px; }
.filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters__l { min-width: 66px; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.chip { border: 2px solid var(--line); border-radius: 999px; padding: 8px 17px; background: var(--cream); color: var(--muted); font-size: 13.5px; font-weight: 600; transition: all 0.2s; }
.chip:hover { border-color: var(--indigo); color: var(--indigo); }
.chip[data-on] { background: var(--indigo); border-color: var(--indigo); color: #fff; }

/* ── Экскурсии ──────────────────────────────────────────── */

.tours { display: grid; gap: 20px; }
.tour { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; background: var(--cream); overflow: hidden; }
.tour:hover { border-color: var(--terra); }
.tour__b { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.tour h3 { font-size: 20px; margin-bottom: 7px; }
.tour__b > p { color: var(--muted); font-size: 13.5px; }
.tour__s { display: flex; gap: 20px; margin-top: 14px; }
.tour__s dt { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.tour__s dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; }
.tour__f { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; }
.tour__p { font-size: 20px; font-weight: 700; }
.tour__p i { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; font-style: normal; font-weight: 400; }
.empty { padding: 44px 0; text-align: center; color: var(--muted); }
@media (min-width: 620px) { .tours { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .tours { grid-template-columns: repeat(4, 1fr); } }

/* ── Что входит ─────────────────────────────────────────── */

.incl { display: grid; gap: 20px; }
.incl ul { display: grid; gap: 10px; border: 1px solid rgba(204,211,238,0.24); border-radius: 16px; padding: 22px; }
.incl li { position: relative; padding-left: 28px; font-size: 14.5px; }
.incl__yes li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 13px; height: 7px; border-left: 2px solid #7fd6a8; border-bottom: 2px solid #7fd6a8; transform: rotate(-45deg); }
.incl__no { color: #a6b0d6; }
.incl__no li::before { content: "×"; position: absolute; left: 4px; top: -1px; color: #e08a72; font-size: 17px; }
@media (min-width: 800px) { .incl { grid-template-columns: repeat(2, 1fr); } }

/* ── Гиды ───────────────────────────────────────────────── */

.guides { display: grid; gap: 22px; }
.guides li { text-align: center; }
.guides__a { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 4; margin-bottom: 16px; border-radius: 18px; background: linear-gradient(165deg, #e6ddcb, #cbbda4); font-size: 52px; font-weight: 700; color: rgba(26,28,43,0.22); }
.guides__a::before { content: attr(data-i); }
.guides h3 { font-size: 18px; margin-bottom: 5px; }
.guides li p { color: var(--terra); font-size: 13.5px; }
.guides__m { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; }
@media (min-width: 560px) { .guides { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .guides { grid-template-columns: repeat(4, 1fr); } }

/* ── Бронирование ───────────────────────────────────────── */

.book { display: grid; gap: clamp(28px, 3.5vw, 52px); }
.book h2 { font-size: clamp(26px, 3.8vw, 42px); margin-bottom: 16px; }
.book__form { display: grid; gap: 14px; border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 2.6vw, 30px); background: var(--cream); }
.book__row { display: grid; gap: 14px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 12.5px; }
input, select { border: 2px solid var(--line); border-radius: 12px; background: #fffdf8; color: var(--ink); padding: 11px 14px; font-size: 15px; }
input:focus, select:focus { outline: 2px solid var(--terra); outline-offset: 0; border-color: var(--terra); }
.book__sum { display: flex; align-items: baseline; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }
.book__sum b { font-size: 26px; font-weight: 700; }
.legal { color: var(--muted); font-size: 12px; }
@media (min-width: 560px) { .book__row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .book { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }

.done { grid-column: 1 / -1; border: 2px solid var(--indigo); border-radius: 20px; padding: 24px; background: #eef1fa; }
.done__t { font-size: 20px; font-weight: 700; }
.done__s { margin-top: 8px; color: var(--muted); }
.done__d { margin-top: 14px; color: #8288a0; font-size: 13px; }

/* ── Вопросы ────────────────────────────────────────────── */

.faq__h { font-size: clamp(26px, 3.8vw, 42px); margin-bottom: 24px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; background: var(--cream-2); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 17px 20px; cursor: pointer; font-size: 16px; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--terra); font-size: 21px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; max-width: 62em; }

/* ── Бронь в панели ─────────────────────────────────────── */

.cart__top { display: flex; align-items: center; justify-content: space-between; padding: 20px var(--gut) 16px; border-bottom: 1px solid var(--line); }
.cart__top h2 { font-size: 21px; }
.cart__x { width: 36px; height: 36px; border: 2px solid var(--line); border-radius: 999px; background: none; font-size: 19px; line-height: 1; color: var(--ink); }
.cart__x:hover { background: var(--terra); border-color: var(--terra); color: #fff; }
.cart__empty { padding: 32px var(--gut); color: var(--muted); }
.cart__empty a { color: var(--terra); }
.cart__body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cart__lines { flex: 1; padding: 6px var(--gut); }

.line { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line__i b { display: block; font-size: 14px; font-weight: 700; }
.line__u { color: var(--muted); font-size: 12px; }
.line__q { display: flex; align-items: center; gap: 4px; }
.line__q button { width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 999px; background: none; font-size: 14px; line-height: 1; }
.line__q button:hover { border-color: var(--terra); color: var(--terra); }
.line__q span { min-width: 18px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.line__p { font-weight: 700; font-size: 14px; white-space: nowrap; }
.line__x { width: 26px; height: 26px; border: 0; background: none; color: #b3aa98; font-size: 18px; line-height: 1; }
.line__x:hover { color: var(--terra); }

.cart__sum { padding: 14px var(--gut); border-top: 1px solid var(--line); display: grid; gap: 7px; }
.cart__sum > div { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; color: var(--muted); }
.cart__sum--total { padding-top: 8px; border-top: 1px dashed var(--line); color: var(--ink) !important; font-size: 18px !important; }
.cart__sum--total dd { font-weight: 700; }
.cart__note { padding: 0 var(--gut) 12px; color: var(--muted); font-size: 12.5px; }
.cart__body > .btn { margin: 0 var(--gut) calc(var(--gut) + 6px); width: auto; }
.cart__backdrop { position: fixed; inset: 0; z-index: 290; border: 0; }

/* ── Подвал ─────────────────────────────────────────────── */

.foot { background: var(--ink); color: #9599ad; padding-block: clamp(36px, 5vw, 60px); }
.foot__in { display: grid; gap: 28px; }
.foot__brand { font-size: 21px; font-weight: 700; letter-spacing: 0.12em; color: var(--cream); }
.foot__t { margin-top: 10px; font-size: 13.5px; line-height: 1.7; }
.foot h3 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #e08a72; margin-bottom: 12px; font-weight: 400; }
.foot a { display: block; padding: 4px 0; color: #9599ad; font-size: 14px; text-decoration: none; }
.foot a:hover { color: var(--cream); }
@media (min-width: 700px) { .foot__in { grid-template-columns: 1.7fr 1fr 1fr; } }

.tour__pic {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--cream-2);
}
