:root {
  /* Липовая доска и вода бассейна: цвета взяты с фотографий заведения, чтобы
     страница не спорила со снимками. */
  --paper: #faf8f4;
  --paper-2: #ece7dd;
  --paper-3: #ded7c9;

  --ink: #1d2a2b;
  /* Потемнее обычного: фон местами подкрашен, и на цветном пятне светлый серый
     давал контраст 4,3 при требуемых 4,5. */
  --muted: #55625f;

  --water: #1f6a72;
  --water-deep: #17545b;
  --water-soft: #e4eeed;

  --clay: #b8603a;

  --line: rgba(29, 42, 43, 0.16);
  --line-soft: rgba(29, 42, 43, 0.08);

  --step-0: 1rem;
  --step-1: 1.0625rem;
  --step-2: 1.25rem;
  --step-3: clamp(1.5rem, 2.6vw, 2.25rem);
  --step-4: clamp(2.25rem, 4.6vw, 3.9rem);

  /* Зерно бумаги: серый шум в svg, свёрнутый в сам файл стилей. Внешних запросов
     не делает и весит несколько сотен знаков. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)' opacity='0.13'/%3E%3C/svg%3E");

  --wrap: 1560px;
  --gutter: clamp(1.25rem, 3.5vw, 4rem);
  --aside: 15rem;
  --col-gap: clamp(1.5rem, 3vw, 3.5rem);
}

* {
  box-sizing: border-box;
}

/* Базовый цвет держится на html: иначе фон body уходит на холст страницы и
   переливы считаются от другой коробки. */
html {
  background: var(--paper);
}

/* Фон не однотонный: по всей высоте страницы разлиты мягкие пятна воды и глины,
   поверх них зерно бумаги. Пятна привязаны к высоте документа, поэтому при
   прокрутке цвет под содержанием перетекает. */
body {
  margin: 0;
  background-color: transparent;
  background-image:
    var(--grain),
    radial-gradient(70vw 38vw at 88% 1%, rgba(58, 150, 152, 0.18), transparent 64%),
    radial-gradient(58vw 34vw at 2% 16%, rgba(214, 142, 82, 0.2), transparent 64%),
    radial-gradient(78vw 40vw at 68% 43%, rgba(58, 150, 152, 0.15), transparent 64%),
    radial-gradient(64vw 36vw at 4% 67%, rgba(214, 142, 82, 0.18), transparent 64%),
    radial-gradient(80vw 44vw at 92% 96%, rgba(58, 150, 152, 0.17), transparent 64%);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  min-height: 100svh;
  color: var(--ink);
  font-family: "Golos Text", "Segoe UI", system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
  max-width: 68ch;
}

a {
  color: inherit;
}

figure {
  margin: 0;
}

/* height: auto обязателен: в разметке у снимков проставлены width и height,
   и без него браузер держит высоту из атрибута вместо расчётной. */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* picture нужен только для выбора webp или jpeg: своей коробки у него быть не должно. */
picture {
  display: contents;
}

:focus-visible {
  outline: 2px solid var(--water);
  outline-offset: 3px;
}

/* Общая колея страницы: всё содержание живёт внутри неё, до самых краёв. */

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

/* Верхняя строка: не липкая и не поверх снимка, обычная строка над страницей */

.top {
  border-bottom: 1px solid var(--line-soft);
}

.top__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2.5rem;
  padding-block: 1.35rem;
}

.top__mark {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
}

.top__mark b {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.top__mark span {
  font-size: 0.75rem;
  color: var(--muted);
}

.top__nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.top__nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

.top__nav a:hover {
  color: var(--ink);
}

.top__nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
  box-shadow: inset 0 -1px 0 var(--clay);
}

.top__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  text-align: right;
}

.top__phone {
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.top__phone:hover {
  color: var(--water);
}

.top__contact span {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Общие мелочи */

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.note {
  color: var(--muted);
  font-size: 0.875rem;
  max-width: 80ch;
}

.note + .note {
  margin-top: 0.4rem;
}

.notes {
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
}

.link {
  color: var(--water);
  text-underline-offset: 0.25em;
}

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  background: var(--water);
  border: 1px solid var(--water);
  padding: 0.8rem 1.6rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn:hover {
  background: var(--water-deep);
  border-color: var(--water-deep);
}

.btn--quiet {
  color: var(--ink);
  background: none;
  border-color: var(--line);
}

.btn--quiet:hover {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.btn--small {
  padding: 0.5rem 1.1rem;
  font-size: 0.9375rem;
}

/* Первый экран: заголовок во всю ширину, под ним полоса снимков от края до края */

.lede {
  padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3rem);
}

.lede__head {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: var(--col-gap);
  align-items: end;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.lede__title {
  font-size: var(--step-4);
  margin-top: 0.6rem;
}

.lede__aside {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-bottom: 0.4rem;
}

.lede__lead {
  font-size: var(--step-1);
  color: var(--muted);
}

.lede__rating {
  font-size: 0.875rem;
  color: var(--muted);
}

.lede__rating b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Полоса снимков выходит за поля колеи: правая пустота на широком экране
   закрывается самим кадром, а не растянутым текстом. */
.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-inline: calc(var(--gutter) * -1);
}

.strip figure {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--paper-3);
}

.strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lede__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
}

.lede__price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.lede__price b {
  font-size: var(--step-3);
  font-weight: 600;
  color: var(--clay);
  font-variant-numeric: tabular-nums;
}

.lede__price span {
  font-size: 0.9375rem;
  color: var(--muted);
}

.lede__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

/* Разделы: слева узкая колонка с номером и названием, справа широкое содержание.
   Пустого поля справа не остаётся: содержание идёт до правого края колеи. */

.block {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line-soft);
}

/* Первый раздел страницы, если перед ним нет первого экрана. */
.block--open {
  border-top: 0;
  padding-top: clamp(2rem, 4vw, 3.25rem);
}

.block__grid {
  display: grid;
  grid-template-columns: var(--aside) minmax(0, 1fr);
  gap: var(--col-gap);
  align-items: start;
}

.block__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

/* Название раздела опирается на короткую черту вместо номера. */
.block__head::before {
  content: "";
  width: 2.5rem;
  height: 2px;
  background: var(--clay);
}

.block__title {
  font-size: var(--step-3);
}

.block__sub {
  color: var(--muted);
  font-size: 0.9375rem;
}

.block__phone {
  font-size: var(--step-2);
  font-weight: 600;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  margin-top: 0.4rem;
}

.block__phone:hover {
  color: var(--water);
}

.block__body > * + * {
  margin-top: clamp(1rem, 2vw, 1.5rem);
}

/* Текст в две колонки: длинная строка на широком экране читается хуже. */
.prose--split {
  columns: 2;
  column-gap: var(--col-gap);
}

.prose--split p {
  max-width: none;
}

.prose--split p + p {
  margin-top: 0.9rem;
}

/* Коротко о месте */

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
}

.facts-grid h3 {
  font-size: var(--step-2);
  margin-bottom: 0.5rem;
}

.facts-grid p {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Бани: строки с номером, текстом и снимком */

.bath-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 16rem);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line-soft);
}

.bath-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.bath-row:last-of-type {
  border-bottom: 1px solid var(--line-soft);
}

.bath-row__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.bath-row__name {
  font-size: var(--step-2);
}

.bath-row__body p {
  color: var(--muted);
  font-size: 0.9375rem;
}

.bath-row__figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-3);
}

.bath-row__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Что входит: список в несколько колонок на волосяных линиях */

.included {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 20rem;
  column-gap: var(--col-gap);
}

.included li {
  break-inside: avoid;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9375rem;
}

/* Отзывы: выдержки колонками во всю ширину, не карточки с тенями */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0 var(--col-gap);
}

.quote {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-block: clamp(1.25rem, 2vw, 1.75rem);
  border-top: 1px solid var(--line-soft);
}

.quote blockquote {
  margin: 0;
  font-size: var(--step-1);
}

.quote__who {
  font-size: 0.875rem;
  color: var(--muted);
}

.quote__who b {
  color: var(--ink);
  font-weight: 500;
}

/* Форма заявки: панель во всю ширину правой колонки */

.booking {
  background: var(--water-soft);
  border: 1px solid rgba(31, 106, 114, 0.22);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.bookform {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bookform__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.bookform__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bookform__field > span {
  font-size: 0.75rem;
  color: var(--muted);
}

.bookform input,
.bookform select,
.bookform textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(31, 106, 114, 0.3);
  padding: 0.6rem 0.7rem;
  width: 100%;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.bookform select {
  /* Своя стрелка: без appearance родная у части браузеров пропадает. */
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 1rem center, right 0.7rem center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.bookform textarea {
  resize: vertical;
}

.bookform input:focus,
.bookform select:focus,
.bookform textarea:focus {
  outline: 2px solid var(--water);
  outline-offset: 1px;
}

.bookform__send {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.bookform__note {
  font-size: 0.8125rem;
  color: var(--muted);
}

.bookform__msg {
  padding: 0.7rem 0.85rem;
  font-size: 0.9375rem;
  background: #fff;
  border-left: 3px solid var(--water);
}

.bookform__msg--error {
  border-left-color: var(--clay);
}

/* Ловушка для роботов: человеку не видна и в порядок обхода не попадает. */
.bookform__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Строки «название - значение» */

.data-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.data-list li {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.8rem;
  border-top: 1px solid var(--line-soft);
}

.data-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.data-list li:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.data-list__key {
  color: var(--muted);
  font-size: 0.9375rem;
}

.data-list a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.data-list a:hover {
  border-bottom-color: var(--water);
}

/* Карта */

.map {
  position: relative;
  aspect-ratio: 21 / 9;
  background: var(--paper-3);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.map__stub {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: var(--gutter);
  text-align: center;
}

.map__note {
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 44ch;
}

/* Заглушка остаётся под картой: если чужой виджет не загрузится, гость увидит
   пояснение и кнопку, а не пустой прямоугольник. */
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map.is-loading .map__load {
  display: none;
}

.map__link {
  display: inline-block;
  color: var(--water);
  text-underline-offset: 0.3em;
}

/* Одиночный снимок внутри раздела: показывается целиком, кадры вертикальные */

.plate img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--paper-3);
}

.plate figcaption {
  margin-top: 0.6rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Галерея: сетка с подписями под кадрами */

.album {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.album__item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
}

.album__shot {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper-3);
}

.album__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.album__item:hover img {
  transform: scale(1.03);
}

.album__caption {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Просмотр снимка */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(20, 28, 29, 0.94);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(100%, 1200px);
  max-height: 84vh;
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: var(--paper);
  font-family: inherit;
  font-size: 1.75rem;
  line-height: 1;
  padding: 0.75rem 1rem;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.lightbox button:hover {
  opacity: 1;
}

.lightbox__close {
  top: clamp(0.5rem, 2vw, 1.5rem);
  right: clamp(0.5rem, 2vw, 1.5rem);
}

.lightbox__prev {
  left: clamp(0.25rem, 2vw, 1.5rem);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: clamp(0.25rem, 2vw, 1.5rem);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__counter {
  position: absolute;
  bottom: clamp(0.75rem, 3vw, 1.75rem);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(250, 248, 244, 0.75);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

/* Подвал */

.footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem 2.5rem;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.footer__line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  align-items: baseline;
  font-size: 0.9375rem;
  color: var(--muted);
}

.footer__line a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.footer__line a:hover {
  border-bottom-color: var(--water);
}

.footer__note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: none;
}

@media (max-width: 1000px) {
  :root {
    --aside: 11rem;
  }

  .lede__head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.25rem;
  }

  .lede__aside {
    padding-bottom: 0;
  }

  .bath-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 14rem);
  }
}

@media (max-width: 820px) {
  .top__row {
    flex-wrap: wrap;
    gap: 0.75rem 1.75rem;
  }

  .top__contact {
    align-items: flex-start;
    text-align: left;
  }

  .block__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .block__head {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem 1rem;
  }

  .block__head::before {
    display: none;
  }

  .block__sub {
    flex-basis: 100%;
  }

  .strip {
    grid-template-columns: 1fr 1fr;
  }

  .strip figure:first-child {
    grid-column: 1 / 3;
    aspect-ratio: 3 / 2;
  }

  .prose--split {
    columns: 1;
  }

  .bath-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .bath-row__figure {
    aspect-ratio: 3 / 2;
  }

  .data-list li {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .map {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 520px) {
  .included {
    columns: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
