:root {
  --bg: #15110e;
  --bg-alt: #1c1713;
  --surface: #241e19;
  --surface-2: #302821;
  --text: #f5ece1;
  --muted: #b3a493;
  --accent: #d4b48c;
  --accent-rgb: 212, 180, 140;
  --accent-deep: #b98f65;
  --on-accent: #2a1f16;
  --soft-text: #e4d8c9;
  --accent-2: #e6cca6;
  --line: rgba(255, 255, 255, .09);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #e6cca6, var(--accent-deep));
  color: #fff; font: 700 16px var(--font-body); text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px rgba(var(--accent-rgb), .35);
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(var(--accent-rgb), .5); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn--ghost { background: transparent; border: 1.5px solid var(--line); box-shadow: none; }
.btn--ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }
.link-arrow { color: var(--accent); font-weight: 700; text-decoration: none; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(21, 17, 14, .72); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); font: 800 18px var(--font-display);
}
.logo__text { font: 700 18px var(--font-display); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 600; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--text); }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; margin: 5px 0; background: var(--text); transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Image fallback placeholder */
.img-ph {
  display: grid; place-items: center; text-align: center; padding: 16px;
  background:
    radial-gradient(circle at 25% 20%, rgba(var(--accent-rgb), .45), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(var(--accent-rgb), .25), transparent 50%),
    var(--surface-2);
  color: rgba(255, 255, 255, .7); font-size: 13px; font-weight: 600; letter-spacing: .02em;
}

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 60px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media > * { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(21, 17, 14, .95) 0%, rgba(21, 17, 14, .7) 50%, rgba(21, 17, 14, .3) 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero__content { position: relative; }
.hero__title { font-size: clamp(48px, 9vw, 110px); font-weight: 800; letter-spacing: -.02em; }
.hero__lead { max-width: 540px; font-size: 19px; color: var(--soft-text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 48px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 40px; list-style: none; padding: 0; margin: 0; }
.hero__facts strong { display: block; font: 700 28px var(--font-display); }
.hero__facts span { color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section--alt { background: var(--bg-alt); }
.section__title { font-size: clamp(30px, 4.5vw, 48px); max-width: 760px; margin-bottom: 28px; }

/* About */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.about__text > p { color: var(--soft-text); }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; background: rgba(var(--accent-rgb), .18); color: var(--accent);
}
.about__media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about__media > * { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.about__media > *:nth-child(2) { margin-top: 48px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; padding: 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), .5); }
.card h3 { font-size: 22px; }
.card p { color: var(--muted); flex: 1; }
.card--hot { background: linear-gradient(160deg, rgba(var(--accent-rgb), .22), var(--surface) 60%); border-color: rgba(var(--accent-rgb), .4); }
.card--wide { grid-column: span 3; }
.card__tag {
  align-self: flex-start; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px;
  background: var(--accent); font-size: 12px; font-weight: 700;
}
.card__meta { display: flex; gap: 28px; margin: 12px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.card__meta dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.card__meta dd { margin: 2px 0 0; font: 700 18px var(--font-display); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gallery__item { padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--surface); }
.gallery__item > * { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover > * { transform: scale(1.05); }
.gallery__item--big { grid-column: span 2; grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

/* Location */
.location { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: stretch; }
.route { list-style: none; counter-reset: r; padding: 0; margin: 0 0 32px; display: grid; gap: 18px; }
.route li { counter-increment: r; position: relative; padding-left: 52px; }
.route li::before {
  content: counter(r); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-2); font: 700 15px var(--font-display); color: var(--accent);
}
.route strong { display: block; }
.route span { color: var(--muted); }
.contacts { display: grid; gap: 4px; margin-bottom: 28px; }
.contacts a { text-decoration: none; }
.contacts__phone { font: 700 24px var(--font-display); }
.contacts__hours { color: var(--muted); margin: 8px 0 0; white-space: pre-line; }
.location__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.location__map { min-height: 460px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.location__map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }

/* Booking */
.booking { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.booking__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.booking__intro > p { color: var(--soft-text); }
.booking__summary {
  margin-top: 28px; padding: 24px; border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(var(--accent-rgb), .2), var(--surface)); border: 1px solid rgba(var(--accent-rgb), .35);
  display: grid; gap: 4px;
}
.booking__summary span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.booking__summary strong { font: 800 34px var(--font-display); }
.booking__summary small { color: var(--soft-text); font-size: 15px; }

.form { padding: clamp(22px, 4vw, 40px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form__group { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
.form__group legend { font: 700 18px var(--font-display); margin-bottom: 16px; padding: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--muted); }
.field em { font-style: normal; opacity: .7; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--bg); color: var(--text);
  font: 500 16px var(--font-body); transition: border-color .2s; color-scheme: dark;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input.is-invalid { border-color: #d98d7a; }

.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip label {
  display: grid; gap: 2px; height: 100%; padding: 14px 16px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1.5px solid var(--line); background: var(--bg); transition: border-color .2s, background .2s;
}
.chip label b { font-weight: 700; }
.chip label small { color: var(--muted); }
.chip input:checked + label { border-color: var(--accent); background: rgba(var(--accent-rgb), .12); }
.chip input:focus-visible + label { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.slots .muted { grid-column: 1 / -1; margin: 0; }
.slot {
  padding: 12px 0; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--bg); color: var(--text); font: 600 15px var(--font-body); cursor: pointer; transition: all .2s;
}
.slot:hover:not(:disabled) { border-color: var(--accent); }
.slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.slot:disabled { opacity: .3; cursor: not-allowed; text-decoration: line-through; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.form__error { color: #e0937f; min-height: 1.5em; font-weight: 600; margin: 0 0 12px; }

/* Modal & lightbox */
dialog { border: 0; padding: 0; color: var(--text); }
dialog::backdrop { background: rgba(10, 8, 6, .8); backdrop-filter: blur(4px); }
.modal { width: min(460px, 100% - 32px); padding: 36px 32px 28px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.modal h3 { font-size: 24px; }
.modal p { color: var(--soft-text); white-space: pre-line; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.modal__close-form, .lightbox > form { position: absolute; top: 10px; right: 12px; margin: 0; }
.modal__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--text); font-size: 24px; cursor: pointer; }
.lightbox { max-width: 92vw; max-height: 90vh; background: transparent; overflow: visible; }
.lightbox img { max-width: 92vw; max-height: 90vh; border-radius: var(--radius-sm); }

/* Footer */
.footer { padding: 48px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer .logo { margin-bottom: 8px; }
.footer p { margin: 0; }
.socials { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; }
.socials a { text-decoration: none; color: var(--muted); font-weight: 600; }
.socials a:hover { color: var(--accent); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .about, .location, .booking { grid-template-columns: 1fr; gap: 40px; }
  .booking__intro { position: static; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card--wide { grid-column: span 2; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 16px 24px; background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .35s ease; z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; }
  .cards { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .form__row { grid-template-columns: 1fr; }
  .hero__facts { gap: 24px; }
  .location__map, .location__map iframe { min-height: 340px; }
  .about__media > *:nth-child(2) { margin-top: 24px; }
}

/* Grid overflow guards */
.about > *, .location > *, .booking > *, .cards > *, .gallery > * { min-width: 0; }
.about__media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.img-ph { overflow-wrap: anywhere; }

/* Long street name: scale heading to column width so the word never gets clipped */
.location__info { container-type: inline-size; }
.location__title { font-size: clamp(18px, 6.8cqi, 44px); overflow-wrap: normal; }

/* Rental booking */
.form__group legend em { font: 500 14px var(--font-body); }
.durations { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.dur {
  display: grid; gap: 2px; padding: 12px 8px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--bg); color: var(--text); font: 600 15px var(--font-body); cursor: pointer; transition: all .2s;
}
.dur small { color: var(--muted); font-weight: 500; }
.dur:hover:not(:disabled) { border-color: var(--accent); }
.dur[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.dur[aria-pressed="true"] small { color: #fff; }
.dur:disabled { opacity: .3; cursor: not-allowed; }
.form__send { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form__hint { font-size: 13px; margin: 14px 0 0; }
@media (max-width: 760px) { .form__send { grid-template-columns: 1fr; } }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100;
  width: max-content; max-width: calc(100% - 32px); padding: 14px 20px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid rgba(var(--accent-rgb), .4); box-shadow: var(--shadow);
  font-weight: 600; text-align: center;
}
.toast[hidden] { display: none; }

/* Hourly grid */
.hours-hint { margin: -6px 0 14px; }
.hours { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hours .muted { grid-column: 1 / -1; margin: 0; }
.hour {
  display: grid; gap: 2px; justify-items: start; text-align: left;
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--bg); color: var(--text); font: 500 13px var(--font-body); cursor: pointer;
  transition: background .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.hour b { font: 700 15px var(--font-body); white-space: nowrap; }
.hour span { color: var(--tier-low); }
.hour small { color: var(--muted); }
.hour:hover:not(:disabled) { border-color: var(--accent); }
.hour[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.hour[aria-pressed="true"] span, .hour[aria-pressed="true"] small { color: #fff; }
.hour:disabled { opacity: .35; cursor: not-allowed; }
.hour:disabled span { color: var(--muted); }
@media (max-width: 520px) { .hours { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Closed mobile menu must be fully off-screen and non-interactive */
@media (max-width: 760px) {
  .nav { transform: translateY(calc(-100% - var(--header-h))); visibility: hidden; transition: transform .35s ease, visibility 0s .35s; }
  .nav.is-open { transform: none; visibility: visible; transition: transform .35s ease; }
}

/* Gallery: 1 landscape + 3 portrait photos */
.gallery { grid-template-columns: 2fr 1fr 1fr 1fr; grid-auto-rows: 240px; }
.gallery__item { grid-row: span 2; }
.gallery__item--big { grid-column: auto; grid-row: span 2; }
@media (max-width: 980px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; }
  .gallery__item { grid-row: auto; aspect-ratio: 3 / 4; }
  .gallery__item--big { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__item:last-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
}
/* Real photos are grey — keep hero text readable but let the hall show through */
.hero__media img { object-position: center 60%; }

/* Booked hours */
.hour.is-busy { opacity: .55; background: repeating-linear-gradient(135deg, var(--bg) 0 8px, rgba(255,255,255,.03) 8px 16px); }
.hour.is-busy span { color: #e0937f; }
.hours__warn { grid-column: 1 / -1; margin: 0 0 4px; font-size: 13px; color: var(--accent-2); }

/* ---------- Tariffs ---------- */
:root { --tier-low: #abc29b; --tier-mid: #e5c48d; --tier-high: #dc9f80; }

/* Price in hour cells */
.hour span { font-weight: 600; }
.hour.tier-low span { color: var(--tier-low); }
.hour.tier-mid span { color: var(--tier-mid); }
.hour.tier-high span { color: var(--tier-high); }
.hour[aria-pressed="true"] span { color: #fff; }

/* Price cards */
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.price-card { padding: 28px 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.price-card header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.price-card h3 { margin: 0; font-size: 22px; }
.price-card header span { color: var(--muted); font-weight: 600; font-size: 14px; }
.price-card ul { list-style: none; margin: 0; padding: 0; }
.price-card li {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0 16px 18px; border-top: 1px solid var(--line); position: relative;
}
.price-card li::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; }
.price-card li.tier-low::before { background: var(--tier-low); }
.price-card li.tier-mid::before { background: var(--tier-mid); }
.price-card li.tier-high::before { background: var(--tier-high); }
.price-card__time { font-weight: 600; white-space: nowrap; }
.price-card__val { display: grid; grid-template-columns: auto auto; column-gap: 10px; row-gap: 2px; align-items: baseline; justify-items: end; text-align: right; }
.price-card__val b { font: 700 20px var(--font-display); white-space: nowrap; }
.price-card__val small { color: var(--muted); font-size: 13px; justify-self: start; white-space: nowrap; }
.price-card__val b:only-child { grid-column: 1 / -1; }
.prices__note { margin: 16px 0 0; font-size: 14px; }

/* Group size segmented control */
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg); border: 1.5px solid var(--line); }
.seg__btn {
  padding: 10px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  font: 600 15px var(--font-body); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s;
}
.seg__btn[aria-checked="true"] { background: var(--accent); color: #fff; }
.seg__btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.seg__hint { margin: 10px 0 0; }

/* Total in form */
.total { margin: 4px 0 16px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--bg); border: 1.5px solid rgba(var(--accent-rgb), .35); }
.total[hidden] { display: none; }
.total__lines { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.total__lines:not(:empty) { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px dashed var(--line); }
.total__lines div { display: flex; justify-content: space-between; gap: 12px; }
.total__lines span:last-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.total__sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.total__sum span { font-weight: 600; }
.total__sum strong { font: 800 26px var(--font-display); white-space: nowrap; }

.booking__price { margin-top: 8px; font: 800 24px var(--font-display); color: var(--text); }
.booking__price:empty { display: none; }

@media (max-width: 760px) {
  .prices { grid-template-columns: 1fr; }
  .price-card { padding: 22px 20px; }
  .seg { display: grid; width: 100%; }
  .seg__btn { padding: 10px 8px; }
}

/* Logo image */
.logo__img { display: block; height: 54px; width: auto; }
.logo--footer .logo__img { height: 60px; }
@media (max-width: 760px) { .logo__img { height: 46px; } }


/* ---------- Warm beige theme: text on light accent surfaces must be dark ---------- */
.btn { color: var(--on-accent); box-shadow: 0 10px 28px rgba(var(--accent-rgb), .22); }
.btn:hover { box-shadow: 0 14px 34px rgba(var(--accent-rgb), .32); }
.btn--ghost { color: var(--text); background: transparent; box-shadow: none; }
.btn--ghost:hover { border-color: var(--accent); box-shadow: none; }
.hour[aria-pressed="true"], .slot[aria-pressed="true"], .dur[aria-pressed="true"] { color: var(--on-accent); }
.hour[aria-pressed="true"] span, .hour[aria-pressed="true"] small, .dur[aria-pressed="true"] small { color: var(--on-accent); opacity: .8; }
.seg__btn[aria-checked="true"] { color: var(--on-accent); }
.card__tag { color: var(--on-accent); }
.toast { border-color: rgba(var(--accent-rgb), .45); }
.checklist li::before { background: rgba(var(--accent-rgb), .18); color: var(--accent); }
.hero__media::after {
  background: linear-gradient(90deg, rgba(21, 17, 14, .94) 0%, rgba(21, 17, 14, .68) 50%, rgba(21, 17, 14, .25) 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.eyebrow { color: var(--accent); }

/* ---------- Contrast pass ---------- */
:root {
  --bg: #14100d;
  --bg-alt: #1f1914;
  --surface: #2a221c;
  --surface-2: #362c24;
  --field: #1a1511;
  --line: rgba(255, 236, 214, .13);
  --line-strong: rgba(255, 236, 214, .22);
  --muted: #c4b5a3;
  --soft-text: #ebe0d2;
  --tier-low: #bcd6a8;  --tier-low-bg: rgba(188, 214, 168, .14);
  --tier-mid: #f1d197;  --tier-mid-bg: rgba(241, 209, 151, .14);
  --tier-high: #eeae90; --tier-high-bg: rgba(238, 174, 144, .15);
}

/* Cards & panels: lighter surface + visible border */
.card, .price-card, .form { background: var(--surface); border-color: var(--line-strong); }
.location__map { border-color: var(--line-strong); }
.form__group legend { color: var(--text); }

/* Inputs */
.field input, .field textarea { background: var(--field); border-color: var(--line-strong); }
.field input::placeholder, .field textarea::placeholder { color: #8f8070; }

/* Group toggle */
.seg { background: var(--field); border-color: var(--line-strong); }
.seg__btn { color: var(--soft-text); }

/* Hour cells: raised tile + soft tinted price pill */
.hour {
  gap: 8px; padding: 12px 14px 13px;
  background: var(--surface-2); border-color: var(--line-strong);
}
.hour b { color: var(--text); }
.hour span {
  justify-self: start; padding: 3px 10px; border-radius: 999px;
  font: 700 13px var(--font-body); letter-spacing: .01em;
  background: rgba(255, 255, 255, .06); color: var(--soft-text);
}
.hour.tier-low span  { color: var(--tier-low);  background: var(--tier-low-bg);  box-shadow: inset 0 0 0 1px rgba(188, 214, 168, .22); }
.hour.tier-mid span  { color: var(--tier-mid);  background: var(--tier-mid-bg);  box-shadow: inset 0 0 0 1px rgba(241, 209, 151, .22); }
.hour.tier-high span { color: var(--tier-high); background: var(--tier-high-bg); box-shadow: inset 0 0 0 1px rgba(238, 174, 144, .24); }
@media (hover: hover) { .hour:hover:not(:disabled):not([aria-pressed="true"]) { border-color: var(--accent); background: #3d3229; } }

/* Selected: beige tile, price pill darkened for legibility */
.hour[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.hour[aria-pressed="true"] b { color: var(--on-accent); }
.hour[aria-pressed="true"] span,
.hour[aria-pressed="true"].tier-low span,
.hour[aria-pressed="true"].tier-mid span,
.hour[aria-pressed="true"].tier-high span {
  color: var(--on-accent); background: rgba(42, 31, 22, .14); box-shadow: inset 0 0 0 1px rgba(42, 31, 22, .18); opacity: 1;
}

/* Past / busy */
.hour:disabled { opacity: .5; background: var(--field); }
.hour:disabled span { background: transparent; box-shadow: none; padding-left: 0; color: var(--muted); }
.hour.is-busy { opacity: .7; background: repeating-linear-gradient(135deg, var(--field) 0 8px, rgba(255, 236, 214, .04) 8px 16px); }
.hour.is-busy span { color: #e9a08c; }

/* Price cards dots a touch larger */
.price-card li::before { width: 10px; height: 10px; margin-top: -5px; }
.price-card li { border-top-color: var(--line-strong); }

/* Total box */
.total { background: var(--field); border-color: rgba(var(--accent-rgb), .45); }
.total__lines { color: var(--soft-text); }

/* Summary card */
.booking__summary { border-color: rgba(var(--accent-rgb), .45); background: linear-gradient(150deg, rgba(var(--accent-rgb), .16), var(--surface)); }

/* Touch screens keep :hover "stuck" after a tap — never let it override selection */
@media (hover: none) { .hour:hover:not(:disabled), .slot:hover:not(:disabled), .dur:hover:not(:disabled) { border-color: var(--line-strong); } }

/* Date input: iOS/Android give it an intrinsic width that overflows the form */
.field { min-width: 0; }
.field input[type="date"] {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; min-width: 0; max-width: 100%;
  min-height: 52px; line-height: 1.2;
}
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.85) sepia(.3); cursor: pointer; }
.form, .form__group { min-width: 0; max-width: 100%; }

/* ---------- About: key specs ---------- */
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0 28px; }
.specs div { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line-strong); }
.specs dt { font: 800 24px var(--font-display); color: var(--accent); white-space: nowrap; }
.specs dd { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

.route__note { margin: -12px 0 24px; font-size: 14px; }

/* ---------- Schedule grid (days × hours) ---------- */
.sched { min-width: 0; }
.sched__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sched__bar strong { font: 700 18px var(--font-display); }
.sched__nav {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  background: var(--surface-2); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer;
  transition: border-color .2s, opacity .2s;
}
.sched__nav:hover:not(:disabled) { border-color: var(--accent); }
.sched__nav:disabled { opacity: .3; cursor: default; }

.sched__grid {
  display: grid; grid-template-columns: 52px repeat(var(--cols), minmax(0, 1fr));
  gap: 5px; padding: 6px; border-radius: var(--radius-sm); background: var(--field); border: 1px solid var(--line-strong);
}
.sched__corner { position: sticky; top: 0; }
.sched__day {
  display: grid; gap: 1px; justify-items: center; padding: 8px 2px; border-radius: 8px;
  background: var(--surface-2); font-size: 12px; color: var(--muted); text-align: center;
}
.sched__day b { font-size: 13px; color: var(--text); font-weight: 700; }
.sched__day.is-weekend b { color: var(--accent); }
.sched__day.is-today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.sched__time { display: grid; place-items: center; font: 700 13px var(--font-body); color: var(--soft-text); }

.cell {
  min-width: 0; height: 40px; padding: 0 2px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--soft-text);
  font: 700 12.5px var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: clip;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.cell.tier-low  { color: var(--tier-low);  background: linear-gradient(var(--tier-low-bg), var(--tier-low-bg)), var(--surface-2); }
.cell.tier-mid  { color: var(--tier-mid);  background: linear-gradient(var(--tier-mid-bg), var(--tier-mid-bg)), var(--surface-2); }
.cell.tier-high { color: var(--tier-high); background: linear-gradient(var(--tier-high-bg), var(--tier-high-bg)), var(--surface-2); }
@media (hover: hover) { .cell:hover:not(:disabled):not([aria-pressed="true"]) { border-color: var(--accent); } }
.cell[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cell.is-busy {
  cursor: not-allowed; color: #e9a08c; font-weight: 600; font-size: 11px;
  background: repeating-linear-gradient(135deg, var(--field) 0 6px, rgba(255, 236, 214, .05) 6px 12px);
}
.cell.is-off { cursor: default; background: transparent; border-color: transparent; color: rgba(255, 236, 214, .18); }
.cell.is-loading { opacity: .55; }
.sched .hours__warn { margin: 10px 0 0; }

.sched__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 12px 0 0; font-size: 13px; }
.sched__legend li { display: flex; align-items: center; gap: 8px; }
.lg { width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--line-strong); }
.lg--free { background: linear-gradient(var(--tier-low-bg), var(--tier-low-bg)), var(--surface-2); }
.lg--sel { background: var(--accent); border-color: var(--accent); }
.lg--busy { background: repeating-linear-gradient(135deg, var(--field) 0 3px, rgba(255, 236, 214, .25) 3px 5px); }

.total__when { font-weight: 700; margin-bottom: 10px; }

@media (max-width: 520px) {
  .sched__grid { grid-template-columns: 44px repeat(var(--cols), minmax(0, 1fr)); gap: 4px; padding: 4px; }
  .cell { height: 38px; font-size: 11.5px; border-radius: 6px; }
  .sched__time { font-size: 12px; }
  .specs { gap: 8px; }
  .specs div { padding: 12px; }
  .specs dt { font-size: 19px; }
  .specs dd { font-size: 12px; }
}

/* ---------- Rules ---------- */
.rules__main .card p { color: var(--soft-text); }
.acc { display: grid; gap: 10px; margin-top: 20px; }
.acc details { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line-strong); }
.acc summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font: 700 17px var(--font-display);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font: 400 26px var(--font-body); color: var(--accent); transition: transform .2s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc ul { margin: 0; padding: 0 22px 20px 42px; display: grid; gap: 8px; color: var(--soft-text); }
.acc li::marker { color: var(--accent); }

/* Booking: schedule needs full width */
.booking { grid-template-columns: 1fr; gap: 28px; }
.booking__intro { position: static; max-width: 760px; }
.booking .form { max-width: 1000px; }
@media (max-width: 520px) {
  .booking .form { padding: 18px 14px; }
  .sched__grid { gap: 3px; padding: 3px; }
}

/* ===== Плавность и мягкие переходы ===== */
html { scroll-behavior: smooth; }

/* Плашки времени и цен: плавная смена цвета и лёгкое нажатие */
.cell {
  transition: background-color .25s ease, border-color .25s ease, color .25s ease,
              transform .18s ease, box-shadow .25s ease;
}
.cell:active:not(:disabled) { transform: scale(.94); }
.cell[aria-pressed="true"] { box-shadow: 0 6px 18px rgba(var(--accent-rgb), .35); }

/* Переключатель группы */
.seg__btn { transition: background-color .3s ease, color .3s ease, transform .15s ease; }
.seg__btn:active { transform: scale(.97); }

/* Чипы и кнопки */
.chip label { transition: border-color .3s ease, background-color .3s ease, transform .15s ease; }
.chip label:active { transform: scale(.98); }
.btn { transition: transform .25s ease, box-shadow .3s ease, opacity .3s ease, background-color .3s ease; }
.btn:active:not(:disabled) { transform: translateY(0) scale(.98); }

/* Появление блоков при прокрутке: мягче и с небольшой задержкой по порядку */
.reveal { transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1); }
.gallery__item.reveal:nth-child(2) { transition-delay: .08s; }
.gallery__item.reveal:nth-child(3) { transition-delay: .16s; }
.gallery__item.reveal:nth-child(4) { transition-delay: .24s; }
.route li.reveal:nth-child(2) { transition-delay: .08s; }
.route li.reveal:nth-child(3) { transition-delay: .16s; }
.route li.reveal:nth-child(4) { transition-delay: .24s; }

/* Фото в галерее: плавное увеличение при наведении */
@media (hover: hover) {
  .gallery__item:hover > * { transform: scale(1.04); }
}

/* Уважать настройку «уменьшить движение» в системе */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Плюсик в аккордеоне плавно поворачивается в крестик */
.acc summary::after { transition: transform .45s cubic-bezier(.22,.61,.36,1); }
.acc details.is-closing summary::after { transform: none; }
.acc details { transition: border-color .3s ease; }
.acc details[open]:not(.is-closing) { border-color: rgba(var(--accent-rgb), .45); }

/* ===== Инвентарь и оборудование ===== */
.equip { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.equip__media { position: relative; margin: 0; padding-bottom: 90px; }
.equip__main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); display: block; box-shadow: var(--shadow); }
.equip__inset {
  position: absolute; right: -18px; bottom: 0; width: 58%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius); border: 6px solid var(--bg); box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.equip__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.equip__tile {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line-strong);
  transition: transform .35s cubic-bezier(.22,.61,.36,1), border-color .35s ease, background-color .35s ease, opacity .9s cubic-bezier(.22,.61,.36,1);
}
.equip__tile h3 { margin: 2px 0 4px; font-size: 17px; }
.equip__tile p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
@media (hover: hover) { .equip__tile.is-visible:hover { transform: translateY(-3px); border-color: rgba(var(--accent-rgb), .5); } }
.equip__tile--hero {
  grid-column: 1 / -1; padding: 24px 26px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .2), var(--surface) 65%);
  border-color: rgba(var(--accent-rgb), .4);
}
.equip__tile--hero h3 { font-size: 22px; }
.equip__tile--hero p { font-size: 15.5px; }
.equip__icon {
  flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(var(--accent-rgb), .14); color: var(--accent);
}
.equip__tile--hero .equip__icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(var(--accent-rgb), .22); }
.equip__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.equip__tile--hero .equip__icon svg { width: 28px; height: 28px; }
.equip__tile:nth-child(2n).reveal { transition-delay: .06s; }
.equip__tile:nth-child(3n).reveal { transition-delay: .12s; }

/* Удобства */
.comfort__title { margin: clamp(48px, 7vw, 80px) 0 20px; font-size: clamp(22px, 3vw, 28px); }
.comfort { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.comfort__card { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface); border: 1px solid var(--line-strong); }
.comfort__card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.22,.61,.36,1); }
@media (hover: hover) { .comfort__card:hover img { transform: scale(1.04); } }
.comfort__card figcaption {
  position: absolute; inset: auto 0 0 0; padding: 48px 20px 18px; display: grid; gap: 4px;
  background: linear-gradient(transparent, rgba(10, 8, 6, .88));
}
.comfort__card figcaption b { font: 700 18px var(--font-display); color: var(--text); }
.comfort__card figcaption span { color: var(--soft-text, var(--muted)); font-size: 14px; }
.comfort__card--info { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 28px; aspect-ratio: auto;
  background: linear-gradient(160deg, rgba(var(--accent-rgb), .16), var(--surface) 70%); }
.comfort__card--info b { color: var(--accent); font-size: 18px; }
.comfort__card--info p { margin: 0 0 14px; color: var(--muted); }
.comfort__card--info p:last-child { margin-bottom: 0; }
.comfort__card:nth-child(2).reveal { transition-delay: .08s; }
.comfort__card:nth-child(3).reveal { transition-delay: .16s; }

/* ===== Новая галерея ===== */
.gallery.gallery--v2 { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; grid-template-areas:
  "a a b c" "a a b d" "e f g g"; }
.gallery--v2 .gallery__item { grid-row: auto; grid-column: auto; aspect-ratio: auto; }
.gallery--v2 .g-a { grid-area: a; } .gallery--v2 .g-b { grid-area: b; } .gallery--v2 .g-c { grid-area: c; }
.gallery--v2 .g-d { grid-area: d; } .gallery--v2 .g-e { grid-area: e; } .gallery--v2 .g-f { grid-area: f; }
.gallery--v2 .g-g { grid-area: g; }
.gallery--v2 .g-g img { object-position: center 40%; }
.gallery--v2 .gallery__item > * { transition: transform .8s cubic-bezier(.22,.61,.36,1); }
.gallery--v2 .gallery__item.reveal:nth-child(5) { transition-delay: .1s; }
.gallery--v2 .gallery__item.reveal:nth-child(6) { transition-delay: .18s; }
.gallery--v2 .gallery__item.reveal:nth-child(7) { transition-delay: .26s; }

@media (max-width: 900px) {
  .equip { grid-template-columns: 1fr; }
  .equip__media { max-width: 520px; margin-inline: auto; width: 100%; }
  .equip__inset { right: 0; }
  .comfort { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comfort__card--info { grid-column: 1 / -1; }
  .gallery.gallery--v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px;
    grid-template-areas: "a a" "a a" "b c" "b d" "e f" "g g"; }
  .gallery--v2 .gallery__item:last-child { aspect-ratio: auto; }
}
@media (max-width: 560px) {
  .equip__list { grid-template-columns: 1fr; }
  .equip__media { padding-bottom: 70px; }
  .equip__inset { width: 55%; border-width: 4px; }
  .comfort { grid-template-columns: 1fr 1fr; gap: 10px; }
  .comfort__card figcaption { padding: 36px 14px 14px; }
  .comfort__card figcaption b { font-size: 16px; }
  .comfort__card figcaption span { font-size: 12.5px; }
  .gallery.gallery--v2 { grid-auto-rows: 150px; gap: 10px; }
}
.gallery.gallery--v2 { grid-auto-rows: unset; grid-template-rows: 230px 230px 320px; }
.gallery--v2 .g-g img { object-position: center 35%; }
.gallery--v2 .g-f img { object-position: center 70%; }
.equip__tile:last-child { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .gallery.gallery--v2 { grid-template-rows: none; grid-auto-rows: 210px;
    grid-template-areas: "a a" "a a" "b c" "b d" "e f" "g g"; }
}
@media (max-width: 560px) { .gallery.gallery--v2 { grid-auto-rows: 150px; } .equip__tile:last-child { grid-column: auto; } }
@media (max-width: 560px) {
  .equip__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .equip__tile:not(.equip__tile--hero) { flex-direction: column; gap: 10px; padding: 14px; }
  .equip__tile:not(.equip__tile--hero) .equip__icon { width: 36px; height: 36px; border-radius: 10px; }
  .equip__tile:not(.equip__tile--hero) h3 { font-size: 15px; }
  .equip__tile:not(.equip__tile--hero) p { font-size: 13px; }
  .equip__tile:last-child { grid-column: 1 / -1; }
}

/* ===== Выбор в нескольких днях ===== */
.total__when { display: grid; gap: 8px; margin-bottom: 14px; font-weight: 400; }
.tday { padding: 12px 14px; border-radius: 10px; background: rgba(var(--accent-rgb), .07); border: 1px solid rgba(var(--accent-rgb), .18);
  animation: tday-in .4s cubic-bezier(.22,.61,.36,1); }
@keyframes tday-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.tday__head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; }
.tday__what { display: grid; gap: 2px; min-width: 0; }
.tday__what b { font-weight: 700; }
.tday__what span { color: var(--soft-text, var(--muted)); font-size: 14px; }
.tday__sum { font-weight: 700; white-space: nowrap; }
.tday__del {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent;
  color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center;
  transition: color .25s ease, border-color .25s ease, background-color .25s ease, transform .15s ease;
}
.tday__del:hover { color: var(--text); border-color: var(--accent); background: rgba(var(--accent-rgb), .12); }
.tday__del:active { transform: scale(.9); }
.tday__runs { display: grid; gap: 4px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.tday__runs div { display: flex; justify-content: space-between; gap: 10px; }
.tday__runs span:last-child { white-space: nowrap; color: var(--soft-text, var(--text)); }
.total { transition: opacity .4s ease, transform .4s cubic-bezier(.22,.61,.36,1); }
.total:not(.is-shown) { opacity: 0; transform: translateY(8px); }
@media (max-width: 520px) { .tday { padding: 10px 12px; } .tday__what span { font-size: 13px; } }
@media (max-width: 520px) { .total__sum span { font-size: 14px; } .total__sum strong { font-size: 22px; } }

/* ===== Согласие на обработку ПДн ===== */
.consent { display: flex; align-items: flex-start; gap: 12px; margin: 6px 0 4px; cursor: pointer; font-size: 15px; line-height: 1.45; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.consent__box {
  flex: none; width: 24px; height: 24px; margin-top: -1px; border-radius: 7px; display: grid; place-items: center;
  border: 1.5px solid var(--line-strong); background: var(--field);
  transition: background-color .25s ease, border-color .25s ease, transform .15s ease, box-shadow .25s ease;
}
.consent__box svg { width: 15px; height: 15px; fill: none; stroke: var(--on-accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .3s cubic-bezier(.22,.61,.36,1); }
.consent:hover .consent__box { border-color: var(--accent); }
.consent:active .consent__box { transform: scale(.9); }
.consent input:checked + .consent__box { background: var(--accent); border-color: var(--accent); box-shadow: 0 4px 14px rgba(var(--accent-rgb), .35); }
.consent input:checked + .consent__box svg { stroke-dashoffset: 0; }
.consent input:focus-visible + .consent__box { outline: 2px solid var(--accent); outline-offset: 3px; }
.consent__text a { color: var(--accent); text-underline-offset: 3px; }
.consent__need { margin: 0 0 14px 36px; font-size: 13px; color: var(--muted); max-height: 24px; overflow: hidden;
  transition: opacity .3s ease, max-height .3s ease, margin .3s ease; }
.consent__need.is-hidden { opacity: 0; max-height: 0; margin-bottom: 10px; }
.footer__copy a { color: inherit; text-underline-offset: 3px; }
.footer__copy a:hover { color: var(--text); }

/* ===== Страницы документов ===== */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 16px 80px; }
.doc__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.doc__top .logo__img { height: 44px; width: auto; }
.doc__back { color: var(--muted); text-decoration: none; font-weight: 600; transition: color .2s; }
.doc__back:hover { color: var(--text); }
.doc h1 { font: 800 clamp(24px, 4.5vw, 36px)/1.2 var(--font-display); margin: 0 0 8px; }
.doc__date { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font: 700 19px/1.35 var(--font-display); margin: 36px 0 12px; }
.doc p, .doc li { color: var(--soft-text, var(--text)); line-height: 1.65; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--accent); text-underline-offset: 3px; }
.doc__card { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line-strong); }
.doc__card p { margin: 4px 0; }
#tgBtn { transition: opacity .35s ease, filter .35s ease, box-shadow .35s ease, transform .25s ease; }
#tgBtn:disabled { opacity: .35; filter: grayscale(.8); box-shadow: none; }
.form__error:empty { margin: 0; min-height: 0; }

/* ===== Видео маршрута ===== */
.location__media { display: grid; grid-template-columns: minmax(200px, .82fr) minmax(0, 1fr); gap: 16px; align-items: stretch; min-width: 0; }
.location__media .location__map { min-height: 0; }
.location__media .location__map iframe { min-height: 100%; }
.rvideo {
  position: relative; margin: 0; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden;
  background: #000; border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.rvideo video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.rvideo__play {
  position: absolute; inset: 50% auto auto 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
  border: 0; cursor: pointer; display: grid; place-items: center; color: var(--on-accent);
  background: var(--accent); box-shadow: 0 0 0 10px rgba(var(--accent-rgb), .22), 0 18px 40px rgba(0,0,0,.5);
  transition: transform .3s cubic-bezier(.22,.61,.36,1), opacity .35s ease, box-shadow .3s ease;
  animation: rvideo-pulse 2.4s ease-in-out infinite;
}
.rvideo__play svg { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
.rvideo__play:hover { transform: scale(1.07); }
.rvideo__play:active { transform: scale(.94); }
@keyframes rvideo-pulse { 50% { box-shadow: 0 0 0 18px rgba(var(--accent-rgb), .08), 0 18px 40px rgba(0,0,0,.5); } }
.rvideo__cap {
  position: absolute; inset: auto 0 0 0; padding: 48px 18px 16px; display: grid; gap: 2px; pointer-events: none;
  background: linear-gradient(transparent, rgba(10, 8, 6, .85)); transition: opacity .35s ease;
}
.rvideo__cap b { font: 700 17px var(--font-display); color: var(--text); }
.rvideo__cap span { font-size: 13px; color: var(--muted); }
.rvideo.is-playing .rvideo__play, .rvideo.is-playing .rvideo__cap { opacity: 0; pointer-events: none; }
.rvideo.is-playing .rvideo__play { transform: scale(.8); animation: none; }
.rvideo.is-loading::after {
  content: ""; position: absolute; inset: 50% auto auto 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: var(--accent); animation: rvideo-spin .8s linear infinite;
}
@keyframes rvideo-spin { to { transform: rotate(360deg); } }
@media (max-width: 1100px) and (min-width: 901px) { .location__media { grid-template-columns: 1fr; } .rvideo { max-width: 320px; } .location__media .location__map { min-height: 340px; } }
@media (max-width: 560px) {
  .location__media { grid-template-columns: 1fr; }
  .rvideo { width: 100%; max-width: 340px; justify-self: center; }
  .location__media .location__map { min-height: 320px; }
}
.location__media { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.rvideo { align-self: start; width: 100%; }
.location__media .location__map { align-self: stretch; min-height: 420px; }
.rvideo__cap {
  inset: 14px auto auto 14px; padding: 7px 12px; display: flex; align-items: baseline; gap: 8px; border-radius: 999px;
  background: rgba(14, 11, 9, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
}
.rvideo__cap b { font: 600 13px var(--font-body, inherit); color: var(--text); }
.rvideo__cap span { font-size: 12px; }
@media (max-width: 1100px) and (min-width: 901px) { .location__media { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .location__media { grid-template-columns: 1fr; } }
@media (min-width: 901px) {
  .location { align-items: start; }
  .location__media { align-items: stretch; position: sticky; top: calc(var(--header-h, 72px) + 24px); }
  .location__media .location__map { min-height: 0; }
  .location__media .location__map iframe { min-height: 0; height: 100%; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .location__media { position: static; }
  .location__media .location__map { min-height: 340px; }
}

/* ===== Панель управления видео ===== */
.rvideo__bar {
  position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 10px;
  padding: 8px 12px 8px 8px; border-radius: 999px;
  background: rgba(14, 11, 9, .66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .35s ease, transform .35s cubic-bezier(.22,.61,.36,1);
}
.rvideo.is-started:not(.is-playing) .rvideo__bar,
.rvideo.is-started.show-bar .rvideo__bar { opacity: 1; transform: none; pointer-events: auto; }
.rvideo__toggle {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); transition: transform .15s ease;
}
.rvideo__toggle:active { transform: scale(.9); }
.rvideo__toggle svg { width: 18px; height: 18px; fill: currentColor; }
.rvideo__toggle .i-play { margin-left: 2px; }
.rvideo:not(.is-playing) .rvideo__toggle .i-pause, .rvideo.is-playing .rvideo__toggle .i-play { display: none; }
.rvideo__time { flex: none; font: 600 12px/1 var(--font-body); color: var(--text); font-variant-numeric: tabular-nums; }
.rvideo__seek {
  --p: 0%; flex: 1; min-width: 0; height: 24px; margin: 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none; touch-action: none;
}
.rvideo__seek::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent) var(--p), rgba(255,255,255,.25) var(--p));
}
.rvideo__seek::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.25); }
.rvideo__seek::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
.rvideo__seek::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%;
  background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0,0,0,.4); transition: transform .15s ease;
}
.rvideo__seek::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; }
.rvideo__seek:active::-webkit-slider-thumb { transform: scale(1.25); }
.rvideo__seek:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
/* После старта большая кнопка и подпись скрыты — управление в панели */
.rvideo.is-started .rvideo__play, .rvideo.is-started .rvideo__cap { opacity: 0; pointer-events: none; transform: scale(.8); animation: none; }
