.bath-page .bath-crumbs { padding-block: 12px 18px; color: var(--muted); font-size: 14px; }
.bath-page .bath-hero { display: grid; grid-template-columns: 1fr 1.12fr; background: var(--cream); border-radius: 18px; overflow: hidden; }
.bath-page .bath-hero-photo { grid-column: 2; grid-row: 1; position: relative; min-height: 590px; }
.bath-page .bath-hero-photo picture, .bath-page .bath-hero-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.bath-page .bath-hero-photo figcaption { position: absolute; bottom: 18px; right: 18px; background: var(--paper); border-radius: 4px; padding: 7px 12px; font-size: 13px; }
.bath-page .bath-hero-copy { grid-column: 1; grid-row: 1; padding: clamp(26px, 3.6vw, 52px); align-self: center; }
.bath-page h1 { font-size: clamp(38px, 3.6vw, 53px); }
.bath-page h2 { font-size: clamp(34px, 3.5vw, 50px); }
.bath-page .bath-phone { margin-top: 15px; }
.bath-page .bath-hero-benefit { margin-top: 25px; border-top: 1px solid var(--beige); padding-top: 18px; font-size: 15px; color: var(--deep); }
.bath-page .bath-hero-benefit span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.bath-page .bath-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 36px; }
.bath-page .bath-choice-grid article { border-top: 1px solid var(--line); padding-top: 25px; }
.bath-page h3 a { text-decoration: none; }
.bath-page .bath-choice-grid p { margin-top: 16px; max-width: 53ch; color: var(--muted); }
.bath-page .bath-choice-grid .bath-choice-price { color: var(--green); font-weight: 700; }
.bath-page .bath-section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 36px; }
.bath-page .bath-section-heading p { color: var(--muted); max-width: 50ch; }
.bath-page .bath-russian { border-top: 1px solid var(--line); }
.bath-page .bath-steam-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 24px; }
.bath-page .bath-floor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bath-page figure a, .bath-page figure picture { display: block; }
.bath-page figure img { width: 100%; height: auto; }
.bath-page .bath-steam-grid img { aspect-ratio: 1.55; object-fit: cover; border-radius: 13px; }
.bath-page .bath-floor-grid img { aspect-ratio: 1.5; object-fit: cover; border-radius: 13px; }
.bath-page figcaption { color: var(--muted); font-size: 13px; margin-top: 10px; }
.bath-page .bath-floor-heading { margin: 42px 0 22px; display: flex; gap: 30px; align-items: baseline; }
.bath-page .bath-floor-heading p { color: var(--muted); }
.bath-page .bath-band { background: var(--cream); }
.bath-page .bath-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.bath-page .bath-prices h2 + p { margin-top: 22px; }
.bath-page .bath-prices dl { margin: 0; }
.bath-page .bath-prices dl > div { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; border-bottom: 1px solid var(--beige); padding: 18px 0; }
.bath-page .bath-prices dt { font-size: 18px; }
.bath-page .bath-prices dd { margin: 0; font-size: 32px; color: var(--green); font-weight: 700; white-space: nowrap; }
.bath-page .bath-prices dd span, .bath-page .bath-hammam-price span { font-size: 16px; font-weight: 400; }
.bath-page .bath-note { font-size: 13px; color: var(--muted); margin-top: 18px; }
.bath-page .bath-hammam { display: grid; grid-template-columns: 1.1fr 1fr; gap: 65px; align-items: center; }
.bath-page .bath-hammam img { border-radius: 13px; }
.bath-page .bath-hammam h2 + p { margin-top: 22px; color: var(--muted); }
.bath-page .bath-hammam-price { color: var(--green); font-size: 34px; font-weight: 700; margin-top: 24px; }
.bath-page .bath-benefit { margin-top: 26px; padding: 23px 25px; background: var(--cream); border-left: 3px solid var(--green); }
.bath-page .bath-benefit > p:first-child { font-size: 21px; line-height: 1.45; color: var(--deep); font-weight: 600; }
.bath-page .bath-booking { display: grid; grid-template-columns: 1.2fr .8fr; gap: 90px; align-items: center; }
.bath-page .bath-booking p, .bath-page .bath-final p { margin-top: 22px; max-width: 55ch; color: var(--muted); }
.bath-page .bath-stay { padding-left: 35px; border-left: 1px solid var(--beige); }
.bath-page .bath-stay .inline-link { margin-top: 18px; }
.bath-page .bath-faq { max-width: 1000px; }
.bath-page .bath-faq h2 { margin-bottom: 28px; }
.bath-page .bath-faq details { padding: 21px 0; border-bottom: 1px solid var(--line); }
.bath-page .bath-faq summary { font-size: 19px; font-weight: 600; cursor: pointer; }
.bath-page .bath-faq details p { margin-top: 16px; color: var(--muted); }
.bath-page .bath-final { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 75px; background: var(--cream); border-radius: 18px; overflow: hidden; }
.bath-page .bath-final > div { padding: 40px 0 40px 45px; }
.bath-page .bath-final picture, .bath-page .bath-final img { width: 100%; height: 100%; object-fit: cover; }
.bath-page .bath-final .inline-link { margin-top: 16px; }
.bath-page .bath-hero-photo > a { display: block; height: 100%; }
.bath-page .bath-hero-photo img { object-position: 50% 35%; }
.bath-page .bath-zone { margin-top: 42px; }
.bath-page .bath-zone:first-child { margin-top: 0; }
.bath-page .bath-zone-heading { margin-bottom: 22px; }
.bath-page .bath-zone-heading p { margin-top: 10px; color: var(--muted); }
.bath-page .bath-zone-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bath-page .bath-zone-grid figure { min-width: 0; }
.bath-page .bath-zone-grid a { overflow: hidden; border-radius: 13px; background: var(--cream); }
.bath-page .bath-zone-grid img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.bath-page .bath-zone-grid figcaption { line-height: 1.45; }
.bath-page .bath-zone-more { display: none; margin-top: 22px; min-height: 44px; }
.bath-page .bath-zone a:focus-visible, .bath-page .bath-zone-more:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.bath-page .bath-album {
  width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0;
  border: 0; border-radius: 0; box-sizing: border-box; padding: clamp(16px, 3vw, 30px);
}
.bath-page .bath-album[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 12px; }
.bath-page .bath-album h2 { font-size: clamp(22px, 3vw, 32px); }
.bath-page .bath-album .stay-album-header { margin-bottom: 0; align-items: center; }
.bath-page .bath-album [data-close] { font-size: 30px; min-width: 44px; min-height: 44px; }
.bath-page .bath-album .stay-album-frame { min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.bath-page .bath-album .stay-album-viewport { min-height: 0; touch-action: pan-y pinch-zoom; }
.bath-page .bath-album .stay-album-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bath-page .bath-album .stay-album-frame figcaption { text-align: center; margin-top: 10px; }
.bath-page .bath-album .stay-album-navigation { margin: 0; }
.bath-page .bath-album .stay-album-navigation span { width: auto; min-width: 80px; }
.bath-page .bath-album .stay-album-choices { flex-wrap: nowrap; justify-content: start; overflow-x: auto; max-width: 100%; margin: 0; }
.bath-page .bath-album .stay-album-choices button { flex: 0 0 64px; width: 64px; height: 44px; }
.bath-page .bath-album .stay-album-choices img { width: 100%; height: 100%; object-fit: cover; }
@media(max-width:1000px) {
  .bath-page .bath-hero { grid-template-columns: 1fr 1fr; }
  .bath-page .bath-choice-grid, .bath-page .bath-section-heading, .bath-page .bath-prices, .bath-page .bath-hammam, .bath-page .bath-booking { gap: 32px; }
  .bath-page .bath-final { gap: 25px; }
}
@media(max-width:710px) {
  .bath-page .bath-hero { display: flex; flex-direction: column; border-radius: 13px; }
  .bath-page .bath-hero-photo { min-height: 0; }
  .bath-page .bath-hero-photo > a, .bath-page .bath-hero-photo picture { height: auto; }
  .bath-page .bath-hero-photo img { height: auto; aspect-ratio: auto; object-fit: contain; object-position: center; }
  .bath-page .bath-hero-photo figcaption { bottom: 12px; right: 12px; font-size: 12px; }
  .bath-page .bath-hero-copy { padding: 25px 22px; }
  .bath-page h1 { font-size: 36px; }
  .bath-page h2 { font-size: 34px; }
  .bath-page .bath-choice-grid, .bath-page .bath-section-heading, .bath-page .bath-prices, .bath-page .bath-hammam, .bath-page .bath-booking, .bath-page .bath-final { grid-template-columns: 1fr; gap: 28px; }
  .bath-page .bath-choice-grid { margin-top: 25px; }
  .bath-page .bath-steam-grid { grid-template-columns: 1.45fr 1fr; gap: 12px; }
  .bath-page .bath-steam-grid img { aspect-ratio: .95; }
  .bath-page .bath-floor-grid { grid-template-columns: 1fr; gap: 24px; }
  .bath-page .bath-floor-heading { display: block; margin-top: 30px; }
  .bath-page .bath-floor-heading p { margin-top: 10px; }
  .bath-page .bath-prices dd { font-size: 29px; }
  .bath-page .bath-prices dl > div { flex-wrap: wrap; gap: 8px 16px; }
  .bath-page .bath-hammam > figure { order: 2; }
  .bath-page .bath-stay { padding: 25px 0 0; border-left: 0; border-top: 1px solid var(--beige); }
  .bath-page .bath-final { margin-bottom: 43px; gap: 0; }
  .bath-page .bath-final > div { padding: 28px 22px; }
  .bath-page .bath-final img { height: auto; }
  .bath-page .bath-zone { margin-top: 32px; }
  .bath-page .bath-zone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .bath-gallery-ready .bath-page .bath-zone:not(.is-expanded) .bath-zone-extra { display: none; }
  .bath-gallery-ready .bath-page .bath-zone-more:not([hidden]) { display: inline-flex; }
  .bath-page .bath-album { padding: 12px; padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}
@media(prefers-reduced-motion:reduce) {
  html:has(.bath-page) { scroll-behavior: auto; }
}

/* Кнопка «Настройки cookie» добавляется скриптом в конец подвала: держим её в той же колонке, что и подвал. */
.footer > .analytics-settings { display: block; width: min(calc(100% - 112px), var(--content)); margin: 12px auto 0; }
@media (max-width: 1000px) { .footer > .analytics-settings { width: calc(100% - 64px); } }
@media (max-width: 710px) { .footer > .analytics-settings { width: calc(100% - 32px); } }

/* Сетка галереи без пустых мест. Компьютер, 3 колонки: если в зоне на 1 фото больше кратного трём,
   широкими (на 2 колонки) становятся первое и последнее фото; если на 2 больше, только первое.
   Телефон, 2 колонки: при нечётном числе широким становится последнее фото. */
@media (min-width: 711px) {
  .bath-page .bath-zone-grid:has(> figure:last-child:nth-child(3n+2)) > figure:first-child,
  .bath-page .bath-zone-grid:has(> figure:last-child:nth-child(3n+1)) > figure:first-child,
  .bath-page .bath-zone-grid:has(> figure:last-child:nth-child(3n+1)) > figure:last-child { grid-column: span 2; }
  .bath-page .bath-zone-grid:has(> figure:last-child:nth-child(3n+2)) > figure:first-child img,
  .bath-page .bath-zone-grid:has(> figure:last-child:nth-child(3n+1)) > figure:first-child img,
  .bath-page .bath-zone-grid:has(> figure:last-child:nth-child(3n+1)) > figure:last-child img { aspect-ratio: 3.1 / 1; }
}
@media (max-width: 710px) {
  .bath-page .bath-zone-grid:has(> figure:last-child:nth-child(2n+1)) > figure:last-child { grid-column: span 2; }
  .bath-page .bath-zone-grid:has(> figure:last-child:nth-child(2n+1)) > figure:last-child img { aspect-ratio: 3.1 / 1; }
}

/* Контакты страницы бани. */
.bath-page .bath-contact-phones { display: inline-grid; gap: 8px; }
.bath-page .bath-contact-phones small { display: block; font-size: 13px; font-weight: 400; line-height: 1.3; }

.bath-page .bath-contact-phones:hover { text-decoration: none; }
