/* Kavkaz Trails — design system (spec section 1). No gradients, no radius, no shadows
   (except the mobile sticky bar), no icon fonts, no italics. */

:root {
  --bg: #EDEEE9;
  --surface: #E4E6E0;
  --ink: #14191D;
  --ink-2: #5C666E;
  --accent: #7B2D3A;
  --accent-h: #63222E;
  --line: #CDD1CB;
  --on-dark: #EDEEE9;
  --on-dark-2: #9AA3A9;
  --line-dark: rgba(237, 238, 233, 0.16);
  --accent-on-dark: #D3A0A9;
  --ok: #3F6B4E;
  --err: #9C2F2F;

  --display: "Unbounded", sans-serif;
  --text: "Onest", sans-serif;
  /* motion: one "out" curve for entrances, one symmetric curve for state changes */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 220ms;
  --t-med: 380ms;
  --t-slow: 700ms;
  /* photo zoom: symmetric in-out, slow and soft on both hover-in and hover-out */
  --ease-zoom: cubic-bezier(0.4, 0, 0.2, 1);
  --t-zoom: 1100ms;
  --container: 1240px;
  --pad: 20px;
  --section: 64px;
  --header-h: 64px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, p, dl, dd, dt, ul, figure, fieldset { margin: 0; }
ul { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
address { font-style: normal; }
em, i { font-style: normal; }

[hidden] { display: none !important; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.visually-hidden-focusable { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.honeypot { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.photo img { filter: saturate(0.88) contrast(0.96); width: 100%; }

/* Images fade in once decoded (no hard pop-in for lazy-loaded photos).
   NB: elements that also animate transform (card photos, hero panorama) declare
   their own combined transition below - do not let this rule override them. */
.js .photo img, .js .card-photo img { opacity: 0; }
.js .photo img { transition: opacity var(--t-slow) var(--ease-io); }
.js .photo img.loaded, .js .card-photo img.loaded { opacity: 1; }

/* ---------- typography ---------- */
h1 { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.06; letter-spacing: -0.02em; }
h1 .h1-a { color: var(--ink); }
h1 .h1-b { color: var(--ink-2); }
h2 { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.1; letter-spacing: -0.015em; color: var(--ink); }
.label { font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-2); line-height: 1.4; }
.meta { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.caption { font-size: 12px; line-height: 1.5; color: var(--ink-2); text-align: right; }
.text-link, .text-btn { font-weight: 500; font-size: 14px; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; background: none; border: 0; padding: 0; cursor: pointer; transition: color var(--t-fast) var(--ease-io), text-underline-offset var(--t-fast) var(--ease-io); }
.text-link:hover, .text-btn:hover { text-underline-offset: 6px; }
.text-btn { color: var(--accent); }
.text-btn:hover { color: var(--accent-h); }
.text-link:hover { color: var(--accent); }
.dark .text-link:hover { color: var(--accent-on-dark); }

/* ---------- buttons (spec 1.5) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border: 0;
  font-weight: 500; font-size: 14px; letter-spacing: 0.01em; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease-io), color var(--t-fast) var(--ease-io), border-color var(--t-fast) var(--ease-io), opacity var(--t-fast) var(--ease-io), filter var(--t-fast) var(--ease-io);
}
/* no transform on :active — a moving target between mousedown and mouseup eats the click */
.btn:active { filter: brightness(0.94); }
.btn .arrow { display: inline-block; transition: transform var(--t-fast) var(--ease-io); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:hover .arrow-down { transform: translateY(3px); }
.btn-primary { background: var(--accent); color: var(--on-dark); }
.btn-primary:hover { background: var(--accent-h); }
.btn-secondary { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--on-dark); }
.dark .btn-secondary { border-color: var(--on-dark); color: var(--on-dark); }
.dark .btn-secondary:hover { background: var(--on-dark); color: var(--ink); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn[disabled] { cursor: default; opacity: 0.7; filter: none; }
.btn-primary[disabled]:hover { background: var(--accent); }
.btn-block { width: 100%; }
.mark { flex: 0 0 18px; }

/* ---------- header (spec 3.1) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--bg); border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease-io);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.wordmark { font-family: var(--display); font-weight: 400; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; color: var(--ink); white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; transition: color var(--t-fast) var(--ease-io); }
.wordmark:hover { color: var(--accent); }
.nav { display: none; gap: 28px; }
.nav a { position: relative; font-weight: 500; font-size: 14px; text-decoration: none; padding: 4px 0; color: var(--ink); transition: color var(--t-fast) var(--ease-io); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left center; transition: transform var(--t-med) var(--ease-io); }
.nav a:hover { color: var(--accent); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header-right { display: flex; align-items: center; gap: 16px; }
.lang { font-weight: 500; font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; min-height: 44px; }
.lang [aria-current="true"] { color: var(--ink); }
.lang a { color: var(--ink-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; padding: 0 2px; display: inline-flex; align-items: center; min-height: 44px; transition: color var(--t-fast) var(--ease-io); }
.lang a:hover { color: var(--ink); }
.lang-sep { padding: 0 2px; }
.btn-header { display: none; height: 44px; }
.btn-header-short { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }

/* ---------- sections + ledger header (spec 1.3) ---------- */
.section { padding: var(--section) 0; scroll-margin-top: 72px; }
#hero { scroll-margin-top: 72px; }
.ledger { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 8px; margin-bottom: 40px; }
.ledger .intro { margin-top: 16px; max-width: 60ch; }

/* ---------- hero (spec 3.2) ---------- */
.hero { padding-top: 40px; }
.hero-text h1 { margin-top: 16px; }
.hero-p { margin-top: 24px; max-width: 52ch; }
.hero-actions { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hero-actions .btn { width: 100%; }
.hero-actions .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.hero-panorama { margin-top: 48px; }
.hero-panorama img { width: 100%; height: auto; object-fit: cover; }
.hero-panorama .caption { padding-top: 8px; }
/* hero: children rise one after another; panorama settles from a slight zoom */
.js .hero-text > * { opacity: 0; transform: translateY(14px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.js .hero-text.in > * { opacity: 1; transform: none; }
.js .hero-text.in > :nth-child(2) { transition-delay: 90ms; }
.js .hero-text.in > :nth-child(3) { transition-delay: 180ms; }
.js .hero-text.in > :nth-child(4) { transition-delay: 270ms; }
.hero-panorama { overflow: hidden; }
.js .hero-panorama img { transform: scale(1.04); will-change: transform, opacity; backface-visibility: hidden; transition: opacity var(--t-slow) var(--ease-io), transform 1600ms var(--ease-zoom); }
.js .hero-panorama img.loaded { transform: none; }

/* ---------- catalog cards (spec 3.3 / 3.4) ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 24px; }
.card { border: 1px solid var(--line); background: var(--bg); transition: border-color var(--t-med) var(--ease-io); display: flex; flex-direction: column; }
.card:hover { border-color: var(--ink); }
.card-photo { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); transform-origin: center; }
/* zoom: promoted to its own layer up front so the first frame does not hitch;
   same curve/duration both ways, so leaving the card is as soft as entering it */
.js .card-photo img { will-change: transform, opacity; backface-visibility: hidden; transition: opacity var(--t-slow) var(--ease-io), transform var(--t-zoom) var(--ease-zoom); }
@media (hover: hover) {
  .card:hover .card-photo img, .card:focus-within .card-photo img { transform: scale(1.05); }
}
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.type-tag { font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); }
.card-title { font-family: var(--display); font-weight: 400; font-size: 17px; line-height: 1.2; margin-top: 8px; }
.card .meta { margin-top: 8px; }
.price-block { margin-top: 16px; }
.price-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.price-row:first-child { border-top: 0; }
.price-label { font-size: 14px; color: var(--ink-2); line-height: 1.4; padding-top: 3px; }
.price-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.price-amount { font-weight: 500; font-size: 18px; font-variant-numeric: tabular-nums; line-height: 1.3; }
.price-amount.is-first { color: var(--accent); }
.price-unit { font-size: 14px; color: var(--ink-2); line-height: 1.3; }
.price-unit:empty { display: none; }
.price-ref { font-size: 13px; color: var(--ink-2); line-height: 1.4; }

details summary { list-style: none; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }
details summary::marker { content: ""; }
.when-open { display: none; }
details[open] .when-open { display: inline; }
details[open] .when-closed { display: none; }

.card-details { margin-top: 16px; }
.card-details summary { font-weight: 500; font-size: 14px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; padding: 0; min-height: 44px; display: inline-flex; align-items: center; transition: color var(--t-fast) var(--ease-io), text-underline-offset var(--t-fast) var(--ease-io); }
.card-details summary:hover { color: var(--accent); text-underline-offset: 6px; }
.dark .card-details summary:hover { color: var(--accent-on-dark); }
.details-body { padding-top: 16px; }
/* details content: JS-driven height animation (see main.js); without JS it just opens */
.js .details-body, .js .faq-item .a { opacity: 0; transform: translateY(-4px); transition: opacity var(--t-med) var(--ease-io), transform var(--t-med) var(--ease-io); }
.js details[open] .details-body, .js .faq-item[open] .a { opacity: 1; transform: none; transition-delay: 80ms; }
.js details.is-closing .details-body, .js .faq-item.is-closing .a { opacity: 0; transform: translateY(-4px); transition-delay: 0ms; }
.js details.is-animating { overflow: hidden; }
.card-dl { display: grid; gap: 8px; font-size: 14px; line-height: 1.5; }
.card-dl div { display: grid; grid-template-columns: minmax(88px, 0.36fr) 1fr; gap: 12px; }
.card-dl dt { font-weight: 500; }
.card-note { margin-top: 12px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.card-action { margin-top: auto; padding-top: 20px; align-self: flex-start; color: var(--accent); min-height: 44px; display: inline-flex; align-items: center; }
.card-action .arrow { display: inline-block; transition: transform var(--t-fast) var(--ease-io); }
.card-action:hover .arrow { transform: translateX(3px); }
.card-action:hover { color: var(--accent-h); }
.dark .card-action:hover { color: var(--on-dark); }
.catalog-foot { margin-top: 32px; display: grid; gap: 8px; max-width: 72ch; }

/* dark section */
.dark { background: var(--ink); color: var(--on-dark); }
.dark h2, .dark .card-title, .dark .price-amount, .dark .card-dl { color: var(--on-dark); }
.dark .label, .dark .meta, .dark .price-unit, .dark .price-ref, .dark .card-note, .dark .price-label { color: var(--on-dark-2); }
.dark .ledger, .dark .price-row, .dark .terms-row { border-color: var(--line-dark); }
.dark .card { border-color: var(--line-dark); background: var(--ink); }
.dark .card:hover { border-color: var(--on-dark); }
.dark .type-tag, .dark .price-amount.is-first, .dark .card-action { color: var(--accent-on-dark); }
.dark a:focus-visible, .dark summary:focus-visible { outline-color: var(--on-dark); }
.terms { margin-bottom: 40px; }
.terms-row { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line-dark); }
.terms-row:last-child { border-bottom: 1px solid var(--line-dark); }
.terms-row dt { font-weight: 500; font-size: 15px; color: var(--on-dark); }
.terms-row dd { font-size: 15px; line-height: 1.55; color: var(--on-dark-2); }

/* ---------- how (spec 3.5) ---------- */
.how-grid { display: grid; gap: 40px; }
.how-photo { order: 2; }
.how-photo img { aspect-ratio: 4 / 5; object-fit: cover; }
.how-photo .caption { padding-top: 8px; }
.facts { order: 1; }
.fact { border-top: 1px solid var(--line); padding: 16px 0; display: grid; gap: 4px; }
.fact dt { font-weight: 500; font-size: 15px; }
.fact dd { font-size: 15px; line-height: 1.55; }

/* ---------- reviews (spec 3.6) ---------- */
.google-line { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; font-size: 14px; color: var(--ink-2); }
.review { border-top: 1px solid var(--line); padding: 28px 0; display: grid; gap: 12px; }
.review-text p { font-size: 18px; line-height: 1.5; color: var(--ink); }
.review-text .translated { margin-top: 8px; font-size: 14px; }
.review-meta { display: grid; gap: 2px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.review-meta .author { color: var(--ink); }

/* ---------- faq (spec 3.7) ---------- */
.faq-item { border-top: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 18px 0; min-height: 44px; font-weight: 500; font-size: 16px; line-height: 1.4; transition: color var(--t-fast) var(--ease-io); }
.faq-item summary:hover { color: var(--accent); }
.faq-item .marker { font-weight: 400; font-size: 20px; line-height: 1; padding-top: 1px; color: var(--ink-2); min-width: 20px; text-align: right; transition: color var(--t-fast) var(--ease-io); }
.faq-item summary:hover .marker { color: var(--accent); }
/* plus -> minus: rotate drawn lines instead of swapping glyphs */
.js .faq-item .marker { position: relative; width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; padding: 0; }
.js .faq-item .marker .when-closed, .js .faq-item .marker .when-open { display: none !important; }
.js .faq-item .marker::before, .js .faq-item .marker::after { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 1px; background: currentColor; transition: transform var(--t-med) var(--ease-io), opacity var(--t-med) var(--ease-io); }
.js .faq-item .marker::after { transform: rotate(90deg); }
.js .faq-item[open] .marker::before { transform: rotate(180deg); }
.js .faq-item[open] .marker::after { transform: rotate(180deg); opacity: 0; }
.faq-item .a { padding: 0 0 20px; max-width: 64ch; font-size: 15px; line-height: 1.55; }

/* ---------- booking (spec 3.8) ---------- */
.book-grid { display: grid; gap: 40px; }
.direct { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.direct .btn { justify-content: center; }
.direct .meta { margin-top: 4px; }
.booking-form { background: var(--surface); border: 1px solid var(--line); padding: 24px; display: grid; gap: 20px; }
.mode { display: grid; grid-template-columns: 1fr 1fr; }
.mode { position: relative; }
.mode-tab { display: block; text-align: center; padding: 12px 0; font-weight: 500; font-size: 15px; border-bottom: 2px solid var(--line); cursor: pointer; transition: color var(--t-fast) var(--ease-io); color: var(--ink-2); user-select: none; }
.mode-tab:hover { color: var(--ink); }
.mode input:checked + .mode-tab { color: var(--ink); }
html:not(.js) .mode input:checked + .mode-tab { border-bottom-color: var(--accent); }
/* sliding indicator under the active tab (JS toggles .is-second) */
.js .mode::after { content: ""; position: absolute; left: 0; bottom: 0; width: 50%; height: 2px; background: var(--accent); transition: transform var(--t-med) var(--ease-io); }
.js .mode.is-second::after { transform: translateX(100%); }
.mode input:focus-visible + .mode-tab { outline: 2px solid var(--ink); outline-offset: -2px; }
.group { display: grid; gap: 20px; }
.group-legend { font-weight: 500; font-size: 15px; margin-bottom: 4px; }
.js .group-legend { display: none; }
.field { display: grid; gap: 6px; }
.field label, .label-like { font-weight: 500; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 48px; background: var(--bg); border: 1px solid var(--line); padding: 0 14px;
  font-size: 16px; color: var(--ink); -webkit-appearance: none; appearance: none;
  transition: border-color var(--t-fast) var(--ease-io);
}
.field input:not([type="checkbox"]):hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field select { padding-right: 36px; background: var(--bg) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M1 4l5 5 5-5' fill='none' stroke='%2314191D' stroke-width='1'/%3E%3C/svg%3E") no-repeat right 14px center; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 96px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field.invalid input, .field.invalid select { border-color: var(--err); }
.field .error { font-size: 13px; color: var(--err); line-height: 1.4; }
.field .error:empty { display: none; }
/* With JS, reserve the error line's height so blur-validation never shifts the layout
   (a message appearing under a field on mousedown would otherwise move the submit button
   out from under the cursor before mouseup and swallow the click). */
.js .field .error { display: block; min-height: 18px; margin-top: -6px; }
.js .field .error:not(:empty) { animation: fade-in var(--t-med) var(--ease-io) both; }
@keyframes fade-down { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.js .field.shake input, .js .field.shake select { animation: shake 380ms var(--ease-io); }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-3px); } 55% { transform: translateX(3px); } 80% { transform: translateX(-1px); } }
.field .hint { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.field-pair { display: grid; gap: 20px; }
.field-check { gap: 10px; }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 15px; line-height: 1.4; min-height: 44px; padding-top: 2px; position: relative; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { flex: 0 0 18px; width: 18px; height: 18px; border: 1px solid var(--ink); background: var(--bg); position: relative; margin-top: 2px; transition: background-color var(--t-fast) var(--ease-io), border-color var(--t-fast) var(--ease-io); }
.check:hover .box { border-color: var(--accent); }
.check input:checked + .box { background: var(--accent); border-color: var(--accent); }
.check .box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--on-dark); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0.4); opacity: 0; transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease-io); }
.check input:checked + .box::after { transform: rotate(45deg) scale(1); opacity: 1; }
.check input:focus-visible + .box { outline: 2px solid var(--ink); outline-offset: 2px; }
.estimate { font-size: 14px; color: var(--ink); line-height: 1.5; }
/* Keep the line's box even while hidden so the submit button never jumps under the cursor. */
.js .estimate[hidden] { display: block !important; visibility: hidden; min-height: 21px; }
.js .estimate:not([hidden]) { animation: fade-in var(--t-med) var(--ease-io) both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
html:not(.js) .estimate { display: none; }
.disclaimer { margin-top: -8px; }
.form-error { font-size: 14px; color: var(--err); line-height: 1.5; }
.form-error:empty { display: none; }
.js .form-error:not(:empty) { animation: fade-down var(--t-med) var(--ease) both; }
.form-error a { color: var(--err); font-weight: 500; }

/* ---------- contacts (spec 3.9) ---------- */
.contacts-grid { display: grid; gap: 40px; }
.address { display: grid; gap: 12px; }
.office { font-weight: 500; font-size: 16px; }
.hours { display: grid; gap: 4px; font-size: 15px; }
.hours div { display: grid; grid-template-columns: minmax(110px, 0.35fr) 1fr; gap: 16px; }
.hours dt { color: var(--ink-2); }
.hours dd { color: var(--ink); }
.meeting-title { font-weight: 500; font-size: 15px; margin-top: 8px; }
.contact-links { margin-top: 12px; display: grid; gap: 2px; }
.contact-links a { display: inline-flex; align-items: center; min-height: 44px; }
.map-box .btn { min-height: 44px; }
.map-box { aspect-ratio: 4 / 3; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; text-align: center; position: relative; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity var(--t-slow) var(--ease-io); }
.map-box iframe.loaded { opacity: 1; }
.map-box .map-btn.is-leaving { opacity: 0; pointer-events: none; }
html:not(.js) .map-btn { display: none; }

/* ---------- footer (spec 3.10) ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.footer-row { display: flex; flex-direction: column; gap: 8px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; }
.footer-links a, .contact-links a, .address a { transition: color var(--t-fast) var(--ease-io); }
.footer-links a:hover, .contact-links a:hover, .address a:hover { color: var(--accent); }
.footer-small { margin-top: 16px; font-size: 12px; opacity: 0.7; }

/* ---------- sticky bar (spec 3.11) ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(64px + env(safe-area-inset-bottom)); padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(20, 25, 29, 0.12);
  display: flex; gap: 8px; align-items: center;
}
.sticky-bar .btn { height: 48px; }
.sticky-bar .btn-primary { flex: 1; }
.btn-square { width: 48px; padding: 0; flex: 0 0 48px; }
.js .sticky-bar { transform: translateY(100%); transition: transform var(--t-med) var(--ease-io); will-change: transform; }
.js .sticky-bar.shown { transform: none; transition-timing-function: var(--ease); }
body.has-sticky { padding-bottom: 72px; }

/* ---------- thanks page (spec 3.12) ---------- */
.thanks { padding: 96px var(--pad); text-align: center; display: grid; gap: 24px; justify-items: center; }
.thanks h1 { font-size: 30px; color: var(--ink); }
.thanks p { max-width: 56ch; }
.thanks-actions { display: flex; flex-direction: column; align-items: center; gap: 20px; }

/* ---------- reveal on scroll (spec 5) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: var(--stagger, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; transition-delay: 0ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .js .reveal, .js .hero-text > *, .js .photo img, .js .card-photo img, .js .hero-panorama img, .js .details-body, .js .faq-item .a { opacity: 1; transform: none; }
  .card:hover .card-photo img, .card:focus-within .card-photo img { transform: none; }
  .js .card-photo img, .js .hero-panorama img { will-change: auto; }
}

/* ============================================================ */
/* tablet ≥ 640                                                  */
/* ============================================================ */
@media (min-width: 640px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .field-pair { grid-template-columns: 1fr 1fr; }
  .footer-row { flex-direction: row; justify-content: space-between; align-items: baseline; }
  .thanks h1 { font-size: 44px; }
}

/* ============================================================ */
/* desktop ≥ 1024                                                */
/* ============================================================ */
@media (min-width: 1024px) {
  :root { --pad: 48px; --section: 112px; }
  body { font-size: 17px; }
  h1 { font-size: 56px; }
  h2 { font-size: 38px; }
  .card-title { font-size: 19px; }
  .review-text p { font-size: 20px; }
  .btn { height: 54px; }
  .btn-header { display: inline-flex; height: 44px; }
  .btn-header-short { display: none; }
  .nav { display: flex; }
  .header-right { gap: 24px; }

  .ledger { grid-template-columns: repeat(12, 1fr); gap: 24px; margin-bottom: 56px; }
  .ledger .label { grid-column: 1 / 4; padding-top: 6px; }
  .ledger .ledger-main { grid-column: 4 / 13; }

  .hero { padding-top: 72px; }
  .hero-text { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; }
  .hero-text > * { grid-column: 1 / 8; }
  .hero-text h1 { margin-top: 20px; }
  .hero-actions { flex-direction: row; align-items: center; gap: 24px; }
  .hero-actions .btn { width: auto; }
  .hero-panorama { margin-top: 64px; }
  .hero-panorama img { height: min(64vh, 720px); }

  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
  .terms-row { grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .terms-row dt { grid-column: 1 / 4; }
  .terms-row dd { grid-column: 4 / 10; }

  .how-grid { grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
  .how-photo { order: 1; grid-column: 1 / 6; }
  .facts { order: 2; grid-column: 7 / 13; }

  .review { grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .review-text { grid-column: 1 / 9; }
  .review-meta { grid-column: 10 / 13; }

  .faq-list { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; }
  .faq-item { grid-column: 4 / 13; }

  .book-grid { grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
  .direct { grid-column: 1 / 5; align-items: flex-start; }
  .direct .btn { width: 100%; max-width: 320px; }
  .booking-form { grid-column: 5 / 13; padding: 40px; }

  .contacts-grid { grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
  .address { grid-column: 1 / 6; }
  .map-box { grid-column: 6 / 13; aspect-ratio: 16 / 10; }
  .contacts-grid.no-map .address { grid-column: 1 / 8; }

  .sticky-bar { display: none; }
  body.has-sticky { padding-bottom: 0; }
}
