/* ---------- Токени: Садиба Грицюка ---------- */
:root {
  --paper: #F3EBDD;
  --paper-2: #EADFCB;
  --card: #FBF6EE;
  --ink: #2B1E17;
  --muted: #6B5A4C;
  --line: #DCCDB6;
  --cta: #9C3A20;
  --cta-hover: #82301A;
  --gold: #C8963E;
  --forest: #1D2A22;
  --walnut: #2A1B14;
  --on-dark: #EFE4D2;
  --on-dark-muted: #B8AC98;

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

  --h1: clamp(2.75rem, 1.6rem + 4.4vw, 6rem);
  --h2: clamp(2.375rem, 1.6rem + 3vw, 4.75rem);
  --h3: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  --pad: clamp(16px, 3.4vw, 64px);
  --radius: 12px;
  --round: clamp(16px, 1.6vw, 24px);
  --sheet: clamp(24px, 3vw, 44px);
  --gap: clamp(10px, 1vw, 16px);
  --ease: cubic-bezier(.22, .7, .25, 1);
  --header: 68px;
  --section: clamp(72px, 8vw, 128px);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--walnut); 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 { margin: 0; }
h1, h2, h3, .big, .house__price, .price b, .facts b, .near b { font-variant-numeric: lining-nums; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.015em; line-height: 1.02; text-wrap: balance; }
em { font-style: italic; }
h1 em, h2 em { color: var(--cta); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; z-index: 100; left: 12px; top: -80px; padding: 12px 16px; background: var(--card); color: var(--ink); }
.skip:focus { top: 12px; }
figure { margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 14px 30px; border: 0; border-radius: 99px;
  background: var(--cta); 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(--cta-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); }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.link:hover { color: var(--cta); }

/* Гуцульський орнамент: ромби, як у різьбі й вишивці */
.ornament { height: 14px; background: url("../img/ornament.svg") 0 0 / 32px 14px repeat-x; }

/* ---------- Демо-плашка ---------- */
.demo {
  position: fixed; z-index: 30; left: 12px; bottom: max(12px, env(safe-area-inset-bottom));
  padding: 8px 14px; border-radius: 99px; background: var(--walnut); color: var(--on-dark);
  font-size: .8125rem; font-weight: 600; line-height: 1.2; box-shadow: 0 6px 20px rgb(42 27 20 / .25); pointer-events: none;
}
.demo::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--gold); 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(243 235 221 / .86); box-shadow: 0 1px 0 rgb(43 30 23 / .08); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.header.is-dark:not(.is-open) { background: rgb(29 42 34 / .82); color: var(--on-dark); box-shadow: none; }
.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; min-height: 44px; font: 600 1.625rem/1 var(--display); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.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: 20px; 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: 500 2rem/1.2 var(--display); }
  .nav__cta { width: 100%; }
  html:not(.js) .burger { display: none; }
}
@media (min-width: 1024px) {
  :root { --header: 84px; }
  .burger { display: none; }
  .nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); }
  .nav__links { display: flex; gap: clamp(16px, 2vw, 32px); }
  .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: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .nav__links a:hover::after { transform: none; }
  .nav__cta { min-height: 48px; padding: 10px 24px; font-size: .9375rem; }
}

/* ---------- Перший екран ---------- */
.hero {
  display: grid; gap: 22px; padding: calc(var(--header) + 12px) var(--pad) 0;
  grid-template-areas: "text" "arch" "offer" "facts";
}
.hero__text { grid-area: text; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--muted); font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 14px; background: url("../img/ornament.svg") 50% 0 / 32px 14px no-repeat; }
.hero h1 { font-size: var(--h1); line-height: .98; }
.hero h1 em { display: block; }
.hero__arch { grid-area: arch; position: relative; justify-self: center; width: 100%; max-width: 560px; }
.hero__arch > img { width: 100%; aspect-ratio: 1 / .98; object-fit: cover; object-position: 50% 60%; border-radius: 999px 999px var(--round) var(--round); }
.hero__arch .steam { left: 10%; right: 10%; top: 30%; height: 46%; }
.stamp { position: absolute; left: -8px; bottom: -22px; width: 112px; height: 112px; }
.stamp circle { fill: var(--cta); }
.stamp text { fill: #F6E9D6; font: 700 15.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.stamp__mark { fill: none; stroke: var(--gold); stroke-width: 3; }
.stamp__dot { fill: #F6E9D6; }
@media (prefers-reduced-motion: no-preference) {
  .stamp text { transform-origin: 100px 100px; animation: spin 40s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__offer { grid-area: offer; display: grid; gap: 16px; }
.hero__offer > p:first-child { order: 3; max-width: 30em; font-size: 1.0625rem; }
.price { font-size: 1rem; color: var(--muted); }
.price b { display: block; color: var(--ink); font: 600 2.25rem/1.05 var(--display); }
.hero__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hero__btns .btn { flex: 1 1 100%; }
.facts { grid-area: facts; display: grid; grid-template-columns: 1fr 1fr; margin: 12px calc(var(--pad) * -1) 0; padding: 18px var(--pad) 22px; list-style: none; background: url("../img/ornament.svg") 0 0 / 32px 14px repeat-x; }
.facts li { padding: 18px 0 4px; color: var(--muted); font-size: .9375rem; line-height: 1.3; }
.facts b { display: block; color: var(--ink); font: 600 2rem/1.1 var(--display); }
@media (min-width: 600px) {
  .hero__btns .btn { flex: 0 0 auto; }
  .facts { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 7fr 5fr; grid-template-areas: "text arch" "offer arch" "facts facts";
    grid-template-rows: 1fr auto auto; column-gap: clamp(40px, 6vw, 112px); row-gap: 32px;
    min-height: max(100svh, 720px); padding-top: calc(var(--header) + 24px); padding-bottom: 52px;
  }
  .hero__text { align-self: end; }
  .hero__arch { align-self: stretch; max-width: none; min-height: 540px; }
  .hero__arch > img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .stamp { left: -56px; bottom: 56px; width: 136px; height: 136px; }
  .hero__offer { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 22px 40px; padding-bottom: 8px; }
  .hero__offer > p:first-child { order: 0; grid-column: 1 / -1; max-width: 32em; font-size: 1.125rem; }
  .facts { margin-top: 0; }
}

/* ---------- Пара над чаном ---------- */
.steam { position: absolute; mix-blend-mode: screen; pointer-events: none; }
.steam i { position: absolute; bottom: 0; width: 42%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 250 240 / .36), rgb(255 250 240 / 0)); opacity: 0; }
.steam i:nth-child(1) { left: 2%; }
.steam i:nth-child(2) { left: 22%; }
.steam i:nth-child(3) { left: 40%; }
.steam i:nth-child(4) { left: 58%; }
@media (prefers-reduced-motion: no-preference) {
  .steam i { animation: steam 9s linear infinite paused; }
  .steam i:nth-child(2) { animation-delay: -6s; }
  .steam i:nth-child(3) { animation-delay: -3s; }
  .steam i:nth-child(4) { animation-delay: -7.5s; }
  .steam.is-on i { animation-play-state: running; }
}
@keyframes steam {
  0% { opacity: 0; transform: translateY(18%) scale(.75); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(9%, -62%) scale(1.5); }
}

/* ---------- Спільне ---------- */
.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--pad); }
.intro { display: grid; gap: 18px; }
h2 { font-size: var(--h2); }
.intro p { max-width: 34em; font-size: 1.125rem; }
.settle { overflow: hidden; border-radius: var(--round); background: var(--paper-2); }
.settle img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .js .settle img { transform: scale(1.07); transition: transform 1.6s var(--ease); }
  .js .settle.is-in img { transform: none; }
}
.specs { margin: 0; }
.specs div { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
.note { color: var(--muted); font-size: .875rem; }
/* Горизонтальна стрічка карток на телефоні */
.strip { display: flex; gap: 12px; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
  .intro { grid-template-columns: 7fr 5fr; gap: 48px; align-items: end; }
}

/* ---------- Один день ---------- */
.day { padding-block: var(--section); }
.moments { display: flex; gap: 12px; margin: 40px calc(var(--pad) * -1) 0; padding: 0 var(--pad); list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; counter-reset: m; }
.moments::-webkit-scrollbar { display: none; }
.moment { flex: 0 0 80%; scroll-snap-align: start; }
.moment figure { aspect-ratio: 4 / 5; }
.moment h3 { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; font-size: var(--h3); font-style: italic; }
.moment h3::before { counter-increment: m; content: "0" counter(m); color: var(--cta); font: 600 .8125rem/1 var(--body); font-style: normal; letter-spacing: .1em; }
.moment p { max-width: 24em; margin-top: 8px; color: var(--muted); }
@media (min-width: 900px) {
  .moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 40px); margin: 64px 0 0; padding: 0; overflow: visible; }
  .moment:nth-child(2) { margin-top: 96px; }
  .moment:nth-child(3) { margin-top: 32px; }
}

/* ---------- Будинок ---------- */
.house { padding-block: var(--section); border-radius: var(--sheet) var(--sheet) 0 0; background: var(--paper-2); }
.house__grid { display: grid; gap: var(--gap); margin-top: 36px; }
.house__main { aspect-ratio: 4 / 3; }
.house__card { display: grid; align-content: start; padding: 26px 22px 22px; border-radius: var(--round); background: var(--card); }
.house__label { color: var(--muted); font-size: .875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.house__price { margin: 6px 0 18px; font: 600 clamp(3.75rem, 2.6rem + 4vw, 6rem)/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.house__price small { font: 500 1rem/1 var(--body); letter-spacing: 0; color: var(--muted); }
.house__card .btn { margin-top: 22px; }
.rooms { display: flex; gap: 12px; margin: 16px calc(var(--pad) * -1) 0; padding-inline: var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; }
.rooms::-webkit-scrollbar { display: none; }
.rooms figure { position: relative; flex: 0 0 72%; aspect-ratio: 4 / 5; scroll-snap-align: start; }
.rooms figcaption { position: absolute; left: 10px; bottom: 10px; padding: 7px 12px; border-radius: 99px; background: rgb(251 246 238 / .92); font-size: .875rem; font-weight: 600; line-height: 1.2; }
@media (min-width: 900px) {
  .house__grid { grid-template-columns: 7fr 5fr; margin-top: 56px; }
  .house__main { aspect-ratio: auto; height: clamp(560px, 44vw, 680px); }
  .house__card { padding: clamp(28px, 2.6vw, 44px); }
  .house__card .btn { justify-self: start; }
  .rooms { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin: var(--gap) 0 0; padding: 0; overflow: visible; }
  .rooms figure { aspect-ratio: 1; }
  .rooms figcaption { left: 14px; bottom: 14px; }
}

/* ---------- Чан і камін ---------- */
.chan { padding-block: var(--section); border-radius: var(--sheet); background: var(--forest); color: var(--on-dark); overflow: hidden; }
.chan h2 em { color: var(--gold); }
.chan .intro p { color: var(--on-dark-muted); }
.chan__photo { position: relative; margin-top: clamp(24px, 3vw, 48px); }
.chan__photo img { width: 100%; height: clamp(320px, 52vw, 820px); object-fit: cover; object-position: 50% 70%; }
.chan__photo::after { content: ""; position: absolute; inset: -1px 0; background: linear-gradient(var(--forest), rgb(29 42 34 / 0) 22% 74%, var(--forest)); }
.chan__photo .steam { left: 12%; right: 12%; top: 10%; height: 60%; }
.chan__grid { position: relative; z-index: 1; display: grid; gap: var(--gap); margin-top: -40px; }
.chan__grid figure { aspect-ratio: 4 / 5; }
.card { display: grid; align-content: start; gap: 14px; padding: 26px 22px; border-radius: var(--round); }
.card h3 { font-size: var(--h3); }
.card--chan { background: #26362C; }
.ticks { display: grid; margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid rgb(239 228 210 / .16); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
.card--chan .btn { margin-top: 8px; }
.card--fire { background: radial-gradient(90% 80% at 85% 0%, #9C3A20, rgb(122 46 24 / .55) 45%, rgb(42 27 20 / 0)), var(--walnut); }
.big { font: 700 clamp(5rem, 3.4rem + 6vw, 8.5rem)/.9 var(--body); letter-spacing: -.05em; color: #F6C27C; }
.big small { font-size: .32em; letter-spacing: 0; }
.card--fire p:last-child { max-width: 20em; color: var(--on-dark); }
@media (min-width: 900px) {
  .chan__grid { grid-template-columns: 4fr 4fr 4fr; margin-top: -96px; }
  .chan__grid figure { aspect-ratio: auto; min-height: 520px; }
  .card { padding: clamp(28px, 2.6vw, 40px); }
  .card--chan .btn { justify-self: start; margin-top: auto; }
  .card--chan { align-content: stretch; grid-template-rows: auto auto 1fr; }
  .card--fire { align-content: end; }
}

/* ---------- Двір ---------- */
.yard { padding-top: var(--section); }
.yard .wrap { position: relative; z-index: 1; }
.yard__wide {
  width: 100%; height: clamp(260px, 46vw, 760px); margin-top: 8px; object-fit: cover; object-position: 50% 70%;
  -webkit-mask-image: linear-gradient(transparent, #000 18% 82%, transparent); mask-image: linear-gradient(transparent, #000 18% 82%, transparent);
}
.yard__grid { display: grid; gap: var(--gap); }
.yard__grid figure { aspect-ratio: 1; }
.yard__text { display: grid; gap: var(--gap); }
.yard__list { margin: 0; padding: 6px 20px; border-radius: var(--round); background: var(--card); list-style: none; }
.yard__list li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: center; padding: 16px 0; font: 600 clamp(1.375rem, 1.2rem + .6vw, 1.75rem)/1.15 var(--display); }
.yard__list li + li { border-top: 1px solid var(--line); }
.yard__list svg { width: 46px; padding: 11px; border-radius: 50%; background: #F1DCCB; fill: none; stroke: var(--cta); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.quiet { display: grid; align-content: end; gap: 12px; padding: 26px 22px; border-radius: var(--round); background: var(--walnut); color: var(--on-dark); }
.quiet .ornament { width: 160px; margin-bottom: 8px; }
.quiet h3 { font-size: var(--h3); font-style: italic; }
.quiet p:last-child { max-width: 30em; color: var(--on-dark-muted); }
@media (min-width: 900px) {
  .yard__grid { grid-template-columns: 5fr 7fr; margin-top: -40px; }
  .yard__grid figure { aspect-ratio: auto; height: clamp(560px, 44vw, 660px); }
  .yard__text { grid-template-rows: auto 1fr; }
  .yard__list { padding: 8px 32px; }
  .quiet { padding: 32px; }
}

/* ---------- Галерея ---------- */
.gallery { padding-block: var(--section); }
.gallery__head { display: grid; gap: 24px; margin-bottom: 28px; }
.tabs { display: flex; justify-self: start; gap: 2px; max-width: 100%; padding: 5px; border-radius: 99px; background: var(--card); }
.tabs button { min-height: 44px; padding: 0 clamp(12px, 1.5vw, 22px); border: 0; border-radius: 99px; background: none; color: var(--muted); font: 600 .9375rem/1.2 var(--body); white-space: nowrap; cursor: pointer; transition: background-color .25s, color .25s; }
.tabs button:hover { color: var(--ink); }
.tabs [aria-pressed="true"], .tabs [aria-pressed="true"]:hover { background: var(--ink); color: #fff; }
html:not(.js) .tabs { display: none; }
.shots { display: grid; grid-template: "a a" auto "b b" auto "c d" auto / 1fr 1fr; gap: var(--gap); }
.shots[hidden] { display: none; }
.shot { position: relative; overflow: hidden; border-radius: var(--round); background: var(--paper-2); cursor: zoom-in; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.shot--a { grid-area: a; aspect-ratio: 4 / 4.2; }
.shot--b { grid-area: b; aspect-ratio: 2; }
.shot--c { grid-area: c; aspect-ratio: 1; }
.shot--d { grid-area: d; aspect-ratio: 1; }
@media (hover: hover) { .shot:hover img { transform: scale(1.03); } }
@media (min-width: 768px) {
  .gallery__head { grid-template-columns: 1fr auto; align-items: end; margin-bottom: 40px; }
  .shots { grid-template: "a b b" 1fr "a c d" 1fr / 5fr 4fr 3fr; aspect-ratio: 1.92; }
  .shot { aspect-ratio: auto; min-height: 0; }
}

.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--walnut); color: #fff; }
.viewer[open] { display: grid; place-items: center; }
.viewer::backdrop { background: var(--walnut); }
.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; }
body:has(.viewer[open]) { overflow: hidden; }
@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; }
}

/* ---------- Криворівня ---------- */
.village { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(96px, 12vw, 200px) var(--section); border-radius: var(--sheet); background: var(--forest); color: #fff; }
.village__bg { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.village::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(rgb(29 42 34 / .5), rgb(29 42 34 / .78) 50%, rgb(29 42 34 / .94)); }
.village .intro p { color: #EAE2D2; }
.near { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin: 40px 0 0; padding: 0; list-style: none; }
.near li { display: grid; align-content: end; gap: 6px; min-height: 150px; padding: 18px; border: 1px solid rgb(255 255 255 / .22); border-radius: var(--round); background: rgb(29 42 34 / .5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.near b { font: 600 clamp(1.5rem, 1.2rem + 1vw, 2.25rem)/1.05 var(--display); }
.near span { color: #DCD3C1; font-size: .9375rem; line-height: 1.35; }
.near--main { grid-column: 1 / -1; background: var(--cta) !important; border-color: transparent !important; }
.near--main b { font-size: clamp(4rem, 3rem + 4vw, 7rem); line-height: .9; }
.near--main span { color: #fff; }
@media (min-width: 900px) {
  .near { grid-template-columns: 1.3fr 1fr 1fr 1fr; margin-top: 64px; }
  .near li { min-height: 220px; padding: 24px; }
  .near--main { grid-column: auto; }
}

/* ---------- Питання ---------- */
.faq { padding-block: var(--section); }
.faq h2 { max-width: 14em; }
.rows { display: grid; gap: var(--gap); margin: clamp(28px, 3.4vw, 48px) 0 0; }
.rows div { padding: 22px; border-radius: var(--round); background: var(--card); }
.rows dt { font: 600 1.625rem/1.15 var(--display); text-wrap: balance; }
.rows dd { max-width: 34em; margin: 8px 0 0; color: var(--muted); }
@media (min-width: 768px) {
  .rows { grid-template-columns: 1fr 1fr; }
  .rows div { padding: clamp(22px, 2.2vw, 32px); }
}
@media (min-width: 1100px) {
  .rows { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Запит і футер ---------- */
.request { padding-block: var(--section); border-radius: var(--sheet) var(--sheet) 0 0; background: var(--walnut); color: var(--on-dark); }
.request__grid { display: grid; gap: 36px; }
.request__intro p { max-width: 30em; margin-top: 18px; color: var(--on-dark-muted); font-size: 1.125rem; }
.request__intro img { display: none; }
.request__panel { min-width: 0; }
.request .note { margin-top: 12px; color: var(--on-dark-muted); }
.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: var(--radius);
  background: var(--card); color: var(--ink); font: inherit; text-align: left; -webkit-appearance: none; appearance: none;
}
.form input::placeholder { color: #7A6A5C; opacity: 1; }
.form input::-webkit-date-and-time-value { text-align: left; }
.form input[aria-invalid="true"] { border-color: #F6A76B; }
.field__err { color: #F6A76B; font-size: .9375rem; line-height: 1.4; }
.field__err:not(:empty) { margin-top: 8px; }
.stepper { display: grid; grid-template-columns: 56px 88px 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(239 228 210 / .5); border-radius: var(--radius); 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: 64px; padding: 10px 14px; border: 1.5px solid rgb(239 228 210 / .42); border-radius: var(--radius); line-height: 1.25; transition: background-color .2s, color .2s; }
.pick small { margin-top: 3px; color: var(--on-dark-muted); font-size: .875rem; 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(--gold); outline-offset: 3px; }
.form__send { width: 100%; }
.form__send:disabled { opacity: .6; cursor: default; }
.done { max-width: 36em; padding-top: 28px; border-top: 1px solid rgb(239 228 210 / .3); outline: none; }
.done[hidden] { display: none; }
.done h3 { font-size: clamp(1.875rem, 1.4rem + 1.8vw, 3rem); }
.done p { margin: 16px 0 24px; color: var(--on-dark-muted); }
.footer { background: var(--walnut); color: var(--on-dark); }
.footer__in { display: grid; gap: 8px; padding-block: 28px 76px; }
.footer__in::before { content: ""; height: 14px; margin-bottom: 18px; background: url("../img/ornament.svg") 0 0 / 32px 14px repeat-x; opacity: .7; }
.footer p { max-width: 44em; color: var(--on-dark-muted); font-size: .9375rem; }
@media (min-width: 600px) {
  .form { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
  .form__send { width: auto; }
}
@media (min-width: 900px) {
  .request { padding-block: var(--gap) 0; }
  .request > .wrap { max-width: none; padding-inline: var(--gap); }
  .request__grid { grid-template-columns: 5fr 7fr; gap: 0; }
  .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: calc(var(--sheet) - var(--gap)); }
  .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(42 27 20 / 0) 30%, rgb(42 27 20 / .85) 80%); }
  .request__intro p { color: #F3EADB; }
  .request__panel { align-self: center; width: 100%; max-width: 860px; padding: 40px clamp(32px, 4.4vw, 80px); }
  .footer__in { grid-template-columns: auto 1fr; align-items: center; gap: 8px 48px; padding-bottom: 36px; }
  .footer__in::before { grid-column: 1 / -1; }
  .footer p { justify-self: end; text-align: right; }
}
body:has(.header.is-open) { overflow: hidden; }

/* ---------- 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; }
}
