/* Комфорт и уют, sa153.ru */

@font-face {
  font-family: "Geologica";
  src: url("../fonts/geologica-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geologica";
  src: url("../fonts/geologica-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Из latin-ext нужен только знак рубля: файл грузится, лишь когда ₽ есть на странице */
@font-face {
  font-family: "Geologica";
  src: url("../fonts/geologica-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+20BD;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-cyr.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-lat.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --sky: #151d45;
  --dusk: #1d2139;
  --night: #24283f;
  --river: #313858;
  --ink: #1d2133;
  --muted: #646a7d;
  --line: #dcdbd6;
  --paper: #f3f2ef;
  --card: #fff;
  --glow: #f4b860;
  --lime: #cfe86a;
  --red: #b3392f;
  --wrap: 1240px;
  --g: clamp(16px, 4vw, 40px);
  --display: Geologica, "Golos Text", system-ui, sans-serif;
  --text: "Golos Text", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--text); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--g); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--lime); color: var(--ink); text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 26px; border-radius: 14px; border: 0;
  font: 600 16px/1 var(--text); text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #bfdc4f; }
.btn-dark { background: var(--dusk); color: #fff; }
.btn-dark:hover { background: #2c3152; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn-sm { min-height: 44px; height: 44px; padding: 0 22px; border-radius: 12px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Hero ---------- */
/* Фото прижато к низу и не выше своей естественной высоты, а небо над ним
   продолжает фон того же цвета, что верх кадра. Так текст всегда стоит
   в небе, а не на кирпичах фасада */
.hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: min(100svh, 980px);
  display: flex; flex-direction: column;
  background: var(--sky);
}
.hero picture {
  position: absolute; left: 0; right: 0; bottom: -7%; /* низ кадра всё равно под плашкой брони */
  height: min(100%, 56.3vw); /* 1672×941 во всю ширину */
}
.hero picture img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%);
          mask-image: linear-gradient(to bottom, transparent, #000 14%);
}
.hero::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 160px;
  background: linear-gradient(rgba(20, 23, 42, .55), transparent);
  pointer-events: none;
}
.bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { font: 700 22px/1 var(--display); text-decoration: none; letter-spacing: -.01em; }
.bar nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.bar nav a { text-decoration: none; opacity: .72; }
.bar nav a:hover { opacity: 1; }
.phone { font: 600 18px/1 var(--display); text-decoration: none; white-space: nowrap; }
@media (max-width: 900px) { .bar nav { display: none; } .phone { margin-left: auto; } }
@media (max-width: 400px) { .logo { font-size: 19px; } .phone { font-size: 16px; } }

.stage { position: relative; z-index: 2; text-align: center; padding-top: clamp(16px, 4vh, 48px); }
.hero h1 {
  margin: 0 auto; max-width: 18ch;
  font: 800 clamp(44px, 6vw, 104px)/.9 var(--display);
  letter-spacing: -.04em; text-wrap: balance;
  text-shadow: 0 2px 30px rgba(20, 23, 42, .35);
}
.hero .lead { margin: 20px auto 0; max-width: 52em; font-size: clamp(17px, 1.4vw, 19px); color: rgba(255,255,255,.85); }
.where { display: inline-block; margin-top: 10px; color: var(--glow); font-size: 15px; }
.where .trip { margin-left: .8em; color: rgba(255,255,255,.72); }
@media (max-width: 700px) { .where .trip { display: block; margin: 4px 0 0; } }

/* На телефоне первый экран отдан брони: шапка по высоте текста, дом узкой
   полосой под ним (кадр 1024×1536, крыша на 62% высоты), плашка сразу за домом.
   Фон шапки сам доходит до цвета неба над крышей, чтобы полоса не обрывалась */
@media (max-width: 700px) {
  .hero { min-height: 0; background: linear-gradient(var(--sky) 35%, #474963 calc(100% - 44vw), #977d80); }
  .hero picture { position: static; order: 3; height: 44vw; margin-top: 6px; }
  .hero picture img {
    object-position: 50% 78%;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28%);
            mask-image: linear-gradient(to bottom, transparent, #000 28%);
  }
  .bar { height: 60px; }
  .stage { padding-top: 4px; }
  .hero h1 { font-size: clamp(30px, 9vw, 40px); line-height: .95; }
  .hero .lead { margin-top: 12px; font-size: 15.5px; line-height: 1.45; }
  .where { margin-top: 8px; font-size: 14px; }
  .picker { margin-top: -44px; }
}

/* ---------- Плашка брони ---------- */
.picker {
  position: relative; z-index: 4;
  margin: clamp(-90px, -7vw, -60px) auto 0;
  max-width: calc(var(--wrap) - 2 * var(--g));
  background: var(--card); border-radius: 22px; padding: 10px;
  box-shadow: 0 30px 60px -30px rgba(29, 33, 51, .45);
  scroll-margin-top: 16px;
}
@media (max-width: 1280px) { .picker { margin-left: var(--g); margin-right: var(--g); } }
/* Ширину раскладки формы задаёт её контейнер, а не экран: та же форма живёт и в шапке, и в узком окне брони.
   Пороги 568 и 1000 px соответствуют экранам 640 и 1100 px для плашки в шапке */
.bron-in { container: bron / inline-size; }
/* Варианты брони плитками с ценой: все четыре видны сразу и на узком экране */
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 4px; }
@container bron (min-width: 568px) { .tabs { grid-template-columns: repeat(4, minmax(0, 190px)); } }
.tabs button {
  min-width: 0; padding: 9px 4px 10px; border: 1.5px solid var(--line); border-radius: 14px;
  background: #fff; color: var(--ink); text-align: center; cursor: pointer;
}
.tabs small { display: block; font: 400 13px/1.2 var(--text); color: var(--muted); }
.tabs strong { display: block; margin-top: 4px; font: 700 17px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
@container bron (max-width: 340px) {
  .tabs { gap: 4px; }
  .tabs button { padding-inline: 2px; }
  .tabs strong { font-size: 15px; letter-spacing: -.02em; }
}
.tabs button:hover:not([aria-selected="true"]):not(:disabled) { border-color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--dusk); border-color: var(--dusk); color: #fff; }
.tabs button[aria-selected="true"] small { color: rgba(255,255,255,.75); }
.tabs button:disabled { cursor: default; }

.book { padding: 2px 10px 10px; }
.fld { position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 0; border: 0; }
.fld .lab, .fld label { display: block; padding: 0; margin: 0 0 6px; font-size: 13.5px; line-height: 1.3; color: var(--muted); white-space: nowrap; }

/* Все поля одной высоты и одного вида: кнопка-выбор, счётчик, текстовое поле */
.pick, .stepper, .fld input {
  height: 54px; border-radius: 14px; background: #f6f5f2;
  border: 1.5px solid transparent; font: 500 16px/1.2 var(--text); color: var(--ink);
}
.pick { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0 14px 0 16px; text-align: left; cursor: pointer; }
.pick .pv { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick .pv small { font-weight: 400; color: var(--muted); font-size: 14.5px; }
.pick svg { flex: none; color: var(--muted); }
.pick:hover, .stepper:hover { background: #efeee9; }
.pick[aria-expanded="true"] { background: #fff; border-color: var(--dusk); }
.stepper { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; padding: 0 3px; }
.stepper button { height: 46px; border: 0; border-radius: 11px; background: transparent; font: 400 24px/1 var(--text); color: var(--ink); cursor: pointer; }
.stepper button:hover:not(:disabled) { background: #fff; }
.stepper button:disabled { color: #c3c2bc; cursor: default; }
.stepper output { text-align: center; font-variant-numeric: tabular-nums; }
.fld input { width: 100%; padding: 0 14px; font-weight: 400; }
.fld input:focus { outline: none; border-color: var(--dusk); background: #fff; }
.fld [aria-invalid="true"] { border-color: var(--red); background: #fff; }

/* Шаг 1: цена, поля, кнопка в одну строку */
.s1 { display: grid; gap: 12px; align-items: end; padding: 10px 4px 2px; grid-template-columns: 1fr; }
@container bron (min-width: 568px) {
  .s1 { grid-template-columns: var(--cols, 1fr) auto; }
  .s1 .price-col { grid-column: 1 / -1; }
}
@container bron (min-width: 1000px) {
  .s1 { grid-template-columns: auto var(--cols, 1fr) auto; gap: 12px 14px; }
  .s1 .price-col { grid-column: auto; max-width: 270px; padding-right: 6px; }
}
.s1 > .btn { height: 54px; }
.price { font: 600 16px/1.3 var(--text); }
.note { margin: 6px 0 0; font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.room-pick { color: var(--ink); font-weight: 500; }
.room-pick .linkbtn { margin-left: 4px; font-weight: 400; }

/* Поповеры выбора */
.pop {
  position: absolute; z-index: 30; top: calc(100% + 8px); left: 0;
  background: #fff; border-radius: 20px; padding: 18px;
  box-shadow: 0 30px 70px -24px rgba(29,33,51,.5), 0 0 0 1px rgba(29,33,51,.07);
}
.pop-when { width: min(620px, calc(100vw - 32px)); display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px 22px; }
.pop-range { width: min(340px, calc(100vw - 32px)); display: grid; gap: 14px; }
.pop-h { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-height: 292px; overflow: auto; align-content: start; padding: 2px 4px 2px 2px; }
.slot { height: 42px; border: 1.5px solid var(--line); background: #fff; border-radius: 11px; font: 500 15px var(--text); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--dusk); }
.slot[aria-pressed="true"] { background: var(--dusk); border-color: var(--dusk); color: #fff; }
.slots-empty { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 15px; }
.pop-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pop-foot span { font-weight: 600; }
@media (max-width: 639px) {
  .pop { position: fixed; top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 88vh; overflow: auto; }
  .pop-when { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(4, minmax(0, 1fr)); max-height: 150px; }
}
/* Узко: счётчик и кнопка в одну строку, плашка ниже на целое поле */
@container bron (max-width: 567.98px) {
  .s1 { grid-template-columns: minmax(0, 1fr) auto; }
  .s1 .price-col, .s1 > .fld:has(> .pick) { grid-column: 1 / -1; }
  .s1:not(:has(> .fld:not([hidden]) > .stepper)) > .btn { grid-column: 1 / -1; }
  .s1 > .btn { padding: 0 12px; }
  .stepper { grid-template-columns: 40px 1fr 40px; }
}

/* Календарь Air Datepicker в цветах сайта */
.pop .air-datepicker {
  --adp-font-family: var(--text);
  --adp-font-size: 15px;
  --adp-width: 300px;
  --adp-padding: 0;
  --adp-border-radius: 0;
  --adp-border-color-inline: transparent;
  --adp-background-color: transparent;
  --adp-color: var(--ink);
  --adp-accent-color: var(--dusk);
  --adp-color-current-date: #b0661e;
  --adp-day-name-color: var(--muted);
  --adp-nav-height: 40px;
  --adp-nav-arrow-color: var(--ink);
  --adp-day-cell-height: 38px;
  --adp-cell-border-radius: 10px;
  --adp-cell-background-color-hover: #f1f0ec;
  --adp-cell-background-color-selected: var(--dusk);
  --adp-cell-background-color-selected-hover: #343a5a;
  --adp-cell-background-color-in-range: #eef5cf;
  --adp-cell-background-color-in-range-hover: #e3efb3;
  --adp-cell-border-color-in-range: var(--dusk);
  --adp-color-disabled: #c3c2bc;
  width: 100%;
}
.pop .air-datepicker-nav--title { font: 600 16px var(--display); text-transform: capitalize; }
.pop .air-datepicker-nav--title i { color: var(--muted); font-style: normal; font-weight: 400; }
.pop .air-datepicker-cell.-current- { font-weight: 600; }
@media (max-width: 639px) { .pop .air-datepicker { --adp-width: 100%; } }

/* Шаг 2 и итог */
.s2, .s3 { padding: 14px 4px 2px; }
.sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 16px; }
.sum b { font: 700 clamp(20px, 2vw, 24px)/1.2 var(--display); letter-spacing: -.01em; }
.sum span { color: var(--muted); }
.s2-grid { display: grid; gap: 14px; align-items: start; }
@container bron (min-width: 880px) { .s2-grid { grid-template-columns: .8fr 1fr; } }
.s2-end { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-top: 16px; }
.err { margin: 6px 0 0; font-size: 13.5px; color: var(--red); }
.err:empty { display: none; }
.checks { display: grid; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--dusk); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.ok-h { display: block; font: 700 clamp(24px, 2.6vw, 30px)/1.1 var(--display); letter-spacing: -.02em; }
.s3 p { margin: 8px 0 12px; color: var(--muted); }
.s4 .ok-h { color: var(--red); }
.s4 .actions { margin-top: 4px; }
#send[aria-busy="true"] { opacity: .6; cursor: progress; }
.alt { margin: 14px var(--g) 0; text-align: center; font-size: 15px; color: var(--muted); }

/* ---------- Секции ---------- */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.picker + .alt + .sec { padding-top: clamp(56px, 7vw, 96px); }
.sec-paper { background: #e9e8e3; }
.sec-night { background: var(--night); color: #fff; }
.head { display: grid; gap: 14px 56px; margin-bottom: clamp(28px, 4vw, 48px); }
@media (min-width: 900px) { .head { grid-template-columns: 1fr 1fr; align-items: end; } }
.sec h2, .final h2 { font: 700 clamp(34px, 4.6vw, 60px)/1 var(--display); letter-spacing: -.03em; max-width: 13ch; text-wrap: balance; }
.head p { margin: 0; max-width: 30em; color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); }
.sec-night .head p { color: rgba(255,255,255,.7); }
.sec h3 { font: 700 22px/1.15 var(--display); letter-spacing: -.015em; }

/* Номера */
.room h3 span { margin-left: 6px; font: 500 15px var(--text); color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.room p { margin: 10px 0 0; color: var(--muted); }
.room .for { margin: 8px 0 0; color: var(--ink); font-weight: 500; }
.inside { margin: 12px 0 0; padding: 0; list-style: none; color: var(--muted); }
.inside li { position: relative; padding-left: 16px; }
.inside li + li { margin-top: 4px; }
.inside li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--glow); }
.tariff { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 18px 0 20px; }
.tariff dt { font-size: 13.5px; color: var(--muted); }
.tariff dd { margin: 2px 0 0; font: 700 22px/1.1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.room-big { display: grid; gap: 22px 48px; margin-bottom: clamp(40px, 5vw, 64px); }
.room-big .gal { aspect-ratio: 3 / 2; }
.room-big h3 { font-size: clamp(30px, 3vw, 40px); letter-spacing: -.025em; }
.room-big h3 span { font-size: 17px; }
.room-big .for { font-size: 18px; }
.room-big .inside { font-size: 17px; }
.room-big .tariff dd { font-size: clamp(26px, 2.4vw, 32px); }
@media (min-width: 1000px) {
  .room-big { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; }
}
.rooms { display: grid; gap: 40px 28px; }
@media (min-width: 700px) { .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .rooms { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rooms .room { display: flex; flex-direction: column; }
.rooms .room .gal { aspect-ratio: 4 / 3; margin-bottom: 18px; }
.rooms .room .tariff { margin-top: auto; padding-top: 18px; }
.rooms .room .btn { align-self: flex-start; }
.room { scroll-margin-top: 24px; }

/* Фото номера: листаются свайпом или стрелками, по клику открываются на весь экран */
.gal { position: relative; overflow: hidden; border-radius: 20px; background: var(--line); }
.gal-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-item { flex: 0 0 100%; height: 100%; margin: 0; padding: 0; border: 0; background: none; scroll-snap-align: start; cursor: zoom-in; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; }
.gal-item:focus-visible { outline-offset: -4px; }
.gal-nav {
  position: absolute; top: 50%; translate: 0 -50%;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--ink); cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(20,23,42,.5); opacity: 0; transition: opacity .2s;
}
.gal-nav.prev { left: 12px; }
.gal-nav.next { right: 12px; }
.gal:hover .gal-nav, .gal-nav:focus-visible { opacity: 1; }
.gal .gal-nav:disabled { opacity: 0; pointer-events: none; }
@media (hover: none) { .gal-nav { display: none; } }
.gal-count {
  position: absolute; right: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px;
  background: rgba(21, 29, 69, .74); color: #fff; font-size: 13px; line-height: 1; font-variant-numeric: tabular-nums; pointer-events: none;
}

/* Окно брони: в него переносится форма из шапки, поэтому выбор везде один.
   На телефоне выезжает снизу, на компьютере стоит по центру */
html:has(.sheet[open]) { overflow: hidden; }
.sheet {
  width: min(480px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; border: 0; border-radius: 22px;
  background: var(--card); color: var(--ink); overflow: auto; overscroll-behavior: contain;
}
.sheet::backdrop { background: rgba(12, 15, 34, .55); }
.sheet[open] { animation: sheet-in .2s ease-out; }
@keyframes sheet-in { from { opacity: 0; translate: 0 12px; } }
.sheet-in { padding: 10px; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 2px 8px 14px; }
.sheet-top h2 { font: 700 20px/1.2 var(--display); letter-spacing: -.01em; }
.sheet-x { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #f1f0ec; color: var(--ink); cursor: pointer; }
.sheet-x:hover { background: #e7e6e0; }
/* Календарь в окне открывается по центру экрана: под полем ему не хватает ширины окна */
@media (min-width: 640px) {
  .sheet .pop { position: fixed; top: 50%; left: 50%; translate: -50% -50%; max-height: calc(100dvh - 32px); overflow: auto; }
}
@media (max-width: 639px) {
  .sheet { width: 100%; margin: auto 0 0; max-height: calc(100dvh - 12px); border-radius: 22px 22px 0 0; }
  .sheet-in { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .sheet[open] { animation: sheet-up .25s ease-out; }
}
@keyframes sheet-up { from { translate: 0 100%; } }
@media (prefers-reduced-motion: reduce) { .sheet[open] { animation: none; } }

/* Просмотр фото на весь экран */
html:has(.lb[open]) { overflow: hidden; }
.lb {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(12, 15, 34, .97); color: #fff;
}
.lb::backdrop { background: rgba(12, 15, 34, .6); }
.lb-fig { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; margin: 0; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; padding: 64px 76px 0; }
.lb-stage img {
  max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px;
  cursor: zoom-in; user-select: none; -webkit-user-select: none; transition: transform .25s ease;
}
.lb.zoom .lb-stage img { transform: scale(2.2); cursor: zoom-out; touch-action: none; }
.lb figcaption { display: flex; justify-content: space-between; gap: 16px; padding: 14px 76px 22px; font-size: 15px; color: rgba(255,255,255,.75); }
.lb #lb-n { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer;
}
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 10px; right: 12px; }
.lb-prev, .lb-next { top: 50%; translate: 0 -50%; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb.single .lb-prev, .lb.single .lb-next, .lb.zoom .lb-prev, .lb.zoom .lb-next { display: none; }
@media (max-width: 700px) {
  .lb-stage { padding: 60px 0 0; }
  .lb figcaption { padding: 12px 128px 20px 16px; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; translate: none; width: 44px; height: 44px; }
  .lb-prev { left: auto; right: 64px; }
  .lb-next { right: 12px; }
}
@media (prefers-reduced-motion: reduce) { .lb-stage img { transition: none; } }

.incl { display: grid; gap: 12px 40px; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1.5px solid var(--ink); }
@media (min-width: 900px) { .incl { grid-template-columns: 220px 1fr; } }
.incl h3 { font-size: 18px; }
.incl ul { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; padding: 0; list-style: none; color: var(--muted); }

/* Цены */
.price-grid { display: grid; gap: 36px 56px; }
@media (min-width: 900px) { .price-grid { grid-template-columns: 1fr 1.2fr; } }
.plist h3 { margin-bottom: 14px; }
.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 9px 0 9px 30px; border-top: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 12px; height: 7px; border: solid var(--ink); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.fn { margin: 12px 0 0; font-size: 14.5px; color: var(--muted); }
.costs { margin: 0; }
.costs div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 9px 0; border-top: 1px solid var(--line); }
.costs dt small { display: block; font-size: 14px; color: var(--muted); }
.costs dd { margin: 0; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.costs dd small { font-weight: 400; font-size: 14px; color: var(--muted); }
.deals { display: grid; gap: 16px; margin-top: clamp(40px, 5vw, 56px); scroll-margin-top: 24px; }
@media (min-width: 760px) { .deals { grid-template-columns: 1fr 1fr; } }
.deal { display: grid; grid-template-columns: auto 1fr; gap: 4px 24px; align-items: baseline; padding: 26px 28px; border-radius: 22px; background: var(--dusk); color: #fff; }
.deal b { grid-row: span 2; font: 800 clamp(40px, 4.4vw, 56px)/.9 var(--display); letter-spacing: -.04em; color: var(--lime); white-space: nowrap; }
.deal h3 { font-size: 20px; }
.deal p { margin: 0; color: rgba(255,255,255,.72); font-size: 15.5px; }
@media (max-width: 480px) { .deal { grid-template-columns: 1fr; } .deal b { grid-row: auto; margin-bottom: 8px; } }

/* Карта */
.mapcard { margin: 0; background: var(--night); color: #fff; border-radius: 28px; overflow: hidden; }
.map { display: block; width: 100%; height: auto; }
.map .ob { fill: none; stroke: var(--river); stroke-width: 34; stroke-linecap: round; stroke-linejoin: round; }
.map .ob-l { fill: #59618a; font: italic 500 20px var(--text); letter-spacing: .08em; }
.map .rt { fill: none; stroke: var(--glow); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.map .rt.foot { stroke: var(--lime); stroke-width: 2.5; stroke-dasharray: 2 7; }
.map .pts circle { fill: #fff; stroke: var(--night); stroke-width: 3; }
.map .home { fill: var(--lime); stroke: var(--night); stroke-width: 3; }
.map .ldr { stroke: rgba(255,255,255,.28); stroke-width: 1.5; }
.map .lbl { fill: #fff; }
.map .lbl .mn { font: 700 40px var(--display); fill: var(--glow); letter-spacing: -.02em; }
.map .lbl .nm { font: 400 19px var(--text); fill: rgba(255,255,255,.82); }
.map .lbl.walk .mn { fill: var(--lime); }
.map .home-l { font: 600 19px var(--display); fill: var(--lime); }
/* Маршруты прорисовываются один раз, когда блок появился на экране */
.js .map .rt:not(.foot) { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s cubic-bezier(.6,.1,.2,1); }
.js .map .rt.foot, .js .map .pts, .js .map .labels { opacity: 0; transition: opacity .6s ease 1.1s; }
.js .mapcard.go .rt:not(.foot) { stroke-dashoffset: 0; }
.js .mapcard.go .rt.foot, .js .mapcard.go .pts, .js .mapcard.go .labels { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .map .rt, .js .map .pts, .js .map .labels { transition: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; }
}
/* На телефоне подписи на карте мельчат: карта остаётся картинкой, минуты списком */
.legend { display: none; margin: 0; padding: 4px 20px 6px; list-style: none; }
.legend li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); }
.legend b { font: 700 18px var(--display); color: var(--glow); white-space: nowrap; }
.legend .w b { color: var(--lime); }
@media (max-width: 700px) {
  .map .labels, .map .ldr { display: none; }
  .legend { display: block; }
}
.mapcard figcaption { padding: 14px clamp(20px, 3vw, 32px) 18px; font-size: 13.5px; color: rgba(255,255,255,.55); }
.route { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 24px; }
.route p { margin: 0; max-width: 34em; color: var(--muted); }
.route p b { color: var(--ink); font-weight: 600; }

/* Спокойно и чисто */
.facts { display: grid; gap: 0 56px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts li { padding: 22px 0; border-top: 1px solid rgba(255,255,255,.14); }
.facts p { margin: 8px 0 0; color: rgba(255,255,255,.7); }

/* Командировки */
.work { display: grid; gap: 36px 64px; align-items: center; }
@media (min-width: 960px) { .work { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.work .sub { margin: 16px 0 22px; max-width: 30em; color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); }
.work .ticks { margin-bottom: 28px; }
.work-img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 22px; background: var(--line); }

/* Правила */
.rules { display: grid; gap: 0 32px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .rules { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .rules { grid-template-columns: repeat(4, 1fr); } }
.rules li { padding: 20px 0; border-top: 1.5px solid var(--ink); }
.rules b { display: block; font: 700 clamp(26px, 2.6vw, 32px)/1.05 var(--display); letter-spacing: -.02em; }
.rules span { display: block; margin-top: 8px; color: var(--muted); }
.more { margin: 28px 0 0; font-weight: 600; }
.more a { text-underline-offset: 4px; }

/* Вопросы */
.faq-wrap { display: grid; gap: 24px 64px; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); } }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font: 600 clamp(18px, 1.6vw, 20px)/1.3 var(--display); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 28px/.8 var(--text); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 22px; max-width: 38em; color: var(--muted); }

/* Финал */
.final { padding: clamp(64px, 9vw, 120px) 0; background: var(--sky); color: #fff; text-align: center; }
.final h2 { margin: 0 auto; }
.final p { margin: 16px auto 0; max-width: 34em; color: rgba(255,255,255,.75); font-size: clamp(17px, 1.5vw, 19px); }
.final .actions { justify-content: center; margin-top: 30px; }
.final .addr { margin-top: 26px; font-size: 15px; color: rgba(255,255,255,.55); }

/* Подвал */
.foot { padding: 28px 0 32px; background: #10153a; color: rgba(255,255,255,.6); font-size: 14.5px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.foot p { margin: 0; }
.foot ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.foot a { text-underline-offset: 3px; }
.foot a:hover { color: #fff; }

/* Нижняя панель на телефоне: появляется, когда плашка брони ушла из вида */
.callbar { display: none; }
@media (max-width: 700px) {
  .callbar {
    position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 6px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: rgba(21, 29, 69, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .callbar .btn { min-height: 48px; padding: 0 10px; font-size: 15px; }
  .callbar.on { transform: none; }
  .foot { padding-bottom: 96px; }
}

/* ---------- Внутренние страницы ---------- */
.page-top { background: var(--sky); color: #fff; }
.page-top .bar { height: 76px; }
.doc { max-width: 780px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 9vw, 110px); }
.doc h1 { font: 800 clamp(36px, 5vw, 60px)/1 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.doc .lead { margin: 18px 0 0; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); }
.doc h2 { margin: 44px 0 12px; font: 700 clamp(24px, 2.4vw, 30px)/1.15 var(--display); letter-spacing: -.02em; }
.doc p, .doc li { max-width: 40em; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc .btn { margin-top: 28px; }
