/* =========================================================================
   Кафа — the site's one stylesheet (ADR-0010; 13-CONTEXT D-08…D-21, 13-UI-SPEC).
   Order: the vetted prototype's tokens (design/redesign-2026-11/styles.css :root) plus the added tokens; the reset
   and the base components with the 44 px touch hit-area and forced-colours rules; the shell blocks (simple pages,
   header, phone menu, mobile bar, footer, consent, lightbox, gallery strip); the page blocks (services, houses, the
   shared Phase 14 components, the home sections); the booking wizard block; the motion block last. Site-only rules
   cite the redesign deviation register: the RDV citations (e2e/parity/report.py). tests/test_design_contract.py and
   tests/test_motion_audit.py pin this structure.
   ========================================================================= */
:root {
  --bg: #f7f5ee;
  --surface: #ffffff;
  --tint: #e9eee2;
  --ink: #1b2a21;
  --muted: #5a685e;
  --line: #dcdfd2;
  --green: #2f6b46;
  --green-hover: #25573a;
  --green-soft: #dbe7d6;
  --deep: #17301f;
  --deep-2: #20402b;
  --on-deep: #eef2e8;
  --on-deep-muted: #a9b9aa;
  --warm: #d9793b;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --shadow: 0 1px 2px rgba(23, 48, 31, .06), 0 8px 28px rgba(23, 48, 31, .08);
  --gut: 20px;
  --sec: 72px;
  --hdr: 64px;

  /* added tokens (13-UI-SPEC "Added tokens", D-18) */
  --accent-on-deep: #b9d7a6;
  --err: #9a3324; /* RDV-22 */
  --disabled: #b9c0b4;
  --line-2: rgba(23, 48, 31, .16);
  --control: #7a877d;
  --t: .15s;
}

@media (min-width: 900px) {
  :root { --gut: 40px; --sec: 120px; --hdr: 76px; }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--hdr) + 16px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
/* RDV-12 */
body { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
/* RDV-12 */
h4, ol, fieldset { margin: 0; }
/* RDV-12 */
ol { padding: 0; list-style: none; }
/* RDV-12 */
fieldset { border: 0; padding: 0; min-width: 0; }
/* RDV-12 */
legend { padding: 0; }
/* RDV-12 */
button { margin: 0; text-align: inherit; -webkit-tap-highlight-color: transparent; }
/* RDV-12 */
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.on-deep :focus-visible { outline-color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* RDV-12 */
.sr { position: absolute !important; }

/* ---------- focus (13-UI-SPEC "Non-text contrast") ---------- */
/* RDV-09 */
.sec-deep :focus-visible { outline-color: #fff; }
/* RDV-09 */
#main:focus { outline: none; }

/* ---------- icons ---------- */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- layout, sections ---------- */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }
.sec { padding: var(--sec) 0; }
.sec-tint { background: var(--tint); }
.sec-deep { background: var(--deep); color: var(--on-deep); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }

/* ---------- type ---------- */
.h1, .h2, .h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; text-wrap: balance; }
.h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.05; }
.h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.12; }
.h3 { font-size: 24px; line-height: 1.2; }
.h1 em, .h2 em { font-style: italic; color: var(--green); }
.sec-deep .h1 em, .sec-deep .h2 em { color: var(--accent-on-deep); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink); }
.muted { color: var(--muted); }
.sec-deep .muted { color: var(--on-deep-muted); }
.small { font-size: 14px; line-height: 1.5; }
.p { color: var(--muted); }
.sec-deep .p { color: var(--on-deep-muted); }
.it { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; color: var(--green); }
.sec-deep .it { color: var(--accent-on-deep); }

/* eyebrow; the v11 `.sno` alias (same <b>…</b><i></i><span> markup) stays in the list, though no template renders it
   since the Phase 14/15 ports */
.eyebrow, .sno {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--green);
  margin-bottom: 16px;
}
.eyebrow b, .sno b { font-weight: 600; font-variant-numeric: tabular-nums; }
.eyebrow i, .sno i { width: 28px; height: 1px; background: currentColor; opacity: .5; }
.sec-deep .eyebrow, .sec-deep .sno { color: var(--accent-on-deep); }
.tags { font-size: 14px; font-weight: 600; color: var(--green); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--r-s);
  background: var(--green); color: #fff;
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background var(--t), transform var(--t), border-color var(--t);
}
.btn:hover { background: var(--green-hover); }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; transition: transform var(--t); }
.btn:hover .ic-arrow { transform: translateX(3px); }
.btn-lg { min-height: 56px; padding: 16px 28px; font-size: 17px; }
/* RDV-03 */
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: 15px; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-line:hover { background: rgba(47, 107, 70, .07); box-shadow: inset 0 0 0 1.5px var(--green); }
.sec-deep .btn { background: #fff; color: var(--deep); }
.sec-deep .btn:hover { background: #e3ecdc; }
/* RDV-12 */
.ft .btn { background: #fff; color: var(--deep); }
/* RDV-12 */
.ft .btn:hover { background: #e3ecdc; }
.sec-deep .btn-line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.sec-deep .btn-line:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px #fff; }
.btn-block { width: 100%; }
/* RDV-20 */
.btn:disabled, .btn:disabled:hover, .btn[aria-disabled="true"], .btn[aria-disabled="true"]:hover { background: var(--disabled); color: var(--ink); box-shadow: none; cursor: not-allowed; transform: none; }
/* RDV-20 */
.btn[aria-busy="true"], .btn[aria-busy="true"]:hover { background: var(--green); color: #fff; cursor: progress; transform: none; }

/* ---------- links; also the member note links static/js/components/member.js builds (15-REVIEW IN-04) ---------- */
.link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 16px; color: var(--green);
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px;
  transition: text-decoration-color var(--t);
}
.link:hover { text-decoration-color: currentColor; }
.link .ic { width: 16px; height: 16px; }
.sec-deep .link { color: var(--accent-on-deep); }

/* ---------- message pills ---------- */
.msg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.msg-t { width: 100%; font-size: 15px; color: var(--muted); }
.msg a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 500; font-size: 15px; text-decoration: none;
  transition: box-shadow var(--t), color var(--t);
}
/* RDV-12 */
.msg a { overflow-wrap: anywhere; max-width: 100%; }
.msg a:hover { box-shadow: inset 0 0 0 1.5px var(--green); color: var(--green); }
.msg .ic { width: 18px; height: 18px; color: var(--green); }

/* ---------- pill tag, card ---------- */
.spec span { padding: 4px 11px; border-radius: 999px; background: var(--tint); font-size: 14px; font-weight: 500; }
.bk-card { background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 1px var(--line); padding: 20px; }

/* ---------- round icon button ---------- */
/* RDV-03 */
.sq { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; transition: background var(--t); }
.sq:hover { background: var(--bg); }
.sq:disabled { opacity: .4; cursor: default; }
/* RDV-03 */
.sq { position: relative; }
/* RDV-03 */
.sq::before { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }

/* ---------- photo frames ---------- */
.ph { overflow: hidden; border-radius: var(--r-m); background: var(--tint); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
/* RDV-12 */
.ph picture { display: contents; }
/* RDV-12: the photo focal point the owners set in the photo admin. The picture tag adds `fp fpx-X fpy-Y` (X, Y rounded
   to steps of 10) to the img of a photo whose focal point is not the centre; every cover crop then keeps that point in
   frame. Classes, not a style attribute (the public CSP allows none); one rule per pair; !important so it wins over
   each slot's own object-position (apps/photos/tests/test_focal_point.py pins the exact form). */
img.fp.fpx-0.fpy-0{object-position:0% 0%!important}
img.fp.fpx-0.fpy-10{object-position:0% 10%!important}
img.fp.fpx-0.fpy-20{object-position:0% 20%!important}
img.fp.fpx-0.fpy-30{object-position:0% 30%!important}
img.fp.fpx-0.fpy-40{object-position:0% 40%!important}
img.fp.fpx-0.fpy-50{object-position:0% 50%!important}
img.fp.fpx-0.fpy-60{object-position:0% 60%!important}
img.fp.fpx-0.fpy-70{object-position:0% 70%!important}
img.fp.fpx-0.fpy-80{object-position:0% 80%!important}
img.fp.fpx-0.fpy-90{object-position:0% 90%!important}
img.fp.fpx-0.fpy-100{object-position:0% 100%!important}
img.fp.fpx-10.fpy-0{object-position:10% 0%!important}
img.fp.fpx-10.fpy-10{object-position:10% 10%!important}
img.fp.fpx-10.fpy-20{object-position:10% 20%!important}
img.fp.fpx-10.fpy-30{object-position:10% 30%!important}
img.fp.fpx-10.fpy-40{object-position:10% 40%!important}
img.fp.fpx-10.fpy-50{object-position:10% 50%!important}
img.fp.fpx-10.fpy-60{object-position:10% 60%!important}
img.fp.fpx-10.fpy-70{object-position:10% 70%!important}
img.fp.fpx-10.fpy-80{object-position:10% 80%!important}
img.fp.fpx-10.fpy-90{object-position:10% 90%!important}
img.fp.fpx-10.fpy-100{object-position:10% 100%!important}
img.fp.fpx-20.fpy-0{object-position:20% 0%!important}
img.fp.fpx-20.fpy-10{object-position:20% 10%!important}
img.fp.fpx-20.fpy-20{object-position:20% 20%!important}
img.fp.fpx-20.fpy-30{object-position:20% 30%!important}
img.fp.fpx-20.fpy-40{object-position:20% 40%!important}
img.fp.fpx-20.fpy-50{object-position:20% 50%!important}
img.fp.fpx-20.fpy-60{object-position:20% 60%!important}
img.fp.fpx-20.fpy-70{object-position:20% 70%!important}
img.fp.fpx-20.fpy-80{object-position:20% 80%!important}
img.fp.fpx-20.fpy-90{object-position:20% 90%!important}
img.fp.fpx-20.fpy-100{object-position:20% 100%!important}
img.fp.fpx-30.fpy-0{object-position:30% 0%!important}
img.fp.fpx-30.fpy-10{object-position:30% 10%!important}
img.fp.fpx-30.fpy-20{object-position:30% 20%!important}
img.fp.fpx-30.fpy-30{object-position:30% 30%!important}
img.fp.fpx-30.fpy-40{object-position:30% 40%!important}
img.fp.fpx-30.fpy-50{object-position:30% 50%!important}
img.fp.fpx-30.fpy-60{object-position:30% 60%!important}
img.fp.fpx-30.fpy-70{object-position:30% 70%!important}
img.fp.fpx-30.fpy-80{object-position:30% 80%!important}
img.fp.fpx-30.fpy-90{object-position:30% 90%!important}
img.fp.fpx-30.fpy-100{object-position:30% 100%!important}
img.fp.fpx-40.fpy-0{object-position:40% 0%!important}
img.fp.fpx-40.fpy-10{object-position:40% 10%!important}
img.fp.fpx-40.fpy-20{object-position:40% 20%!important}
img.fp.fpx-40.fpy-30{object-position:40% 30%!important}
img.fp.fpx-40.fpy-40{object-position:40% 40%!important}
img.fp.fpx-40.fpy-50{object-position:40% 50%!important}
img.fp.fpx-40.fpy-60{object-position:40% 60%!important}
img.fp.fpx-40.fpy-70{object-position:40% 70%!important}
img.fp.fpx-40.fpy-80{object-position:40% 80%!important}
img.fp.fpx-40.fpy-90{object-position:40% 90%!important}
img.fp.fpx-40.fpy-100{object-position:40% 100%!important}
img.fp.fpx-50.fpy-0{object-position:50% 0%!important}
img.fp.fpx-50.fpy-10{object-position:50% 10%!important}
img.fp.fpx-50.fpy-20{object-position:50% 20%!important}
img.fp.fpx-50.fpy-30{object-position:50% 30%!important}
img.fp.fpx-50.fpy-40{object-position:50% 40%!important}
img.fp.fpx-50.fpy-60{object-position:50% 60%!important}
img.fp.fpx-50.fpy-70{object-position:50% 70%!important}
img.fp.fpx-50.fpy-80{object-position:50% 80%!important}
img.fp.fpx-50.fpy-90{object-position:50% 90%!important}
img.fp.fpx-50.fpy-100{object-position:50% 100%!important}
img.fp.fpx-60.fpy-0{object-position:60% 0%!important}
img.fp.fpx-60.fpy-10{object-position:60% 10%!important}
img.fp.fpx-60.fpy-20{object-position:60% 20%!important}
img.fp.fpx-60.fpy-30{object-position:60% 30%!important}
img.fp.fpx-60.fpy-40{object-position:60% 40%!important}
img.fp.fpx-60.fpy-50{object-position:60% 50%!important}
img.fp.fpx-60.fpy-60{object-position:60% 60%!important}
img.fp.fpx-60.fpy-70{object-position:60% 70%!important}
img.fp.fpx-60.fpy-80{object-position:60% 80%!important}
img.fp.fpx-60.fpy-90{object-position:60% 90%!important}
img.fp.fpx-60.fpy-100{object-position:60% 100%!important}
img.fp.fpx-70.fpy-0{object-position:70% 0%!important}
img.fp.fpx-70.fpy-10{object-position:70% 10%!important}
img.fp.fpx-70.fpy-20{object-position:70% 20%!important}
img.fp.fpx-70.fpy-30{object-position:70% 30%!important}
img.fp.fpx-70.fpy-40{object-position:70% 40%!important}
img.fp.fpx-70.fpy-50{object-position:70% 50%!important}
img.fp.fpx-70.fpy-60{object-position:70% 60%!important}
img.fp.fpx-70.fpy-70{object-position:70% 70%!important}
img.fp.fpx-70.fpy-80{object-position:70% 80%!important}
img.fp.fpx-70.fpy-90{object-position:70% 90%!important}
img.fp.fpx-70.fpy-100{object-position:70% 100%!important}
img.fp.fpx-80.fpy-0{object-position:80% 0%!important}
img.fp.fpx-80.fpy-10{object-position:80% 10%!important}
img.fp.fpx-80.fpy-20{object-position:80% 20%!important}
img.fp.fpx-80.fpy-30{object-position:80% 30%!important}
img.fp.fpx-80.fpy-40{object-position:80% 40%!important}
img.fp.fpx-80.fpy-50{object-position:80% 50%!important}
img.fp.fpx-80.fpy-60{object-position:80% 60%!important}
img.fp.fpx-80.fpy-70{object-position:80% 70%!important}
img.fp.fpx-80.fpy-80{object-position:80% 80%!important}
img.fp.fpx-80.fpy-90{object-position:80% 90%!important}
img.fp.fpx-80.fpy-100{object-position:80% 100%!important}
img.fp.fpx-90.fpy-0{object-position:90% 0%!important}
img.fp.fpx-90.fpy-10{object-position:90% 10%!important}
img.fp.fpx-90.fpy-20{object-position:90% 20%!important}
img.fp.fpx-90.fpy-30{object-position:90% 30%!important}
img.fp.fpx-90.fpy-40{object-position:90% 40%!important}
img.fp.fpx-90.fpy-50{object-position:90% 50%!important}
img.fp.fpx-90.fpy-60{object-position:90% 60%!important}
img.fp.fpx-90.fpy-70{object-position:90% 70%!important}
img.fp.fpx-90.fpy-80{object-position:90% 80%!important}
img.fp.fpx-90.fpy-90{object-position:90% 90%!important}
img.fp.fpx-90.fpy-100{object-position:90% 100%!important}
img.fp.fpx-100.fpy-0{object-position:100% 0%!important}
img.fp.fpx-100.fpy-10{object-position:100% 10%!important}
img.fp.fpx-100.fpy-20{object-position:100% 20%!important}
img.fp.fpx-100.fpy-30{object-position:100% 30%!important}
img.fp.fpx-100.fpy-40{object-position:100% 40%!important}
img.fp.fpx-100.fpy-50{object-position:100% 50%!important}
img.fp.fpx-100.fpy-60{object-position:100% 60%!important}
img.fp.fpx-100.fpy-70{object-position:100% 70%!important}
img.fp.fpx-100.fpy-80{object-position:100% 80%!important}
img.fp.fpx-100.fpy-90{object-position:100% 90%!important}
img.fp.fpx-100.fpy-100{object-position:100% 100%!important}

/* ---------- native accordion <details name> ---------- */
/* RDV-07 */
.acc { border-top: 1px solid var(--line); }
/* RDV-07 */
.acc details { border-bottom: 1px solid var(--line); }
/* RDV-07 */
.sec-tint .acc, .sec-tint .acc details { border-color: var(--line-2); }
/* RDV-07 */
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 18px; line-height: 1.4;
}
/* RDV-07 */
.acc summary::-webkit-details-marker { display: none; }
/* RDV-07 */
.acc summary:hover { color: var(--green); }
/* RDV-07 */
.acc-a { padding: 0 34px 22px 0; color: var(--muted); max-width: 640px; }
/* RDV-07 */
.amen-acc { margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* RDV-07 */
.amen-acc summary {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 48px; cursor: pointer; list-style: none; font-weight: 600; font-size: 15.5px;
}
/* RDV-07 */
.amen-acc summary::-webkit-details-marker { display: none; }
/* RDV-07 */
.pm { position: relative; width: 14px; height: 14px; flex: none; }
/* RDV-07 */
.pm::before, .pm::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s; }
/* RDV-07 */
.pm::after { transform: rotate(90deg); }
/* RDV-07 */
details[open] > summary .pm::after { transform: rotate(0); }

/* ---------- honeypot ---------- */
/* RDV-12 */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 44 px text-link hit areas on touch screens (every width) ---------- */
/* `.seg button` (15-03, the fence pill slop re-homed to RDV-03): the wizard's 44 px pills are rounded, so a narrow
   one («Any») keeps a square 44 px hit box through the slop, as the calendar's round controls do */
@media (pointer: coarse) {
  /* RDV-03 */
  .link, .crumb a, .hdr .logo, .map-fb a, .mbar-i, .ft .logo, .ft-phone, .ft-nav a, .ft-legal a, .ft-ck, .cal-clear, .trust a, .seg button { position: relative; }
  /* RDV-03 */
  .link::before, .crumb a::before, .hdr .logo::before, .map-fb a::before, .mbar-i::before, .ft .logo::before, .ft-phone::before, .ft-nav a::before, .ft-legal a::before, .ft-ck::before, .cal-clear::before, .trust a::before, .seg button::before { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
  /* RDV-23 · a touch screen has no hover: the locked «Ціна для гостей сайту −10%» shows its underline at rest, so it
     reads as a control, not a green label (14-UI-REVIEW, 16-05); the 44 px box is unchanged. `button.` outweighs the
     later base `.mem-link` rule (every `.mem-link` is a button) */
  button.mem-link { text-decoration-color: currentColor; }
}

/* ---------- forced colours: ring-only controls get a real border ---------- */
@media (forced-colors: active) {
  /* RDV-09 */
  .btn, .btn-line, .msg a, .mbar-i, .sq, .cal-nav, .mem, .trust a, .hc-card, .rc, .rr, .tf, .dir-card, .rv-pill, .sugg, .res, .combo, .empty, .bk-card, .bk-bar, .f-check, .burger, .he-lb button { border: 1px solid ButtonText; }
  /* RDV-24 · the member-form focus ring is a box-shadow, which forced colours drop. !important: the base
     `.f input:focus` rule further down (outline: none) has the same specificity and would win by order (14-REVIEW WR-01);
     the booking comment's textarea and the code field `#promo` share it (15-05) */
  .f input:focus, .f textarea:focus, #promo:focus { outline: 2px solid Highlight !important; }
  /* RDV-25 · the picked check-in and check-out stay visible without their fill */
  .cal-day.is-start, .cal-day.is-end { border: 1px solid ButtonText; }
  /* RDV-09 · the picked result card's 2 px ring is a box-shadow, which forced colours drop (15-06) */
  .res.is-pick { border: 2px solid Highlight; }
  /* RDV-09 · a checked house or channel pill is told apart only by its `--green` fill, which forced colours drop: it
     takes the system selection colours (15-REVIEW WR-01). !important: the base rules further down with the same
     selectors set the fill and the focus outline and would win by order */
  .seg button[aria-checked="true"], .radios input:checked + span { forced-color-adjust: none; background: Highlight !important; border-color: Highlight !important; color: HighlightText !important; }
  .seg button[aria-checked="true"]:focus-visible, .radios input:focus-visible + span { outline-color: Highlight !important; }
  /* RDV-09 · the current step's `--green` top border is its colour cue */
  .bk-steps li.is-cur { border-top-color: Highlight !important; }
  /* RDV-09 · the burger's two bars are drawn with `background`, which forced colours turn into the header's own Canvas
     (16-UI-SPEC S11, D-20): they keep the text colour. !important: the base `.burger span` rule further down sets the
     fill and would win by order */
  .burger span { forced-color-adjust: none; background: CanvasText !important; }
}

/* ---------- busy button spinner ---------- */
/* RDV-20 */
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; }
/* RDV-20 */
.btn[aria-busy="true"] .spin { animation: spin .8s linear infinite; }
/* RDV-20 */
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Simple pages (RSH-06; 13-UI-SPEC "Simple pages", D-27): privacy, 404, 500, unsubscribe ---------- */
.h1-p { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.08; }
.prose { max-width: 800px; }
.prose h1 { margin-bottom: 20px; }
/* the body's headings are `h2.h3` (policy_text): the prose look drops the `.h3` tracking and balanced wrap */
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.2; margin: 40px 0 10px; letter-spacing: 0; text-wrap: wrap; }
/* `.prose .p + .p` outweighs the consecutive-paragraph `.p + .p` (1.1em) at the end of the base */
.prose p, .prose .p + .p { margin-top: 10px; color: var(--muted); }
.prose ul { margin-top: 10px; padding-left: 22px; list-style: disc; display: grid; gap: 6px; color: var(--muted); }
.prose p a:not(.link) { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
/* 404 (prototype 404.html) and the derived 500 and unsubscribe pages; none of these rules reads a shell class */
.nf .wrap { display: grid; gap: 20px; justify-items: start; }
.nf-n { font-family: var(--serif); font-weight: 500; font-size: clamp(88px, 16vw, 168px); line-height: 1; color: var(--green-soft); }
/* RDV-18 · the decorative numeral is drawn from `data-n`, so no text node of it exists for axe to measure */
.nf-n::before { content: attr(data-n); }
/* RDV-18 */
.nf .mark { width: 48px; height: 48px; }
/* RDV-18 */
.nf .mark .m-leaf { fill: var(--green); }
/* RDV-18 */
.nf .mark .m-vein { fill: none; stroke: var(--bg); stroke-width: 1.6; stroke-linecap: round; }
/* RDV-19 */
@media (max-width: 359px) { .h1-p { font-size: 32px; } }

/* ---------- Header (RSH-01; 13-UI-SPEC S1, D-22): sticky, logo left, «Локації» dropdown ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
/* RDV-13 */
.hdr { background: rgba(247, 245, 238, .96); }
/* the site's JS class `.is-scrolled` plays the prototype's `.is-stuck` */
.hdr.is-scrolled { border-color: var(--line); }
.hdr-in { height: var(--hdr); display: flex; align-items: center; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
/* RDV-03 */
.logo { min-height: 44px; min-width: 44px; }
.hdr .logo .mark { width: 30px; height: 30px; flex: none; }
.hdr .logo .m-leaf { fill: var(--green); }
.hdr .logo .m-vein { fill: none; stroke: var(--bg); stroke-width: 1.6; stroke-linecap: round; }
.logo-t { display: flex; flex-direction: column; line-height: 1; }
.logo-t b { font-family: var(--serif); font-weight: 600; font-size: 22px; }
.logo-t small { font-size: 11.5px; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.nav { display: none; }
/* RDV-05: the header keeps the language switch below 1040 px (the prototype hides it there) */
.lang { display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; }
.lang a { text-decoration: none; color: var(--muted); border-radius: 6px; }
/* RDV-03 */
.lang a { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 4px; }
/* RDV-03: the rounded link keeps a square 44 px hit area */
.lang a { position: relative; }
/* RDV-03 */
.lang a::before { content: ""; position: absolute; inset: 0; }
.lang a[aria-current] { color: var(--ink); }
.lang a:hover { color: var(--green); }
.lang i { color: var(--line); font-style: normal; }
.burger { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-s); margin-right: -8px; }
/* RDV-03 */
.burger { flex: none; }
/* RDV-03: the rounded box keeps a square 44 px hit area (as `.sq`) */
.burger { position: relative; }
/* RDV-03 */
.burger::before { content: ""; position: absolute; inset: 0; }
.burger span { grid-area: 1 / 1; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s; }
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
html.mm-open .burger span:first-child { transform: rotate(45deg); }
html.mm-open .burger span:last-child { transform: rotate(-45deg); }
@media (min-width: 1040px) {
  .burger { display: none; }
  .logo { margin-right: 24px; }
  .nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
  .nav > a, .nav-dd-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 10px 12px; border-radius: 8px;
    font-size: 15.5px; font-weight: 500; text-decoration: none;
    transition: background var(--t), color var(--t);
  }
  .nav > a:hover, .nav-dd-btn:hover, .nav-dd.is-open .nav-dd-btn { background: rgba(47, 107, 70, .09); color: var(--green); }
  /* RDV-17 */
  .nav > a[aria-current="page"], .nav-dd-btn.is-on { color: var(--green); box-shadow: inset 0 -2px 0 var(--green); }
  .nav-dd { position: relative; }
  .nav-dd-btn .ic { width: 16px; height: 16px; transition: transform .2s; }
  .nav-dd.is-open .nav-dd-btn .ic { transform: rotate(180deg); }
  .pop {
    position: absolute; left: -12px; top: calc(100% + 10px); width: 400px;
    background: var(--surface); border-radius: var(--r-m); box-shadow: var(--shadow), 0 0 0 1px var(--line);
    padding: 8px; display: none;
  }
  .nav-dd.is-open .pop { display: block; }
  .dd-loc { display: flex; gap: 14px; align-items: center; padding: 8px; border-radius: 12px; text-decoration: none; }
  .dd-loc:hover { background: var(--bg); }
  /* RDV-17 */
  .dd-loc[aria-current="page"] { background: var(--bg); }
  /* RDV-17 */
  .dd-loc[aria-current="page"] b { color: var(--green); }
  .dd-loc .ph { width: 84px; height: 64px; border-radius: 8px; flex: none; }
  .dd-loc b { display: block; font-weight: 600; }
  .dd-loc small { display: block; font-size: 13.5px; line-height: 1.4; color: var(--muted); margin-top: 2px; }
  /* WR-01 (Phase 13 review): a nav label never wraps inside the fixed-height bar */
  .nav > a, .nav-dd-btn { white-space: nowrap; }
}
/* WR-01: 1040-1119 px, the UA row (with the RDV-03 44 px language links) gives way in the gaps, not in a label */
@media (min-width: 1040px) and (max-width: 1119.98px) {
  .hdr .logo { margin-right: 12px; }
  .nav { gap: 0; }
  .nav > a, .nav-dd-btn { padding-left: 8px; padding-right: 8px; }
}

@media (max-width: 639.98px) {
  /* RDV-05: one 44 px link to the other language */
  .hdr .lang a[aria-current], .hdr .lang i { display: none; }
  /* RDV-05 */
  .hdr .logo-t small { display: none; }
  /* RDV-05 */
  .hdr-in { gap: 8px; }
}
@media (min-width: 360px) and (max-width: 374.98px) {
  /* RDV-05 */
  .hdr-in { gap: 4px; }
  /* RDV-05 */
  .hdr-cta { padding-left: 14px; padding-right: 14px; }
}
/* RDV-43 (16-UI-SPEC S7, D-16): while the mobile bar shows its own filled CTA, the header «Забронювати» steps down to
   the outlined .btn-line look; the ring is an inset shadow, so the box (44 px, padding 16 or 14) never moves */
@media (max-width: 760px) {
  /* RDV-43 */
  body.has-mbar:has(> .mbar.is-on) .hdr-cta { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
  /* RDV-43 */
  body.has-mbar:has(> .mbar.is-on) .hdr-cta:hover { background: rgba(47, 107, 70, .07); box-shadow: inset 0 0 0 1.5px var(--green); }
}
@media (max-width: 359.98px) {
  /* RDV-19: the mark only (the link's aria-label names brand, city and «Головна») */
  .hdr .logo-t { display: none; }
}

/* ---------- skip link (z 70, over the header) ---------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 70; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- Phone menu (RSH-02; 13-UI-SPEC S2, D-28) ---------- */
/* RDV-16: the dialog semantics, the reply-hours line and the extra service rows are the site's own */
.mm {
  position: fixed; inset: var(--hdr) 0 0; z-index: 59;
  background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
  padding: 16px var(--gut) calc(32px + env(safe-area-inset-bottom));
  display: none; flex-direction: column; gap: 24px;
}
html.mm-open .mm { display: flex; }
/* RDV-12: the page behind the open menu does not scroll. The body only clips: `overflow: hidden` on it made the body
   the sticky header's scroll container, so on a scrolled page the header (with the close button) left the screen */
html.mm-open { overflow: hidden; }
/* RDV-12 */
html.mm-open body { overflow: clip; }
/* RDV-12: the open menu (z 59, opaque) also takes the bar and the banner out of paint, pointer and Tab order */
html.mm-open .mbar, html.mm-open .ck { visibility: hidden; }
.mm-nav a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 15px 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: 24px; text-decoration: none;
}
/* the row asks for weight 400 as the reference does: Lora renders its 500 face, the address line keeps Onest 400 */
.mm-nav small { font-family: var(--sans); font-size: 14px; color: var(--muted); white-space: nowrap; }
.mm-foot { display: grid; gap: 14px; margin-top: auto; }
@media (max-width: 639.98px) {
  .mm-nav a { font-size: 22px; padding: 13px 0; }
}
@media (min-width: 1040px) {
  .mm { display: none !important; }
}

/* ---------- Mobile bar (RSH-02; 13-UI-SPEC S3, D-23) ---------- */
/* RDV-02: the reference draws no bar; it is derived from the tokens: the public price, «Перевірити дати» and the
   messengers at 44 px. Shown up to 760 px; shell.js sets .is-on after the first section (no show/hide animation). */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    display: flex; align-items: center; gap: 8px;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 8px var(--gut) calc(8px + env(safe-area-inset-bottom));
    transform: translateY(110%); visibility: hidden;
  }
  .mbar.is-on { transform: none; visibility: visible; }
  /* RDV-12: the page ends above the bar */
  body.has-mbar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  /* RDV-12: hidden behind the full-screen date dialog and while the guest types */
  html.bl-full .mbar, html.kb-open .mbar { display: none !important; }
  /* RDV-12 (the Phase 8 focus rule): Tab never leaves a focused element fully behind the bar, or behind the banner riding on it.
     While the bar shows, the scroll padding reserves the bar (--mbar-h, measured by static/js/core/consent.js while
     the banner shows, else the bar's own height) plus the open banner (--ck-h, 0 when closed). */
  html:not(.bl-full):not(.kb-open):has(> body.has-mbar > .mbar.is-on) { scroll-padding-bottom: calc(var(--mbar-h, calc(71px + env(safe-area-inset-bottom))) + var(--ck-h, 0px)); }
}
.mbar .pf { flex: none; display: block; }
.mbar .price { display: grid; grid-template-columns: auto; gap: 0; font: 400 12.5px/1.2 var(--sans); color: var(--muted); white-space: nowrap; }
.mbar .price b { font: 600 20px/1.1 var(--serif); color: var(--ink); }
/* the unlocked price keeps the public block's rows: «від» + the struck public figure, the site price, the unit */
/* a 2 px gap keeps «від» + the struck figure within the public block's width (unit or figure line) */
.mbar .price.is-mem { grid-template-columns: auto auto; justify-content: start; column-gap: 2px; }
.mbar .price.is-mem > span:first-child { grid-column: 1; grid-row: 1; }
.mbar .price.is-mem s { grid-column: 2; grid-row: 1; font: 500 13px/1.2 var(--serif); color: var(--muted); text-decoration-thickness: 1px; }
.mbar .price.is-mem b { grid-column: 1 / -1; grid-row: 2; color: var(--ink); }
.mbar .price.is-mem > span:last-child { grid-column: 1 / -1; grid-row: 3; }
.mbar .btn {
  flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 4px 12px;
  font-size: 15px; line-height: 1.2; white-space: normal; text-align: center; text-wrap: balance;
}
/* RDV-10: Viber, Telegram and WhatsApp as 44 px circles, 4 px apart */
.mbar-i {
  width: 44px; height: 44px; flex: none; display: inline-grid; place-items: center;
  border-radius: 50%; color: var(--green); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow var(--t);
}
.mbar-i:hover { box-shadow: inset 0 0 0 1.5px var(--green); }
.mbar-i .ic { width: 20px; height: 20px; }
.mbar-i + .mbar-i { margin-left: -4px; }
@media (max-width: 359.98px) {
  /* RDV-19 */
  .mbar { gap: 6px; padding-left: 14px; padding-right: 14px; }
  /* RDV-19 */
  .mbar-i { width: 40px; height: 40px; }
  /* RDV-19: the 40 px icons stay 4 px apart (RDV-10), so each one's 44 px coarse-pointer slop is its own */
  .mbar-i + .mbar-i { margin-left: -2px; }
  /* RDV-19 */
  .mbar .btn { font-size: 14px; padding: 6px 8px; }
}

/* ---------- Footer (RSH-03; 13-UI-SPEC S4, D-24): footer.ft.on-deep#contacts, no ghost wordmark ---------- */
.ft { background: var(--deep); color: var(--on-deep); padding: var(--sec) 0 28px; }
.ft-top { display: grid; gap: 40px; }
.ft-c { display: grid; gap: 22px; justify-items: start; align-content: start; }
/* RDV-12: the reference's inline eyebrow style as a class */
.ft .eyebrow { color: var(--accent-on-deep); margin: 0; }
.ft .logo .mark { width: 30px; height: 30px; flex: none; }
.ft .logo .m-leaf { fill: var(--accent-on-deep); }
.ft .logo .m-vein { fill: none; stroke: var(--deep); stroke-width: 1.6; stroke-linecap: round; }
.ft .logo-t small { color: var(--on-deep-muted); }
.ft-tag { color: var(--on-deep-muted); max-width: 360px; }
.ft-h { font-size: 14.5px; color: var(--on-deep-muted); }
.ft-phone { display: inline-block; font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.2; text-decoration: none; white-space: nowrap; }
/* RDV-12: an owner-length phone wraps inside the column instead of running off a 320 px screen */
.ft-phone { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.ft-phone:hover { color: var(--accent-on-deep); }
.ft .msg a { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); color: #fff; }
.ft .msg a:hover { box-shadow: inset 0 0 0 1.5px #fff; color: #fff; }
.ft .msg .ic { color: var(--accent-on-deep); }
.ft-maps { display: grid; gap: 20px; }
.fmap-fr { position: relative; border-radius: var(--r-m); overflow: hidden; aspect-ratio: 4 / 3; background: var(--deep-2); }
.fmap-fr iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fmap .map-fb { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 20px; text-align: center; font: 400 14.5px/1.6 var(--sans); color: var(--on-deep-muted); }
/* RDV-21: the map states the reference does not draw: while loading and after a failure the fallback shows over
   --deep-2; a loaded map paints over it and static/js/shell.js makes it inert; .map-failed hides the frame */
.fmap .map-fb .ic { width: 24px; height: 24px; color: var(--accent-on-deep); }
/* RDV-21 */
.fmap .map-fb a { color: var(--accent-on-deep); text-decoration: underline; text-underline-offset: 3px; }
/* RDV-21 */
.fmap-fr iframe.map-failed { display: none; }
/* RDV-21: the frame rings when its map holds the focus (shell.js marks a Tab entry .map-focus); white as every ring
   in the footer (14.20:1 on --deep) */
.fmap-fr:has(> iframe:is(:focus, :focus-within)), .fmap-fr.map-focus { outline: 2px solid #fff; outline-offset: 3px; }
/* RDV-21: the ring is the frame's; the iframe's own (clipped) outline stays off */
.fmap-fr iframe:is(:focus, :focus-within) { outline: none; }
.fmap figcaption { margin-top: 14px; display: grid; gap: 2px; justify-items: start; }
.fmap figcaption b { font-family: var(--serif); font-weight: 500; font-size: 21px; }
.fmap figcaption span { color: var(--on-deep-muted); font-size: 15.5px; }
.fmap .link { margin-top: 8px; }
/* RDV-12: the reference's inline link colour as a class */
.ft .link { color: var(--accent-on-deep); }
.ft-mid { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.ft-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
/* RDV-03: wrapped rows 44.8 px apart, so the 44 px hit areas of stacked links never overlap (mirrored for parity) */
.ft-nav { row-gap: 8px; }
.ft-nav a { padding: 6px 0; font-size: 15.5px; text-decoration: none; color: var(--on-deep); }
.ft-nav a:hover { color: var(--accent-on-deep); }
.ft .lang { display: flex; }
/* RDV-03 · 13-UI-REVIEW: the 44 px language boxes centre «UA» 12 px into the box; pulled back 6 px where the pair
   starts a line (the footer on phones, the menu foot), «UA» sits 6 px in, as the reference's padding puts it
   (mirrored for parity) */
.ft .lang, .mm-foot .lang { margin-inline-start: -6px; }
.ft .lang a { color: var(--on-deep-muted); }
.ft .lang a[aria-current] { color: #fff; }
.ft .lang i { color: rgba(255, 255, 255, .25); }
.ft-legal { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: 14px; color: var(--on-deep-muted); }
.ft-legal a { text-underline-offset: 3px; }
/* RDV-08: the privacy link and the cookie-settings button share the right-hand side of the legal row */
.ft-legal-r { display: flex; flex-wrap: wrap; gap: 8px 20px; }
/* RDV-03: a wrapped legal row keeps its 44 px hit areas apart (22.4 px lines + 22 px) */
.ft-legal, .ft-legal-r { row-gap: 22px; }
/* RDV-15: the cookie-settings button (apps/analytics settings_link.html) looks like the privacy link beside it */
.ft-ck { font-size: 14px; color: var(--on-deep-muted); text-decoration: underline; text-underline-offset: 3px; }
/* RDV-08 */
.ft-legal a:hover, .ft-ck:hover { color: var(--on-deep); }
@media (min-width: 680px) { .ft-maps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .ft-top { grid-template-columns: 1fr 2fr; gap: 64px; } }

/* ---------- Consent (RSH-04; 13-UI-SPEC S5, D-25): the non-modal banner; the footer's .ft-ck reopens it ---------- */
/* RDV-15: the reference has no analytics, so the banner is derived from its tokens and components: --surface, a top
   hairline, the 15px text, the privacy .link and two equal filled .btn-sm («Прийняти», «Відхилити»). z 57: over the
   mobile bar (55), under the phone menu (59) and the header (60); static/js/core/consent.js is unchanged.
   RDV-12: max-height in dvh after a vh fallback rule (Phase 13 review IN-02), as the lightbox; the fallback is its own
   earlier rule, so each rule declares max-height once. */
.ck { max-height: calc(100vh - var(--hdr)); }
.ck {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 57;
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 28px rgba(23, 48, 31, .08);
  max-height: calc(100dvh - var(--hdr)); overflow-y: auto; overscroll-behavior: contain;
}
/* RDV-15: the region is a focus target on reopen only, not a control, so it shows no ring */
.ck:focus { outline: none; }
/* RDV-15 */
.ck .ck-in { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 24px; padding-bottom: 24px; }
/* RDV-15 */
.ck-tx { flex: 1 1 auto; max-width: 58ch; }
/* RDV-15 */
.ck-t { font: 400 15px/1.55 var(--sans); color: var(--ink); overflow-wrap: anywhere; }
/* RDV-15 */
.ck .link { font-size: 15px; margin-top: 8px; }
/* RDV-15: two equal columns, so neither choice is less prominent */
.ck-b { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* RDV-15 */
.ck .btn { white-space: normal; }
@media (max-width: 760px) {
  /* RDV-15 · 16-UI-SPEC S9 (D-18): the bottom padding moves to the sticky button block */
  .ck .ck-in { flex-direction: column; align-items: stretch; gap: 16px; padding-top: 16px; padding-bottom: 0; }
  /* RDV-15 */
  .ck-tx { max-width: none; }
  /* RDV-15: the two choices stick to the banner's bottom above a hairline, so a long owners' text scrolls under them
     and both buttons stay in view (16-UI-SPEC S9, D-18) */
  .ck-b { width: 100%; position: sticky; bottom: 0; z-index: 1; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 0 calc(16px + env(safe-area-inset-bottom)); }
  /* RDV-15: a focused link in the text is never left under the sticky block (its top padding, the 44 px row, its
     bottom padding) */
  .ck { scroll-padding-bottom: calc(12px + 44px + 16px + env(safe-area-inset-bottom)); }
  /* RDV-15: the privacy link is the text's last stop. Owners' labels that wrap make the sticky block taller than the
     padding above, so the link's scroll margin is larger than the banner itself: focusing it scrolls #ck to its end,
     where the link sits 16 px above the buttons at any label length */
  .ck .link { scroll-margin-bottom: 100vh; }
  /* RDV-12: with the mobile bar on, the banner rides on it (--mbar-h, measured by static/js/core/consent.js) */
  body.has-mbar:has(> .mbar.is-on) .ck { transform: translateY(calc(-1 * var(--mbar-h, calc(71px + env(safe-area-inset-bottom))))); }
  /* RDV-12: the bar takes the safe area, so the sticky block keeps a plain 16 px */
  body.has-mbar:has(> .mbar.is-on) .ck-b { padding-bottom: 16px; }
  /* RDV-12 */
  body.has-mbar:has(> .mbar.is-on) .ck { max-height: calc(100vh - var(--hdr) - var(--mbar-h, 71px)); }
  /* RDV-12 */
  body.has-mbar:has(> .mbar.is-on) .ck { max-height: calc(100dvh - var(--hdr) - var(--mbar-h, 71px)); }
}
@media (max-width: 359.98px) {
  /* RDV-15 */
  .ck .btn { font-size: 14px; }
}
@media (max-width: 1199px) {
  /* RDV-12: hidden while the guest types, as the bar */
  html.kb-open .ck { visibility: hidden; }
}
/* RDV-12: while the banner shows, its measured height (--ck-h) is body padding and scroll padding */
html.ck-open { scroll-padding-bottom: var(--ck-h, 0px); }
/* RDV-12 */
html.ck-open body { padding-bottom: var(--ck-h, 0px); }
@media (max-width: 760px) {
  /* RDV-12 */
  html.ck-open body.has-mbar { padding-bottom: calc(72px + env(safe-area-inset-bottom) + var(--ck-h, 0px)); }
}

/* ---------- Lightbox (RSH-05; 13-UI-SPEC S6, D-26): the site's .he-lb DOM in the prototype's look ---------- */
/* RDV-14: lightbox.js appends div.he-lb > close ×, prev ‹, figure (img, figcaption), next ›, the «1 / n» counter;
   z 1000 stays the site's value (RDV-12); the overlay and sizes are the prototype's .lb [P:652-668] */
.he-lb {
  position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center;
  padding: 64px 8px 52px; background: rgba(12, 22, 16, .96); color: #fff;
}
.he-lb.on { display: flex; }
.he-lb figure { display: grid; place-items: center; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; }
/* RDV-12: dvh with a vh fallback (the phone toolbars) */
.he-lb img {
  width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 128px); max-height: calc(100dvh - 128px);
  object-fit: contain; border-radius: 8px;
}
/* RDV-14: the caption top-left on one line with an ellipsis, clear of the close button; caption and counter let a
   click through to the backdrop, which closes the box (lightbox.js) */
.he-lb figcaption {
  position: absolute; top: 12px; left: 20px; right: 76px; height: 48px;
  font: 500 15.5px/48px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;
}
/* RDV-14: the counter bottom-centre, apart from the caption (the prototype writes it after the caption) */
.he-lb-count {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  font: 500 15.5px/1.3 var(--sans); font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .6);
  white-space: nowrap; pointer-events: none;
}
/* RDV-14: glyph buttons (× ‹ ›) as the prototype's circles */
.he-lb button {
  position: absolute; display: grid; place-items: center; border-radius: 50%;
  color: #fff; font: 400 28px/1 var(--sans); transition: background var(--t);
}
/* RDV-03: a 44 px square hit area inside each circle (as `.sq`) */
.he-lb button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
.he-lb-close { top: 8px; right: 8px; width: 48px; height: 48px; background: transparent; }
.he-lb-close:hover { background: rgba(255, 255, 255, .12); }
/* RDV-14: prev/next at every width (the v11 phone hide is gone; swipe stays) */
.he-lb-prev, .he-lb-next { top: 50%; margin-top: -26px; width: 52px; height: 52px; z-index: 2; background: rgba(255, 255, 255, .14); }
.he-lb-prev:hover, .he-lb-next:hover { background: rgba(255, 255, 255, .28); }
.he-lb-prev { left: 12px; }
.he-lb-next { right: 12px; }
/* RDV-09: 2px white ring with a 3px offset, 16.87:1 on the overlay (--green there is 2.66:1) */
.he-lb :focus-visible{outline:2px solid #fff;outline-offset:3px}
/* RDV-14: a video slide (.is-video) shows <video controls> with its poster instead of the image */
.he-lb.is-video figure img { display: none; }
.he-lb.is-video figure { flex: none; max-width: none; }
.he-lb video {
  display: block; width: min(1280px, calc(100vw - 16px)); height: auto;
  max-height: calc(100vh - 128px); max-height: calc(100dvh - 128px); border-radius: 8px; background: #000;
}
@media (min-width: 760px) {
  .he-lb { padding: 64px 84px; }
  /* WR-02 (Phase 13 review): the video fits the content box (2 × 84 px padding), clear of the prev/next circles */
  .he-lb video { width: min(1280px, calc(100vw - 168px)); }
}

/* ---------- Gallery strip (RSH-05; 13-UI-SPEC "Gallery strip", D-26): the house gallery on the tracks DOM ---------- */
/* RDV-14: [data-trk] > .gal-h (head, .gal-nav with [data-trk-prev|next|count]) + .gal-wrap > .gal[data-trk-in]
   [data-gallery]; tracks.js moves one item instantly and fills «01 / 08»; scoped to #gallery so the home reviews
   strip (Phase 14) keeps its own rules */
#gallery .gal-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
#gallery .gal-nav { display: none; align-items: center; gap: 10px; }
/* RDV-14: 48 px circles over the 44 px base .sq (RDV-03) */
#gallery .gal-nav .sq {
  width: 48px; height: 48px; color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow var(--t), color var(--t);
}
#gallery .gal-nav .sq:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--green); color: var(--green); background: var(--surface); }
#gallery .gal-nav .sq:disabled { opacity: .4; cursor: default; }
#gallery .gal-count {
  min-width: 60px; text-align: center; font: 400 14px/1.6 var(--sans); letter-spacing: normal;
  font-variant-numeric: tabular-nums; color: var(--muted);
}
#gallery .gal {
  --pad: max(var(--gut), calc((100vw - 1240px) / 2 + var(--gut)));
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: var(--pad); scroll-padding-inline: var(--pad);
}
#gallery .gal::-webkit-scrollbar { display: none; }
#gallery .gal-it { display: block; flex: none; width: min(78vw, 460px); scroll-snap-align: start; text-align: left; }
#gallery .gal-it .ph { aspect-ratio: 4 / 3; }
/* RDV-06: the hover zoom in 200 ms (the prototype's .5s) */
#gallery .gal-it img { transition: transform .2s; }
#gallery .gal-it:hover img { transform: scale(1.03); }
#gallery .gal-cap { display: block; margin-top: 10px; font: 400 13.5px/1.6 var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); }
@media (min-width: 760px) {
  #gallery .gal-nav { display: flex; }
  #gallery .gal { gap: 20px; }
}

/* ---------- Service pages (RPG-03; 14-UI-SPEC "Service Pages", D-27, D-28): one template for every service ---------- */
/* #chero, the dark hero: the crumb inside .chh-t; white buttons, the --accent-on-deep link and the white focus rings
   come from the base .sec-deep rules. The crumb rules are scoped to the hero, so the house page's v11 .crumb (its fence,
   until the house port) never reaches it. */
/* RDV-29: the dark hero serves every service, not only the hot tub */
.chh { padding: 32px 0 var(--sec); }
.chh-g { display: grid; gap: 32px; }
.chh-t { display: grid; gap: 18px; justify-items: start; }
.chh-t .crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-size: 14px; font-weight: 600; color: var(--on-deep-muted); }
.chh-t .crumb a { color: var(--accent-on-deep); text-decoration: none; }
.chh-t .crumb a:hover { color: var(--accent-on-deep); text-decoration: underline; text-underline-offset: 4px; }
.chh-t .crumb i { width: 24px; height: 1px; background: currentColor; opacity: .5; }
.chh-t .p { max-width: 520px; font-size: 18px; }
.chh-t .cta-row { margin-top: 10px; }
.chh .ph { aspect-ratio: 4 / 3; border-radius: var(--r-l); background: var(--deep-2); }
/* #about: the photo and .cab-t side by side from 900 px; `p.p` outweighs the consecutive-paragraph `.p + .p` */
.cab { display: grid; gap: 32px; }
.cab .ph { aspect-ratio: 4 / 3; border-radius: var(--r-l); }
.cab-t .lead { margin-top: 20px; }
.cab-t p.p { margin-top: 14px; }
/* RDV-29: dl.facts4, which the reference does not draw, is the home .cfacts look on a light surface, under the about
   row across both columns, 48 px below it at every width (the grid gap plus the margin) */
.cab > .facts4 {
  grid-column: 1 / -1; margin-top: 16px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--r-m); overflow: hidden;
}
.facts4 > div { background: var(--surface); padding: 16px 4px 16px 18px; }
.facts4 dt { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.1; color: var(--ink); }
.facts4 dd { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
/* #ritual: the steps photo shows at every width, as in the reference */
.steps { display: grid; gap: 32px; }
.steps-h .ph { aspect-ratio: 4 / 3; border-radius: var(--r-l); margin-top: 28px; }
.stp-l { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.stp { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line-2); }
.stp-n { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.1; color: var(--green); font-variant-numeric: tabular-nums; }
.stp h3 { font: 600 20px/1.3 var(--sans); }
.stp .p { margin-top: 6px; }
/* #tariffs: cards in position order; the tag and the green ring on the first featured card only */
.tariffs { display: grid; gap: 22px 16px; }
.tf { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 1px var(--line); padding: 26px 24px 24px; }
.tf.is-feat { box-shadow: 0 0 0 2px var(--green), var(--shadow); }
.tf-tag { position: absolute; top: -13px; left: 20px; padding: 4px 11px; border-radius: 999px; background: var(--green); color: #fff; font-size: 12.5px; font-weight: 600; }
.tf-time { font-size: 14px; font-weight: 600; color: var(--green); }
.tf h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.15; margin-top: 6px; }
/* the shared price block (C3) inside the card, with the reference's placement */
.tf .price { margin-top: 14px; flex-wrap: wrap; }
.tf-ppl { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.tf ul { margin: 18px 0 24px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 15.5px; color: var(--muted); }
.tf li { display: flex; gap: 10px; }
.tf li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: .62em; border-radius: 50%; background: var(--green); }
.tf .btn { margin-top: auto; }
/* RDV-29: a card without includes keeps the reference's 24 px above its button */
.tf > .price:nth-last-child(2), .tf > .tf-ppl:nth-last-child(2) { margin-bottom: 24px; }
/* #rules: the rules list with check icons beside the single-open service FAQ */
.rules2 { display: grid; gap: 56px; }
.rules-l { display: grid; gap: 14px; margin-top: 28px; }
.rules-l li { display: flex; gap: 12px; }
.rules-l .ic { color: var(--green); margin-top: 3px; }
.rules2 .acc { margin-top: 28px; }
@media (min-width: 680px) {
  .tariffs { grid-template-columns: 1fr 1fr; }
}
/* RDV-29: the tariff grid follows the count, so no count from one to five leaves an empty column: two columns up to
   1099 px with an odd last card across both; from 1100 px one (max 480 px), two, three, four (the reference), five on
   a six-track grid (2 + 2 + 2 over 3 + 3), six or more in threes */
@media (min-width: 680px) and (max-width: 1099px) {
  .tf:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 760px) {
  .cab > .facts4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .facts4 > div { padding: 20px 4px 20px 20px; }
}
@media (min-width: 900px) {
  .chh { padding-top: 56px; }
  .chh-g, .cab { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .chh .ph { aspect-ratio: 4 / 5; }
  .cab > .facts4 { margin-top: -16px; }
  .steps { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .stp { grid-template-columns: 80px 1fr; padding: 30px 0; }
  .stp-n { font-size: 38px; }
  .rules2 { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
}
@media (min-width: 1100px) {
  .tariffs { grid-template-columns: repeat(3, 1fr); }
  .tariffs:has(> .tf:only-child) { grid-template-columns: minmax(0, 480px); }
  .tariffs:has(> .tf:first-child:nth-last-child(2)) { grid-template-columns: repeat(2, 1fr); }
  .tariffs:has(> .tf:first-child:nth-last-child(4)) { grid-template-columns: repeat(4, 1fr); }
  .tariffs:has(> .tf:first-child:nth-last-child(5)) { grid-template-columns: repeat(6, 1fr); }
  .tariffs:has(> .tf:first-child:nth-last-child(5)) > .tf { grid-column: span 2; }
  .tariffs:has(> .tf:first-child:nth-last-child(5)) > .tf:nth-child(n + 4) { grid-column: span 3; }
}

/* ---------- Section header, eyebrow, sub (14-UI-SPEC C1, D-06, D-07): shared, out of the v11 base ---------- */
/* `p.sh-r` (the house and home headers' second column) takes the `.sub` look; the v11 `.sno` the eyebrow's centring */
.sh { margin-bottom: 40px; max-width: 760px; }
.sh .sub, .sh p.sh-r { margin-top: 16px; color: var(--muted); font-size: 18px; }
.sh-c { margin-inline: auto; text-align: center; }
.sh-c .eyebrow, .sh-c .sno { justify-content: center; }
@media (min-width: 900px) {
  .sh { margin-bottom: 56px; }
  .sh-split { max-width: none; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
  .sh-split .sub, .sh-split p.sh-r { margin: 0 0 6px; }
}

/* ---------- Final panel .fin (14-UI-SPEC H12, "Service Pages" #ask): a --tint panel inside the section's wrap ---------- */
.sec-fin { padding-top: 0; }
.wrap > .fin { background: var(--tint); border-radius: var(--r-l); padding: 48px 24px; display: grid; justify-items: center; gap: 28px; text-align: center; }
.fin-cta { display: grid; justify-items: center; gap: 20px; }
.fin .msg { justify-content: center; }
.fin .p { max-width: 540px; margin-top: -12px; }
/* RDV-28 · the home final's lead (`final_text`) only when it is set and not offer_hidden; the vetted page has none */
.fin .lead { max-width: 540px; margin-top: -12px; }
/* RDV-24 · the owners' longer button label (with the price on) wraps inside the panel on a 360 px screen */
.fin-cta .btn { white-space: normal; text-align: center; }
.fin .cta-row { justify-content: center; }
@media (min-width: 900px) {
  .wrap > .fin { padding: 88px 40px; }
}

/* ---------- Section spacing when a section drops out (14-UI-SPEC "Conditional Content Slots") ---------- */
/* RDV-28: two adjacent light sections share one gap; every tinted or dark band keeps its own top padding, and a
   final .sec-fin after a band regains it, so a .fin panel never touches a band. With every section present no rule
   fires on a reference page. */
.sec:not(.sec-tint):not(.sec-deep) + .sec:not(.sec-tint):not(.sec-deep):not(.sec-fin) { padding-top: 0; }
.sec-tint + .sec-fin, .sec-deep + .sec-fin { padding-top: var(--sec); }

/* ---------- Room media and the price row (14-UI-SPEC C7, D-19, D-26): shared by the house rows and the home cards ---------- */
/* RDV-26: the site's gallery partials (partials/rooms/gallery*.html, unchanged): `.rc-ph[data-gallery]` >
   `button.rc-main` (slide 1) + hidden slide buttons, not the reference's hash JSON; a room without photos keeps the
   empty `--tint` frame */
.rc-ph { display: block; }
.rc-main { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.rc-ph .ph { border-radius: 0; aspect-ratio: 4 / 3; }
/* RDV-06: the hover zoom in 200 ms (the prototype's .5s) */
.rc-main img { transition: transform .2s; }
.rc-main:hover img { transform: scale(1.03); }
.rc-n {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.rc-n .ic { width: 15px; height: 15px; }
/* A video slide shows its poster with a centred 56 px play circle (decoration; the button is the target) */
/* RDV-26 */
.rc-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(23, 48, 31, .72); pointer-events: none; }
/* RDV-26 */
.rc-play::before { content: ""; position: absolute; left: 25px; top: 20px; border-style: solid; border-width: 8px 0 8px 10px; border-color: transparent transparent transparent #fff; }
/* The row wraps, so the price block sits above «Забронювати» whenever both do not fit (the reference clips the
   button at 360/390); the button is never clipped, in UA and EN and in all three price modes */
/* RDV-27 */
.rc-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; }
@media (max-width: 639px) {
  .rc-buy .btn .ic { display: none; }
}

/* ---------- House pages (RPG-02; 14-UI-SPEC "House Pages", D-24…D-26): the vetted reference's house page ---------- */
/* The crumb of the house hero (the service hero scopes its own dark look under .chh-t) */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 14px; font-weight: 600; color: var(--muted); }
.crumb a { color: var(--green); text-decoration: none; }
.crumb a:hover { text-decoration: underline; text-underline-offset: 4px; }
.crumb i { width: 24px; height: 1px; background: currentColor; opacity: .5; }
/* `.addr` left the v11 base for this block (D-06) */
.addr { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.addr .ic { width: 18px; height: 18px; flex: none; color: var(--green); }
.credit { font-size: 12.5px; color: var(--muted); }
.credit a { text-underline-offset: 3px; }
/* #lhero: the hero-cap rules are scoped to .phero, so they never reach the home hero's own caption */
.phero { padding: 24px 0 0; }
.phero-g { display: grid; gap: 24px; }
.phero-t .it { margin-top: 12px; }
.phero-r { display: grid; gap: 12px; justify-items: start; }
.phero-r .cta-row { margin-top: 8px; }
.phero-ph { margin-top: 28px; aspect-ratio: 4 / 3; border-radius: var(--r-l); }
.phero .hero-cap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-top: 0; }
.phero .facts-l { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.phero .facts-l li { display: flex; align-items: center; gap: 8px; font: inherit; letter-spacing: normal; text-transform: none; color: inherit; }
.phero .facts-l li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.phero .hero-cap .credit { display: inline; margin-top: 10px; font: 400 12.5px/1.6 var(--sans); color: var(--muted); }
@media (min-width: 900px) {
  .phero { padding-top: 48px; }
  .phero-g { grid-template-columns: 1fr auto; gap: 64px; align-items: end; }
  .phero-ph { margin-top: 44px; aspect-ratio: 21 / 9; }
}
/* #about: the text column (the lead, then paragraphs 2+, RDV-28) and the nearby card */
.intro2 { display: grid; gap: 32px; margin-top: 8px; }
/* RDV-28 */
.intro-t .p { margin-top: 14px; }
.near-card { padding: 8px 24px 10px; border-radius: var(--r-l); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.near-card h2 { padding: 16px 0 12px; font: 600 14px/1.4 var(--sans); color: var(--green); }
.near li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 16px; }
.near li span:last-child { color: var(--muted); text-align: right; }
/* #loc-rooms: the rows (C7 media + .rc-b); the .rr scope outweighs the home card's `.rc-name` and `.amen` rules; the
   html scroll padding already clears the header for a #room-<key> jump, so the row adds no margin of its own */
.rr-list { display: grid; gap: 24px; }
.rr { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border-radius: var(--r-l); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.rr > * { min-width: 0; }
.rr .rc-b { display: flex; flex-direction: column; padding: 22px; }
.rr .rc-loc { margin: 0; font-size: 14px; font-weight: 600; color: var(--green); }
.rr .rc-name { margin: 4px 0 0; font: 500 30px/1.15 var(--serif); }
.rr .rc-short { max-width: none; margin-top: 10px; font-size: 16px; color: var(--muted); }
.rr .spec { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; color: var(--ink); }
.rr .amen { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; margin-top: 18px; padding: 18px 0 0; border-top: 1px solid var(--line); font: 400 15.5px/1.6 var(--sans); color: var(--muted); }
.rr .amen li { display: flex; align-items: normal; gap: 10px; }
.rr .amen li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: .62em; border-radius: 50%; background: var(--green); transform: none; }
.rr .rc-buy { padding-top: 24px; }
@media (min-width: 760px) {
  .rr { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .rr .rc-main { height: 100%; }
  .rr .rc-ph .ph { position: relative; height: 100%; min-height: 360px; aspect-ratio: auto; }
  .rr .rc-ph img { position: absolute; inset: 0; }
  .rr .rc-b { padding: 32px 36px; }
  .rr .amen { grid-template-columns: 1fr 1fr; column-gap: 28px; }
}
@media (min-width: 900px) {
  .intro2 { grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; }
  .intro2 .lead { font-size: 22px; }
}
/* #find: the light map frame (the footer's .fmap-fr markup) scoped under .lmap, so it never takes the footer's dark
   look; shell.js's states stay those of the footer (RDV-21) */
.lmap { display: grid; gap: 28px; }
/* RDV-21: the fallback shows over --green-soft while loading and after a failure; a loaded map paints over it */
.lmap .fmap-fr { border-radius: var(--r-l); background: var(--green-soft); }
/* RDV-21 */
.lmap .map-fb { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 20px; text-align: center; font: 400 14.5px/1.6 var(--sans); color: var(--muted); }
/* RDV-21 */
.lmap .map-fb .ic { width: 24px; height: 24px; color: var(--green); }
/* RDV-21 */
.lmap .map-fb a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
/* RDV-21: the frame rings in --green on the --tint ground when its map holds the focus (shell.js marks .map-focus) */
.lmap .fmap-fr:has(> iframe:is(:focus, :focus-within)), .lmap .fmap-fr.map-focus { outline: 2px solid var(--green); outline-offset: 3px; }
.big-addr { font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); font-weight: 500; line-height: 1.12; }
.lmap-t .p { max-width: 440px; margin: 16px 0 20px; }
/* #loc-faq (and the home #faq from 14-08): the reference's two-column FAQ with the sticky header */
.faq-g { display: grid; gap: 8px; }
.faq-g .sh { margin-bottom: 24px; }
/* #other: the other house's card, then the .fin panel */
.other { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border-radius: var(--r-l); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.other > * { min-width: 0; }
.other-ph { display: block; min-width: 0; }
.other-ph .ph { height: 100%; border-radius: 0; aspect-ratio: 16 / 10; }
/* RDV-06: the hover zoom in 200 ms (the prototype's .5s) */
.other-ph img { transition: transform .2s; }
.other-ph:hover img { transform: scale(1.03); }
.other-t { display: grid; gap: 12px; align-content: center; justify-items: start; padding: 24px; }
.other-t .cta-row { margin-top: 10px; }
.other + .fin { margin-top: 24px; }
@media (min-width: 900px) {
  .lmap { grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
  .lmap .fmap-fr { aspect-ratio: 16 / 10; }
  .faq-g { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .faq-g .sh { position: sticky; top: calc(var(--hdr) + 32px); }
  .other { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .other-ph .ph { position: relative; height: 100%; min-height: 400px; aspect-ratio: auto; }
  .other-ph img { position: absolute; inset: 0; }
  .other-t { padding: 48px; }
  .other + .fin { margin-top: 32px; }
}

/* ---------- Price block (RPG-04; 14-UI-SPEC C3, D-08): shared, out of the v11 home fence ---------- */
/* `div.pf[data-pf]` > `p.price` | `p.price.is-mem` + `p.mem-tag` | `button.mem-link[data-member-open]`
   (pricing/_pf_inner.html, unchanged); member.js repaints every [data-pf] after an unlock. Compact blocks
   (`[data-pf-c]`: the comparison cells, the mobile bar) never carry a tag or a link. */
/* RDV-23 */
.pf { display: grid; justify-items: start; gap: 4px; }
.price { display: flex; align-items: baseline; gap: 6px; font: 400 14.5px/1.6 var(--sans); color: var(--muted); white-space: nowrap; }
.price b { font: 600 26px/1.6 var(--serif); color: var(--ink); }
/* RDV-23 */
.price.is-mem { flex-wrap: wrap; column-gap: 6px; row-gap: 0; }
/* RDV-23 */
.price s { font: 500 18px/1.6 var(--serif); color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
/* RDV-23 */
.mem-tag { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1.4 var(--sans); color: var(--green); }
.mem-tag .ic { width: 16px; height: 16px; flex: none; }
/* RDV-23 */
.mem-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none;
  font: 600 16px/1.4 var(--sans); color: var(--green); text-align: left; white-space: normal; cursor: pointer;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px;
  transition: text-decoration-color var(--t);
}
.mem-link:hover { text-decoration-color: currentColor; }
[data-pf-c] .price { flex-wrap: wrap; }

/* ---------- Site-guest form, done state and modal (RPG-04; 14-UI-SPEC C4, D-09): shared, out of the v11 home fence ---------- */
/* `form.mem#mem-home|#mem-mdl[data-member-form]` (partials/home/member_form.html), `.mem.mem-done[role=status]`
   (partials/member_done.html), `#mdl.mdl` (partials/member_modal.html); member.js, the ids, the hidden fields, the
   honeypot and the CSRF token unchanged. The booking wizard's contacts step reads the same fields, `.f-check` and
   `.note` (15-05): its textarea joins the field rules here, the wizard block adds only its layout. */
/* RDV-24 */
.mem { display: grid; gap: 16px; padding: 24px; border-radius: var(--r-l); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.mem-h { font: 500 26px/1.15 var(--serif); color: var(--ink); }
/* RDV-24 */
.mem-s { margin-top: -8px; font: 400 16px/1.55 var(--sans); color: var(--muted); }
/* the reference `.note` [P:890]; inside the card its grid gap spaces it, so no margin of its own */
.note { padding: 12px 16px; border-radius: var(--r-s); background: var(--tint); font-size: 15px; }
.f { display: grid; gap: 6px; align-content: start; }
.f-l { font-size: 14px; font-weight: 600; }
.f-l i { font-style: normal; color: var(--err); }
/* RDV-24 */
.f input, .f textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--control); border-radius: var(--r-s); background: var(--bg); font: inherit; font-size: 17px; color: inherit; -webkit-appearance: none; appearance: none; }
.f textarea { resize: vertical; }
/* the informative placeholders (the booking phone «+380», the comment example, the code «KAFA-XXXX»): 5.38:1 on `--bg` */
.f input::placeholder, .f textarea::placeholder, #promo::placeholder { color: var(--muted); }
/* RDV-24 */
.f input:focus, .f textarea:focus { outline: none; border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
/* RDV-24 */
.f.has-err input, .f.has-err textarea { border-color: var(--err); box-shadow: inset 0 0 0 1px var(--err); }
/* the error ring outweighs the focus ring, so an invalid field shows its focus as a 2 px `--err` outline (15-REVIEW
   IN-03; ≥ 6.7:1 on `--bg` and `--surface`); the forced-colours `Highlight` outline above still wins there */
/* RDV-24 */
.f.has-err input:focus, .f.has-err textarea:focus { outline: 2px solid var(--err); outline-offset: 2px; }
.f-err { font-size: 13.5px; color: var(--err); }
.f-err:empty { display: none; }
.f-check { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 16px 18px; border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
/* RDV-24 · a 1 px input at the box's corner: a click on the box or the sentence reaches the label, not the input */
.f-check input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
/* RDV-24 */
.f-check .box { flex: none; width: 24px; height: 24px; border-radius: 6px; border: 1.5px solid var(--control); display: grid; place-items: center; color: transparent; }
.f-check .box .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.f-check input:checked + .box { background: var(--green); border-color: var(--green); color: #fff; }
.f-check input:focus-visible + .box { outline: 2px solid var(--green); outline-offset: 3px; }
.f-check:has(input:checked) { box-shadow: inset 0 0 0 2px var(--green); }
.f-check b { display: block; font-weight: 600; }
.f-check small { display: block; font-size: 14px; color: var(--muted); }
/* RDV-24 · inside the card the grid gap spaces the consent row */
.mem .f-check { margin-top: 0; }
/* RDV-24 · the consent sentence runs over several lines: the box sits beside its first line, the row stays ≥ 44 px */
.f-check.mem-cons { align-items: flex-start; min-height: 44px; }
.mem-cons a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
/* RDV-24 · the partial's submit keeps `class="btn"`; it spans the card like `.btn-block` */
.mem > .btn { width: 100%; }
.mem-n { font: 400 14px/1.5 var(--sans); color: var(--muted); overflow-wrap: anywhere; }
.mem-code { display: flex; gap: 14px; align-items: flex-start; font: 500 20px/1.45 var(--serif); color: var(--ink); }
/* RDV-24 · the reference's `.done-ic` circle, scaled from 56 to 40 px */
.mem-code .ic { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--green); color: #fff; }
.mem-code b { font: 600 .9em/1 var(--sans); padding: 2px 8px; border-radius: 6px; background: var(--green-soft); white-space: nowrap; }
/* RDV-24 · the full stop after the code stays with it: a 4 px inline-end padding instead of 8 (the msgid has no space;
   «KAFA-7Q2M .» read as spaced, 14-UI-REVIEW, 16-05) */
.mem-code b { padding-inline-end: 4px; }
.mdl { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
.mdl[hidden] { display: none !important; }
.mdl-bg { position: absolute; inset: 0; background: rgba(23, 48, 31, .45); }
/* RDV-24 */
.mdl-b { position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow); }
/* the dynamic viewport where it is known (dvh = vh at the Playwright viewports) */
.mdl-b { max-height: calc(100dvh - 40px); }
/* the title clears the 44 px close button */
.mdl-b .mem { box-shadow: none; padding-top: 56px; }
/* the 44 px circle comes from `.sq` (RDV-03) */
.mdl-x { position: absolute; top: 8px; right: 8px; z-index: 2; color: var(--ink); }
.mdl-x .ic { width: 20px; height: 20px; }
html.mdl-open, html.mdl-open body { overflow: hidden; }
@media (min-width: 900px) {
  .mem { padding: 32px; }
}

/* ---------- Track (14-UI-SPEC C2, D-06): moved out of the v11 base unchanged ---------- */
.track { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }

/* ---------- Stepper (RPG-01; 14-UI-SPEC C5, D-12): `div.stepper[data-stepper]`, stepper.js unchanged, range 1–12 ---------- */
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
/* RDV-03 */
.stepper button { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--control); background: transparent; color: var(--ink); transition: border-color var(--t), color var(--t); }
.stepper button:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper .ic { width: 16px; height: 16px; }
/* `min-width` keeps «1 гість» and «12 гостей» from moving the buttons */
/* RDV-03 · a round control's hit box stays square: a point at its corners still reaches the button */
.stepper button { position: relative; }
/* RDV-03 */
.stepper button::before { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
.stepper output { min-width: 5.5em; text-align: center; font: 600 18px/1.3 var(--sans); color: var(--ink); white-space: nowrap; }

/* ---------- Calendar (RPG-01; 14-UI-SPEC C6, D-11): calendar.js's DOM, styled not rebuilt ---------- */
/* `.cal > .cal-head (.cal-nav ×2) + .cal-months > .cal-month > (.cal-title + .cal-grid > .cal-wd…, .cal-day…) +
   .cal-foot (.cal-hint, .cal-legend, .cal-clear)`; one month below 761 px, two from it (calendar.js, unchanged). The
   day's short price is drawn by calendar.js's adopted sheet (`.cal-price[data-price]::before`): no rule here sets
   `content` on `.cal-price`. The booking wizard mounts it inline in its dates card with placement rules only (the
   «Booking wizard» block, RDV-25). */
.cal { position: relative; }
.cal-head { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; justify-content: space-between; pointer-events: none; }
/* RDV-03 */
.cal-nav { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; pointer-events: auto; font: 400 24px/1 var(--sans); color: var(--ink); transition: background var(--t); }
/* RDV-03 · the round arrows and the rounded days keep a square hit box (corner points reach the control) */
.cal-nav, .cal-day { position: relative; }
/* RDV-03 */
.cal-nav::before, .cal-day::before { content: ""; position: absolute; inset: 0; }
.cal-nav:hover:not(:disabled) { background: var(--bg); }
.cal-nav:disabled { opacity: .4; cursor: default; }
.cal-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); column-gap: 24px; row-gap: 24px; }
.cal-title { height: 44px; margin-bottom: 4px; text-align: center; font: 600 17px/44px var(--sans); color: var(--ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: 0; row-gap: 2px; }
.cal-wd { padding: 6px 0; text-align: center; font-size: 12.5px; color: var(--muted); }
/* RDV-25 · a rounded day cell (≥ 44 × 52) with the number over the server price, not the reference's round day */
.cal-day { position: relative; min-width: 44px; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: var(--r-s); color: var(--ink); transition: background var(--t), box-shadow var(--t); }
.cal-num { font: 400 15.5px/1 var(--sans); font-variant-numeric: tabular-nums; }
/* RDV-25 */
.cal-price { font: 400 11px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); }
.cal-day:hover:not(:disabled):not(.is-start):not(.is-end):not(.is-booked):not(.is-blocked) { box-shadow: inset 0 0 0 1.5px var(--green); }
.cal-day:focus-visible { z-index: 1; }
.cal-day.is-empty { visibility: hidden; }
.cal-day:disabled { cursor: default; }
.cal-day.is-past .cal-num, .cal-day:disabled .cal-num { color: var(--disabled); }
.cal-day.is-today .cal-num { font-weight: 700; color: var(--green); }
.cal-day.is-hover { background: var(--tint); border-radius: 0; }
.cal-day.is-in { background: var(--green-soft); border-radius: 0; }
.cal-day.is-blocked .cal-num { color: var(--muted); }
.cal-day.is-blocked .cal-price { visibility: hidden; }
/* RDV-25 · the hatch alone would leave the number at 4.32:1: it sits on a --surface chip (5.87:1) */
.cal-day.is-booked { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--line-2) 6px 7px); }
.cal-day.is-booked:disabled { cursor: not-allowed; }
/* RDV-25 */
.cal-day.is-booked .cal-num { padding: 0 4px; border-radius: 4px; background: var(--surface); color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.cal-day.is-start, .cal-day.is-end { background: var(--green); border-radius: var(--r-s); color: #fff; }
.cal-day.is-start .cal-num, .cal-day.is-end .cal-num { background: none; font-weight: 600; color: #fff; }
.cal-day.is-start .cal-price, .cal-day.is-end .cal-price { color: #fff; }
.cal-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
/* RDV-25 */
.cal-hint { flex: 1 1 220px; font: 500 15px/1.4 var(--sans); color: var(--ink); }
/* RDV-25 · the site's legend (free, busy, the price sample), which the reference lacks */
.cal-legend { display: flex; flex-wrap: wrap; align-items: center; row-gap: 6px; font: 400 13.5px/1.4 var(--sans); color: var(--muted); }
.cal-legend i { display: inline-block; flex: none; width: 14px; height: 14px; margin: 0 6px 0 16px; border-radius: 4px; }
.cal-legend i:first-child { margin-left: 0; }
.cal-legend i.lg-free { background: var(--surface); border: 1px solid var(--control); }
.cal-legend i.lg-busy { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--line-2) 6px 7px), var(--surface); border: 1px solid var(--line); }
.cal-legend i.lg-price { width: auto; height: auto; border-radius: 0; }
/* RDV-25 · the price sample is a CSS literal per language (the site's short price format) */
.cal-legend i.lg-price::before { content: '1,2к'; font: 400 11px/1 var(--sans); font-style: normal; color: var(--muted); }
html[lang=en] .cal-legend i.lg-price::before { content: '1.2k'; }
.cal-clear { display: inline-flex; align-items: center; gap: 6px; font: 600 16px/1.4 var(--sans); color: var(--green); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color var(--t); }
.cal-clear:hover { text-decoration-color: currentColor; }

/* ---------- Home hero (RPG-01; 14-UI-SPEC H1, D-13): the kicker and H1, the photo house cards, the trust strip ---------- */
/* `.hero-top` = `.hero-l` (the kicker, the H1 or the blank-title kicker-H1 `h1.eyebrow.hero-k`, the optional
   subtitle) + `.hc` (the cards and the site-guest note); then the trust strip, the canyon figure, the bookline. */
.hero { padding: 28px 0 var(--sec); }
.hero-top { display: grid; gap: 28px; }
.hero .eyebrow { margin-bottom: 18px; }
.hero-sub { margin-top: 20px; max-width: 520px; font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); }
.hc-cards { display: grid; gap: 16px; }
.hc-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-l); overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s; }
.hc-card:hover { box-shadow: var(--shadow), 0 0 0 1px var(--line); transform: translateY(-2px); }
.hc-card .ph { border-radius: 0; aspect-ratio: 16 / 10; }
.hc-b { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hc-t { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.15; }
.hc-p { color: var(--muted); font-size: 16px; }
.hc-b .btn { margin-top: auto; align-self: flex-start; }
/* RDV-24 · the owners' longer card label (up to 40 characters) wraps inside the card on a 360 px screen
   (14-REVIEW WR-02); a one-line label looks as before */
.hc-b .btn { white-space: normal; text-align: center; max-width: 100%; overflow-wrap: anywhere; }
/* RDV-24 · the reference gives the button after the text a 12 px top margin, which overrode the `margin-top: auto`
   above: with a title that wraps in one card only, the two «Обрати дати» ended 30 px apart (the reference's own
   defect, 14-UI-REVIEW fix 1). The 12 px is the text's bottom margin instead: the same 8 + 12 px under the longest
   text, and the buttons meet at the card bottom */
.hc-p { margin-bottom: 12px; }
.hc-card .btn::after { content: ""; position: absolute; inset: 0; }
.hc-note { margin-top: 12px; }
.trust-strip { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.hosts { display: flex; align-items: center; gap: 12px; font-weight: 500; flex: none; }
.hosts-ph { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex: none; }
/* RDV-12 · the owners' focal point (the picture's fp classes), not the reference's scale(1.7) crop; until the photo
   is ready the line art keeps the 48 px circle on --tint */
.hosts-ph { display: inline-flex; align-items: flex-end; justify-content: center; background: var(--tint); }
/* RDV-12 */
.hosts-ph picture { display: contents; }
.hosts-ph img { width: 100%; height: 100%; object-fit: cover; }
/* RDV-12 */
.hosts-ph svg { width: 40px; height: 36px; margin-bottom: -2px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; }
.trust a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; text-decoration: none; color: var(--muted); transition: box-shadow var(--t); }
.trust a:hover { box-shadow: inset 0 0 0 1.5px var(--green); }
.trust b { background: var(--green); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 13.5px; font-weight: 600; }
/* RDV-30 · the overall rating (data state): a non-link pill like `.trust a`, the star in --green */
.trust-r { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--muted); }
/* RDV-30 */
.trust-r .ic { width: 16px; height: 16px; color: var(--green); }
/* RDV-30 */
.trust .trust-r b { padding: 0; border-radius: 0; background: none; font-size: 14px; font-weight: 600; color: var(--ink); }
/* RDV-46 · the hosts' photo large enough to recognise them (the line art keeps its 48 px circle) */
.hosts-ph.has-photo { width: 64px; height: 64px; }
/* RDV-46 · the story section's full-length photo is shared, so the circle zooms in on the faces around the owners'
   focal point. The zoom is the image's own box (220 %, centred), not a transform: a scaled layer is rasterised at the
   circle's size and comes out pixelated. `sizes` in trust.html asks for a file sharp enough for the zoomed crop. */
.hosts-ph.has-photo { position: relative; }
/* RDV-46 */
.hosts-ph.has-photo img { position: absolute; left: -60%; top: -60%; width: 220%; height: 220%; max-width: none; object-position: 50% 62%; }
/* RDV-46 · a rating source as a platform badge: the platform over the owners' label, the score in a square */
.trust a.ts { gap: 12px; padding: 7px 7px 7px 14px; border-radius: var(--r-s); color: var(--ink); }
/* RDV-46 */
.ts-t { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
/* RDV-46 */
.ts-brand { font-size: 15px; font-weight: 700; }
/* RDV-46 */
.ts-l { font-size: 12.5px; color: var(--muted); }
/* RDV-46 */
.trust .ts b { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 6px; border-radius: 8px; font-size: 15px; font-weight: 700; }
/* RDV-46 · Booking's own look: the navy «Booking» + «.com» wordmark and the navy square open at the bottom left */
.ts-bk .ts-brand { color: #003580; letter-spacing: -.01em; }
/* RDV-46 */
.ts-bk .ts-brand i { font-style: normal; color: #0071c2; }
/* RDV-46 */
.trust .ts-bk b { background: #003580; border-radius: 8px 8px 8px 0; }
/* RDV-46 */
.trust a.ts-bk:hover { box-shadow: inset 0 0 0 1.5px #003580; }
@media (max-width: 639px) {
  /* RDV-46 · phones: one full-width row per source, the score at the end */
  .trust a.ts { flex: 1 1 100%; justify-content: space-between; }
}
@media (min-width: 640px) {
  .hc-cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1040px) {
  .hero { padding-top: 56px; }
  .hero-top { grid-template-columns: 5fr 7fr; gap: 56px; align-items: end; }
  .hc-cards { gap: 20px; }
  .trust-strip { flex-direction: row; align-items: center; justify-content: space-between; margin-top: 40px; }
  .trust { justify-content: flex-end; }
  /* RDV-46 */
  .hosts-ph.has-photo { width: 72px; height: 72px; }
}
@media (max-width: 639px) {
  .hc-card { display: grid; grid-template-columns: 116px 1fr; }
  .hc-card .ph { aspect-ratio: auto; height: 100%; }
  .hc-b { padding: 16px; gap: 6px; }
  .hc-t { font-size: 22px; }
  .hc-p { font-size: 15px; line-height: 1.45; }
  /* RDV-03 · the phone card button at 44 px (the reference's 42) */
  .hc-b .btn { min-height: 44px; padding: 10px 16px; font-size: 15px; }
}

/* ---------- Canyon (RPG-01; 14-UI-SPEC H2, D-14, D-15): the live scene's stage, the HTML labels, the fallback ---------- */
/* `figure.cyh > .cy-stage (span.cyh-alt, .cy-fb, svg.cyh-lead, .cyh-labels) + figcaption > ul.facts-l`. canyon.js
   places each 0x0 `.cl` on its anchor and keeps its box inside the stage (a CSSOM `transform`, so the boxes centre
   with `translate`); `.cl-grp` (the merged river label) and the stairs label `.cl-free` are placed whole. The labels
   stay hidden until `.is-placed`; the fallback drawing `.is-fb` has its own; `.is-failed` shows them as plain pills. */
.cyh { margin-top: 28px; }
/* the stage is the aspect box from the first paint (the canvas causes no layout shift): the site's tall full-bleed
   1/1.08 up to 760 px (canyon.js's `tall` placement, D-15), the reference's 16/8.6 inside `.wrap` from 761 */
/* RDV-04 */
.cyh .cy-stage { position: relative; overflow: hidden; aspect-ratio: 1 / 1.08; margin-inline: calc(var(--gut) * -1); border-radius: 0; background: linear-gradient(#dfe9ea, #f1f0e4); }
.cy-cv { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.cy-fb { position: absolute; inset: 0; }
.cy-fb svg { display: block; width: 100%; height: 100%; }
.cy-stage.is-3d .cy-fb { display: none; }
.cyh-alt { position: absolute; inset: 0; }
.cyh-labels { position: absolute; inset: 0; pointer-events: none; }
.cyh .cy-stage:not(.is-placed) .cyh-labels, .cyh .cy-stage:not(.is-placed) .cyh-lead { visibility: hidden; }
.cyh .cy-stage.is-fb .cyh-labels, .cyh .cy-stage.is-fb .cyh-lead { display: none; }
.cl { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: auto; text-decoration: none; color: var(--ink); }
.cl .cl-box { position: absolute; left: 0; bottom: 10px; translate: -50% 0; }
.cl-box { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 5px 9px; border-radius: 8px; background: var(--surface); color: var(--ink); box-shadow: 0 2px 10px rgba(23, 48, 31, .18); font: 400 11px/1.25 var(--sans); white-space: nowrap; }
.cl-box b { display: flex; align-items: center; gap: 4px; font-weight: 600; }
.cl-box b .ic { width: 12px; height: 12px; }
.cl-box small { font-size: 10px; opacity: .75; }
/* the anchor dot: the pill's bottom edge sits 10 px above the anchor, the dot just under it */
.cl::after { content: ""; position: absolute; left: -4px; top: -8px; width: 8px; height: 8px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 2px rgba(23, 48, 31, .35); }
.cl-dot::after { top: -4px; }
.cl.cl-k::after { background: var(--green); box-shadow: 0 0 0 2px #fff; }
.cl-k .cl-box { background: var(--green); color: #fff; }
/* RDV-04 · the small line at .85 on --green reaches 5.11:1 (the reference's .75 is 4.37:1) */
.cl-k small { opacity: .85; }
.cl-k:hover .cl-box { background: var(--green-hover); }
.cl-k:focus-visible { outline: none; }
.cl-k:focus-visible .cl-box { outline: 2px solid var(--green); outline-offset: 3px; }
/* RDV-03 · every label link keeps a 44 px hit area around its pill, for every pointer (D-15) */
.cl-k .cl-box::before { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
/* RDV-04 · the Town Hall label sits left of its anchor (canyon.js placement) */
.cl-l .cl-box { left: auto; right: -14px; translate: none; }
.cyh .cl-grp, .cyh .cl-free { position: absolute; left: 0; top: 0; pointer-events: auto; }
.cyh .cl-grp { display: flex; flex-direction: column; width: max-content; max-width: 196px; }
.cl-grp > a { display: block; text-decoration: none; }
.cl-grp .cl-box, .cl-free .cl-box { position: relative; }
.cl-grp .cl-box { white-space: normal; }
.cl-free .cl-box { padding: 3px 7px; background: rgba(255, 255, 255, .88); box-shadow: none; }
.cl-free .cl-short, .cl-free.is-short .cl-long { display: none; }
.cl-free.is-short .cl-short { display: inline; }
.cyh-lead { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cyh-lead line { stroke: rgba(255, 255, 255, .95); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.cyh-lead .cyh-lb { stroke: rgba(23, 48, 31, .18); stroke-width: 2px; }
.cyh-lead .cyh-st { fill: none; stroke: rgba(255, 255, 255, .95); stroke-width: 2px; stroke-dasharray: 5 4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cyh-lead .cyh-st-b { stroke: rgba(23, 48, 31, .25); stroke-width: 4px; }
/* RDV-04 · canyon.js could not be imported: the label links as a centred wrap of pills, no dots, no leaders */
.cyh .cy-stage.is-failed .cyh-labels { visibility: visible; display: flex; flex-wrap: wrap; align-items: center; align-content: center; justify-content: center; gap: 12px 16px; padding: 18px; }
/* RDV-04 */
.cyh .cy-stage.is-failed .cl, .cyh .cy-stage.is-failed .cl-grp, .cyh .cy-stage.is-failed .cl-free { display: block; position: static; width: auto; height: auto; max-width: 100%; transform: none; }
/* RDV-04 */
.cyh .cy-stage.is-failed .cl-box { position: relative; inset: auto; max-width: 100%; transform: none; translate: none; }
/* RDV-04 */
.cyh .cy-stage.is-failed .cl::after, .cyh .cy-stage.is-failed .cyh-lead, .cyh .cy-stage.is-failed .cy-fb, .cyh .cy-stage.is-failed .cl-dot, .cyh .cy-stage.is-failed .cl-desk { display: none; }
/* RDV-12 · the fallback SVG's own style attributes as classes (the nonce CSP forbids both) */
.cy-fb .fw { fill: #3f454b; }
/* RDV-12 */
.cy-fb .fw.on { fill: #ffc57e; }
/* RDV-12 */
.cy-fb .fbl { cursor: pointer; }
/* RDV-12 */
.cy-fb .fb-night { opacity: var(--night, 0); }
/* RDV-12 */
.cy-fb .fb-night-35 { opacity: calc(var(--night, 0) * .35); }
/* RDV-12 */
.cy-fb .fb-glow { opacity: calc(.35 + var(--night, 0) * .65); }
/* RDV-04 · the fallback's labels in the tokens: plain boxes --surface with --ink text, house links --green with white
   text; Onest; the drawing's scenery colours stay */
.cy-fb .fbb { fill: var(--surface); }
/* RDV-04 */
.cy-fb .fbl .fbb { fill: var(--green); }
/* RDV-04 */
.cy-fb .fbd { fill: var(--surface); stroke: rgba(23, 48, 31, .35); stroke-width: 2; }
/* RDV-04 */
.cy-fb .fbl .fbd { fill: var(--green); stroke: #fff; }
/* RDV-04 */
.cy-fb .fbt { font: 600 17px var(--sans); fill: var(--ink); }
/* RDV-04 */
.cy-fb .fbs { font: 400 12.5px var(--sans); fill: var(--ink); fill-opacity: .75; }
/* RDV-04 */
.cy-fb .fbl .fbt, .cy-fb .fbl .fbs { fill: #fff; }
/* RDV-04 */
.cy-fb .fbl .fbs { fill-opacity: .85; }
.facts-l { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.facts-l li { display: flex; align-items: center; gap: 8px; }
.facts-l li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
@media (min-width: 760px) {
  .cyh { margin-top: 48px; }
}
@media (min-width: 761px) {
  .cyh .cy-stage { aspect-ratio: 16 / 8.6; margin-inline: 0; border-radius: var(--r-l); }
  .cl-box { padding: 8px 14px; border-radius: 10px; font-size: 14px; }
  .cl-box b .ic { width: 15px; height: 15px; }
  .cl-box small { font-size: 12.5px; }
}
@media (max-width: 1023px) {
  /* RDV-04 · the Town Hall label shows from 1024 px (the reference hides it on phones) */
  .cyh [data-cl="ratusha"] { display: none; }
}
@media (max-width: 760px) {
  .cyh .cl-grp { max-width: 104px; }
  /* RDV-04 · the top house box ends 14 px right of its anchor and wraps (the tall placement) */
  .cyh [data-cl="top"] .cl-box { left: auto; right: -14px; translate: none; width: max-content; max-width: 124px; white-space: normal; }
}

/* ---------- Bookline (RPG-01; 14-UI-SPEC H3, D-11, D-12): the dates field, the guests stepper, the popover ---------- */
/* bookline.js and calendar.js are unchanged: `#bl-dates` opens `#bl-pop` (a non-modal popover from 761 px, the
   full-screen dialog `html.bl-full` at 760 px and below), `#bl-cal[data-api]` mounts the C6 calendar. */
.bl { position: relative; margin-top: 24px; display: grid; gap: 1px; background: var(--line); border-radius: var(--r-m); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.bl-f { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 14px 18px; background: var(--surface); text-align: left; }
.bl-f:first-child { border-radius: var(--r-m) var(--r-m) 0 0; }
.bl-lbl { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.bl-v { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; font-size: 18px; font-weight: 600; }
.bl-v .ph-v { color: var(--muted); font-weight: 500; }
.bl-v .ic { transition: color var(--t); }
.bl-dates:hover .bl-v .ic, .bl-dates[aria-expanded="true"] .bl-v .ic { color: var(--green); }
.bl-go { display: flex; padding: 12px; border-radius: 0 0 var(--r-m) var(--r-m); background: var(--surface); }
.bl-go .btn { flex: 1; }
.bl-pop-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.bl-pop-h b { font-size: 16px; line-height: 1.35; }
/* RDV-25 · one hairline above the popover's footer: the reference's `.bl-pop-f` keeps it, the calendar's own foot line
   goes transparent inside the popover (14-UI-REVIEW item 4; no geometry change, no C6 rule rewritten) */
.bl-pop .cal-foot { border-top-color: transparent; }
/* RDV-28 · the line under the bookline, only while the owners' text is set (and the offer may show) */
.bl-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 14.5px; color: var(--muted); }
/* RDV-28 */
.bl-note .ic { width: 16px; height: 16px; margin-top: 4px; color: var(--green); }
@media (min-width: 760px) {
  .bl { grid-template-columns: 1.3fr 1fr auto; margin-top: 32px; }
  .bl-f { padding: 16px 24px; }
  .bl-f:first-child { border-radius: var(--r-m) 0 0 var(--r-m); }
  .bl-go { align-items: stretch; padding: 14px; border-radius: 0 var(--r-m) var(--r-m) 0; }
  .bl-go .btn { padding-inline: 28px; }
}
@media (min-width: 761px) {
  /* RDV-25 · the popover under the bookline; padding 20 and the months' gap 24 keep a 44 px day column at 761 px */
  .bl-pop { position: absolute; top: calc(100% + 10px); left: 0; z-index: 12; width: min(680px, 100%); padding: 20px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
  .bl-pop-f { display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  /* RDV-25 · the full-screen dialog instead of the reference's bottom sheet: vh then dvh, the safe area */
  .bl-pop { position: fixed; inset: 0; z-index: 85; height: 100vh; height: 100dvh; padding: 0 var(--gut) calc(20px + env(safe-area-inset-bottom)); background: var(--surface); overflow: auto; overscroll-behavior: contain; }
  /* RDV-25 */
  .bl-pop-h { position: sticky; top: 0; z-index: 3; margin-bottom: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); background: var(--surface); }
  /* RDV-25 · 16 px above the footer keep the 44 px hit area of «Скинути» (the calendar's last row) clear of it */
  .bl-pop-f { position: sticky; bottom: 0; z-index: 3; margin-top: 16px; padding: 12px 0; border-top: 1px solid var(--line); background: var(--surface); }
  /* RDV-25 */
  .bl-pop-f .btn { width: 100%; min-height: 48px; }
  /* RDV-12 */
  html.bl-full, html.bl-full body { overflow: hidden; }
}

/* ---------- Direct booking (RPG-01, RPG-04; 14-UI-SPEC H4, D-10): `#direct`, the card, the form with the price on ---------- */
/* `section.sec.sec-tint#direct > div.wrap.dir` = `.dir-t` (eyebrow, H2, lead) + `.dir-card` (the `div.dir-b`
   benefits, the `[data-open-dates]` button, the `div.msg` pills); with the price on `.has-form` and `.dir-f` (the
   member form or its done state) after the card. */
.dir { display: grid; gap: 32px; }
.dir .lead { margin-top: 20px; }
.dir-card { display: grid; gap: 24px; padding: 24px; border-radius: var(--r-l); background: var(--surface); }
.dir-b { display: flex; gap: 14px; }
.dir-b .ic { width: 24px; height: 24px; margin-top: 2px; color: var(--green); }
.dir-b b { font-weight: 600; }
/* RDV-24 · the owners' longer date-button label (with the price on, «Перевірити дати зі знижкою») and the member form
   wrap inside the column instead of widening it past a 360 px screen */
.dir > * { min-width: 0; }
/* RDV-24 */
.dir-card .btn { white-space: normal; text-align: center; }
@media (min-width: 900px) {
  .dir { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .dir-card { padding: 36px; }
  /* RDV-24 · with the price on the form goes under the text, the card spans both rows on the right */
  .dir.has-form { grid-template-areas: "t c" "f c"; align-items: start; }
  /* RDV-24 */
  .dir.has-form .dir-t { grid-area: t; }
  /* RDV-24 */
  .dir.has-form .dir-card { grid-area: c; }
  /* RDV-24 */
  .dir.has-form .dir-f { grid-area: f; }
}

/* ---------- Photo credit line (14-UI-SPEC H5, H7; Phase 12 D-07): under a third-party photo ---------- */
/* `span.ph-credit` right after a `.ph` (partials/photo_credit.html, only with Photo.credit_url); the house hero's
   caption credit (`.hero-cap .credit`) shares the link's 44 px hit area */
.ph-credit { display: block; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.ph-credit a { text-underline-offset: 3px; }
/* RDV-03 · the licence link keeps a 44 px hit area at every width */
.ph-credit a, .hero-cap .credit a { position: relative; }
/* RDV-03 */
.ph-credit a::before, .hero-cap .credit a::before { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }

/* ---------- Story (RPG-01; 14-UI-SPEC H5, D-18): `#story`, the three blocks, the owners' quote ---------- */
/* `.story > article.st` (`.ph`, the credit line, `p.st-n`, `h3.h3`, `p.p`) + `.owners` (`figure.own-ph`, `.own-q`:
   blockquote, `p.own-sig`, `p.own-link` while the offer shows, the `[data-open-dates]` button) */
.story { display: grid; gap: 32px; }
.st .ph { aspect-ratio: 4 / 3; }
.st-n { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums; }
.st .h3 { margin-top: 6px; }
.st .p { margin-top: 10px; color: var(--muted); }
.owners { margin-top: 48px; display: grid; gap: 24px; background: var(--tint); border-radius: var(--r-l); padding: 20px; }
.own-ph { border-radius: var(--r-m); overflow: hidden; aspect-ratio: 4 / 3; }
/* RDV-12 · the owners' focal point (the picture's fp classes), not the reference's 50% 88% crop */
.own-ph picture { display: contents; }
/* RDV-12 */
.own-ph img { width: 100%; height: 100%; object-fit: cover; }
/* RDV-12 · until the hosts' photo is ready the line art and its caption keep the frame, ringed on the --tint panel */
.own-ph:not(.has-photo) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; box-shadow: inset 0 0 0 1px var(--line); }
/* RDV-12 */
.own-ph svg { width: 96px; height: 88px; fill: none; stroke: var(--green); stroke-width: 1.4; stroke-linecap: round; }
/* RDV-12 */
.own-ph figcaption { font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 24ch; }
.own-q { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 4px 4px 8px; }
.own-q blockquote { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.3; text-wrap: balance; }
.own-sig b { display: block; font-weight: 600; }
.own-sig span { color: var(--muted); font-size: 15px; }
/* RDV-28 · the line that ties the story to the offer, only while the offer may show */
.own-link { max-width: 44ch; color: var(--muted); }
/* RDV-24 · the owners' longer button label (with the price on) wraps inside the column on a 360 px screen */
.own-q .btn { white-space: normal; text-align: center; }
@media (min-width: 760px) {
  .story { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .owners { grid-template-columns: 300px 1fr; gap: 48px; align-items: center; padding: 24px; margin-top: 72px; }
  .own-ph { aspect-ratio: 4 / 5; }
  .own-q { padding-right: 32px; }
}

/* ---------- Hot tub (RPG-01; 14-UI-SPEC H6, D-16, D-17): `#chan`, the dark band, the heater, the cards ---------- */
/* `section.sec.sec-deep.on-deep#chan[data-heat-zone]` > `.chan-g` (`.chan-tx` + `.chan-heat > .heat[data-heat]`) +
   `.ccards > article.cc`. heater.js (unchanged) writes `--heat` (0 at 12°, 1 at 39°) on the zone; it drives the photo
   filter, the tint, the warm glow, the ring and the top shade. The steam is heater.js's canvas: no CSS steam, no
   keyframes. The focus ring is white (`.on-deep`). */
[data-heat-zone] { --heat: 0; }
.chan-g { display: grid; gap: 40px; }
.chan-tx .lead { margin-top: 20px; color: var(--on-deep); }
.chan-rit { margin-top: 20px; padding-left: 18px; border-left: 2px solid #5d8a62; color: var(--on-deep-muted); font-family: var(--serif); font-weight: 500; font-style: italic; font-size: 18px; }
.cfacts { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255, 255, 255, .14); border-radius: var(--r-m); overflow: hidden; }
.cfacts div { background: var(--deep); padding: 16px 4px 16px 18px; }
.cfacts dt { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.1; }
.cfacts dd { font-size: 14.5px; color: var(--on-deep-muted); margin-top: 4px; }
.chan-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.chan-note { margin-top: 16px; color: var(--on-deep-muted); max-width: 460px; }
.heat { position: relative; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 4 / 5; background: #0d1c13; isolation: isolate; user-select: none; -webkit-user-select: none; }
.heat-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(calc(.55 + var(--heat) * .55)) brightness(calc(.7 + var(--heat) * .3)); }
.heat-tint { position: absolute; inset: 0; background: linear-gradient(rgba(16, 40, 58, .62), rgba(13, 28, 19, .82)); opacity: calc(1 - var(--heat) * .75); }
.heat-warm { position: absolute; inset: 0; background: radial-gradient(90% 60% at 50% 100%, rgba(217, 121, 59, .6), transparent 70%); opacity: var(--heat); }
/* RDV-06 · the steam is the site's canvas (heater.js draws it, pauses it off-screen and stops it under reduced motion) */
.heat canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.heat-top, .heat-bot { position: absolute; left: 0; right: 0; z-index: 2; color: #fff; text-align: center; padding: 24px; }
.heat-top { top: 0; display: flex; flex-direction: column; align-items: center; }
/* The top shade the reference lacks: `.heat-bot`'s shade mirrored, fading in with the heat as the tint fades out, so
   the title (4.56:1) and the status (5.57:1) stay AA over a white photo at every `--heat` (the reference's top text
   drops to 1.3:1 when ready); no transition of its own, it follows `--heat` */
/* RDV-32 */
.heat-top::before { content: ""; position: absolute; inset: 0 0 -64px; z-index: -1; pointer-events: none; background: linear-gradient(rgba(13, 28, 19, .7) calc(100% - 64px), transparent); opacity: var(--heat); }
.heat-title { font-size: 14px; font-weight: 600; opacity: .85; }
.heat-read { font-family: var(--serif); font-weight: 500; font-size: clamp(72px, 12vw, 112px); line-height: 1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.heat-read sup { font-size: .45em; vertical-align: top; position: relative; top: .1em; }
.heat-status { min-height: 24px; font-weight: 500; }
.heat-bot { bottom: 0; display: grid; justify-items: center; gap: 12px; background: linear-gradient(transparent, rgba(13, 28, 19, .7)); padding-top: 64px; }
.heat-btn { display: inline-flex; align-items: center; gap: 12px; padding: 8px 22px 8px 8px; border-radius: 999px; min-height: 60px; background: #fff; color: var(--deep); font-weight: 600; touch-action: none; -webkit-touch-callout: none; transition: transform var(--t); }
.heat-btn:active, .heat-btn.is-hold { transform: scale(.97); }
.heat-ring { position: relative; width: 44px; height: 44px; display: grid; place-items: center; flex: none; }
.heat-ring svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 3; }
.heat-ring .r0 { stroke: #e3e6dc; }
.heat-ring .r1 { stroke: var(--warm); stroke-linecap: round; stroke-dasharray: 106.8; stroke-dashoffset: calc(106.8 * (1 - var(--heat))); }
.heat-ring .ic { color: var(--warm); }
.heat-hint { font-size: 13.5px; opacity: .8; max-width: 320px; }
.ccards { margin-top: 48px; display: grid; gap: 20px; }
.cc { background: var(--deep-2); border-radius: var(--r-l); overflow: hidden; display: flex; flex-direction: column; }
.cc .ph { border-radius: 0; aspect-ratio: 3 / 2; background: var(--deep-2); }
.cc-b { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.cc-b p { margin-top: 8px; color: var(--on-deep-muted); font-size: 16px; }
.cc-f { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cc-p { font-weight: 600; font-size: 18px; }
@media (min-width: 760px) {
  .ccards { grid-template-columns: repeat(3, 1fr); margin-top: 72px; }
  .cfacts { grid-template-columns: repeat(4, 1fr); }
  .cfacts div { padding: 20px 4px 20px 20px; }
}
@media (min-width: 1040px) {
  .chan-g { grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: center; }
  .cfacts { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1200px) {
  .cfacts { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Locations (RPG-01; 14-UI-SPEC H7, D-18): `#locations`, the canyon photo, the two house cards ---------- */
/* `header.sh.sh-c` + `.ph.loc-ph` (+ the credit line) + `.hlegs` (`a.hleg` · `p.hleg-mid` · `a.hleg`) */
.loc-ph { aspect-ratio: 4 / 3; border-radius: var(--r-l); }
.hlegs { margin-top: 28px; display: grid; gap: 14px; }
.hleg { display: flex; flex-direction: column; gap: 6px; padding: 24px; background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 1px var(--line); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.hleg:hover { box-shadow: var(--shadow), 0 0 0 1px var(--line); transform: translateY(-2px); }
.hleg-k { font-size: 14.5px; color: var(--muted); }
.hleg b { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.15; }
.hleg small { display: flex; align-items: center; gap: 6px; font-size: 15.5px; color: var(--muted); }
.hleg small .ic { width: 16px; height: 16px; color: var(--green); }
.hleg .link { margin-top: 14px; }
.hleg-mid { display: flex; align-items: center; gap: 12px; padding: 8px 12px; font-size: 15.5px; color: var(--muted); }
.hleg-mid .ic { width: 24px; height: 24px; color: var(--green); }
@media (min-width: 900px) {
  .loc-ph { aspect-ratio: 21 / 9; }
  .hlegs { grid-template-columns: 1fr 240px 1fr; gap: 20px; align-items: stretch; }
  .hleg-mid { flex-direction: column; justify-content: center; text-align: center; padding: 12px; }
}

/* ---------- Room cards (RPG-01, RPG-04; 14-UI-SPEC H8, D-19, D-26): `#rooms`, the home card grid ---------- */
/* `.rooms > article.rc#room-<key>` = C7 media (`.rc-ph`) + `.rc-b` (`p.rc-loc`, `h3.rc-name`, `p.rc-short`, the spec
   line, `details.amen-acc`, `.rc-buy`). */
.rooms { display: grid; gap: 24px; }
.rc { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.rc > * { min-width: 0; }
.rc-b { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.rc-loc { font-size: 14px; font-weight: 600; color: var(--green); }
.rc-name { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.15; margin-top: 4px; }
.rc-short { margin-top: 10px; color: var(--muted); font-size: 16px; }
.rc .spec { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; color: var(--ink); }
/* RDV-11 · the amenities fold under «У номері» with no count */
.amen { padding: 0 0 16px; display: grid; gap: 7px; font-size: 15.5px; color: var(--muted); }
.amen li { display: flex; gap: 10px; }
.amen li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: .62em; border-radius: 50%; background: var(--green); }
@media (min-width: 680px) {
  .rooms { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1040px) {
  .rooms { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Compare (RPG-01, RPG-04; 14-UI-SPEC H9, D-20): `#compare`, the two houses side by side ---------- */
/* `div.cmp[role=table][aria-label]` > `.cmp-r[role=row]` rows: the header row (`.cmp-l[role=columnheader]` corner with
   its `.sr` text, then a `.cmp-c[role=columnheader]` per house), eight `.cmp-l[role=rowheader]` rows and the CTA row */
.cmp { background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.cmp-r { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.cmp-r:first-child { border-top: 0; }
/* RDV-31 · on phones the row header spans both columns above the values; its role stays */
.cmp-l { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 12px 16px 0; font-size: 13.5px; font-weight: 600; color: var(--muted); }
/* RDV-31 · the corner header (`.sr` text) and the CTA row's empty first cell leave the phone layout but stay in the
   accessibility tree, so every row keeps three cells (the reference hides an empty `.cmp-l`, which would drop them) */
.cmp-rh .cmp-l, .cmp-rc .cmp-l { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.cmp-l .ic { width: 16px; height: 16px; color: var(--green); }
.cmp-c { padding: 6px 16px 14px; font-size: 15.5px; min-width: 0; }
.cmp-c + .cmp-c { border-left: 1px solid var(--line); }
.cmp-rh .cmp-c { padding: 16px; }
/* RDV-31 · the photo link stays `aria-hidden` with tabindex=-1 around the shared `.ph` frame */
.cmp-ph { display: block; margin-bottom: 12px; }
.cmp-ph .ph { aspect-ratio: 4 / 3; border-radius: var(--r-s); }
.cmp-name { display: block; font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.2; text-decoration: none; transition: color var(--t); }
.cmp-name:hover { color: var(--green); }
.cmp-tl { display: block; font-size: 14px; line-height: 1.4; color: var(--muted); margin-top: 4px; }
.cmp-room { color: var(--green); font-weight: 500; text-underline-offset: 3px; }
.cmp-sep { margin: 0 4px; color: var(--line); }
.yes { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--green); }
.yes .ic { width: 18px; height: 18px; }
.cmp .price { flex-wrap: wrap; }
.cmp-rc .cmp-c { padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cmp-rc .btn { white-space: normal; text-align: center; width: 100%; }
/* RDV-03 · the name and the room links keep a 44 px hit area at every width */
.cmp-name, .cmp-room { position: relative; }
/* RDV-03 */
.cmp-name::before, .cmp-room::before { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
@media (max-width: 639px) {
  .cmp-sep { display: none; }
  /* RDV-03 · one room link per row, each row 44 px high, so the stacked links' 44 px hit areas never overlap (the
     reference's 3 px padding gives a 31 px pitch; mirrored for parity) */
  .cmp-room { display: flex; align-items: center; min-height: 44px; padding: 0; }
}
@media (min-width: 760px) {
  .cmp-r { grid-template-columns: 200px 1fr 1fr; }
  .cmp-l { grid-column: auto; padding: 16px 24px; font-size: 15px; }
  /* RDV-31 · from 760 px the corner and the CTA row's first cell are the empty first column again */
  .cmp-rh .cmp-l, .cmp-rc .cmp-l { position: static; width: auto; height: auto; padding: 16px 24px; overflow: visible; clip-path: none; }
  .cmp-c, .cmp-rh .cmp-c, .cmp-rc .cmp-c { padding: 16px 24px; font-size: 16.5px; border-left: 1px solid var(--line); }
  .cmp-rh .cmp-c { display: flex; gap: 16px; align-items: center; padding-block: 20px; }
  .cmp-ph { width: 120px; flex: none; margin: 0; }
  .cmp-rc .cmp-c { flex-direction: row; align-items: center; gap: 20px; padding-block: 20px; }
  .cmp-rc .btn { width: auto; }
}

/* ---------- Reviews (RPG-01; 14-UI-SPEC H10, D-21): `#reviews`, the reference's 07 block ---------- */
/* `div.wrap.rv` > `div.rv-l` (eyebrow, H2, the data states, `p.rv-more`) + `ul.rv-src` + `div.rv-r[data-trk]` (only
   with reviews). The legal guard waives a platform name only inside `.rv-note`, `.rv-src` and `.rv-pill`. */
.rv { display: grid; gap: 32px; }
.rv-more { margin-top: 14px; color: var(--muted); }
.rv-src { display: grid; gap: 12px; }
.rv-src a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 16px 18px 16px 16px; background: var(--surface); border-radius: var(--r-m);
  text-decoration: none; transition: box-shadow .2s, transform .2s;
}
.rv-src a:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.rv-src em { font-style: normal; font-family: var(--serif); font-weight: 600; font-size: 24px; width: 60px; height: 60px; border-radius: 14px 14px 14px 4px; background: var(--green); color: #fff; display: grid; place-items: center; }
.rv-src b { display: block; font-weight: 600; line-height: 1.35; }
.rv-src small { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.rv-src .ic { color: var(--muted); }
.rv-src a:hover .ic { color: var(--green); }
/* RDV-30 · the overall rating (data state): Lora 600 48 px with «з 5», the five stars under it */
.rv-big { display: flex; align-items: baseline; gap: 10px; margin-top: 24px; }
.rv-big b { font-family: var(--serif); font-weight: 600; font-size: 48px; line-height: 1; color: var(--ink); }
.rv-big span { font-size: 17px; color: var(--muted); }
/* RDV-30 */
.stars { display: flex; gap: 4px; margin-top: 8px; color: var(--green); }
.stars .ic { width: 20px; height: 20px; }
/* RDV-30 · the rating note (data state) */
.rv-note { margin-top: 12px; color: var(--muted); }
/* RDV-30 · the review track (data state): tracks.js; the cards scroll inside the track, never the page */
.rv-r { min-width: 0; }
.rv-r .track { gap: 20px; }
.rv-it { flex: 0 0 min(86%, 520px); scroll-snap-align: start; display: flex; flex-direction: column; padding: 24px; background: var(--surface); border-radius: var(--r-l); }
.rv-it blockquote { margin-bottom: 20px; font-size: 17px; line-height: 1.6; color: var(--ink); }
.rv-it figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.rv-it figcaption b { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; }
.rv-it figcaption small { display: block; font-size: 14px; color: var(--muted); }
/* RDV-30 · a review's source pill in the `.msg a` look */
.rv-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 500;
  text-decoration: none; transition: box-shadow var(--t), color var(--t);
}
.rv-pill:hover { box-shadow: inset 0 0 0 1.5px var(--green); color: var(--green); }
.rv-pill em { font-style: normal; font-weight: 600; color: var(--green); }
.rv-pill .ic { width: 16px; height: 16px; }
/* RDV-30 · the track nav: the gallery's 48 px circles and one 8 px dot per scroll stop */
.rv-nav { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.rv-nav .sq {
  width: 48px; height: 48px; color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow var(--t), color var(--t);
}
.rv-nav .sq:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--green); color: var(--green); background: var(--surface); }
.rv-dots { display: flex; align-items: center; gap: 8px; margin-left: 6px; }
.rv-dots i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.rv-dots i.on { background: var(--green); }
@media (min-width: 900px) {
  .rv { grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
  /* RDV-30 · with reviews (`has-rv`) the sources go under the heading in column 1 and the track takes column 2 */
  .rv.has-rv { grid-template-rows: auto 1fr; row-gap: 24px; align-items: start; }
  .rv.has-rv > .rv-src { grid-column: 1; }
  .rv.has-rv > .rv-r { grid-column: 2; grid-row: 1 / span 2; }
  .rv-it { padding: 32px; }
}

/* ---------- consecutive paragraphs (out of the v11 base unchanged, 14-08): later than every base rule ---------- */
.p + .p{margin-top:1.1em}

/* ---------- Booking wizard (RBK-01…05; 15-UI-SPEC W1–W6, D-06…D-25): the site's wizard DOM in the vetted reference's look ---------- */
/* Styles templates/booking/_bk.html and _steps.html (W1) and _done.html (W6); 15-03…15-05 add the steps.
   Every hook stays (D-02): the selectors follow the site's DOM. No rule here colours the submit button (the RDV-20 busy
   cascade), and the coarse-pointer slop and the forced-colours borders stay in their base blocks. */
/* the reference's label: a block, Onest 500 13.5 px, --muted, no caps (replaces the v11 `.lbl`, D-28) */
.lbl { display: block; font-size: 13.5px; font-weight: 500; color: var(--muted); }
/* W1 chrome: the page, the steps bar, the heading, the grid */
.bk { padding: 24px 0 var(--sec); }
.bk-steps ol { display: flex; gap: 6px; margin: 0 0 28px; padding: 0; list-style: none; }
.bk-steps li { flex: 1; min-width: 0; border-top: 2px solid var(--line); padding-top: 10px; }
.bk-steps li.is-cur, .bk-steps li.is-done { border-top-color: var(--green); }
/* RDV-03 · the earlier steps' links and the static steps are 44 px boxes the width of their track */
.bk-step { display: block; width: 100%; min-height: 44px; text-align: left; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.bk-step .n { display: block; font-size: 12.5px; font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums; }
.is-cur .bk-step { color: var(--ink); font-weight: 600; }
a.bk-step { transition: color var(--t); }
a.bk-step:hover { color: var(--green); }
.bk-head .p { margin-top: 12px; max-width: 560px; }
.bk-grid { display: grid; gap: 16px; margin-top: 28px; }
.bk-main { min-width: 0; }
@media (min-width: 760px) {
  .bk-card { padding: 32px; }
}
@media (min-width: 1000px) {
  .bk { padding-top: 40px; }
  .bk-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
  .bk-sum { position: sticky; top: calc(var(--hdr) + 24px); }
}
@media (max-width: 999px) {
  .bk-sum { order: -1; }
}
/* W2 summary (D-08, D-09): the `--tint` card; at ≤ 999 px it sits above the steps, collapsed behind `.sum-tg`
   (booking_form.js toggles `.is-open` and `aria-expanded`; CSS alone decides where the toggle shows), and from 1000 px
   it is the open aside with its heading. Without JS nojs.css shows it open at ≤ 999 px. The JS repaints
   `.sum-h .lbl`, `.sum-tg b`, `.sum-dl dd` and `.sum-empty`. No height animation. */
.sum { background: var(--tint); border-radius: var(--r-l); padding: 6px 20px; }
.sum-h { display: none; align-items: baseline; justify-content: space-between; gap: 12px; }
.sum-h h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; }
.sum-h .lbl { font-size: 14px; font-weight: 400; color: var(--muted); }
.sum-tg { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; text-align: left; }
.sum-tg .lbl { font-size: 15px; font-weight: 600; color: var(--ink); }
.sum-tg b { margin-left: auto; font-weight: 600; }
.sum-tg[aria-expanded="true"] .pm::after { transform: rotate(0); }
.sum-body { display: none; padding-bottom: 16px; }
.sum.is-open .sum-body { display: block; }
.sum-empty { font-size: 15px; color: var(--muted); }
.sum-room { display: flex; align-items: center; gap: 14px; }
.sum-room .ph { width: 84px; height: 64px; border-radius: 8px; flex: none; }
.sum-room b { display: block; font-weight: 600; }
.sum-room small { display: block; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.sum-dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 15.5px; }
.sum-dl dt { color: var(--muted); }
.sum-dl dd { text-align: right; font-weight: 500; }
.sum-bd { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); display: grid; gap: 8px; font-size: 15px; }
.sum-bd .lbl { margin-bottom: 2px; }
.sum-bd div { display: flex; justify-content: space-between; gap: 16px; }
.sum-bd div span:first-child { color: var(--muted); }
.sum-tot { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.sum-tot span { font-size: 17px; color: var(--ink); }
.sum-tot b { font-family: var(--serif); font-weight: 600; font-size: 28px; }
.sum-note { margin-top: 6px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sum-note .ic { width: 16px; height: 16px; flex: none; color: var(--green); }
@media (min-width: 1000px) {
  .sum { padding: 28px; }
  .sum-h { display: flex; margin-bottom: 14px; }
  .sum-tg { display: none; }
  .sum-body { display: block; padding-bottom: 0; }
}
@media (max-width: 359px) {
  /* RDV-19 · the 320 px reflow probe: the summary's inline inset narrows on `.sum` (the reference's inset element) */
  .sum { padding-inline: 12px; }
  /* RDV-19 */
  .sum-tg { gap: 10px; }
}
/* W3 dates step (D-10…D-14): `div.bk-s.bk-card` > (chip) · house segments · guests row · dates pair · the inline
   calendar with the no-JS form · search. booking_wizard.js, calendar.js and stepper.js read every hook unchanged;
   no C5 stepper or C6 calendar rule is rewritten here, only their placement. */
.bk-s > :first-child { margin-top: 0; }
/* RDV-33 · the preselected-room chip: a `--bg` panel, «Номер», the name, the house and capacity line and «Усі номери» */
form.chip { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 2px; align-items: center; margin-bottom: 20px; padding: 12px 16px; border-radius: var(--r-m); background: var(--bg); box-shadow: 0 0 0 1px var(--line); }
/* RDV-33 · long names wrap in the text column */
.chip .lbl, .chip b, .chip small { grid-column: 1; overflow-wrap: anywhere; }
.chip b { font-size: 17px; font-weight: 600; line-height: 1.35; }
.chip small { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
/* RDV-33 · «Усі номери»: a 44 px `.link` submit across the text rows, never clipped at 360 px */
.chip button { grid-column: 2; grid-row: 1 / span 3; justify-self: end; min-height: 44px; }
.chip button .ic { width: 16px; height: 16px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
/* 44 px pills (RDV-03); the reference's `--line` ring becomes a real border (≥ 3:1, kept by forced colours), its 1 px
   taken from the padding so a pill keeps the reference's outer size (the house pills wrap as the reference at 360 px) */
/* RDV-09 */
.seg button { min-height: 44px; padding: 7px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--control); font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--ink); transition: background var(--t), border-color var(--t), color var(--t); }
.seg button:hover { border-color: var(--green); }
.seg button[aria-checked="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.bk-row { margin-top: 22px; }
.bk-row .stepper { max-width: 220px; margin-top: 8px; }
.dates2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 24px; background: var(--line); border-radius: var(--r-m); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.dates2 > div { background: var(--bg); padding: 12px 16px; }
.dates2 .v { display: block; margin-top: 2px; font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.dates2 .ph-v { color: var(--muted); font-weight: 500; }
.calbox { margin-top: 16px; }
@media (min-width: 761px) {
  /* RDV-25 · 308 = 7 × 44: the months stack in the dates card at 1000–1175 px (two months from 761 px, calendar.js) */
  .calbox #bk-cal .cal-months { grid-template-columns: repeat(auto-fit, minmax(308px, 1fr)); }
}
@media (max-width: 759px) {
  /* RDV-25 · the one-month calendar bleeds 16 px into the card padding, so its days stay ≥ 44 px at 360 px */
  .calbox #bk-cal { margin-inline: -16px; }
  /* RDV-25 · the hint, the legend and «Скинути» keep the card's inset */
  .calbox .cal-foot { padding-inline: 16px; }
}
.bk-act { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
/* RDV-22 · «Спочатку оберіть дати»: no `display` here, so the JS-toggled `hidden` attribute wins */
.err-l { font-size: 15px; font-weight: 500; color: var(--err); }
/* RDV-34 · the native GET date form shows only without JS (nojs.css) or after a calendar load failure */
.bk-nojs { display: none; }
/* RDV-34 */
.bk-s.is-fallback .bk-nojs { display: block; }
/* After a calendar load failure the native form is the only date UI, as with scripting off (nojs.css): the dead
   calendar, the guests row, the «Заїзд / Виїзд» pair and the JS search button go (05-UI-REVIEW fix 1). */
/* RDV-34 */
.bk-s.is-fallback #bk-cal, .bk-s.is-fallback .bk-row, .bk-s.is-fallback .dates2, .bk-s.is-fallback > .bk-act { display: none; }
.bk-nojs .f-grid { margin-top: 0; }
@media (min-width: 680px) {
  .bk-nojs .f-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* W4 results (D-15…D-19, D-22): `div.bk-r` > the bar · `.res-h` · `form.res-f` · the notices · `div.res-list` of
   `article.res` (or the combinations, or the empty state). Every figure, struck total and site-guest mark comes from
   the price seam (the booking_total and mem_small tags): the server renders it or leaves it out, no rule hides one. */
.bk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-bottom: 28px; padding: 14px 20px; background: var(--surface); border-radius: var(--r-m); box-shadow: 0 0 0 1px var(--line); }
.bk-bar > span { display: grid; }
.bk-bar .lbl { font-size: 13px; }
.bk-bar b { font-size: 17px; font-weight: 600; }
.bk-bar .link { margin-left: auto; }
.res-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.res-h span { font-size: 14.5px; color: var(--muted); }
/* RDV-40 · the house pills, then the site-guest link or tag under them (at the inline end from 760 px) */
form.res-f { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 16px; }
.res-f .mem-link, .res-f .mem-small { margin-top: 8px; }
/* the wizard's notices sit 18 px under the block above */
.bk .note { margin-top: 18px; }
/* RDV-38 · the attention notice: a real 4 px `--err` edge (kept by forced colours) on `--surface`, no icon */
.note-alert { background: var(--surface); border-inline-start: 4px solid var(--err); box-shadow: 0 0 0 1px var(--line); border-radius: var(--r-s); padding: 12px 16px; font-size: 15px; color: var(--ink); }
.note-alert .p { color: var(--ink); font-size: 15px; }
/* RDV-38 · a wrapped messenger row (360 px) keeps each link's 44 px coarse-pointer slop its own: the 26.5 px links
   20 px apart (the reference's 4 px row gap let the slops overlap); a one-row notice looks as the reference */
.note-alert .cta-row { margin-top: 8px; gap: 20px; }
.res-list { display: grid; gap: 16px; margin-top: 24px; }
/* RDV-35 · the reference card: photo on top on phones, the body, then the price column */
.res { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.res > * { min-width: 0; }
.res .ph { border-radius: 0; aspect-ratio: 16 / 10; }
/* RDV-35 · the picked card keeps the 2 px ring and the «Обрано» text in its house line */
.res.is-pick { box-shadow: 0 0 0 2px var(--green); }
.res-b { padding: 20px 20px 16px; }
.res-b h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.15; margin-top: 4px; }
/* the shared spec line's pills (partials/rooms/spec.html) on the card, as the reference's `.spec` */
.res-b .spec { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.res-am { margin-top: 14px; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.res-am li { display: flex; gap: 10px; }
.res-am li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: .62em; border-radius: 50%; background: var(--green); }
.res-p { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 2px; justify-items: start; }
.res-p b { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.2; color: var(--ink); white-space: nowrap; }
/* RDV-40 · the struck public total of a site guest (its `.sr` label stays) */
.res-p s { font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.res-p small { font-size: 14px; color: var(--muted); }
.res-p .btn { margin-top: 12px; }
/* RDV-40 · «ціна для гостей сайту» on the cards, the combinations and the filter: the C3 `.mem-tag` look */
.mem-small { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1.4 var(--sans); color: var(--green); }
.mem-small .ic { width: 16px; height: 16px; flex: none; }
/* RDV-36 · the combinations: each one a `.res`-style card, one 72 px row per room, then the combined total */
.combos { margin-top: 24px; display: grid; gap: 16px; }
.combos h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.2; }
.combos > .p { font-size: 17px; color: var(--muted); }
/* RDV-36 */
.combo { background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.combo-items { padding: 20px; display: grid; gap: 12px; }
.combo-it { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; }
.combo-it .ph { width: 72px; height: 72px; border-radius: 8px; }
.combo-it b { display: block; font-size: 17px; font-weight: 600; }
.combo-it small { display: block; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.combo-f { border-top: 1px solid var(--line); padding: 16px 20px 20px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.combo-f > span { display: grid; gap: 2px; justify-items: start; }
.combo-f b { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.2; color: var(--ink); white-space: nowrap; }
/* RDV-40 · the combination's struck public total of a site guest (its `.sr` label stays) */
.combo-f s.combo-s { font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
/* RDV-36 · a picked combination: one summary row per room */
.sum-room + .sum-room { margin-top: 12px; }
/* RDV-36 · a room photo not ready yet leaves its frame on `--bg`, visible on the `--tint` summary (15-UI-REVIEW) */
.sum .sum-room .ph { background: var(--bg); }
/* RDV-37 · the empty state: the reference card with the nearest free dates and the messengers */
.empty { margin-top: 24px; padding: 24px; background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 18px; }
.empty > p { font-size: 17px; color: var(--ink); }
/* RDV-37 · «Найближчі вільні дати»: a full-width 56 px row in a 1.5 px `--green` ring, the arrow at the inline end */
a.sugg { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center; min-height: 56px; padding: 12px 16px; background: var(--bg); border-radius: var(--r-m); box-shadow: inset 0 0 0 1.5px var(--green); text-decoration: none; color: var(--ink); transition: box-shadow var(--t); }
.sugg .lbl { grid-column: 1; grid-row: 1; }
.sugg b { grid-column: 1; grid-row: 2; font-size: 17px; font-weight: 600; }
.sugg .ic { grid-column: 2; grid-row: 1 / span 2; width: 20px; height: 20px; color: var(--green); }
a.sugg:hover { box-shadow: inset 0 0 0 2px var(--green); }
@media (min-width: 760px) {
  /* RDV-40 */
  form.res-f { grid-template-columns: minmax(0, 1fr) auto; }
  .res-f > .lbl, .res-f > .seg { grid-column: 1; }
  /* RDV-40 · a 44 px row beside the first pill row, never between two wrapped rows (15-UI-REVIEW, 16-07) */
  .res-f .mem-link, .res-f .mem-small { grid-column: 2; grid-row: 2; align-self: start; min-height: 44px; }
  /* RDV-35 · the reference row: the 200 px photo, the body, the price column on a `--line` inline-start border */
  .res { grid-template-columns: 200px minmax(0, 1fr) auto; }
  .res .ph { aspect-ratio: auto; position: relative; min-height: 100%; }
  .res .ph img { position: absolute; inset: 0; }
  .res-p { border-top: 0; border-inline-start: 1px solid var(--line); padding: 20px; align-content: center; min-width: 200px; }
}
@media (min-width: 1000px) and (max-width: 1199px) {
  /* RDV-35 · the 360 px aside leaves the reference's body 88–112 px of text: the price column moves under the body */
  .res { grid-template-columns: 200px minmax(0, 1fr); }
  .res .ph { grid-row: 1 / span 2; }
  .res-p { grid-column: 2; border-inline-start: 0; border-top: 1px solid var(--line); min-width: 0; padding: 16px 20px 20px; align-content: start; }
}
/* W5 contacts (D-19…D-24): `form.bk-form.bk-card` > the honeypot · h2 · `.f-grid` of the shared C4 fields · the
   channel pills · the add-on (the C4 `.f-check`, nothing added) · the promo · «Що буде далі» · the submit row.
   booking_form.js and booking_wizard.js read every hook unchanged; the busy and disabled submit are the base RDV-20
   `.btn` rules, so no rule here paints `#bk-submit`. */
.f-grid { display: grid; gap: 16px; margin-top: 20px; }
/* a refused POST's notice sits between the bar and the form: the card keeps 24 px from it, as the results' list does */
.bk-d > .note + .bk-form { margin-top: 24px; }
/* RDV-38 · the wizard's alert regions stay in the render tree while empty */
.bk-form .f-err:empty { display: block; }
.f-ch { margin-top: 24px; }
.radios { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.radios label { position: relative; }
/* RDV-03 · the whole pill is the radio's hit target: the invisible input covers its label */
.radios input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; }
/* 44 px pills; the reference's `--line` ring becomes a real `--control` border (≥ 3:1, kept by forced colours), its
   1 px taken from the padding as on `.seg button`, so a pill keeps the reference's outer size */
/* RDV-09 */
.radios span { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--control); font-size: 15px; font-weight: 500; cursor: pointer; transition: background var(--t), border-color var(--t), color var(--t); }
.radios label:hover span { border-color: var(--green); }
.radios input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.radios input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 3px; }
.next { margin-top: 28px; padding: 20px; border-radius: var(--r-m); background: var(--tint); }
.next h3 { font: 600 14px/1.4 var(--sans); color: var(--green); }
.next ol { margin-top: 10px; padding-left: 20px; list-style: decimal; display: grid; gap: 8px; font-size: 15.5px; color: var(--muted); }
.f-submit { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.f-submit p { font-size: 14.5px; color: var(--muted); }
/* «Маєте код?» under a `--line-2` hairline; the shrinkable track keeps the «Застосувати» row inside the card at
   360 px (the 05-17 probe's invariant, re-homed). Rendered only while the site-guest price is offered (template). */
/* RDV-39 */
#promo-box.promo { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; justify-items: start; }
/* RDV-39 · «Застосувати» takes the code field's height (stretch), not 44 px beside a 53 px field (15-UI-REVIEW) */
.promo-row { display: flex; align-items: stretch; gap: 8px; width: 100%; max-width: 420px; }
/* the code field in the shared C4 field look; the server normalises the code (normalise_code), so no caps here */
/* RDV-39 */
#promo { flex: 1; min-width: 0; min-height: 50px; padding: 12px 14px; border: 1px solid var(--control); border-radius: var(--r-s); background: var(--bg); font: inherit; font-size: 17px; color: inherit; -webkit-appearance: none; appearance: none; }
#promo:focus { outline: none; border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
#promo[aria-invalid="true"] { border-color: var(--err); box-shadow: inset 0 0 0 1px var(--err); }
#promo[aria-invalid="true"]:focus { outline: 2px solid var(--err); outline-offset: 2px; }
/* the site-guest line of the breakdown, after the public rows: both spans `--green` 600 (5.37:1 on `--tint`); the
   first span beats the muted first-span rule above by specificity, no `!important` */
/* RDV-40 */
.sum-disc, .sum-bd .sum-disc span:first-child { color: var(--green); font-weight: 600; }
/* «Ціна для гостей сайту −10%» under the total: the C3 `.mem-link`, a 44 px target */
/* RDV-40 */
.sum-mem { min-height: 44px; margin-top: 8px; }
@media (min-width: 680px) {
  .f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-grid .f.full { grid-column: 1 / -1; }
}
@media (max-width: 679px) {
  /* one column: the empty cell beside the email goes */
  .f-grid > div[aria-hidden="true"] { display: none; }
}
@media (max-width: 759px) {
  /* RDV-41 · the submit spans the card; only its width, so the RDV-20 busy and disabled rules decide its look */
  #bk-submit { width: 100%; }
}
/* the card heading of the results, the contacts form and the done screen */
.res-h h2, .bk-form h2, .done h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.15; }
/* W6 done: the site's copy in a .bk-card; the done step keeps the grid's two tracks with no aside (.bk-grid.is-done) */
.done { display: grid; gap: 16px; justify-items: start; }
/* RDV-42 */
.done-check { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.done-check .ic { width: 28px; height: 28px; stroke-width: 2.2; }
.done > .p { font-size: 17px; color: var(--muted); }
/* RDV-42 */
.done-mail { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.done-mail .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--green); }
/* RDV-42 · a long unbreakable email wraps inside the line */
.done-mail span { min-width: 0; overflow-wrap: anywhere; }
/* RDV-42 */
.done-dl { width: 100%; display: grid; grid-template-columns: minmax(140px, max-content) minmax(0, 1fr); border-top: 1px solid var(--line-2); font-size: 15.5px; line-height: 1.5; }
.done-dl dt, .done-dl dd { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.done-dl dt { color: var(--muted); padding-right: 16px; }
/* RDV-42 · long names and emails wrap inside the value */
.done-dl dd { font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.done-dl dd.id { font-weight: 600; font-variant-numeric: tabular-nums; }
.done-dl dd.big { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.2; }
@media (max-width: 679px) {
  .done-dl { grid-template-columns: minmax(0, 1fr); }
  .done-dl dt { padding-bottom: 0; border-bottom: 0; }
  .done-dl dd { padding-top: 2px; }
}

/* ---------- motion ---------- */
/* RDV-06 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
