/* ==========================================================================
   Santel — палитра «Белые ночи»: небо над Балтикой в июньскую полночь
   ========================================================================== */

:root {
  --ink: #221c47;
  --ink-soft: #5a5480;
  --night: #3b2f86;
  --paper: #f5f3fa;
  --white: #ffffff;
  --line: #dcd7ec;
  --lilac: #8c7be0;
  --rose: #f0628f;
  --apricot: #ff9f5a;
  --sea: #1fa8a0;
  --error: #c0244a;
  --glow: linear-gradient(100deg, var(--lilac) 0%, var(--rose) 30%, var(--apricot) 55%, var(--rose) 80%, var(--lilac) 100%);

  --rose-ink: #c22d63;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --text: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 28px;
  --ease: cubic-bezier(.77, 0, .18, 1);
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --slide-time: 6500ms;
}

/* ---------- База ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

/* Фон в точку — как страница блокнота путешественника */
body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(34, 28, 71, .08) 1px, transparent 1.3px);
  background-size: 22px 22px;
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word; /* длинные эстонские и финские слова не вылезают за экран */
}

h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: .7rem 1.1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-s);
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 10vw, 136px); }

.section-head {
  display: grid;
  grid-template-columns: 1fr minmax(0, 26rem);
  align-items: end;
  gap: 1rem 3rem;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head p { margin: 0; color: var(--ink-soft); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.5em;
  border: 0;
  border-radius: 999px;
  font: 600 1rem/1 var(--text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-position .6s ease, background-color .25s ease, transform .2s ease;
}
.btn:active { transform: scale(.97); }

.btn--glow {
  background-image: var(--glow);
  background-size: 250% 100%;
  background-position: 0 0;
  color: var(--ink);
}
.btn--glow:hover { background-position: 100% 0; }

.btn--ink { background-color: var(--ink); color: var(--white); }
.btn--ink:hover { background-color: var(--night); }

.btn--block { width: 100%; }

.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Шапка ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--white);
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.logo__tag {
  padding: .3rem .5rem .32rem;
  border-radius: 6px;
  background: var(--apricot);
  color: var(--ink);
  font: 600 .64rem/1 var(--text);
  letter-spacing: .03em;
  transform: rotate(-6deg);
}

/* Рукописная заметка «от хозяев» */
.note {
  display: inline-flex;
  align-items: flex-end;
  gap: .3rem;
  margin: .9rem 0 0 .15rem;
  color: var(--rose-ink);
  font: 600 1.55rem/1.1 var(--hand);
  transform: rotate(-3deg);
  transform-origin: left center;
}
.note__arrow {
  width: 44px;
  height: 28px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.nav a {
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-block: .25rem;
  transition: background-size .3s ease;
}
.nav a:hover,
.nav a[aria-current="page"] { background-size: 100% 2px; }

.site-header__cta { min-height: 44px; }

/* Флаг языка: прямоугольник 3:2 со скруглением; тонкая рамка — чтобы белые полосы не терялись на белом */
.flag {
  display: inline-block;
  flex-shrink: 0;
  width: 1.5em;
  height: 1em;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(34, 28, 71, .16);
  overflow: hidden;
}

/* Языки: флаг и код текущего языка в шапке, по нажатию — список с флагами */
.langs { position: relative; flex-shrink: 0; }
.langs__btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 40px;
  padding: 0 .55rem 0 .7rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 35%, transparent);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .04em;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: box-shadow .2s, background-color .2s;
}
.langs__btn::-webkit-details-marker { display: none; }
.langs__btn:hover,
.langs[open] .langs__btn { box-shadow: inset 0 0 0 1.5px currentColor; }
.langs__btn .flag { width: 22px; height: 15px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.site-header.is-solid .langs__btn .flag,
.site-header--solid .langs__btn .flag,
.site-header.menu-open .langs__btn .flag { box-shadow: 0 0 0 1px rgba(34, 28, 71, .16); }
/* На русской странице значок сам говорит «RU» — код рядом не повторяем */
html[lang="ru"] .langs__code { display: none; }
.langs__btn .langs__chev { width: 16px; height: 16px; opacity: .7; transition: transform .25s var(--ease); }
.langs[open] .langs__btn .langs__chev { transform: rotate(180deg); }
.langs__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 12.5rem;
  margin: 0;
  padding: .35rem;
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 24px 44px -20px rgba(34, 28, 71, .45);
  list-style: none;
  transform-origin: top right;
}
.langs[open] .langs__list { animation: langs-in .18s ease-out; }
@keyframes langs-in {
  from { opacity: 0; transform: translateY(-4px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.langs__list a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .7rem;
  border-radius: 11px;
  font-weight: 500;
  text-decoration: none;
}
.langs__name { display: grid; flex: 1; line-height: 1.25; }
/* Под названием языка — то же название на языке страницы: «Eesti — Estonian» */
.langs__sub { color: var(--ink-soft); font-size: .78rem; font-weight: 400; }
.langs__list a[aria-current="page"] .langs__sub { display: none; }
.langs__list .flag { width: 24px; height: 16px; }
.langs__list a:hover { background: var(--paper); }
.langs__list a:focus-visible { background: var(--paper); outline: 2px solid var(--lilac); outline-offset: -2px; }
.langs__list a[aria-current="page"] { font-weight: 600; }
.langs__list .langs__check { width: 18px; height: 18px; color: var(--rose-ink); visibility: hidden; }
.langs__list a[aria-current="page"] .langs__check { visibility: visible; }
.langs__list li + li { margin-top: 2px; }

/* Языки в подвале: все четыре сразу, с флагами */
.footer__langs { display: flex; flex-wrap: wrap; gap: .4rem; width: 100%; }
.footer__langs a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .8rem .4rem .55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .85);
  font-size: .88rem;
  text-decoration: none;
  transition: background-color .2s;
}
.footer__langs a:hover { background: rgba(255, 255, 255, .14); color: var(--white); }
.footer__langs a[aria-current="page"] { background: rgba(255, 255, 255, .16); color: var(--white); font-weight: 600; }
.footer__langs .flag { width: 21px; height: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); }

/* Смена языка: новая страница выезжает слева направо, как цветные шторки на сайте.
   Работает в браузерах с View Transitions (Chrome, Edge, Safari 18.2+); остальные открывают страницу как обычно.
   Типы переходов ставит js/main.js (pageswap) и скрипт в <head> (pagereveal) — только для смены языка. */
@view-transition { navigation: auto; }
html:active-view-transition-type(lang-switch)::view-transition-old(root) { animation: lang-out .5s var(--ease) both; }
html:active-view-transition-type(lang-switch)::view-transition-new(root) { animation: lang-in-page .5s var(--ease) both; }
@keyframes lang-out { to { opacity: .4; transform: translateX(3%); } }
@keyframes lang-in-page { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* Подсказка «сайт есть и на вашем языке» — для гостей, чей браузер говорит по-эстонски, по-английски или по-фински */
.lang-hint {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  right: var(--gutter);
  z-index: 45;
  display: flex;
  align-items: center;
  gap: .4rem .9rem;
  flex-wrap: wrap;
  max-width: min(420px, calc(100vw - 2 * var(--gutter)));
  padding: .7rem .7rem .7rem 1rem;
  border-radius: 16px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 24px 44px -20px rgba(34, 28, 71, .6);
  font-size: .92rem;
  animation: fade-up .5s ease both;
}
.lang-hint p { margin: 0; flex: 1 1 12rem; }
.lang-hint .flag { width: 21px; height: 14px; margin-right: .5rem; vertical-align: -.15em; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); }
.lang-hint a { color: var(--apricot); font-weight: 600; text-underline-offset: 3px; }
.lang-hint button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.site-header.is-solid,
.site-header.menu-open,
.site-header--solid {
  background-color: rgba(245, 243, 250, .9);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.menu-btn__bars,
.menu-btn__bars::before,
.menu-btn__bars::after {
  display: block;
  width: 22px; height: 2px;
  margin-inline: auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-btn__bars { position: relative; }
.menu-btn__bars::before,
.menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -7px; }
.menu-btn__bars::after { top: 7px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: var(--white);
}

.hero__slides,
.slide {
  position: absolute;
  inset: 0;
  margin: 0;
}

.slide { visibility: hidden; }
.slide.is-active { visibility: visible; }

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.14);
}
.slide.is-active img { animation: kenburns 11s ease-out forwards; }
.slide:nth-child(2n) img { transform-origin: 25% 60%; }
.slide:nth-child(3n) img { transform-origin: 75% 35%; }

@keyframes kenburns {
  from { transform: scale(1.14); }
  to   { transform: scale(1.02); }
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(34, 28, 71, .5) 0%, rgba(34, 28, 71, 0) 22%),
    linear-gradient(15deg, rgba(34, 28, 71, .85) 0%, rgba(34, 28, 71, .35) 45%, rgba(34, 28, 71, 0) 72%);
}

/* Цветные полосы — общий приём для смены фото */
.wipe {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  pointer-events: none;
}
.wipe span {
  flex: 1;
  transform: scaleY(0);
  background: var(--c);
}
.wipe span:nth-child(1) { --c: var(--night);   --i: 0; }
.wipe span:nth-child(2) { --c: var(--lilac);   --i: 1; }
.wipe span:nth-child(3) { --c: var(--rose);    --i: 2; }
.wipe span:nth-child(4) { --c: var(--apricot); --i: 3; }
.wipe span:nth-child(5) { --c: var(--sea);     --i: 4; }

.hero > .wipe {
  inset: -12% -18%;
  transform: skewX(-12deg);
}

/* Первый показ страницы: полосы уходят вверх, затем появляется название */
.js .hero > .wipe span,
.js .stage__body > .wipe span {
  animation: band-out .8s var(--ease) both;
  animation-delay: calc(.15s + var(--i) * 85ms);
}
@keyframes band-out {
  from { transform: scaleY(1); transform-origin: 50% 0; }
  to   { transform: scaleY(0); transform-origin: 50% 0; }
}

.hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(104px, 15vh, 150px);
}

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
}

.hero__content { min-width: 0; }

.hero__title {
  position: relative;
  display: inline-block;
  font-size: clamp(4rem, 13vw, 12rem);
  font-weight: 600;
  line-height: .86;
  letter-spacing: -0.06em;
  margin-left: -.04em;
}

.hero__lead {
  max-width: 33rem;
  margin: 1.4rem 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, .92);
}

/* Наклейка «apart hostel», прилепленная к названию */
.hero__sticker {
  position: absolute;
  left: calc(100% - .14em);
  top: -.08em;
  display: grid;
  place-items: center;
  width: clamp(66px, 8.5vw, 118px);
  height: clamp(66px, 8.5vw, 118px);
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--rose);
  color: var(--ink);
  font: 600 clamp(.62rem, .95vw, 1.02rem)/1.05 var(--display);
  letter-spacing: -0.01em;
  text-align: center;
  transform: rotate(12deg);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .55);
}
.js .hero__sticker { animation: slap .55s cubic-bezier(.3, 1.5, .5, 1) 1.45s both; }
@keyframes slap {
  from { opacity: 0; transform: rotate(32deg) scale(1.8); }
  to   { opacity: 1; transform: rotate(12deg) scale(1); }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.4rem;
  padding: .5rem 1rem .5rem .75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--white);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .25s ease;
}
.hero__badge:hover { background: rgba(255, 255, 255, .24); }
.hero__badge svg { width: 18px; height: 18px; fill: var(--apricot); }
.hero__badge span {
  padding-left: .6rem;
  border-left: 1px solid rgba(255, 255, 255, .35);
  font-weight: 400;
  opacity: .85;
}

.js .hero__title { animation: rise 1.1s var(--ease) .55s both; }
.js .hero__lead  { animation: fade-up .9s ease 1s both; }
.js .hero__badge { animation: fade-up .9s ease 1.15s both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(.3em); clip-path: inset(-20% -50% 100% -10%); }
  to   { opacity: 1; transform: none; clip-path: inset(-20% -50% -20% -10%); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.hero__controls {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  flex-shrink: 0;
}

.hero__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .35rem;
  width: 220px;
}
.hero__nav button {
  display: block;
  width: 100%;
  padding: .3rem 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .62);
  font: 500 .95rem/1.3 var(--text);
  text-align: left;
  cursor: pointer;
  transition: color .3s;
}
.hero__nav button:hover,
.hero__nav button[aria-current="true"] { color: var(--white); }

.bar {
  display: block;
  height: 3px;
  margin-top: .45rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, .22);
  overflow: hidden;
}
.bar::after {
  content: "";
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--lilac), var(--rose), var(--apricot));
  transform: scaleX(0);
  transform-origin: left;
}
.hero__nav [aria-current="true"] .bar::after {
  animation: progress var(--slide-time) linear forwards;
}
.hero.is-paused .bar::after { animation-play-state: paused; }

@keyframes progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero__pause {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex-shrink: 0;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(34, 28, 71, .25);
  color: var(--white);
  cursor: pointer;
  transition: background-color .25s, border-color .25s;
}
.hero__pause:hover { background: rgba(255, 255, 255, .15); border-color: var(--white); }
.hero__pause svg { width: 20px; height: 20px; fill: currentColor; }
.hero__pause .icon-play,
.hero.is-paused .hero__pause .icon-pause { display: none; }
.hero.is-paused .hero__pause .icon-play { display: block; }

/* ---------- Быстрый поиск ---------- */

.quick {
  position: relative;
  z-index: 5;
  margin-top: -58px;
  padding-inline: var(--gutter);
}

.js .quick { animation: fade-up .9s ease 1.25s both; }

.quick__form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: .6rem;
  padding: .6rem;
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin-inline: auto;
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: 0 30px 60px -28px rgba(34, 28, 71, .45);
}

.quick__field {
  display: grid;
  gap: .1rem;
  padding: .55rem 1rem;
  border-radius: var(--radius-m);
  background: var(--paper);
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
}
.quick__field:focus-within { box-shadow: inset 0 0 0 2px var(--lilac); }
.quick__field input,
.quick__field select {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 500 1rem/1.5 var(--text);
  outline: none;
}
.quick__btn { min-height: 100%; padding-inline: 2rem; }

/* «Сегодня ночью свободно» под быстрым поиском: зелёная точка — данные живые */
.quick__today {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .35rem .7rem;
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin: .9rem auto 0;
  color: var(--ink-soft);
  font-size: .95rem;
  text-align: center;
}
.quick__today[hidden] { display: none; }
.quick__today b { color: var(--ink); font-weight: 600; }
.quick__today button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--night);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.quick__dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: .55em;
  vertical-align: .05em;
  border-radius: 50%;
  background: var(--sea);
  animation: live-dot 2.2s ease-out infinite;
}
.quick__today.is-full .quick__dot { background: var(--rose); animation: none; }
@keyframes live-dot {
  from { box-shadow: 0 0 0 0 rgba(31, 168, 160, .55); }
  to   { box-shadow: 0 0 0 10px rgba(31, 168, 160, 0); }
}

/* ---------- О отеле ---------- */

.intro__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.intro h2 { font-size: clamp(2rem, 4vw, 3.3rem); }

/* Полароид на скотче и наклейки — как на стене хостела */
.intro__pin {
  position: relative;
  max-width: 340px;
  margin-top: clamp(32px, 4vw, 52px);
}
.polaroid {
  position: relative;
  margin: 0;
  padding: 12px 12px 0;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 26px 46px -26px rgba(34, 28, 71, .55);
  transform: rotate(-2.5deg);
}
.polaroid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
  background: var(--apricot);
}
.polaroid figcaption {
  padding: .55rem 0 .85rem;
  text-align: center;
  color: var(--ink);
  font: 600 1.65rem/1 var(--hand);
}
.tape {
  position: absolute;
  top: -15px;
  left: 50%;
  z-index: 1;
  width: 112px;
  height: 30px;
  background: rgba(255, 159, 90, .6);
  transform: translateX(-50%) rotate(3deg);
  clip-path: polygon(0 0, 4% 16%, 0 32%, 4% 48%, 0 64%, 4% 80%, 0 100%, 100% 100%, 96% 84%, 100% 68%, 96% 52%, 100% 36%, 96% 20%, 100% 0);
}

.stickers {
  position: absolute;
  right: -2.75rem;
  top: 16%;
  z-index: 2;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .6rem;
}
.stickers li {
  padding: .45rem .95rem;
  border: 3px solid var(--white);
  border-radius: 999px;
  background: var(--c);
  color: var(--ink);
  font-size: .92rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 16px -8px rgba(34, 28, 71, .5);
  transform: rotate(var(--r));
}
.intro__text > p { font-size: 1.15rem; line-height: 1.65; max-width: 34rem; }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 2rem;
  margin: 2.25rem 0 0;
}
.facts div { padding-top: .8rem; border-top: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd { margin: .15rem 0 0; color: var(--ink-soft); }

/* ---------- Фото с цветной шторкой при прокрутке ---------- */

.reveal { position: relative; overflow: hidden; }

.js .reveal::before,
.js .reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transform-origin: 100% 50%;
  transition: transform 1s var(--ease);
}
.js .reveal::before {
  background: var(--c2, var(--apricot));
  transition-delay: calc(var(--d, 0s) + .2s);
}
.js .reveal::after {
  background: var(--c1, var(--lilac));
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in::before,
.js .reveal.is-in::after { transform: scaleX(0); }

.js .reveal img {
  transform: scale(1.25);
  transition: transform 1.6s cubic-bezier(.2, .7, .2, 1) calc(var(--d, 0s) + .25s);
}
.js .reveal.is-in img { transform: scale(1); }

/* ---------- Текст при прокрутке (классы ставит js/main.js → initReveal) ---------- */

/* Заголовок раздела: две цветные полосы уходят вправо и открывают текст — как у фото */
.js .ttl { position: relative; width: fit-content; }
.js .ttl::before,
.js .ttl::after {
  content: "";
  position: absolute;
  inset: .02em auto .02em -.14em;
  width: calc(var(--tw, 100%) + .28em); /* --tw — ширина текста, её меряет скрипт */
  border-radius: 6px;
  pointer-events: none;
  transform-origin: 100% 50%;
  transition: transform .9s var(--ease);
}
.js .ttl::before { background: var(--c2, var(--apricot)); transition-delay: .16s; }
.js .ttl::after { background: var(--c1, var(--lilac)); }
.js .ttl.is-in::before,
.js .ttl.is-in::after { transform: scaleX(0); }

/* Рукописная заметка появляется слева направо, будто её пишут, стрелка — последней */
.js .note.is-anim {
  clip-path: inset(-.5em 100% -.5em -.5em);
  transition: clip-path 1.2s cubic-bezier(.5, .1, .4, 1) .55s;
}
.js .note.is-anim.is-in { clip-path: inset(-.5em -.5em -.5em -.5em); }

/* Наклейки на фото у входа прилепляются по одной */
.js .stickers.is-anim li { opacity: 0; }
.js .stickers.is-anim.is-in li { animation: sticker-slap .5s cubic-bezier(.3, 1.5, .5, 1) calc(.35s + var(--i, 0) * .14s) both; }
@keyframes sticker-slap {
  from { opacity: 0; transform: rotate(calc(var(--r, 0deg) * -4)) scale(1.7); }
  to   { opacity: 1; transform: rotate(var(--r, 0deg)) scale(1); }
}

@media print {
  .js .ttl::before,
  .js .ttl::after { display: none; }
  .js .note.is-anim { clip-path: none; }
  .js .stickers.is-anim li { opacity: 1; animation: none; }
}

/* ---------- Номера ---------- */

.rooms { background: var(--white); }

.room {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(28px, 4vw, 52px);
}
.room + .room { border-top: 1px solid var(--line); }
.room:nth-of-type(even) .room__photo { order: 2; }

.room__photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-l);
  background: var(--lilac);
}
.room__photo img { width: 100%; height: 100%; object-fit: cover; }

.room__body h3 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-bottom: .8rem; }
.room__body > p { max-width: 30rem; color: var(--ink-soft); }

.room__specs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.4rem 0;
}
.room__specs div {
  display: flex;
  gap: .4rem;
  padding: .45rem .95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: .92rem;
}
.room__specs dt { color: var(--ink-soft); }
.room__specs dd { margin: 0; font-weight: 600; }

.room--detail { grid-template-columns: .9fr 1fr; }
.room--detail .room__body h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }

.room__price { margin-bottom: 1.4rem; color: var(--ink-soft); }

.room__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.5rem;
}

.link-more {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--rose);
  text-underline-offset: 5px;
  transition: text-decoration-color .2s, color .2s;
}
.link-more:hover { color: var(--night); text-decoration-color: var(--lilac); }
.room__price strong {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--ink);
  margin-right: .25rem;
}

/* ---------- Сауна, ресторан, СПА ---------- */

.extras {
  background: var(--ink);
  color: var(--white);
}
.extras .section-head p { color: rgba(255, 255, 255, .7); }

.extras__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px);
}

.feature h3 { margin: 1.2rem 0 .5rem; }
.feature p { margin: 0; max-width: 34rem; color: rgba(255, 255, 255, .74); }

.feature__photo {
  margin: 0;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-l);
  background: var(--night);
}
.feature__photo img { width: 100%; height: 100%; object-fit: cover; }

.feature--big {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}
.feature--big .feature__photo { flex: 1; aspect-ratio: auto; min-height: 380px; }
.feature--big h3 { font-size: 1.8rem; }

/* Общий зал — два фото и текст */
.hall {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  align-items: end;
  gap: clamp(16px, 2.5vw, 32px);
  margin-top: clamp(40px, 5vw, 64px);
}
.hall__photo {
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-l);
  background: var(--night);
}
.hall__photo:nth-child(2) { margin-bottom: clamp(24px, 4vw, 56px); }
.hall__photo img { width: 100%; height: 100%; object-fit: cover; }
.hall__text { padding-bottom: clamp(24px, 4vw, 56px); }
.hall__text h3 { font-size: 1.8rem; margin-bottom: .6rem; }
.hall__text p { margin: 0; max-width: 30rem; color: rgba(255, 255, 255, .74); }

/* Трансфер — карточка внизу тёмной секции */
.transfer {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.75rem 3rem;
  margin-top: clamp(40px, 5vw, 64px);
  padding: calc(clamp(24px, 3.5vw, 40px) + 10px) clamp(24px, 3.5vw, 40px) clamp(24px, 3.5vw, 40px);
  border-radius: var(--radius-l);
  background: rgba(255, 255, 255, .07);
}
.transfer h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .7rem; }
.transfer p { max-width: 40rem; margin: 0 0 1.2rem; color: rgba(255, 255, 255, .76); }

.transfer__places {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.transfer__places li {
  padding: .35rem .9rem;
  border-radius: 999px;
  background: var(--c);
  color: var(--ink);
  font-size: .92rem;
  font-weight: 500;
}
.transfer__places li:nth-child(5n+1) { --c: var(--lilac); }
.transfer__places li:nth-child(5n+2) { --c: var(--rose); }
.transfer__places li:nth-child(5n+3) { --c: var(--apricot); }
.transfer__places li:nth-child(5n+4) { --c: var(--sea); }
.transfer__places li:nth-child(5n+5) { --c: var(--white); }

/* ---------- Галерея ---------- */

/* Вкладки галереи */
.gallery__filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: calc(-1 * clamp(12px, 2vw, 28px)) 0 clamp(20px, 2.5vw, 32px);
}
.chip {
  padding: .5rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 500 .95rem/1.2 var(--text);
  cursor: pointer;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--lilac); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); box-shadow: none; }
.chip b { font-weight: 600; opacity: .55; }

/* Сетка «кирпичиками»: фото в своих пропорциях, без пустот при фильтрации */
.gallery__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  column-count: 4;
  column-gap: clamp(8px, 1.2vw, 16px);
}
.gallery__grid .g {
  margin-bottom: clamp(8px, 1.2vw, 16px);
  break-inside: avoid;
}
.gallery__more { display: flex; margin: clamp(20px, 3vw, 36px) auto 0; }

.g__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-m);
  background: var(--lilac);
  cursor: zoom-in;
}
.g__btn img { width: 100%; height: auto; }

.g__cap {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 2.5rem 1rem .9rem;
  background: linear-gradient(0deg, rgba(34, 28, 71, .8), rgba(34, 28, 71, 0));
  color: var(--white);
  font: 500 .95rem/1.3 var(--text);
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.g__btn:hover .g__cap,
.g__btn:focus-visible .g__cap { opacity: 1; transform: none; }

.js .g__btn.is-in:hover img {
  transform: scale(1.06);
  transition-duration: .7s;
  transition-delay: 0s;
}

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

.booking__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

.booking__noscript {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-m);
  background: var(--white);
}

.step {
  margin: 0 0 1.25rem;
  padding: clamp(20px, 3vw, 34px);
  border: 0;
  border-radius: var(--radius-l);
  background: var(--white);
  min-width: 0;
}
.step legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.step legend + * { clear: both; }

.step__num {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--c);
  font-size: 1rem;
  color: var(--ink);
}
.step--1 { --c: var(--lilac); }
.step--2 { --c: var(--rose); }
.step--3 { --c: var(--apricot); }

.step__sub { margin: 1.75rem 0 .75rem; font-weight: 600; }

.field { margin-bottom: 1rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
.field label {
  display: block;
  margin-bottom: .4rem;
  font-size: .92rem;
  font-weight: 500;
}
.optional { color: var(--ink-soft); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: .75rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.4 var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--lilac);
  box-shadow: 0 0 0 3px rgba(140, 123, 224, .3);
}
.field [aria-invalid="true"] { border-color: var(--error); }

.field__error {
  margin: .4rem 0 0;
  color: var(--error);
  font-size: .88rem;
  line-height: 1.4;
}
.field__error:empty { display: none; }
.field__error--light { color: #ffb3c7; margin-bottom: .75rem; }

.counter {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--paper);
}
.counter:focus-within { border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(140, 123, 224, .3); }
.field .counter input {
  min-height: 50px;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 600;
  box-shadow: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.counter input::-webkit-outer-spin-button,
.counter input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.counter__btn {
  flex-shrink: 0;
  width: 50px; height: 50px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: var(--radius-s);
}
.counter__btn:hover { background: rgba(140, 123, 224, .15); }
.counter__btn[aria-disabled="true"] { opacity: .35; cursor: default; }
.counter__btn[aria-disabled="true"]:hover { background: none; }

/* Карточки выбора номера */
.room-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
}

.room-opt {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: .9rem;
  align-items: center;
  padding: .6rem 2.4rem .6rem .6rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--paper);
  cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.room-opt input { position: absolute; opacity: 0; pointer-events: none; }
.room-opt img {
  grid-row: span 2;
  width: 76px; height: 76px;
  object-fit: cover;
  border-radius: 12px;
}
.room-opt__name { align-self: end; font-weight: 600; }
.room-opt__meta { align-self: start; font-size: .86rem; color: var(--ink-soft); line-height: 1.35; }
.room-opt::after {
  content: "";
  position: absolute;
  top: .75rem; right: .75rem;
  width: 20px; height: 20px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  transition: background .2s, border-color .2s;
}
.room-opt:hover { border-color: var(--lilac); }
.room-opt:has(input:checked) {
  border-color: var(--ink);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.room-opt:has(input:checked)::after {
  border-color: var(--ink);
  background: radial-gradient(circle, var(--ink) 0 4px, transparent 4.5px), linear-gradient(120deg, var(--lilac), var(--rose), var(--apricot));
}
.room-opt:has(input:focus-visible) { outline: 3px solid var(--rose); outline-offset: 2px; }
.room-opt.is-disabled { opacity: .5; cursor: not-allowed; }
.room-opt.is-disabled:hover { border-color: var(--line); }

.room-note { margin: .75rem 0 0; font-size: .92rem; color: var(--night); }
.room-note:empty { display: none; }

.addons { display: grid; gap: .55rem; }
.addon {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.addon:hover { border-color: var(--lilac); }
.addon.is-disabled { opacity: .5; cursor: not-allowed; }
.addon.is-disabled:hover { border-color: var(--line); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.addon:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.addon input { width: 20px; height: 20px; flex-shrink: 0; margin: 0; accent-color: var(--ink); }
.addon__price { margin-left: auto; font-weight: 600; white-space: nowrap; }

.transfer-fields {
  padding: 1rem 1rem .25rem;
  border-radius: var(--radius-m);
  background: var(--paper);
}
.transfer-fields[hidden] { display: none; }
.transfer-fields .field-row { gap: 0 .75rem; }
.transfer-fields .field input,
.transfer-fields .field select { background: var(--white); }
.transfer-fields__note { margin: 0 0 .75rem; font-size: .88rem; color: var(--ink-soft); }

/* Итог брони */
.summary {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  padding: .8rem 1.6rem 1.6rem;
  border-radius: var(--radius-l);
  background: var(--ink);
  color: var(--white);
}

.summary__photo {
  position: relative;
  overflow: hidden;
  margin: 0 -.8rem 1.3rem;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-m);
  background: var(--night);
}
.summary__photo img { width: 100%; height: 100%; object-fit: cover; }

.summary__title { font-size: 1.15rem; margin-bottom: .6rem; color: rgba(255, 255, 255, .7); font-family: var(--text); font-weight: 500; letter-spacing: 0; }
.summary__room { margin: 0 0 .2rem; font-family: var(--display); font-size: 1.45rem; line-height: 1.2; }
.summary__dates { margin: 0 0 1.2rem; color: rgba(255, 255, 255, .74); white-space: pre-line; }

.summary__lines {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem 1rem;
  margin-top: 0;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .95rem;
}
.summary__lines:empty { display: none; }
.summary__lines dt { color: rgba(255, 255, 255, .74); }
.summary__lines dd { margin: 0; text-align: right; font-weight: 500; }

.summary__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.summary__total strong { font-family: var(--display); font-size: 2.1rem; font-weight: 500; }
.summary__note { margin: .9rem 0 0; font-size: .88rem; color: rgba(255, 255, 255, .62); text-align: center; }

/* ---------- Контакты и подвал ---------- */

.contacts {
  position: relative;
  padding-bottom: 0;
  background: var(--ink);
  color: var(--white);
}
.contacts::before,
.cta-band::before,
.transfer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 10px;
  background: linear-gradient(90deg,
    var(--night) 0 20%, var(--lilac) 20% 40%, var(--rose) 40% 60%,
    var(--apricot) 60% 80%, var(--sea) 80% 100%);
}

.contacts__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 6vw, 96px);
}
.contacts__address {
  margin: 1.5rem 0 1rem;
  font-style: normal;
  font-size: 1.25rem;
  line-height: 1.5;
}
.contacts__how { max-width: 30rem; color: rgba(255, 255, 255, .74); }

/* Дом и вход — чтобы узнать их ночью */
.find-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 34rem;
  margin-top: 1.75rem;
}
.find-photos figure { margin: 0; }
.find-photos img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-m);
}
.find-photos figcaption { margin-top: .5rem; color: rgba(255, 255, 255, .74); font-size: .92rem; }

.contacts__list { margin: 0; display: grid; gap: 1.1rem; align-content: start; }
.contacts__list div { padding-bottom: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.contacts__list dt { color: rgba(255, 255, 255, .6); font-size: .92rem; }
.contacts__list dd { margin: .15rem 0 0; font-size: 1.2rem; font-weight: 500; }
.contacts__list a { text-decoration: none; }
.contacts__list a:hover { text-decoration: underline; text-underline-offset: 4px; }

.footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(56px, 8vw, 96px);
  padding-block: 1.75rem;
  color: rgba(255, 255, 255, .6);
  font-size: .92rem;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0 var(--gutter) auto;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.footer p { margin: 0; }
.footer a { color: rgba(255, 255, 255, .85); }
.footer__nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

/* Большое «Santel» внизу страницы — перекличка с первым экраном */
.wordmark {
  height: .76em;
  margin: 0;
  overflow: hidden;
  font: 600 min(25vw, 20rem)/1 var(--display);
  letter-spacing: -0.065em;
  text-align: center;
  background: linear-gradient(90deg, var(--lilac), var(--rose) 38%, var(--apricot) 66%, var(--sea));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

/* ---------- Пешком от Santel ---------- */

.nearby { background: var(--white); }

.route {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.route__stop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 5.5rem;
  align-items: center;
  gap: .6rem clamp(20px, 3vw, 44px);
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.route__stop:nth-child(5n+1) { --c: var(--lilac); }
.route__stop:nth-child(5n+2) { --c: var(--rose); }
.route__stop:nth-child(5n+3) { --c: var(--apricot); }
.route__stop:nth-child(5n+4) { --c: var(--sea); }
.route__stop:nth-child(5n+5) { --c: var(--night); }

.route__text h3 { margin-bottom: .2rem; font-size: 1.1rem; letter-spacing: -0.01em; }
.route__text h3 a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .3s ease;
}
.route__text h3 a::after { content: " ↗"; color: var(--rose); font-family: var(--text); font-size: .85em; }
.route__text h3 a:hover { background-size: 100% 2px; }
.route__text p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

.route__track { position: relative; height: 16px; }
.route__track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}
.route__track span {
  position: absolute;
  left: 0;
  top: 3px;
  height: 10px;
  width: calc(var(--d) * (100% - 16px) + 8px);
  border-radius: 10px;
  background: var(--c);
}
.route__track span::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1.5px var(--c);
  transform: translateY(-50%);
}
.js .route__track span {
  clip-path: inset(-10px 100% -10px 0);
  transition: clip-path 1.2s var(--ease) calc(var(--i, 0) * 90ms);
}
.js .route.is-in .route__track span { clip-path: inset(-10px -14px -10px 0); }

.route__dist {
  margin: 0;
  text-align: right;
  white-space: nowrap;
  font: 500 1.25rem/1 var(--display);
  letter-spacing: -0.02em;
}
.route__tip {
  max-width: 40rem;
  margin: 1.75rem 0 0;
  padding-left: 1rem;
  border-left: 3px solid var(--apricot);
  color: var(--ink-soft);
}

/* ---------- Паспорт гостей ---------- */

.passport { background: var(--night); color: var(--white); }
.passport .section-head p { color: rgba(255, 255, 255, .76); }

.passport__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px) clamp(20px, 2.5vw, 32px);
}

/* Страница паспорта: бумага с тонкими защитными дугами в углу */
.stamp {
  position: relative;
  padding: 1.6rem 1.5rem 1.5rem;
  border-radius: var(--radius-m);
  background:
    repeating-radial-gradient(circle at 100% 100%, rgba(140, 123, 224, .1) 0 1px, transparent 1px 10px),
    var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 60px -36px rgba(10, 6, 40, .85);
  transform: rotate(var(--r, 0deg));
  transition: transform .45s var(--ease);
}
.stamp:nth-child(6n+1) { --r: -1.4deg; }
.stamp:nth-child(6n+2) { --r: 1deg; }
.stamp:nth-child(6n+3) { --r: -.5deg; }
.stamp:nth-child(6n+4) { --r: 1.3deg; }
.stamp:nth-child(6n+5) { --r: -1deg; }
.stamp:nth-child(6n+6) { --r: .6deg; }
.stamp:hover { transform: rotate(0deg) translateY(-4px); }

.stamp figure { margin: 0; }
.stamp blockquote { margin: 0 0 1.4rem; font-size: 1.06rem; line-height: 1.55; }
.stamp figcaption { padding-right: 6.5rem; font-size: .95rem; }
.stamp figcaption strong { font-weight: 600; }
.stamp figcaption span { display: block; color: var(--ink-soft); }

.stamp__mark {
  position: absolute;
  right: 1.1rem;
  bottom: 1rem;
  display: grid;
  place-content: center;
  width: 100px;
  height: 100px;
  padding: 0 10px;
  border: 2.5px solid var(--c);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5.5px var(--c);
  color: var(--c);
  font: 600 .62rem/1.2 var(--display);
  text-align: center;
  transform: rotate(-14deg);
  opacity: .9;
}
.stamp:nth-child(even) .stamp__mark { transform: rotate(11deg); }
.stamp__mark small { display: block; margin-top: .15rem; font: 500 .7rem/1.3 var(--text); letter-spacing: .04em; }

/* ---------- Кнопка брони внизу экрана (телефоны) ---------- */

.mobile-cta { display: none; }

/* ---------- Диалоги ---------- */

dialog {
  padding: 0;
  border: 0;
  color: var(--ink);
}
dialog::backdrop {
  background: rgba(24, 19, 52, .78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
dialog[open] { animation: pop .45s var(--ease); }
@keyframes pop {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.lightbox {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  background: transparent;
  overflow: visible;
}
.lightbox__frame { position: relative; }
.lightbox__stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--ink);
  min-height: 240px;
}
.lightbox__stage img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
}
.lightbox__bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem .25rem 0;
  color: var(--white);
}
.lightbox__bar p { margin: 0; }
.lightbox__caption { font-weight: 500; }
.lightbox__count { color: rgba(255, 255, 255, .65); font-variant-numeric: tabular-nums; }

.lb-btn {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
  transition: transform .2s;
}
.lb-btn:hover { transform: scale(1.08); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lb-btn--prev { left: 16px; top: calc(50% - 46px); }
.lb-btn--next { right: 16px; top: calc(50% - 46px); }
.lb-btn--close { right: 16px; top: 16px; width: 44px; height: 44px; }

.confirm {
  width: min(520px, calc(100vw - 32px));
  border-radius: var(--radius-l);
  background: var(--white);
  overflow: hidden;
}
.confirm__stripes { display: flex; height: 14px; }
.confirm__stripes span { flex: 1; }
.confirm__stripes span:nth-child(1) { background: var(--night); }
.confirm__stripes span:nth-child(2) { background: var(--lilac); }
.confirm__stripes span:nth-child(3) { background: var(--rose); }
.confirm__stripes span:nth-child(4) { background: var(--apricot); }
.confirm__stripes span:nth-child(5) { background: var(--sea); }
.confirm[open] .confirm__stripes span {
  animation: stripe-in .6s var(--ease) both;
  transform-origin: 0 50%;
}
.confirm[open] .confirm__stripes span:nth-child(2) { animation-delay: .07s; }
.confirm[open] .confirm__stripes span:nth-child(3) { animation-delay: .14s; }
.confirm[open] .confirm__stripes span:nth-child(4) { animation-delay: .21s; }
.confirm[open] .confirm__stripes span:nth-child(5) { animation-delay: .28s; }
@keyframes stripe-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.confirm__body { padding: clamp(24px, 5vw, 40px); }
.confirm h2 { font-size: 1.8rem; margin-bottom: .9rem; }
.confirm__lines {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .45rem 1.25rem;
  margin: 1.25rem 0 1.75rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-m);
  background: var(--paper);
}
.confirm__lines dt { color: var(--ink-soft); }
.confirm__lines dd { margin: 0; font-weight: 500; text-align: right; }

/* ---------- Адаптив ---------- */

@media (max-width: 1080px) {
  .booking__form { grid-template-columns: minmax(0, 1fr) 330px; }
  .room-options { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    padding: .5rem var(--gutter) 1.5rem;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 20px 40px -20px rgba(34, 28, 71, .35);
  }
  .site-header.menu-open .nav { display: flex; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; background: none; }
  .menu-btn { display: block; }
  /* Меню свернулось: языки и кнопка брони — справа */
  .site-header__inner { gap: .75rem; }
  .langs { margin-left: auto; }
  .site-header__cta { margin-left: .5rem; }
}

@media (max-width: 900px) {
  .section-head,
  .intro__grid,
  .contacts__grid { grid-template-columns: 1fr; }

  .room { grid-template-columns: 1fr; }
  .room:nth-of-type(even) .room__photo { order: 0; }

  .extras__grid { grid-template-columns: 1fr; }
  .transfer { grid-template-columns: 1fr; }
  .transfer .btn { justify-self: start; }
  .hall { grid-template-columns: 1fr 1fr; align-items: start; }
  .hall__text { grid-column: 1 / -1; order: -1; padding-bottom: 0; }
  .hall__photo:nth-child(2) { margin-bottom: 0; }
  .intro__pin { max-width: 290px; margin-left: .5rem; }
  .stickers { right: -1.5rem; }
  .feature--big { grid-row: auto; }
  .feature--big .feature__photo { flex: none; aspect-ratio: 4 / 3; min-height: 0; }

  .booking__form { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .room-options { grid-template-columns: 1fr 1fr; }

  .quick__form { grid-template-columns: 1fr 1fr; }
  .quick__field:last-of-type { grid-column: span 1; }
  .quick__btn { grid-column: 1 / -1; min-height: 52px; }
}

@media (max-width: 760px) {
  .hero__bottom { flex-direction: column; align-items: stretch; gap: 1.75rem; }
  .hero__controls { align-items: center; }
  .hero__nav {
    flex: 1;
    width: auto;
    display: flex;
    gap: .4rem;
  }
  .hero__nav li { flex: 1; }
  .hero__nav button { padding: .8rem 0; }
  .hero__nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bar { margin-top: 0; }

  .gallery__grid { column-count: 2; }

  .lb-btn--prev,
  .lb-btn--next { top: auto; bottom: -70px; }
  .lb-btn--prev { left: calc(50% - 64px); }
  .lb-btn--next { right: calc(50% - 64px); }
  .lightbox__bar { flex-direction: column; gap: .2rem; }
  .lightbox { margin-top: 24px; }
}

@media (max-width: 560px) {
  .site-header__cta { display: none; }
  .stickers { right: -.6rem; }
  .field-row,
  .facts,
  .room-options { grid-template-columns: 1fr; }
  .quick__form { grid-template-columns: 1fr; }
  .quick__field:last-of-type { grid-column: auto; }
  .confirm__lines { grid-template-columns: 1fr; }
  .confirm__lines dd { text-align: left; margin-bottom: .4rem; }
}

/* ==========================================================================
   Страница номеров (rooms.html)
   ========================================================================== */

.page-hero {
  padding: calc(var(--header-h) + clamp(48px, 7vw, 104px)) 0 clamp(32px, 4vw, 56px);
}
.page-hero__grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 30rem);
  align-items: end;
  gap: 1.5rem 3rem;
}
.page-hero__title {
  font-size: clamp(3.4rem, 11vw, 9rem);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -0.055em;
  margin-left: -.04em;
}
.page-hero__lead {
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
}
.js .page-hero__title { animation: rise 1s var(--ease) .1s both; }
.page-hero .note { margin-top: clamp(1rem, 2.2vw, 1.9rem); }

/* Переключатель номеров */
.stage { padding-bottom: clamp(72px, 10vw, 136px); }

.stage__card {
  padding: .6rem;
  border-radius: var(--radius-l);
  background: var(--white);
  box-shadow: 0 40px 80px -48px rgba(34, 28, 71, .4);
}

.stage__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
}
.stage__tab {
  position: relative;
  display: grid;
  gap: .25rem;
  padding: 1.05rem 1.3rem 1.2rem;
  border: 0;
  border-radius: var(--radius-m);
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background-color .35s ease, color .35s ease;
}
.stage__tab::after {
  content: "";
  position: absolute;
  left: 1.3rem;
  right: 1.3rem;
  bottom: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(90deg, var(--lilac), var(--rose), var(--apricot));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.stage__tab:hover { background: #ebe7f6; }
.stage__tab[aria-selected="true"] { background: var(--ink); color: var(--white); }
.stage__tab[aria-selected="true"]::after { transform: scaleX(1); }
.stage__tab-name {
  font: 500 clamp(1.05rem, 1.8vw, 1.4rem)/1.2 var(--display);
  letter-spacing: -0.02em;
}
.stage__tab-meta { font-size: .92rem; color: var(--ink-soft); transition: color .35s ease; }
.stage__tab[aria-selected="true"] .stage__tab-meta { color: rgba(255, 255, 255, .72); }

.stage__body {
  position: relative;
  margin-top: .6rem;
  border-radius: var(--radius-m);
  overflow: hidden;
}
.stage__body > .wipe { z-index: 5; }

.stage__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.stage__panel[hidden] { display: none; }
.stage__panel + .stage__panel { margin-top: .6rem; }

.stage__photo {
  margin: 0;
  min-height: 440px;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--lilac);
}
.stage__photo { position: relative; }
.stage__img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.stage__img.is-swapping { opacity: .3; }

/* Миниатюры для переключения фото номера */
.stage__thumbs {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
}
.stage__thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .7);
  border-radius: 10px;
  background: var(--paper);
  cursor: pointer;
  opacity: .85;
  transition: opacity .2s, border-color .2s, transform .2s;
}
.stage__thumb img { width: 100%; height: 100%; object-fit: cover; }
.stage__thumb:hover { opacity: 1; }
.stage__thumb[aria-pressed="true"] { border-color: var(--apricot); opacity: 1; transform: translateY(-2px); }

.stage__info { padding: clamp(16px, 2.5vw, 32px) clamp(12px, 2vw, 28px) clamp(16px, 2.5vw, 28px) 0; }
.stage__info h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: .8rem; }
.stage__desc { max-width: 34rem; color: var(--ink-soft); }

.icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--chip, rgba(140, 123, 224, .18));
  color: var(--ink);
}
.icon svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
li:nth-child(5n+1) > .icon { --chip: rgba(140, 123, 224, .2); }
li:nth-child(5n+2) > .icon { --chip: rgba(240, 98, 143, .18); }
li:nth-child(5n+3) > .icon { --chip: rgba(255, 159, 90, .24); }
li:nth-child(5n+4) > .icon { --chip: rgba(31, 168, 160, .18); }
li:nth-child(5n+5) > .icon { --chip: rgba(59, 47, 134, .14); }

.features {
  list-style: none;
  margin: 1.4rem 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.features li { display: flex; align-items: center; gap: .85rem; font-weight: 500; }

.stage__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1.1rem 0;
  border-block: 1px solid var(--line);
}
.stage__price { margin: 0; color: var(--ink-soft); }
.stage__price strong {
  margin-right: .25rem;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--ink);
}

.quote {
  margin: 0;
  padding-left: 1.1rem;
  border-left: 3px solid var(--rose);
}
.quote blockquote { margin: 0 0 .6rem; font-size: 1.05rem; line-height: 1.55; }
.quote figcaption { font-weight: 600; font-size: .95rem; }
.quote figcaption span { display: block; font-weight: 400; color: var(--ink-soft); }

/* Сравнение */
.compare { background: var(--white); }
.compare__wrap { overflow-x: auto; }
.compare__table {
  width: 100%;
  border-collapse: collapse;
}
.compare__table th,
.compare__table td {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.compare__table tbody tr:last-child > * { border-bottom: 0; }
.compare__table thead th {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.compare__table thead th:nth-child(2) { box-shadow: inset 0 4px 0 var(--lilac); }
.compare__table thead th:nth-child(3) { box-shadow: inset 0 4px 0 var(--rose); }
.compare__table thead a { text-decoration: none; }
.compare__table thead a:hover { text-decoration: underline; text-underline-offset: 5px; }
.compare__table tbody th { width: 32%; font-weight: 500; color: var(--ink-soft); }

.mark {
  width: 28px; height: 28px;
  padding: 5px;
  margin-right: .3rem;
  vertical-align: middle;
  border-radius: 50%;
  background: rgba(31, 168, 160, .16);
  fill: none;
  stroke: #12726d;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.compare__hint {
  max-width: 46rem;
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-m);
  background: rgba(255, 159, 90, .2);
  font-weight: 500;
}

/* Мелочи */
.details__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.details__photo {
  margin: 0;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-l);
  background: var(--apricot);
}
.details__photo img { width: 100%; height: 100%; object-fit: cover; }
.details h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 1.8rem; }

.details__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.details__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: .9rem;
  align-items: start;
}
.details__list .icon { grid-row: span 2; }
.details__list strong { font-weight: 600; }
.details__list span:not(.icon) { color: var(--ink-soft); }

/* Для всех гостей */
.shared { background: var(--white); }
.shared__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: clamp(14px, 2vw, 28px);
}
.shared__card { display: block; text-decoration: none; }
.shared__card figure {
  height: clamp(200px, 22vw, 300px);
  margin: 0 0 1rem;
  border-radius: var(--radius-m);
  background: var(--lilac);
}
.shared__card img { width: 100%; height: 100%; object-fit: cover; }
.shared__card strong {
  display: block;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
}
.shared__card span { color: var(--ink-soft); }
.js .shared__card:hover .reveal.is-in img {
  transform: scale(1.05);
  transition-duration: .7s;
  transition-delay: 0s;
}

/* Финальный призыв */
.cta-band {
  position: relative;
  padding-top: clamp(80px, 9vw, 128px);
  background: var(--ink);
  color: var(--white);
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3.6rem); margin-bottom: .8rem; }
.cta-band p { max-width: 32rem; margin: 0; color: rgba(255, 255, 255, .74); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.btn--line {
  border: 1.5px solid rgba(255, 255, 255, .55);
  background: transparent;
  color: var(--white);
}
.btn--line:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }

@media (max-width: 900px) {
  .page-hero__grid,
  .stage__panel,
  .details__grid { grid-template-columns: 1fr; }
  .stage__photo { min-height: 0; aspect-ratio: 4 / 3; }
  .stage__info { padding: .6rem .8rem 1rem; }
  .shared__list { grid-template-columns: 1fr 1fr; }
  .shared__list li:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .stage__tab { padding: .85rem .9rem 1rem; }
  .stage__tab-meta { font-size: .82rem; }
  .stage__buy .btn { width: 100%; }
  .details__list { grid-template-columns: 1fr; }
  .shared__list { grid-template-columns: 1fr; }
  .compare__table th,
  .compare__table td { padding: .75rem .45rem; font-size: .88rem; }
  .compare__table th:first-child { padding-left: 0; }
  .compare__table thead th { font-size: .92rem; }
  .compare__table tbody th { width: 30%; }
  .mark { width: 24px; height: 24px; padding: 4px; }
  .cta-band__actions,
  .cta-band__actions .btn { width: 100%; }
}

/* ---------- Цена — багажная бирка ---------- */

.room__price,
.stage__price {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  margin: 0 0 1.4rem;
  padding: .5rem 1.15rem .5rem 2.15rem;
  border-radius: 0 12px 12px 0;
  background: var(--tag, var(--apricot));
  color: var(--ink);
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%);
  transform: rotate(-2deg);
}
.room__price::before,
.stage__price::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--white);
}
.room__price strong,
.stage__price strong {
  margin: 0;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--ink);
}
.stage__price { margin: 0; }
.room:nth-of-type(2),
#quad { --tag: var(--rose); }

/* ---------- Адаптив новых блоков ---------- */

@media (max-width: 1080px) {
  .passport__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__grid { column-count: 3; }
}

@media (max-width: 760px) {
  .route__stop { grid-template-columns: minmax(0, 1fr) auto; }
  .route__text { grid-column: 1 / -1; }
  .route__dist { font-size: 1.05rem; }

  .passport__list { grid-template-columns: 1fr; }
  .stamp:nth-child(n) { --r: 0deg; }
  .stamp:nth-child(odd) { --r: -.8deg; }
  .stamp:nth-child(even) { --r: .8deg; }

  .footer { flex-direction: column; align-items: flex-start; }

  .mobile-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem .55rem .55rem 1.2rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    box-shadow: 0 20px 40px -14px rgba(20, 14, 60, .65);
    transform: translateY(calc(100% + 28px));
    visibility: hidden;
    transition: transform .4s var(--ease), visibility 0s linear .4s;
  }
  .mobile-cta.is-visible {
    transform: none;
    visibility: visible;
    transition: transform .4s var(--ease), visibility 0s;
  }
  .mobile-cta__price { margin: 0; font-size: .82rem; line-height: 1.25; color: rgba(255, 255, 255, .72); }
  .mobile-cta__price strong { margin: 0 .15rem; font: 500 1.15rem var(--display); color: var(--white); }
  .mobile-cta__price span { display: block; }
  .mobile-cta .btn { min-height: 46px; padding-inline: 1.3rem; }
}

/* ---------- Итог брони: скидка и промокод ---------- */

.summary__hint {
  margin: -.2rem 0 1rem;
  padding: .55rem .8rem;
  border-radius: var(--radius-s);
  background: rgba(255, 159, 90, .16);
  color: #ffd2b0;
  font-size: .9rem;
  line-height: 1.4;
}
.summary__hint[hidden] { display: none; }

.promo { margin-bottom: 1rem; }
.promo[hidden] { display: none; }
.promo__label { display: block; margin-bottom: .35rem; font-size: .88rem; color: rgba(255, 255, 255, .7); }
.promo__row { display: flex; gap: .5rem; }
.promo__row input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: .6rem .85rem;
  border: 1.5px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, .06);
  color: var(--white);
  font: 500 1rem/1.3 var(--text);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.promo__row input:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(140, 123, 224, .35); }
.promo__btn { min-height: 46px; padding-inline: 1rem; font-size: .92rem; }
.promo__msg { margin: .4rem 0 0; font-size: .86rem; color: rgba(255, 255, 255, .7); }
.promo__msg:empty { display: none; }
.promo__msg.is-ok { color: #8fe3dc; }
.promo__msg.is-error { color: #ffb3c7; }

.confirm__manage {
  margin: -.6rem 0 1.4rem;
  padding: .8rem 1rem;
  border-left: 4px solid var(--lilac);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: var(--paper);
  font-size: .95rem;
}
.confirm__manage[hidden] { display: none; }
.confirm__manage a { font-weight: 600; color: var(--night); }

/* ---------- Вопросы перед приездом ---------- */

.faq { background: var(--white); }
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq__head { position: sticky; top: calc(var(--header-h) + 24px); }
.faq__head h2 { margin-bottom: 1rem; }
.faq__head p:not(.note) { color: var(--ink-soft); max-width: 24rem; }

.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  position: relative;
  display: block;
  padding: 1.25rem 3.25rem 1.25rem 0;
  font-weight: 600;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
  transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--night); }
/* Плюс в цветном кружке — каждый вопрос своим цветом палитры */
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat,
    var(--c, var(--lilac));
  transition: transform .35s var(--ease), background-color .2s;
}
.faq__item[open] summary::after {
  transform: rotate(135deg);
}
.faq__item:nth-child(5n+1) { --c: #c9c0f3; }
.faq__item:nth-child(5n+2) { --c: #fbc1d2; }
.faq__item:nth-child(5n+3) { --c: #ffd2b0; }
.faq__item:nth-child(5n+4) { --c: #a9e2dd; }
.faq__item:nth-child(5n+5) { --c: #c4bde8; }
.faq__item p {
  margin: 0;
  padding: 0 3.25rem 1.4rem 0;
  color: var(--ink-soft);
  max-width: 40rem;
}
.js .faq__item[open] p { animation: faq-in .35s var(--ease) both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Контакты: карта ---------- */

.contacts__side { display: grid; gap: 1.75rem; align-content: start; }
.map {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-m);
  background: var(--night);
}
.map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  filter: saturate(.85);
}
.map a {
  position: absolute;
  right: .6rem;
  bottom: .6rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .45);
}
.map a:hover { background: var(--paper); }

/* ---------- Моя бронь (booking.html) ---------- */

.page-hero--compact .page-hero__title { font-size: clamp(2.8rem, 8vw, 6.2rem); }

.mybooking { padding-bottom: clamp(72px, 10vw, 136px); }
.mybooking__grid {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.mybooking__form {
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-l);
  background: var(--white);
  box-shadow: 0 40px 80px -48px rgba(34, 28, 71, .4);
}
.mybooking__form input { text-transform: none; }
#m-number { text-transform: uppercase; letter-spacing: .06em; }
.mybooking__note { margin: 1rem 0 0; font-size: .92rem; color: var(--ink-soft); }
.mybooking__note[hidden] { display: none; }

.mybooking__card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 36px);
  border-radius: var(--radius-l);
  background: var(--ink);
  color: var(--white);
}
.mybooking__card[hidden] { display: none; }
.mybooking__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg,
    var(--night) 0 20%, var(--lilac) 20% 40%, var(--rose) 40% 60%,
    var(--apricot) 60% 80%, var(--sea) 80% 100%);
}
.js .mybooking__card:not([hidden]) { animation: rise .6s var(--ease) both; }
.mybooking__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1rem;
  margin-bottom: 1rem;
}
.mybooking__id { font: 500 .95rem var(--display); letter-spacing: .04em; color: rgba(255, 255, 255, .7); }
.mybooking__card h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .4rem; }
.mybooking__dates { color: rgba(255, 255, 255, .74); margin-bottom: 1.2rem; }
.mybooking__pay { margin: -.4rem 0 0; font-size: .9rem; color: rgba(255, 255, 255, .62); }
.mybooking__card.is-cancelled h2,
.mybooking__card.is-cancelled .summary__total strong { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .7; }

.mybooking__cancel {
  display: grid;
  gap: .6rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.mybooking__cancel[hidden] { display: none; }
.mybooking__cancel label { font-size: .92rem; color: rgba(255, 255, 255, .74); }
.mybooking__cancel textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1.5px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, .06);
  color: var(--white);
  font: 400 1rem/1.4 var(--text);
  resize: vertical;
}
.mybooking__cancel textarea:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(140, 123, 224, .35); }
.mybooking__msg { margin: 1rem 0 0; font-weight: 500; color: #8fe3dc; }
.mybooking__msg:empty { display: none; }

/* Статус брони — цветная плашка-штамп */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: var(--lilac);
  color: var(--ink);
  font-size: .86rem;
  font-weight: 600;
}
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-pill--new { background: #ffd2b0; }
.status-pill--confirmed { background: #a9e2dd; }
.status-pill--checked_in { background: #c9c0f3; }
.status-pill--checked_out { background: rgba(255, 255, 255, .2); color: var(--white); }
.status-pill--cancelled { background: #fbc1d2; color: var(--rose-ink); }

@media (max-width: 900px) {
  .faq__grid,
  .mybooking__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
}

@media (max-width: 560px) {
  .faq__item summary { font-size: 1rem; padding-right: 2.9rem; }
  .faq__item p { padding-right: 0; }
  .promo__btn { padding-inline: .8rem; }
}

/* ---------- Календарь свободных мест и цен ---------- */

.acal {
  margin: 0 0 1.4rem;
  border-radius: var(--radius-m);
  background: var(--paper);
}
.acal[hidden] { display: none; }
.acal__toggle {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.1rem;
  border-radius: var(--radius-m);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: background-color .2s;
}
.acal__toggle::-webkit-details-marker { display: none; }
.acal__toggle:hover { background: rgba(140, 123, 224, .12); }
.acal__toggle svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--night); stroke-width: 1.8; stroke-linecap: round; }
.acal__toggle::after {
  content: "";
  width: 9px;
  height: 9px;
  margin: -4px 4px 0 auto;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform .3s var(--ease);
}
.acal[open] .acal__toggle::after { margin-top: 4px; transform: rotate(-135deg); }
.acal__body { padding: .2rem 1.1rem 1.1rem; }

.acal__rooms { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.acal__room {
  padding: .45rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 500 .88rem/1.2 var(--text);
  cursor: pointer;
}
.acal__room:hover { border-color: var(--lilac); }
.acal__room[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }

.acal__nav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .4rem; align-items: start; }
.acal__arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-top: -.15rem;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.acal__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.acal__arrow:hover:not(:disabled) { background: var(--ink); color: var(--white); }
.acal__arrow:disabled { opacity: .35; cursor: default; }

.acal__months { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 1.4rem; min-height: 290px; }
.acal__title { margin: .3rem 0 .6rem; font-weight: 600; text-align: center; }
.acal__title::first-letter { text-transform: uppercase; }
.acal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.acal__wd { padding-bottom: .2rem; color: var(--ink-soft); font-size: .75rem; text-align: center; }
.acal__day {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1px;
  min-height: 46px;
  padding: .2rem 0;
  border: 0;
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font: 600 .9rem/1.1 var(--text);
  cursor: pointer;
  transition: background-color .15s, box-shadow .15s;
}
.acal__p { color: var(--ink-soft); font-size: .68rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.acal__day:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--lilac); }
.acal__day.is-low { background: #fff1e6; }
.acal__day.is-low::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--apricot);
}
.acal__day.is-full,
.acal__day.is-short { background: repeating-linear-gradient(135deg, #ece9f4 0 5px, #f7f6fb 5px 10px); color: #a19bbf; }
.acal__day.is-full .acal__p,
.acal__day.is-short .acal__p { color: #b4afcc; }
.acal__day.is-full .acal__n { text-decoration: line-through; }
.acal__day.is-past { background: transparent; color: #c3bfd6; cursor: default; }
.acal__day.is-today { box-shadow: inset 0 0 0 1.5px var(--ink); }
.acal__day.is-range { background: rgba(140, 123, 224, .22); }
.acal__day.is-range .acal__p { color: var(--night); }
.acal__day.is-start,
.acal__day.is-end { background: var(--ink); color: var(--white); }
.acal__day.is-start .acal__p,
.acal__day.is-end .acal__p { color: rgba(255, 255, 255, .75); }
.acal__day.is-picking { box-shadow: 0 0 0 3px var(--rose); }

.acal__hint { margin: .9rem 0 .6rem; font-size: .92rem; color: var(--night); font-weight: 500; }
.acal__error { margin: 2rem 0; color: var(--error); text-align: center; }
.acal__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: .82rem;
}
.acal__legend li { display: inline-flex; align-items: center; gap: .4rem; }
.acal__legend::after { content: attr(data-unit); margin-left: auto; }
.acal__key { width: 14px; height: 14px; border-radius: 4px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.acal__key--low { background: #fff1e6; box-shadow: inset 0 0 0 1px #ffd2b0; }
.acal__key--full { background: repeating-linear-gradient(135deg, #e2deef 0 3px, #f7f6fb 3px 6px); }
.acal__key--pick { background: var(--ink); box-shadow: none; }

/* ---------- Погода в Нарве ---------- */

.weather {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.weather[hidden] { display: none; }
.weather__title { margin-bottom: .55rem; color: rgba(255, 255, 255, .6); font: 500 .92rem/1.2 var(--text); letter-spacing: 0; }
.weather__now { display: flex; align-items: center; gap: .7rem; }
.weather__now strong { font: 500 2.1rem/1 var(--display); }
.weather__now span { color: rgba(255, 255, 255, .76); font-size: .95rem; line-height: 1.35; }
.weather__now .wicon { width: 42px; height: 42px; }
.weather__days {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .4rem;
  margin: .9rem 0 0;
  padding: .8rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  list-style: none;
}
.weather__days li { display: grid; justify-items: center; gap: .2rem; text-align: center; font-size: .85rem; }
.weather__day { color: rgba(255, 255, 255, .6); }
.weather__day::first-letter { text-transform: uppercase; }
.weather__t { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wicon { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wicon--sun, .wicon--partly { color: var(--apricot); }
.wicon--rain, .wicon--storm { color: #7fd4ce; }
.wicon--snow { color: #c9c0f3; }
.wicon--cloud, .wicon--fog { color: #c4bde8; }

/* ---------- Отзывы гостей с сайта (тёмный раздел «Паспорт гостей») ---------- */

.guest-reviews { margin-top: clamp(40px, 6vw, 72px); }
.guest-reviews[hidden] { display: none; }
.guest-reviews__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.25rem; }
.guest-reviews__head h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.guest-reviews__score { margin: 0; padding: .35rem .9rem; border-radius: 999px; background: var(--apricot); color: var(--ink); font-weight: 600; }
.guest-reviews__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.greview {
  display: grid;
  align-content: start;
  gap: .6rem;
  padding: 1.25rem 1.3rem;
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.greview__stars { margin: 0; color: var(--apricot); font-size: 1.15rem; letter-spacing: .12em; }
.greview blockquote { margin: 0; font-size: 1.02rem; line-height: 1.55; }
.greview__who { margin: 0; color: rgba(255, 255, 255, .68); font-size: .9rem; }
.greview__who strong { color: var(--white); }
.greview__reply { margin: .2rem 0 0; padding: .7rem .85rem; border-left: 3px solid var(--sea); border-radius: 0 8px 8px 0; background: rgba(31, 168, 160, .14); font-size: .92rem; }

/* ---------- Окно после брони и подвал ---------- */

.confirm__actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .6rem; }
.confirm__actions.is-offline { grid-template-columns: 1fr; }
.confirm__actions form { margin: 0; }
.confirm__offline { display: grid; gap: .6rem; margin: -.4rem 0 .6rem; }
.confirm__offline[hidden] { display: none; }
.btn[hidden] { display: none; }
.btn--line-ink {
  gap: .5rem;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
}
.btn--line-ink:hover { border-color: var(--ink); }
.btn--line-ink svg,
.mybooking__tools svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.footer__install {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  border: 1.5px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font: 500 .9rem/1 var(--text);
  cursor: pointer;
}
.footer__install[hidden] { display: none; }
.footer__install:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.footer__install svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- «Моя бронь»: оплата, регистрация, отзыв ---------- */

.mybooking__pay.is-paid { color: #8fe3dc; font-weight: 500; }
.mybooking__tools { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.mybooking__tools[hidden], .mybooking__tools .btn[hidden] { display: none; }
.mybooking__tools .btn { gap: .5rem; min-height: 44px; font-size: .92rem; }

.mybooking__section {
  display: grid;
  gap: .8rem;
  margin-top: 1.5rem;
  padding: 1.2rem;
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.mybooking__section[hidden] { display: none; }
.mybooking__section h3 { display: flex; align-items: center; gap: .55rem; font-size: 1.2rem; }
.mybooking__section h3 .ico { width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: var(--paper); color: var(--night); }
.mybooking__muted { margin: -.3rem 0 0; color: rgba(255, 255, 255, .68); font-size: .92rem; }
.mybooking__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.mfield { display: grid; gap: .35rem; font-size: .9rem; color: rgba(255, 255, 255, .8); }
.mfield i { font-style: normal; color: rgba(255, 255, 255, .5); }
.mfield input,
.mfield textarea {
  width: 100%;
  min-height: 46px;
  padding: .6rem .85rem;
  border: 1.5px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, .06);
  color: var(--white);
  font: 400 1rem/1.4 var(--text);
  color-scheme: dark;
}
.mfield textarea { resize: vertical; }
.mfield input:focus,
.mfield textarea:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(140, 123, 224, .35); }
#m-car { text-transform: uppercase; letter-spacing: .05em; }
.mybooking__ok { margin: 0; color: #8fe3dc; font-size: .92rem; font-weight: 500; }
.mybooking__ok:empty { display: none; }
.mybooking__ok.is-error { color: #ffb3c7; }
.mybooking__thanks {
  margin: 1.5rem 0 0;
  padding: .9rem 1.1rem;
  border-radius: var(--radius-m);
  background: rgba(255, 159, 90, .16);
  color: #ffd2b0;
  font-weight: 500;
}
.mybooking__thanks[hidden] { display: none; }

/* Звёзды оценки: справа налево, чтобы подсвечивались все до выбранной */
.stars { min-width: 0; margin: 0; padding: 0; border: 0; }
.stars legend { margin-bottom: .3rem; padding: 0; color: rgba(255, 255, 255, .8); font-size: .9rem; }
.stars__row { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { cursor: pointer; color: rgba(255, 255, 255, .25); font-size: 2rem; line-height: 1; transition: color .15s, transform .15s; }
.stars label::before { content: "★"; }
.stars label:hover,
.stars label:hover ~ label,
.stars input:checked ~ label { color: var(--apricot); }
.stars label:hover { transform: scale(1.12); }
.stars input:focus-visible + label { outline: 3px solid var(--rose); outline-offset: 2px; border-radius: 4px; }

/* ---------- Нет интернета ---------- */

.offline { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.offline__card {
  width: min(520px, 100%);
  overflow: hidden;
  padding: 0 clamp(20px, 5vw, 36px) clamp(24px, 5vw, 36px);
  border-radius: var(--radius-l);
  background: var(--white);
  box-shadow: 0 40px 80px -48px rgba(34, 28, 71, .4);
}
.offline__stripes { display: flex; height: 12px; margin: 0 calc(clamp(20px, 5vw, 36px) * -1) 1.6rem; }
.offline__stripes span { flex: 1; }
.offline__stripes span:nth-child(1) { background: var(--night); }
.offline__stripes span:nth-child(2) { background: var(--lilac); }
.offline__stripes span:nth-child(3) { background: var(--rose); }
.offline__stripes span:nth-child(4) { background: var(--apricot); }
.offline__stripes span:nth-child(5) { background: var(--sea); }
.offline h1 { margin: 1.2rem 0 .8rem; font-size: clamp(1.8rem, 5vw, 2.4rem); }
.offline__facts { display: grid; gap: .5rem; margin: 1.2rem 0 1.6rem; padding: 1rem 1.15rem; border-radius: var(--radius-m); background: var(--paper); }
.offline__facts div { display: grid; grid-template-columns: 7rem 1fr; gap: .8rem; }
.offline__facts dt { color: var(--ink-soft); }
.offline__facts dd { margin: 0; font-weight: 500; }

@media (max-width: 560px) {
  .acal__body { padding: .2rem .7rem .9rem; }
  .acal__day { min-height: 42px; font-size: .85rem; }
  .acal__legend::after { margin-left: 0; width: 100%; }
  .mybooking__row { grid-template-columns: 1fr; }
  .confirm__actions { grid-template-columns: 1fr; }
  .offline__facts div { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Баня: бронь по времени ---------- */

.feature__link { display: inline-block; margin-top: .8rem; color: var(--apricot); font-weight: 600; text-decoration: none; }
.feature__link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Тёплый раздел между тёмными «Услугами» и галереей */
.banya { background: linear-gradient(180deg, #fff1e4 0%, #fff8f1 55%, var(--paper) 100%); }
.banya__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.banya__intro { position: sticky; top: calc(var(--header-h) + 24px); }
.banya__intro .note { margin: 0 0 .6rem; }
.banya__intro h2 { margin-bottom: 1rem; }
.banya__lead { max-width: 32rem; color: var(--ink-soft); }
.banya__facts { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.4rem 0; padding: 0; list-style: none; }
.banya__facts li {
  display: grid;
  gap: .1rem;
  padding: .75rem 1rem;
  border-radius: var(--radius-m);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(34, 28, 71, .06), 0 14px 30px -24px rgba(34, 28, 71, .5);
}
.banya__facts b { font: 500 1.15rem/1.2 var(--display); }
.banya__facts span { color: var(--ink-soft); font-size: .82rem; }
.banya__photos { display: grid; grid-template-columns: .8fr 1fr; gap: .8rem; align-items: end; }
.banya__photos figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-m); }
.banya__photos img { width: 100%; height: auto; object-fit: cover; }
.banya__photos figure:first-child img { aspect-ratio: 3 / 4; }
.banya__photos figure:last-child img { aspect-ratio: 4 / 3; }

.banya__card {
  min-width: 0;
  padding: clamp(20px, 3vw, 34px);
  border-radius: var(--radius-l);
  background: var(--white);
  box-shadow: 0 40px 80px -48px rgba(34, 28, 71, .45);
}
.banya__closed { margin: 0; padding: 1rem; border-radius: var(--radius-m); background: var(--paper); }
.banya__step { min-width: 0; margin: 0 0 1.5rem; padding: 0; border: 0; }
.banya__step legend { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; padding: 0; font: 500 1.1rem/1.2 var(--display); letter-spacing: -0.01em; }
.banya__num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--apricot); font-size: .88rem; }

.banya__packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.banya__pack {
  position: relative;
  display: grid;
  align-content: start;
  gap: .15rem;
  padding: .9rem 1rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--paper);
  cursor: pointer;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.banya__pack input { position: absolute; opacity: 0; pointer-events: none; }
.banya__pack:hover { border-color: var(--lilac); }
.banya__pack-name { font: 500 1.05rem/1.2 var(--display); }
.banya__pack-sub { color: var(--ink-soft); font-size: .8rem; }
.banya__pack-price { margin-top: .45rem; font-size: 1.2rem; font-weight: 600; }
.banya__pack:has(input:checked) { border-color: var(--ink); background: var(--white); box-shadow: inset 0 0 0 1px var(--ink); }
.banya__pack:has(input:checked) .banya__pack-price { color: var(--rose-ink); }
.banya__pack:has(input:focus-visible) { outline: 3px solid var(--rose); outline-offset: 2px; }

.banya__days { display: flex; gap: .4rem; margin: 0 -.2rem; padding: .2rem .2rem .5rem; overflow-x: auto; scrollbar-width: thin; }
.banya__day {
  position: relative;
  flex: none;
  display: grid;
  justify-items: center;
  gap: .05rem;
  width: 56px;
  padding: .5rem 0 .55rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.banya__wd { color: var(--ink-soft); font-size: .72rem; }
.banya__day b { font: 600 1.15rem/1.1 var(--text); }
.banya__day:hover:not(:disabled) { border-color: var(--lilac); }
.banya__day.is-few::after { content: ""; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--apricot); }
.banya__day.is-full { background: repeating-linear-gradient(135deg, #ece9f4 0 5px, #f7f6fb 5px 10px); color: #a19bbf; }
.banya__day.is-full .banya__wd { color: #b4afcc; }
.banya__day.is-closed { opacity: .4; cursor: default; }
.banya__day[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.banya__day[aria-pressed="true"] .banya__wd { color: rgba(255, 255, 255, .7); }
.banya__other { display: inline-flex; align-items: center; gap: .6rem; margin-top: .5rem; color: var(--ink-soft); font-size: .9rem; }
.banya__other input { min-height: 40px; padding: .35rem .6rem; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--paper); color: var(--ink); font: 400 .95rem var(--text); }

.banya__times { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: .4rem; transition: opacity .2s; }
.banya__times.is-loading { opacity: .45; }
.banya__time {
  min-height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: 600 .95rem/1 var(--text);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.banya__time:hover:not(:disabled) { border-color: var(--lilac); }
.banya__time:disabled { background: repeating-linear-gradient(135deg, #ece9f4 0 5px, #f7f6fb 5px 10px); color: #a9a3c4; text-decoration: line-through; cursor: default; }
.banya__time[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.banya__time--day { grid-column: 1 / -1; min-height: 50px; font-size: 1.05rem; }
.banya__hint { margin: .6rem 0 0; color: var(--night); font-size: .88rem; }
.banya__hint:empty { display: none; }

.banya__people { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; font-weight: 500; }
.counter--small { width: 160px; }
.counter--small input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 600 1rem/1 var(--text);
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.counter--small input:focus { outline: none; }
.banya__more { margin-bottom: .2rem; }
.banya__more summary { margin-bottom: .8rem; color: var(--night); font-weight: 500; cursor: pointer; }

.banya__summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-m);
  background: var(--ink);
  color: var(--white);
}
.banya__summary p { margin: 0; color: rgba(255, 255, 255, .82); line-height: 1.4; }
.banya__summary strong { font: 500 1.8rem/1 var(--display); white-space: nowrap; }
.banya .field__error:not(:empty) { margin-bottom: .6rem; }
.banya__note { margin: .8rem 0 0; color: var(--ink-soft); font-size: .86rem; text-align: center; }

@media (max-width: 900px) {
  .banya__grid { grid-template-columns: minmax(0, 1fr); }
  .banya__intro { position: static; }
  .banya__photos { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .banya__packages { grid-template-columns: 1fr; }
  .banya__pack { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: .75rem .9rem; }
  .banya__pack-sub { grid-row: 2; }
  .banya__pack-price { grid-column: 2; grid-row: 1 / 3; margin: 0; }
  .banya__summary { flex-direction: column; align-items: flex-start; gap: .4rem; }
}

/* ---------- Иконки ----------
   Один набор (images/icons.svg): линии 1.8, скруглённые концы, цвет — от текста. */

.ico {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.22em;
}

/* Удобства хостела: иконка в цветной плашке, цвета палитры по кругу */
.facts div { --c: var(--lilac); --t: #4b3fa6; }
.facts div:nth-child(5n+2) { --c: var(--rose); --t: var(--rose-ink); }
.facts div:nth-child(5n+3) { --c: var(--apricot); --t: #a2501a; }
.facts div:nth-child(5n+4) { --c: var(--sea); --t: #12726d; }
.facts div:nth-child(5n+5) { --c: var(--night); --t: var(--night); }
.facts dt { display: flex; align-items: center; gap: .6rem; }
.facts dt .ico {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--c) 18%, white);
  color: var(--t);
}
.facts dd { padding-left: calc(34px + .6rem); }
.facts dd a { color: var(--night); font-weight: 500; }

/* Характеристики номера */
.room__specs dt { display: inline-flex; align-items: center; gap: .35rem; }
.room__specs dt .ico { width: 1.15em; height: 1.15em; color: var(--night); }

/* Значок у заголовков услуг (тёмный раздел) */
.badge-ico {
  display: inline-grid;
  place-items: center;
  width: 2.1em;
  height: 2.1em;
  flex-shrink: 0;
  margin-right: .55em;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--apricot);
  vertical-align: -.55em;
}
.badge-ico .ico { width: 1.1em; height: 1.1em; vertical-align: 0; }
/* Заголовок с иконкой: длинный текст переносится рядом с иконкой, а не под неё */
h3:has(> .badge-ico) { display: flex; align-items: center; }
.feature:nth-of-type(2) .badge-ico { color: #ffb3c7; }
.feature:nth-of-type(3) .badge-ico { color: #7fd4ce; }
.hall__text .badge-ico { color: #c9c0f3; }
.transfer .badge-ico { color: var(--apricot); }
.feature__link { display: inline-flex; align-items: center; gap: .45rem; }

/* Быстрый поиск под слайд-шоу */
.quick__label { display: inline-flex; align-items: center; gap: .35rem; }
.quick__label .ico { width: 1.05em; height: 1.05em; color: var(--night); }

/* Дополнения к брони */
.addon__ico { width: 22px; height: 22px; color: var(--night); }
.addon__name { min-width: 0; }

/* Контакты (тёмный раздел) */
.contacts__list dt { display: flex; align-items: center; gap: .45rem; }
.contacts__list dt .ico { width: 1.15em; height: 1.15em; color: var(--apricot); }

/* Факты о бане */
.banya__facts li { grid-template-columns: auto 1fr; column-gap: .65rem; align-items: center; }
.banya__facts b { grid-column: 2; }
.banya__facts span { grid-column: 2; }
.banya__fico { grid-row: 1 / 3; width: 26px; height: 26px; color: #c25e17; }

/* Удобства для всех гостей (страница номеров) */
.amenities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem 1.5rem;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 1.3rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.amenities li { display: flex; align-items: center; gap: .65rem; font-weight: 500; }
.amenities .ico {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--night);
}
@media (max-width: 900px) { .amenities { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .amenities { grid-template-columns: 1fr; } }

/* ---------- Как заселиться ---------- */

.howto {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.4rem 2.5rem;
  margin-top: clamp(48px, 7vw, 96px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.howto__title { grid-column: 1 / -1; font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.howto__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.howto__steps li {
  position: relative;
  display: grid;
  align-content: start;
  gap: .35rem;
  padding: 1.1rem 1.2rem 1.25rem;
  border-radius: var(--radius-m);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(34, 28, 71, .06), 0 18px 36px -30px rgba(34, 28, 71, .55);
  counter-increment: step;
}
.howto__steps li::after {
  content: counter(step);
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  color: var(--line);
  font: 600 2rem/1 var(--display);
}
.howto__steps b { font-weight: 600; font-size: 1.05rem; }
.howto__steps span:not(.howto__ico) { color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }
.howto__ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: .35rem;
  border-radius: 14px;
  background: var(--c, var(--lilac));
  color: var(--ink);
}
.howto__ico .ico { width: 22px; height: 22px; }
.howto__steps li:nth-child(2) { --c: var(--apricot); }
.howto__steps li:nth-child(3) { --c: #c9c0f3; }
.howto__steps li:nth-child(1) { --c: #fbc1d2; }
.btn .ico { width: 1.15em; height: 1.15em; margin-right: .5em; }

@media (max-width: 900px) {
  .howto { grid-template-columns: 1fr; }
  .howto__steps { grid-template-columns: 1fr; }
  .howto__btn { justify-self: start; }
}

@media (max-width: 560px) {
  .note { font-size: 1.3rem; }
  /* Дополнения: цена под названием, чтобы подписи не сжимались в три строки */
  .addon { display: grid; grid-template-columns: auto auto minmax(0, 1fr); column-gap: .7rem; row-gap: .1rem; }
  .addon input { grid-row: 1 / 3; }
  .addon__ico { grid-row: 1 / 3; }
  .addon__price { grid-column: 3; margin-left: 0; font-size: .9rem; color: var(--ink-soft); }
}

/* ---------- Меньше движения ---------- */

/* ---------- Текстовая страница: «Ваши данные» (privacy.html) ---------- */

.legal { padding-bottom: clamp(72px, 10vw, 136px); }
.legal__body { max-width: 46rem; font-size: 1.06rem; line-height: 1.7; }
.legal__body h2 {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 2.6rem 0 .8rem;
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body h2 .ico { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: var(--white); color: var(--night); }
.legal__body ul { margin: 0 0 1em; padding-left: 1.2rem; }
.legal__body li { margin-bottom: .45rem; }
.legal__body li::marker { color: var(--rose); }
.legal__body a { color: var(--night); text-underline-offset: 3px; }
.legal__date { margin-top: 2.6rem; color: var(--ink-soft); font-size: .92rem; }

/* Ссылка «как мы храним данные» под формами */
.form-privacy { margin: .8rem 0 0; color: var(--ink-soft); font-size: .86rem; text-align: center; }
.form-privacy a { color: inherit; text-underline-offset: 3px; }
.summary .form-privacy { color: rgba(255, 255, 255, .62); }

/* ---------- Страница 404 ---------- */

.lost { padding-bottom: clamp(72px, 10vw, 136px); }
.lost__links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lost__links a {
  display: grid;
  gap: .3rem;
  height: 100%;
  padding: 1.2rem 1.25rem 1.3rem;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line), inset 0 -4px 0 var(--c, var(--lilac));
  text-decoration: none;
  transition: box-shadow .2s, transform .2s;
}
.lost__links a:hover { box-shadow: 0 1px 0 var(--line), inset 0 -7px 0 var(--c, var(--lilac)); }
.lost__links .ico { width: 40px; height: 40px; margin-bottom: .4rem; padding: 9px; border-radius: 12px; background: var(--paper); color: var(--night); }
.lost__links b { font: 500 1.15rem/1.2 var(--display); }
.lost__links span { color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 900px) { .lost__links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .lost__links { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  /* Полоса прогресса — это таймер слайд-шоу, а не украшение */
  .hero__nav .bar::after { animation-duration: var(--slide-time) !important; }
  .js .reveal::before,
  .js .reveal::after { display: none; }
  .js .reveal img { transform: none; }
  .js .ttl::before,
  .js .ttl::after { display: none; }
  .js .note.is-anim { clip-path: none; }
  .js .stickers.is-anim li { opacity: 1; animation: none; }
}

/* Самые узкие телефоны (320–360 px): шапка помещается в экран и с финским переключателем */
@media (max-width: 360px) {
  .site-header__inner { gap: .4rem; }
  .langs__btn { gap: .3rem; padding: 0 .4rem 0 .5rem; }
  .logo { font-size: 1.3rem; }
}

/* ---------- «Моя бронь»: путь брони и гид гостя ---------- */

/* Путь брони: заявка → подтверждена → заезд → выезд */
.journey { margin: 0 0 1.3rem; }
.journey[hidden] { display: none; }
/* «Подтверждена» — самое длинное слово, ему колонка шире; последняя — по ширине слова */
.journey__steps {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr) minmax(0, 1fr) auto;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.journey__steps li {
  position: relative;
  padding-top: 1.35rem;
  padding-right: .3rem;
  font-size: .78rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, .5);
}
/* Точка шага и линия к следующему */
.journey__steps li::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3);
  z-index: 1;
}
.journey__steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 6px; left: 14px; right: 0;
  height: 2px;
  background: rgba(255, 255, 255, .16);
}
.journey__steps li.is-done { color: rgba(255, 255, 255, .78); }
.journey__steps li.is-done::before { background: var(--sea); box-shadow: none; }
.journey__steps li.is-done::after { background: var(--sea); }
.journey__steps li.is-now { color: var(--white); font-weight: 600; }
.journey__steps li.is-now::before { background: var(--apricot); box-shadow: 0 0 0 4px rgba(255, 159, 90, .25); }
.journey__count { margin: .9rem 0 0; font-weight: 500; color: rgba(255, 255, 255, .85); }
.journey__count.is-soon { color: #ffd2b0; }

/* Гид гостя */
.guide__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .7rem; }
.guide__tiles[hidden], .guide__tile[hidden], .guide__times[hidden], .guide__note[hidden], .guide__hint[hidden] { display: none; }
.guide__tile {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: .3rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, .08);
}
.guide__tile--code { background: var(--apricot); color: var(--ink); }
.guide__label { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 500; opacity: .8; }
.guide__code {
  font: 500 clamp(1.9rem, 6vw, 2.4rem)/1.1 var(--display);
  letter-spacing: .12em;
  overflow-wrap: anywhere;
}
.guide__wifi { font: 500 1.15rem/1.3 var(--display); overflow-wrap: anywhere; }
.guide__hint { font-size: .85rem; line-height: 1.4; opacity: .82; }
.guide__hint code { font: 600 .95rem var(--text); letter-spacing: .03em; user-select: all; }
.guide__tile .btn { margin-top: .3rem; }
.guide__times { display: grid; gap: .45rem; margin: .2rem 0 0; padding: 0; list-style: none; font-size: .95rem; color: rgba(255, 255, 255, .85); }
.guide__times li { display: flex; align-items: center; gap: .55rem; }
.guide__times .ico { color: var(--apricot); }
.guide__note {
  margin: 0;
  padding: .8rem 1rem;
  border-left: 3px solid var(--lilac);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: rgba(140, 123, 224, .14);
  white-space: pre-line;
  line-height: 1.55;
}
.guide__door { margin: 0; }
.guide__door img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-m); }
.guide__door figcaption { margin-top: .4rem; font-size: .85rem; color: rgba(255, 255, 255, .7); }
.guide__links { display: flex; flex-wrap: wrap; gap: .5rem; }
.guide__links .btn { min-height: 44px; }
.mybooking__card .btn--line { color: var(--white); }
.mybooking__wait {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 1.2rem 0 0;
  padding: .8rem 1rem;
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, .06);
  font-size: .92rem;
  color: rgba(255, 255, 255, .8);
}
.mybooking__wait[hidden] { display: none; }
.mybooking__wait .ico { color: var(--apricot); }

/* Нижняя панель на телефоне: круглая кнопка чата рядом с «Забронировать» */
.mobile-cta__chat {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px; height: 46px;
  margin-left: auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: var(--white);
}
.mobile-cta__chat .ico { width: 24px; height: 24px; }
.mobile-cta__chat:focus-visible { outline: 3px solid var(--apricot); outline-offset: 2px; }
.mobile-cta__chat + .btn { margin-left: -.4rem; }
@media (max-width: 1100px) {
  .mobile-cta:has(.mobile-cta__chat) { gap: .55rem; }
  .mobile-cta__price span { white-space: nowrap; }
}
/* Узкий телефон: рядом с кнопкой чата — только цена */
@media (max-width: 374px) {
  .mobile-cta:has(.mobile-cta__chat) .mobile-cta__price span { display: none; }
}

/* ---------- Телефон: длинные блоки главной — короче ----------
   Удобства — в две колонки, шаги заселения — строками, отзывы листаются пальцем, факты о бане — плиткой. */
@media (max-width: 560px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .9rem; margin-top: 1.6rem; }
  .facts div { padding-top: .7rem; }
  .facts dt { flex-direction: column; align-items: flex-start; gap: .45rem; font-size: .95rem; }
  .facts dd { padding-left: 0; font-size: .88rem; line-height: 1.4; }

  .howto__steps { gap: .6rem; }
  .howto__steps li {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: .9rem;
    row-gap: .1rem;
    padding: .9rem 2.6rem .95rem .9rem;
  }
  .howto__ico { grid-row: 1 / 3; margin: 0; }
  .howto__steps li::after { top: 50%; right: .9rem; transform: translateY(-50%); font-size: 1.5rem; }
  .howto__steps b { font-size: 1rem; }
  .howto__steps span:not(.howto__ico) { font-size: .9rem; line-height: 1.45; }

  /* Отзывы: карточки в ленту, следующая выглядывает справа — видно, что можно листать */
  .passport__list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: 14px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 14px var(--gutter) 30px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .passport__list::-webkit-scrollbar { display: none; }
  .passport__list > * { scroll-snap-align: start; }

  .banya__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .banya__facts li { padding: .7rem .8rem; align-content: center; }
  .banya__facts li:first-child { grid-column: 1 / -1; }
  .banya__facts b { font-size: 1.02rem; }
  .banya__photos { align-items: stretch; }
  .banya__photos figure:first-child img,
  .banya__photos figure:last-child img { aspect-ratio: 1 / 1; height: 100%; }
}
