/* ---------- Токени: маєток «Ліс і Гори» ---------- */
:root {
  --paper: #F4F1EA;
  --paper-2: #E9E4D9;
  --card: #FFFDF8;
  --ink: #1A2520;
  --muted: #59655E;
  --line: rgb(26 37 32 / .13);
  --deep: #14211B;
  --deep-2: #1D2E26;
  --green: #2E6B4E;
  --green-hover: #23573F;
  --glow: #E7B66C;
  --on-dark: #EEF0EA;
  --on-dark-muted: #A7B4AC;
  --line-dark: rgb(238 240 234 / .16);

  --display: "Spectral", Georgia, serif;
  --body: "Manrope", "Arial", sans-serif;

  --h1: clamp(2.625rem, 1.5rem + 3.3vw, 4.875rem);
  --h2: clamp(2.25rem, 1.6rem + 2.6vw, 4rem);
  --pad: clamp(16px, 3.4vw, 64px);
  --r: 10px;
  --gap: clamp(8px, .9vw, 14px);
  --ease: cubic-bezier(.22, .7, .25, 1);
  --header: 64px;
  --section: clamp(80px, 9vw, 140px);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--deep); scroll-behavior: smooth; scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; letter-spacing: -.02em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: var(--h2); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; }
.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); }
.eyebrow { margin-bottom: 18px; color: var(--green); font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.lead { max-width: 32em; color: var(--muted); font-size: 1.125rem; line-height: 1.6; text-wrap: pretty; }
.skip { position: fixed; z-index: 100; left: 12px; top: -80px; padding: 12px 16px; background: var(--card); color: var(--ink); }
.skip:focus { top: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 14px 28px; border: 0; border-radius: 99px;
  background: var(--green); color: #fff; font: 600 1rem/1.2 var(--body); text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s;
}
.btn:hover { background: var(--green-hover); }
.btn--light { border: 1.5px solid var(--on-dark); background: none; color: var(--on-dark); }
.btn--light:hover { background: var(--on-dark); color: var(--ink); }

.intro { display: grid; gap: 20px; margin-bottom: clamp(36px, 4.4vw, 64px); }
@media (min-width: 900px) {
  .intro { grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; }
}

/* ---------- Демо-плашка ---------- */
.demo {
  position: fixed; z-index: 30; left: 12px; bottom: max(12px, env(safe-area-inset-bottom));
  padding: 8px 14px; border-radius: 99px; background: var(--deep); color: var(--on-dark);
  font-size: .8125rem; font-weight: 600; line-height: 1.2; box-shadow: 0 6px 20px rgb(20 33 27 / .3); pointer-events: none;
}
.demo::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--glow); vertical-align: 1px; }

/* ---------- Шапка ---------- */
.header { position: fixed; z-index: 20; inset: 0 0 auto; transition: background-color .35s, color .35s, box-shadow .35s; }
.header.is-solid { background: rgb(244 241 234 / .92); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.header:not(.is-solid, .is-open) { color: #fff; }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header); padding-inline: var(--pad); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 400 1.5rem/1 var(--display); letter-spacing: -.01em; }
.logo small { display: block; margin-top: 4px; font: 500 .6875rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.logo__mark { flex: none; width: 34px; height: 30px; fill: currentColor; }
.logo__hill { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.nav a { text-decoration: none; }
.burger { position: relative; flex: none; width: 48px; height: 48px; margin-right: -8px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.burger span { position: absolute; left: 12px; width: 24px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease); }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 27px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 1023px) {
  .header.is-open { background: var(--paper); color: var(--ink); }
  .nav { position: absolute; inset: var(--header) 0 auto; display: none; gap: 24px; height: calc(100svh - var(--header)); padding: 8px var(--pad) 32px; overflow: auto; background: var(--paper); }
  .header.is-open .nav { display: grid; align-content: start; }
  .nav__links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font: 300 1.875rem/1.2 var(--display); }
  .nav__cta { width: 100%; }
  html:not(.js) .burger { display: none; }
}
@media (min-width: 1024px) {
  :root { --header: 76px; }
  .burger { display: none; }
  .nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 44px); }
  .nav__links { display: flex; gap: clamp(18px, 2.2vw, 36px); }
  .nav__links a { position: relative; padding: 8px 0; font-size: .9375rem; font-weight: 500; }
  .nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .nav__links a:hover::after { transform: none; }
  .nav__cta { min-height: 46px; padding: 10px 22px; font-size: .9375rem; }
  .header:not(.is-solid) .nav__cta { background: rgb(255 255 255 / .14); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .header:not(.is-solid) .nav__cta:hover { background: #fff; color: var(--ink); }
}

/* ---------- Перший екран: маєток з висоти, чотири будинки внизу ---------- */
.hero { position: relative; isolation: isolate; background: var(--deep); color: #fff; }
.hero__bg { width: 100%; object-fit: cover; }
.hero h1 { font-size: var(--h1); }
.hero .eyebrow { color: var(--glow); }
.hero__lead { max-width: 30em; margin-top: 22px; color: #E3E8E2; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.55; text-wrap: pretty; }
.hero__act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.hero .btn { background: var(--card); color: var(--ink); }
.hero .btn:hover { background: var(--glow); }
.rating { display: flex; align-items: baseline; gap: 8px; color: #E3E8E2; font-size: .9375rem; }
.rating b { color: #fff; font: 400 1.5rem/1 var(--display); }
.stars { color: var(--glow); letter-spacing: .1em; }
.hero__houses { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.hcard {
  display: grid; height: 100%; padding: 16px 18px 18px; border: 1px solid rgb(255 255 255 / .2); border-radius: var(--r);
  background: rgb(20 33 27 / .58); text-decoration: none; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color .25s, border-color .25s;
}
.hcard:hover { border-color: rgb(255 255 255 / .5); background: rgb(20 33 27 / .78); }
.hcard__name { font: 400 1.375rem/1.15 var(--display); }
.hcard__meta { margin-top: 6px; color: var(--on-dark-muted); font-size: .875rem; line-height: 1.35; }
.hcard__price { margin-top: 12px; font-size: .9375rem; font-weight: 600; }
@media (max-width: 899px) {
  .hero { padding-bottom: 28px; }
  .hero__bg { height: min(400px, 50svh); object-position: 50% 60%; }
  .hero picture { position: relative; display: block; }
  .hero picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(20 33 27 / .65), rgb(20 33 27 / 0) 32%), linear-gradient(0deg, var(--deep), rgb(20 33 27 / 0) 38%); }
  .hero__text { position: relative; margin-top: -40px; padding: 0 var(--pad); }
  .hero__houses { margin-top: 32px; padding-inline: var(--pad); }
  .hcard { align-content: start; background: var(--deep-2); border-color: var(--line-dark); }
  .hcard__x { display: none; }
}
@media (min-width: 900px) {
  .hero { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: max(720px, 100svh); padding: calc(var(--header) + clamp(32px, 7vh, 96px)) var(--pad) var(--pad); }
  .hero picture { position: absolute; z-index: -2; inset: 0; }
  .hero__bg { height: 100%; object-position: 50% 42%; }
  .hero::before {
    content: ""; position: absolute; z-index: -1; inset: 0;
    background:
      linear-gradient(100deg, rgb(14 23 19 / .86) 0%, rgb(14 23 19 / .6) 36%, rgb(14 23 19 / 0) 62%),
      linear-gradient(rgb(14 23 19 / .5), rgb(14 23 19 / 0) 20%),
      linear-gradient(0deg, rgb(14 23 19 / .6), rgb(14 23 19 / 0) 34%);
  }
  .hero__text { max-width: 58rem; }
  .hero__lead { max-width: 34em; }
  .hero__houses { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1312px; }
  .hcard { padding: 20px 22px 22px; }
  .hcard__name { font-size: 1.625rem; }
}

/* ---------- Будинки: вкладки, фото, дати ---------- */
.intro__side { display: grid; gap: 24px; }
.who { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.who__label { font-weight: 600; }
.who__step { display: grid; grid-template-columns: 44px 52px 44px; align-items: center; height: 48px; border: 1.5px solid var(--line); border-radius: 99px; }
.who__step button { height: 100%; border: 0; background: none; color: var(--ink); font: 500 1.375rem/1 var(--body); cursor: pointer; touch-action: manipulation; }
.who__step button:hover { color: var(--green); }
.who__step output { font-weight: 700; text-align: center; }
html:not(.js) .who, html:not(.js) .tabs { display: none; }

.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.tab {
  position: relative; display: grid; align-content: start; gap: 4px; padding: 0 12px 18px 0;
  font: 400 clamp(1.125rem, .95rem + .8vw, 1.75rem)/1.15 var(--display); text-decoration: none; color: var(--muted); transition: color .25s, opacity .25s;
}
.tab small { font: 500 .8125rem/1.3 var(--body); color: var(--muted); }
.tab::after { content: ""; position: absolute; left: 0; right: 12px; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.tab:hover, .tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: none; }
.tab.is-off { opacity: .4; }
.tab.is-off small::after { content: ", замалий"; }
.who__note { margin-top: 16px; padding: 14px 18px; border-radius: var(--r); background: var(--paper-2); font-size: .9375rem; }
.who__note[hidden] { display: none; }

.house { display: grid; gap: 28px; padding-top: clamp(28px, 3.4vw, 48px); }
.house + .house { margin-top: 56px; }
.js .house + .house { margin-top: 0; }
.js .house[hidden] { display: none; }
.js .house { animation: rise .5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.house__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-content: start; }
.shot { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: var(--paper-2); aspect-ratio: 4 / 3; }
.shot[hidden] { display: none; }
.shot--main { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.shot__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(20 33 27 / .55); color: #fff; font-weight: 600; }
@media (hover: hover) { .shot:hover img, .mosaic a:hover img { transform: scale(1.03); } }

.house h3 { font-size: clamp(2.125rem, 1.6rem + 1.8vw, 3.25rem); }
.house__mood { margin-top: 16px; color: var(--muted); font-size: 1.125rem; text-wrap: pretty; }
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; padding-block: 18px; border-block: 1px solid var(--line); }
.specs div { display: flex; flex-direction: column-reverse; gap: 2px; }
.specs div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: .8125rem; }
.specs dd { font: 400 clamp(1.375rem, 1.2rem + .6vw, 1.75rem)/1.1 var(--display); white-space: nowrap; }
.feats { display: grid; gap: 8px; margin-top: 22px; }
.feats li { position: relative; padding-left: 22px; }
.feats li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.free { margin-top: 28px; }
html:not(.js) .free { display: none; }
.free__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-bottom: 10px; font-size: .9375rem; }
.free__head b { font-weight: 600; }
.free__head span { color: var(--muted); }
.free__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.day {
  display: grid; justify-items: center; gap: 1px; padding: 7px 0 8px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--ink); font: 600 1rem/1.1 var(--body); cursor: pointer; touch-action: manipulation;
  transition: border-color .2s, background-color .2s, color .2s;
}
.day small { color: var(--muted); font-size: .6875rem; font-weight: 500; text-transform: lowercase; }
.day:hover:not(:disabled) { border-color: var(--green); background: var(--green); color: #fff; }
.day:hover:not(:disabled) small { color: #DDEBE3; }
.day:disabled { background: none; color: rgb(26 37 32 / .35); text-decoration: line-through; cursor: default; }
.free__legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; color: var(--muted); font-size: .8125rem; }

.buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 28px; }
.buy__price { font: 400 clamp(1.625rem, 1.4rem + .8vw, 2rem)/1.1 var(--display); }
.buy__price small { display: block; margin-top: 4px; color: var(--muted); font: 400 .875rem/1.3 var(--body); }
@media (min-width: 900px) {
  .house { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 4.4vw, 72px); }
}
@media (max-width: 599px) {
  .tabs { grid-template-columns: 1fr 1fr; border-bottom: 0; gap: 0 12px; }
  .tab { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .tab::after { right: 0; }
  .specs { grid-template-columns: 1fr 1fr; gap: 14px 0; }
  .specs div:nth-child(3) { padding-left: 0; border-left: 0; }
  .buy .btn { width: 100%; }
}

/* ---------- Чан і лазня ---------- */
.chan { background: var(--deep); color: var(--on-dark); }
.chan .eyebrow { color: var(--glow); }
.chan__grid { display: grid; gap: 40px; }
.chan__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.spa { margin-block: 36px 36px; border-top: 1px solid var(--line-dark); }
.spa li { display: grid; gap: 6px; padding-block: 22px; border-bottom: 1px solid var(--line-dark); }
.spa h3 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); color: #fff; }
.spa p { color: var(--on-dark-muted); text-wrap: pretty; }
.spa .spa__price { color: var(--glow); font-weight: 600; }
@media (min-width: 900px) {
  .chan__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 6vw, 112px); align-items: center; }
  .spa li { grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; }
  .spa h3 { grid-column: 1 / -1; }
  .spa .spa__price { max-width: 13em; text-align: right; }
}

/* ---------- Територія ---------- */
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.mosaic a { display: block; overflow: hidden; border-radius: var(--r); background: var(--paper-2); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mosaic__a { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.mosaic__b, .mosaic__c, .mosaic__d { aspect-ratio: 4 / 5; }
.mosaic__b { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.perks { display: grid; gap: 0 32px; margin-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--line); }
.perks li { display: grid; gap: 2px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.perks b { font: 400 1.375rem/1.2 var(--display); }
.perks span { color: var(--muted); font-size: .9375rem; }
@media (min-width: 600px) { .perks { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: 4fr 3fr 3fr; grid-template-rows: auto auto; }
  .mosaic__a { grid-column: 1 / 3; aspect-ratio: auto; height: clamp(320px, 30vw, 460px); }
  .mosaic__b { grid-column: 3; grid-row: 1 / 3; aspect-ratio: auto; }
  .mosaic__c, .mosaic__d { aspect-ratio: auto; height: clamp(240px, 21vw, 320px); }
  .mosaic__c { grid-column: 1; }
  .mosaic__d { grid-column: 2; }
  .perks { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Умови ---------- */
.terms { padding-top: 0; }
.terms h2 { max-width: 14em; }
.terms__grid { display: grid; gap: var(--gap); margin-top: clamp(36px, 4vw, 56px); }
.term { padding: clamp(24px, 2.4vw, 36px); border-radius: var(--r); background: var(--card); }
.term h3 { margin-bottom: 18px; font-size: 1.75rem; }
.term li { padding-block: 10px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .terms__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Запит ---------- */
.request { background: var(--deep); color: var(--on-dark); }
.request .eyebrow { color: var(--glow); }
.request__grid { display: grid; gap: 40px; padding-block: var(--section); }
.request__intro img { display: none; }
.request__intro h2 { color: #fff; }
.request__intro p:not(.eyebrow) { max-width: 28em; margin-top: 18px; color: var(--on-dark-muted); font-size: 1.125rem; }
.form { display: grid; gap: 22px 16px; }
.form[hidden] { display: none; }
.form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.form label, .form legend { padding: 0; font-weight: 600; }
.form .field > label, .form legend { display: block; margin-bottom: 8px; }
.form .field { min-width: 0; }
.form input:not([type="radio"], [type="checkbox"]) {
  display: block; width: 100%; min-width: 0; height: 56px; margin: 0; padding: 0 16px; border: 2px solid transparent; border-radius: 12px;
  background: var(--card); color: var(--ink); font: inherit; text-align: left; -webkit-appearance: none; appearance: none;
}
.form input::placeholder { color: #75807A; opacity: 1; }
.form input::-webkit-date-and-time-value { text-align: left; }
.form input[aria-invalid="true"] { border-color: #F2A77A; }
.field__err { color: #F2A77A; font-size: .9375rem; line-height: 1.4; }
.field__err:empty { display: none; }
.field .field__err:not(:empty) { margin-top: 8px; }
.stepper { display: grid; grid-template-columns: 56px 1fr 56px; gap: 6px; }
.form .stepper input { padding: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper button { border: 1.5px solid rgb(238 240 234 / .4); border-radius: 12px; background: none; color: #fff; font: 500 1.5rem/1 var(--body); cursor: pointer; touch-action: manipulation; }
.stepper button:hover { background: rgb(255 255 255 / .1); }
.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pick { position: relative; display: grid; cursor: pointer; }
.pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pick span { display: grid; align-content: center; min-height: 56px; padding: 10px 14px; border: 1.5px solid rgb(238 240 234 / .35); border-radius: 12px; line-height: 1.25; transition: background-color .2s, color .2s; }
.pick small { margin-top: 3px; color: var(--on-dark-muted); font-size: .8125rem; font-weight: 400; }
.pick input:checked + span { border-color: var(--card); background: var(--card); color: var(--ink); }
.pick input:checked + span small { color: var(--muted); }
.pick input:focus-visible + span { outline: 3px solid var(--glow); outline-offset: 3px; }
.request .btn:not(.btn--light) { background: var(--glow); color: var(--deep); }
.request .btn:not(.btn--light):hover { background: #fff; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.form__send { width: 100%; }
.form__send:disabled { opacity: .6; cursor: default; }
.form__alt { color: var(--on-dark-muted); font-size: .9375rem; }
.done { max-width: 36em; padding-top: 28px; border-top: 1px solid var(--line-dark); outline: none; }
.done[hidden] { display: none; }
.done h3 { color: #fff; font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); }
.done p { margin: 16px 0 24px; color: var(--on-dark-muted); }
@media (min-width: 600px) {
  .form { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
  .picks--house { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .form__send { width: auto; padding-inline: 40px; }
}
@media (min-width: 900px) {
  .request__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 5vw, 96px); padding-block: var(--gap); padding-inline: var(--gap); max-width: none; }
  .request__intro { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 760px; padding: clamp(32px, 3.4vw, 56px); border-radius: 14px; }
  .request__intro img { position: absolute; z-index: -2; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
  .request__intro::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(rgb(20 33 27 / 0) 35%, rgb(20 33 27 / .92) 84%); }
  .request__intro p:not(.eyebrow) { color: #D9E1DB; }
  .request__panel { align-self: center; width: 100%; max-width: 820px; padding: 40px clamp(0px, 3vw, 64px) 40px 0; }
}

/* ---------- Підвал ---------- */
.footer { background: var(--deep); color: var(--on-dark); }
.footer__in { display: grid; gap: 12px; padding-block: 28px 76px; border-top: 1px solid var(--line-dark); }
.footer p { max-width: 44em; color: var(--on-dark-muted); font-size: .9375rem; }
@media (min-width: 900px) {
  .footer__in { grid-template-columns: auto 1fr; align-items: center; gap: 8px 48px; padding-bottom: 36px; }
  .footer p { justify-self: end; text-align: right; }
}

/* ---------- Перегляд фото ---------- */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--deep); color: #fff; }
.viewer[open] { display: grid; place-items: center; }
.viewer::backdrop { background: var(--deep); }
.viewer img { width: 100%; height: 100dvh; padding: 68px 0; object-fit: contain; touch-action: pan-y pinch-zoom; }
.viewer__count { position: absolute; left: var(--pad); top: 22px; }
.viewer__btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff; cursor: pointer; }
.viewer__btn svg { width: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.viewer__close { right: 8px; top: 8px; }
.viewer__prev { left: 8px; bottom: 8px; }
.viewer__next { right: 8px; bottom: 8px; }
@media (min-width: 768px) {
  .viewer img { padding-inline: 84px; }
  .viewer__prev, .viewer__next { bottom: 50%; transform: translateY(50%); }
  .viewer__prev { left: 16px; }
  .viewer__next { right: 16px; }
}

.demo { left: auto; right: 10px; bottom: auto; top: calc(var(--header) + 6px); }
@media (max-width: 899px) {
  .demo { padding: 7px 12px; font-size: .75rem; }
}
body:has(.header.is-open) { overflow: hidden; }
body:has(.header.is-open) .demo { display: none; }

/* ---------- 404 ---------- */
.lost { display: grid; place-content: center; justify-items: start; gap: 20px; min-height: 100svh; padding: 32px var(--pad); }
.lost h1 { font-size: var(--h2); }

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