/* =========================================================
   Krona Hills — стилі
   ========================================================= */

:root {
  --bg: #0D100E;
  --bg-2: #141915;
  --line: rgba(230, 223, 210, .12);
  --bone: #E6DFD2;
  --muted: #A0A69B;
  --dim: #4E544D;
  --gold: #D2B57C;
  --gold-soft: rgba(210, 181, 124, .14);

  --f-display: 'Unbounded', system-ui, sans-serif;
  --f-text: 'Onest', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --pad: max(16px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .7, .1, 1);
}

@media (min-width: 900px) {
  :root { --pad: clamp(32px, 4vw, 64px); }
}
/* край контенту: на широких екранах збігається з контейнером 1440px */
:root { --edge: max(var(--pad), calc((100% - 1440px) / 2 + var(--pad))); }

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--bone);
  font: 400 16px/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html, body { overflow-x: clip; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.input input:focus-visible { outline: none; }


main > section[id] { scroll-margin-top: 24px; }
.forest-grid, .loc-grid, .terms-grid, .pr-grid, .faq-grid, .visit-grid { grid-template-columns: minmax(0, 1fr); }
.forest-grid > *, .loc-grid > *, .loc-info > *, .terms-grid > *, .pr-grid > *, .faq-grid > *, .faq-aside > *, .visit-grid > *, .q-grid > * { min-width: 0; }
.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }

.label {
  font: 500 11px/1.4 var(--f-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.label-gold { color: var(--gold); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 17px 30px;
  font: 500 12px/1 var(--f-text);
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn-gold { background: var(--gold); color: #13140F; }
.btn-gold:hover { background: var(--bone); }
.btn-ghost { border: 1px solid rgba(230, 223, 210, .3); }
.btn-ghost:hover { border-color: var(--bone); }

.link-gold {
  color: var(--gold);
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .4s var(--ease);
}
.link-gold:hover { background-size: 0 1px; background-position: 100% 100%; }

/* =========================================================
   Навігація
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(16px + var(--safe-t)) var(--edge) 16px;
  font-size: 13px;
  transition: background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(13, 16, 14, .93);
  border-color: var(--line);
}
.logo { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--bone); }
.logo span { font: 300 12px/1 var(--f-display); letter-spacing: .38em; }

.menu, .nav-right { display: none; }

.burger { width: 44px; height: 44px; margin-right: -4px; position: relative; z-index: 2; }
.burger span {
  position: absolute; left: 9px; right: 9px; height: 1px; background: var(--bone);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 35;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--pad) 32px;
  overflow-y: auto;
  gap: 32px;
  opacity: 0; visibility: hidden;
  /* закриття: спершу згасає, потім ховається */
  transition: opacity .4s var(--ease), visibility 0s .4s;
}
/* відкриття: видиме одразу (щоб фокус потрапив у меню), плавно проявляється */
.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity .4s var(--ease), visibility 0s; }
.menu-open .nav { background: var(--bg); border-color: var(--line); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a {
  font: 300 34px/1.3 var(--f-display);
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.mobile-menu-foot { display: flex; flex-direction: column; gap: 18px; }
.mobile-menu-foot .tel { font: 400 15px var(--f-mono); color: var(--muted); }
html.menu-open, .menu-open { overflow: hidden; overscroll-behavior: none; }

@media (min-width: 1100px) {
  .burger, .mobile-menu { display: none; }
  .menu { display: flex; gap: 36px; color: var(--muted); letter-spacing: .04em; }
  .menu a { transition: color .3s; }
  .menu a:hover { color: var(--bone); }
  .nav-right { display: flex; align-items: center; gap: 28px; }
  /* зона натискання 44 px, вигляд шапки не змінюється */
  .menu a, .nav-right a { display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0; }
  .tel { color: var(--muted); transition: color .3s; }
  .tel:hover { color: var(--bone); }
}

/* =========================================================
   1. Перший екран
   ========================================================= */
.hero {
  /* наскільки текст опускається і гора виростає за перший екран скролу */
  --sink: 60vh; --rise: -45vh;
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.hero-scene, .scene-layer { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
/* шари, що зсуваються за мишею, ширші за екран — щоб у кадрі ніколи не з'являвся їхній край */
.scene-layer, .hero-front svg { left: -60px; right: -60px; width: calc(100% + 120px); max-width: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .scene-layer, .hero-front svg { will-change: transform; }
}
/* передній пагорб: при скролі виростає і ховає текст; знизу продовжується кольором наступного блоку */
.hero-front { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-photo { position: absolute; inset: 0; z-index: -1; display: block; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
/* затемнення зверху (меню, текст) і плавний перехід у пагорби знизу */
.hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,13,11,.78) 0%, rgba(10,13,11,.35) 35%, rgba(10,13,11,.45) 60%, rgba(13,16,14,.95) 100%);
}
.hero.has-photo .scene-layer.l0, .hero.has-photo .scene-layer.l1 { display: none; }
.render-tag.hero-tag { right: var(--edge); left: auto; top: auto; bottom: calc(96px + var(--safe-b)); z-index: 2; }
.hero-front svg { position: absolute; top: 0; height: 100%; }
.hero-front::after { content: ''; position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: 70vh; background: var(--bg); }

.hero-content {
  position: relative;
  padding: calc(96px + var(--safe-t) + 4svh) var(--pad) 40px;
  text-align: center;
}
.eyebrow-extra { display: none; }
@media (min-width: 640px) { .eyebrow-extra { display: inline; } }
.eyebrow {
  font: 500 11px/1.4 var(--f-mono);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
}
.hero-title {
  font: 300 clamp(22px, 6.4vw, 92px)/1.1 var(--f-display);
  text-wrap: balance;
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin: 0 auto 26px;
  max-width: 1200px;
}
.line { display: block; overflow: hidden; padding-bottom: .04em; }
.line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.3s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
.hero-sub {
  max-width: 500px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 15px;
}
.hero-ctas { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.hero-sub, .hero-note, .hero-meta { text-shadow: 0 1px 14px rgba(5, 7, 6, .9), 0 0 2px rgba(5, 7, 6, .8); }
.hero-ctas .btn { width: 100%; max-width: 320px; }

.hero-meta {
  position: relative; z-index: 2;
  margin-top: auto;
  padding: 0 var(--edge) calc(20px + var(--safe-b));
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  font: 400 11px/1.6 var(--f-mono);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.hero-meta b { color: var(--bone); font-weight: 500; }
.hero-meta .right { text-align: right; }

.scroll-cue {
  display: none;
  width: 1px; height: 54px;
  background: var(--line);
  position: relative; overflow: hidden;
}
.scroll-cue i {
  position: absolute; left: 0; top: 0; width: 1px; height: 18px;
  background: var(--gold);
  animation: cue 2.2s var(--ease) infinite;
}

@media (max-width: 899px) { .hero { --sink: 52vh; --rise: -30vh; } }
@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; justify-content: center; }
  .hero-ctas .btn { width: auto; }
  .hero-sub { font-size: 16px; }
  .eyebrow { font-size: 11px; }
}
@media (min-width: 900px) {
  .hero-content { padding-top: 22vh; will-change: transform, opacity; }
  .hero-meta { padding-bottom: 32px; font-size: 11px; }
  .scroll-cue { display: block; }
}

/* при скролі текст плавно опускається за передній пагорб (браузер рахує сам — без смикання) */
@supports (animation-timeline: scroll()) {
  .hero-content, .hero-front {
    animation: heroSink linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 100vh;
  }
  .hero-front { animation-name: hillRise; }
  @keyframes heroSink { to { transform: translateY(var(--sink)); } }
  @keyframes hillRise { to { transform: translateY(var(--rise)); } }
  /* нижній рядок згасає на старті скролу, щоб не висів над горою */
  .hero-meta > * { animation: metaOut linear both; animation-timeline: scroll(root block); animation-range: 0 22vh; }
  @keyframes metaOut { to { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .hero-content, .hero-front, .hero-meta > * { animation: none !important; transform: none !important; } }

/* загальна поява */
.reveal { opacity: 0; transform: translateY(16px); animation: fadeUp 1.1s var(--ease) forwards; animation-delay: var(--d, 0s); }

@keyframes rise { to { transform: none; } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes cue { 0% { transform: translateY(-20px); } 100% { transform: translateY(60px); } }

/* вікна в будинках */
.win { transition: opacity 1.4s ease; }

/* =========================================================
   2. Ліс
   ========================================================= */
.forest { padding: 64px 0 80px; position: relative; }

.section-head {
  display: flex; justify-content: space-between; gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.manifesto {
  font: 300 clamp(24px, 3.8vw, 54px)/1.18 var(--f-display);
  letter-spacing: -.015em;
  max-width: 1100px;
  margin-bottom: 44px;
  text-wrap: balance;
}
.manifesto .w { color: var(--dim); transition: color .5s ease; }
.manifesto .w.on { color: var(--bone); }
.manifesto .w.accent.on { color: var(--gold); }

.forest-grid { display: grid; gap: 40px; }

.forest-text p { color: var(--muted); max-width: 460px; margin-bottom: 18px; }
.forest-text p:first-child { color: var(--bone); font-size: 17px; }

.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  margin-top: 28px;
}
.stats > div { padding: 22px 12px 0 0; }
.stats > div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.stats dt {
  font: 300 clamp(28px, 6vw, 46px)/1 var(--f-display);
  letter-spacing: -.03em;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.stats dd { font-size: 12px; color: var(--muted); line-height: 1.45; }

.text-cta {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 28px;
  font: 500 13px/1 var(--f-text);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
}
.text-cta span { transition: transform .35s var(--ease); }
.text-cta:hover span { transform: translateX(6px); }

/* карта */
.forest-map { margin: 0; }
.map-frame {
  position: relative;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 50% 40%, #151B17 0%, var(--bg) 75%);
  aspect-ratio: 640 / 560;
}
.map { width: 100%; height: 100%; position: relative; z-index: 1; }
.map-trees { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(.985); transition: opacity 1.4s ease, transform 1.8s var(--ease); }
.map-frame.show .map-trees { opacity: 1; transform: none; }
.map .b-shape {
  fill: var(--gold-soft); stroke: var(--gold); stroke-width: 1;
  stroke-dasharray: 400; stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.6s var(--ease), fill .35s;
}
.map.show .b-shape { stroke-dashoffset: 0; transition-delay: 1.4s, 0s; }
.map .b { cursor: pointer; outline: none; }
.map .b:hover .b-shape, .map .b:focus .b-shape, .map .b.active .b-shape { fill: rgba(210, 181, 124, .38); }
.map .b-num { font: 500 11px var(--f-mono); fill: var(--gold); opacity: 0; transition: opacity .6s 2.2s; }
.map.show .b-num { opacity: 1; }
.map .road { fill: none; stroke: var(--dim); stroke-width: 1; stroke-dasharray: 3 5; opacity: 0; transition: opacity 1s 1.2s; }
.map.show .road { opacity: 1; }
.map .m-label { font: 400 10px var(--f-mono); fill: var(--muted); letter-spacing: .08em; }

.map-tip {
  position: absolute; left: 0; top: 0;
  padding: 12px 14px;
  background: rgba(13, 16, 14, .92);
  border: 1px solid rgba(210, 181, 124, .35);
  font-size: 13px; line-height: 1.45;
  pointer-events: none;
  opacity: 0; transform: translate(-50%, calc(-100% - 14px)) translateY(6px);
  transition: opacity .25s, transform .25s var(--ease);
  width: max-content; max-width: min(260px, calc(100% - 16px));
}
.map-tip.on { opacity: 1; transform: translate(-50%, calc(-100% - 14px)); }
.map-tip b { display: block; font: 400 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.map-hint .hint-touch { display: none; }
@media (hover: none) { .map-hint .hint-hover { display: none; } .map-hint .hint-touch { display: inline; } }
.map-hint { position: absolute; right: 12px; bottom: 12px; font: 400 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.legend {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 14px;
  font: 400 11px var(--f-mono); color: var(--muted); letter-spacing: .04em;
}
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 8px; height: 8px; }
.lg-dot { background: var(--bone); border-radius: 50%; opacity: .7; }
.lg-ring { border: 1px solid var(--gold); border-radius: 50%; }
.lg-sq { background: var(--gold-soft); border: 1px solid var(--gold); }

@media (min-width: 900px) {
  .forest { padding: 100px 0 110px; }
  .section-head { margin-bottom: 48px; }
  .manifesto { margin-bottom: 64px; }
  .forest-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 5vw, 88px); align-items: center; }
  .forest-map { max-width: 680px; justify-self: end; width: 100%; }
  .forest-text p:first-child { font-size: 19px; }
  .stats dd { font-size: 13px; }
}

/* =========================================================
   Спільне для блоків 3+
   ========================================================= */
.h2 {
  font: 300 clamp(28px, 4.4vw, 60px)/1.1 var(--f-display);
  letter-spacing: -.02em;
  text-wrap: balance;
  margin-bottom: 20px;
}
.gold { color: var(--gold); }
.lead { color: var(--muted); font-size: 16px; max-width: 480px; }
@media (min-width: 900px) { .lead { font-size: 17px; } }

/* =========================================================
   3. Локація
   ========================================================= */
.location { padding: 64px 0 56px; }

/* на мобільному: заголовок → опис → карта → перемикач і список */
.loc-grid { display: grid; }
.loc-info { display: contents; }
.loc-info > .h2, .loc-info > .lead { order: 1; }
.loc-info > .seg { justify-self: start; }
.loc-info > * { order: 3; }

.seg {
  display: inline-flex;
  margin: 28px 0 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 99px;
}
.seg button {
  min-height: 44px;
  padding: 14px 20px;
  border-radius: 99px;
  font: 500 12px/1 var(--f-text);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  transition: background .35s var(--ease), color .35s;
}
.seg button[aria-pressed="true"] { background: var(--bone); color: var(--bg); }

.loc-list { list-style: none; }
.loc-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  cursor: default;
  transition: padding .35s var(--ease);
}
.loc-name { display: flex; flex-direction: column; gap: 2px; font-size: 15px; font-weight: 400; }
.loc-name small { font: 400 12px/1.35 var(--f-mono); color: var(--muted); letter-spacing: .04em; }
.loc-t {
  font: 300 26px/1 var(--f-display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: opacity .25s, transform .25s var(--ease);
}
.loc-t::after { content: ' хв'; font: 400 11px var(--f-mono); color: var(--muted); letter-spacing: .06em; }
.loc-t.swap { opacity: 0; transform: translateY(-6px); }
.loc-list li.hl .loc-t, .loc-list li.hl .loc-name { color: var(--gold); }

.loc-note {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 20px;
  font-size: 14px; color: var(--muted);
}
.loc-note svg { flex: none; color: var(--gold); margin-top: 2px; }

.loc-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.loc-cta span { font-size: 13px; color: var(--muted); }

.loc-map {
  margin: 0;
  border: 1px solid var(--line);
  background: radial-gradient(90% 80% at 30% 35%, #151B17 0%, var(--bg) 80%);
  aspect-ratio: 4 / 3;
  order: 2;
  margin-top: 24px;
}
.loc-map svg { width: 100%; height: 100%; }
.loc-map .m-label { font: 400 10px var(--f-mono); fill: var(--muted); letter-spacing: .1em; }
.loc-map .m-label.dim { fill: var(--dim); }
.loc-map .m-label.gold { fill: var(--gold); font-weight: 500; }
.river { fill: none; stroke: #16201F; stroke-width: 12; stroke-linecap: round; }
.city { fill: rgba(230, 223, 210, .04); stroke: rgba(230, 223, 210, .18); stroke-dasharray: 3 4; }
.walk-ring { fill: rgba(210, 181, 124, .05); stroke: rgba(210, 181, 124, .3); stroke-dasharray: 2 4; }
.kh { fill: var(--gold); }
.kh-pulse { fill: none; stroke: var(--gold); transform-origin: 150px 150px; animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(3.2); opacity: 0; } }

.route {
  fill: none; stroke: var(--gold); stroke-width: 2;
  transition: stroke-dashoffset 1.8s var(--ease), opacity .4s;
}
.route-car { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); }
.route-transit { stroke-dasharray: 5 6; opacity: 0; }
.loc-map.show .route-car { stroke-dashoffset: 0; }
.loc-map.transit .route-car { opacity: 0; }
.loc-map.transit .route-transit { opacity: 1; }

.pois circle { fill: var(--bg); stroke: var(--bone); stroke-width: 1.2; transition: fill .3s, stroke .3s; }
.pois circle.hl { fill: var(--gold); stroke: var(--gold); }
.poi-lines line { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; transition: opacity .3s; }
.poi-lines line.hl { opacity: .8; }

@media (min-width: 900px) {
  .location { padding: 100px 0 110px; }
  .loc-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 5vw, 88px); align-items: center; }
  .loc-info { display: block; }
  .loc-map { order: 0; margin-top: 0; }
  .loc-list li:hover { padding-left: 8px; }
  .loc-cta { flex-direction: row; align-items: center; gap: 20px; }
}

/* =========================================================
   4. Квартал
   ========================================================= */
.quarter { padding: 56px 0 80px; }
.q-head { margin-bottom: 32px; }

.q-grid { display: flex; flex-direction: column; gap: 12px; }

.q-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 22px;
  transition: border-color .4s, background .4s;
}
.q-card h3 { font: 400 19px/1.25 var(--f-display); letter-spacing: -.01em; margin-bottom: 10px; }
.q-card p { font-size: 14px; color: var(--muted); }
.q-num { position: absolute; top: 20px; right: 20px; font: 400 11px var(--f-mono); color: var(--dim); letter-spacing: .08em; }
.q-icon {
  width: 34px; height: 34px; margin-bottom: 36px;
  fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s var(--ease);
}

/* велика картка з ілюстрацією двору */
.q-big { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.q-illu { width: 100%; height: auto; background: #111612; border-bottom: 1px solid var(--line); }
.q-big .q-body { padding: 22px; position: relative; }
.q-big .q-num { top: 22px; }
.q-big h3 { font-size: 22px; }

/* на мобільному — горизонтальна стрічка карток зі свайпом */
.q-cards {
  display: flex; gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--pad));
  padding: 0 var(--pad);
  scrollbar-width: none;
}
.q-cards::-webkit-scrollbar { display: none; }
.q-cards .q-card { flex: 0 0 78%; scroll-snap-align: start; scroll-margin-left: var(--pad); }

.q-dots { height: 2px; background: var(--line); position: relative; margin: 6px 0 4px; overflow: hidden; }
.q-dots i { position: absolute; left: 0; top: 0; bottom: 0; width: 30%; background: var(--gold); transition: transform .15s linear; }

.q-cta {
  background: linear-gradient(135deg, rgba(210, 181, 124, .14), rgba(210, 181, 124, .03));
  border-color: rgba(210, 181, 124, .3);
  display: flex; flex-direction: column; gap: 20px; justify-content: space-between;
}
.q-cta p { color: var(--bone); opacity: .75; }

@media (hover: hover) {
  .q-card:hover { border-color: rgba(210, 181, 124, .4); }
  .q-card:hover .q-icon { transform: translateY(-4px); }
}

@media (min-width: 640px) {
  .q-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q-big, .q-cta { grid-column: 1 / -1; }
  .q-cards { display: contents; }
  .q-dots { display: none; }
}
@media (min-width: 900px) {
  .quarter { padding: 100px 0 110px; }
  .q-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: end; margin-bottom: 48px; }
  .q-head .h2 { margin-bottom: 0; }
  .q-cta { flex-direction: row; align-items: center; }
  .q-card { padding: 26px; }
  .q-big .q-body { padding: 26px; }
}
@media (min-width: 1200px) {
  .q-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .q-big { grid-column: span 2; grid-row: span 3; }
  .q-big .q-illu { flex: 1; min-height: 0; }
}

/* =========================================================
   5. Квартири
   ========================================================= */
.flats { padding: 56px 0 80px; }

.filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.filter-tabs {
  display: flex; gap: 6px;
  overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad);
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tabs button, .chip {
  flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font: 400 14px/1 var(--f-text);
  color: var(--muted);
  transition: background .3s, color .3s, border-color .3s;
}
.filter-tabs button sup { font: 400 10px var(--f-mono); opacity: .7; }
.filter-tabs button[aria-pressed="true"] { background: var(--bone); color: var(--bg); border-color: var(--bone); }
.chip { align-self: flex-start; }
.filters-right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sort select {
  -webkit-appearance: none; appearance: none;
  min-height: 44px; padding: 12px 40px 12px 18px;
  border: 1px solid var(--line); border-radius: 99px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23A0A69B' stroke-width='1.4'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center;
  font: 400 14px/1 var(--f-text); color: var(--muted);
  cursor: pointer;
}
.sort select option { background: var(--bg-2); color: var(--bone); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chip i { width: 14px; height: 14px; border: 1px solid var(--muted); border-radius: 4px; position: relative; transition: .3s; }
.chip[aria-pressed="true"] { color: var(--bone); border-color: rgba(210, 181, 124, .5); }
.chip[aria-pressed="true"] i { background: var(--gold); border-color: var(--gold); }
.chip[aria-pressed="true"] i::after { content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid var(--bg); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }

/* на телефоні — компактна сітка у 2 колонки */
.flats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.flat {
  position: relative;
  display: flex; flex-direction: column;
  text-align: left;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 12px;
  transition: border-color .35s, transform .5s var(--ease);
  animation: fadeUp .6s var(--ease) both;
}
.flat-plan { aspect-ratio: 5 / 4; display: grid; place-items: center; margin-bottom: 10px; }
.flat-plan svg { width: 100%; height: 100%; }
.flat-rooms { font: 400 11px/1.35 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.flat-area { font: 300 24px/1.1 var(--f-display); margin: 4px 0 2px; }
.flat-area small { font-size: .6em; }
.flat-price { font-size: 13px; color: var(--gold); }
.flat-left {
  position: absolute; top: 10px; left: 10px;
  font: 500 10px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 7px;
  background: rgba(210, 181, 124, .14); color: var(--gold);
}
.flat-tags { display: none; }
.flats-empty { grid-column: 1 / -1; padding: 40px 0; color: var(--muted); text-align: center; }

.flats-foot {
  display: flex; flex-direction: column; gap: 16px;
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.flats-foot p { color: var(--muted); }

@media (hover: hover) {
  .flat:hover { border-color: rgba(210, 181, 124, .45); }
  .flat:hover .flat-plan svg { transform: scale(1.03); }
  .flat-plan svg { transition: transform .6s var(--ease); }
}

/* плани */
.plan .room { fill: none; stroke: rgba(230, 223, 210, .55); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plan .room.living { fill: rgba(210, 181, 124, .1); }
.plan .outer { fill: none; stroke: var(--bone); stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.plan .wnd { stroke: var(--gold); stroke-width: 3; vector-effect: non-scaling-stroke; }
.plan .balc { fill: rgba(230, 223, 210, .03); stroke: rgba(230, 223, 210, .4); stroke-dasharray: 3 3; stroke-width: 1; vector-effect: non-scaling-stroke; }
.plan text { font-family: var(--f-mono); fill: var(--muted); }
.plan text.area { fill: var(--bone); }

@media (min-width: 640px) {
  .filters { flex-direction: row; justify-content: space-between; align-items: center; }
  .filter-tabs { margin: 0; padding: 0; }
  .chip { align-self: auto; }
  .filters-right { justify-content: flex-end; }
  .flats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .flat { padding: 18px; }
  .flat-area { font-size: 28px; }
  .flat-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
  .flat-tags span { font: 400 11px/1 var(--f-mono); padding: 6px 8px; border: 1px solid var(--line); color: var(--muted); }
  .flat-left { top: 14px; left: 14px; }
  .flats-foot { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 900px) {
  .flats { padding: 100px 0 110px; }
  .filters { margin-bottom: 28px; }
}
@media (min-width: 1200px) { .flats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- вікно квартири ---------- */
.flat-modal {
  margin: 0;
  width: 100%; max-width: 100%;
  height: 100vh; height: 100dvh; max-height: none;
  border: 0;
  background: var(--bg-2); color: var(--bone);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.flat-modal[open] { animation: sheetUp .5s var(--ease); }
html:has(dialog[open]) { overflow: hidden; }
.flat-modal::backdrop { background: rgba(5, 7, 6, .7); backdrop-filter: blur(4px); }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }

.fm-inner { position: relative; padding: calc(64px + var(--safe-t)) var(--pad) calc(28px + var(--safe-b)); display: grid; gap: 22px; }
.fm-close {
  position: fixed; z-index: 3; top: calc(12px + var(--safe-t)); right: 12px;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: rgba(20, 25, 21, .9);
  transition: border-color .3s;
}
.fm-close:hover { border-color: var(--bone); }
.fm-plan { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); padding: 14px; }
.fm-plan svg { width: 100%; height: 100%; }
.fm-title { font: 300 28px/1.15 var(--f-display); margin-bottom: 4px; }
.fm-specs { list-style: none; margin: 18px 0; }
.fm-specs li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.fm-specs li span:first-child { color: var(--muted); }
.fm-price { font: 300 30px/1 var(--f-display); margin-bottom: 6px; }
.fm-monthly { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.fm-monthly b { color: var(--gold); font-weight: 500; }
.fm-actions { display: flex; flex-direction: column; gap: 10px; }
.fm-left { color: var(--bone); }
.fm-expl { margin: -4px 0 20px; border: 1px solid var(--line); }
.fm-expl summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 10px 14px; cursor: pointer; font: 500 12px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fm-expl summary::-webkit-details-marker { display: none; }
.fm-expl summary::after { content: '+'; font: 300 18px var(--f-text); color: var(--gold); }
.fm-expl[open] summary::after { content: '−'; }
.fm-expl ul { list-style: none; padding: 0 14px 8px; }
.fm-expl li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px dashed rgba(230, 223, 210, .1); font-size: 14px; }
.fm-expl li span:last-child { font-variant-numeric: tabular-nums; }
.fm-expl li.out span:first-child { color: var(--muted); }
.fm-expl li.sum { border-top: 1px solid var(--line); font-weight: 500; color: var(--bone); }
.fm-share {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; margin-top: 10px; padding: 8px 0;
  font-size: 14px; color: var(--muted);
  transition: color .3s;
}
.fm-share:hover { color: var(--gold); }

@media (min-width: 900px) {
  .flat-modal {
    margin: auto;
    width: min(1080px, calc(100% - 64px));
    height: auto; max-height: 88vh;
    border: 1px solid rgba(210, 181, 124, .35);
  }
  .flat-modal[open] { animation: fadeUp .45s var(--ease); }
  .fm-inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; padding: 40px; align-items: start; }
  .fm-plan { position: sticky; top: 0; }
  .fm-close { position: absolute; top: 18px; right: 18px; }
  .fm-actions { flex-direction: row; flex-wrap: wrap; }
  .fm-actions .btn { flex: 1 1 auto; white-space: nowrap; padding-left: 22px; padding-right: 22px; }
}

/* =========================================================
   6. Умови покупки
   ========================================================= */
.terms { padding: 56px 0 80px; }
.terms-grid { display: grid; gap: 32px; }

.t-options { list-style: none; margin-top: 28px; border-top: 1px solid var(--line); }
.t-options li { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.t-options b { font: 400 19px/1.25 var(--f-display); }
.t-options span { font-size: 14px; color: var(--muted); }

.calc {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 22px;
  display: flex; flex-direction: column; gap: 22px;
}
.calc .seg { margin: 0; align-self: flex-start; }

.field { display: flex; flex-direction: column; gap: 14px; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--muted); }
.field output { font: 400 16px var(--f-text); color: var(--bone); font-variant-numeric: tabular-nums; white-space: nowrap; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px;
  background: transparent;
  cursor: pointer;
  --p: 50%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(var(--gold), var(--gold)) 0 / var(--p) 100% no-repeat, var(--line);
}
input[type="range"]::-moz-range-track { height: 2px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--gold); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px; margin-top: -11px;
  border-radius: 50%;
  background: var(--bg); border: 2px solid var(--gold);
  transition: transform .2s;
}
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]:focus-visible { outline: 1px solid var(--gold); outline-offset: 6px; }

.calc-result { padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.calc-result strong { font: 300 clamp(34px, 9vw, 52px)/1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.calc-sub { font-size: 13px; color: var(--muted); }
.calc-sub b { color: var(--gold); font-weight: 500; }
.calc-note { font-size: 12px; color: var(--muted); }

@media (min-width: 900px) {
  .terms { padding: 100px 0 110px; }
  .terms-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 5vw, 88px); align-items: start; }
  .calc { padding: 36px; gap: 26px; }
  .calc .btn { align-self: flex-start; }
}

/* =========================================================
   7. Хід будівництва
   ========================================================= */
.progress { padding: 56px 0 80px; }
.pr-grid { display: grid; gap: 16px; }

.pr-visual {
  margin: 0;
  background: radial-gradient(80% 70% at 45% 40%, #161C18 0%, var(--bg-2) 80%);
  border: 1px solid var(--line);
  padding: 18px 18px 16px;
}
.pr-building { width: 100%; height: auto; max-height: 420px; }
.pr-caption {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
  margin-top: 12px; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.pr-caption b { color: var(--bone); font-weight: 400; }

/* поверхи */
.pr-building .fl { animation: fadeUp .5s var(--ease) both; }
.pr-building .fl-done { fill: rgba(230, 223, 210, .09); stroke: rgba(230, 223, 210, .45); }
.pr-building .fl-now { fill: rgba(210, 181, 124, .1); stroke: var(--gold); stroke-dasharray: 5 4; animation: fadeUp .5s var(--ease) both, march 1.2s linear infinite; }
.pr-building .fl-todo { fill: none; stroke: rgba(230, 223, 210, .13); stroke-dasharray: 3 4; }
.pr-building .wd { fill: rgba(230, 223, 210, .18); }
.pr-building .lbl { font: 400 10px var(--f-mono); fill: var(--muted); letter-spacing: .08em; }
.pr-building .lbl-now { fill: var(--gold); font-weight: 500; }
.pr-building .crane { stroke: rgba(230, 223, 210, .35); fill: none; stroke-width: 1; }
.pr-building .cable { stroke: var(--gold); stroke-width: 1; transition: y2 .8s var(--ease); }
.pr-building .hook { fill: var(--gold); transition: transform .8s var(--ease); }
@keyframes march { to { stroke-dashoffset: -18; } }

.pr-side { display: flex; flex-direction: column; gap: 16px; }
.houses { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.house {
  display: flex; flex-direction: column; gap: 6px;
  text-align: left;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: border-color .3s, background .3s;
}
.house[aria-pressed="true"] { border-color: rgba(210, 181, 124, .55); background: rgba(210, 181, 124, .06); }
.house-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.house-top b { font: 400 15px var(--f-display); }
.house-pct { font: 400 13px var(--f-mono); color: var(--gold); }
.house-stage { font-size: 12px; line-height: 1.4; color: var(--muted); }
.house-bar { height: 2px; background: var(--line); margin-top: 4px; overflow: hidden; }
.house-bar i { display: block; height: 100%; width: var(--w); background: var(--gold); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease); }
.progress.seen .house-bar i { transform: none; }

.docs { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.docs a {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  transition: color .3s, padding .35s var(--ease);
}
.docs svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-linejoin: round; }
.docs span { display: flex; flex-direction: column; gap: 2px; }
.docs small { font: 400 11px var(--f-mono); color: var(--muted); }
.pr-side .btn { align-self: stretch; }

/* таймлайн — горизонтальна стрічка */
.timeline {
  list-style: none;
  display: flex;
  overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x mandatory;
  margin: 32px calc(-1 * var(--pad)) 0; padding: 0 var(--pad);
}
.timeline::-webkit-scrollbar { display: none; }
.timeline li {
  flex: 0 0 46%;
  position: relative;
  padding: 26px 16px 0 0;
  scroll-snap-align: start; scroll-margin-left: var(--pad);
  border-top: 1px solid var(--line);
}
.timeline li::before {
  content: ''; position: absolute; top: -5px; left: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--dim);
}
.timeline li.done { border-top-color: rgba(210, 181, 124, .6); }
.timeline li.done::before { background: var(--gold); border-color: var(--gold); }
.timeline li.now::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(210, 181, 124, .2); }
.tl-date { display: block; font: 500 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.timeline li.now .tl-date { color: var(--gold); }
.tl-text { font-size: 14px; line-height: 1.45; }
.timeline li:not(.done):not(.now) .tl-text { color: var(--muted); }

@media (hover: hover) {
  .house:hover { border-color: rgba(210, 181, 124, .35); }
  .docs a:hover { color: var(--gold); padding-left: 6px; }
}
@media (min-width: 640px) {
  .timeline li { flex-basis: 28%; }
}
@media (min-width: 900px) {
  .progress { padding: 100px 0 110px; }
  .pr-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
  .pr-visual { padding: 26px 26px 18px; }
  .pr-side .btn { align-self: flex-start; }
  .timeline { margin: 48px 0 0; padding: 0; overflow: visible; }
  .timeline li { flex: 1; }
}

/* =========================================================
   8. Питання й відповіді
   ========================================================= */
.faq { padding: 56px 0 80px; }
/* на мобільному: заголовок → питання → «не знайшли свого?» */
.faq-grid { display: grid; }
.faq-aside { display: contents; }
.faq-list { order: 1; margin-top: 24px; }
.faq-help { order: 2; }

.faq-help {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 24px; padding: 20px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.faq-help b { font: 400 17px var(--f-display); }
.faq-help span { font-size: 14px; color: var(--muted); }
.faq-help-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cb-form { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.cb-form .btn { width: 100%; }
.cb-done { margin-top: 14px; padding: 14px; border: 1px solid rgba(210, 181, 124, .35); color: var(--bone); font-size: 14px; outline: none; }
.faq-help-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 10px; font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.faq-help-or::before, .faq-help-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.faq-help-actions .btn { flex: 1 1 auto; padding: 15px 18px; }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0;
  font: 400 17px/1.35 var(--f-display);
  cursor: pointer;
  transition: color .3s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '';
  flex: none;
  width: 32px; height: 32px;
  border: 1px solid var(--line); border-radius: 50%;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 11px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 1px 11px no-repeat;
  transition: transform .4s var(--ease), border-color .3s;
}
.faq-list details.on summary::after { transform: rotate(45deg); border-color: rgba(210, 181, 124, .5); }
.faq-list details.on summary { color: var(--gold); }
.faq-a { overflow: hidden; }
.faq-list details p { padding: 0 48px 22px 0; color: var(--muted); font-size: 15px; }

@media (hover: hover) { .faq-list summary:hover { color: var(--gold); } }
@media (min-width: 900px) {
  .faq { padding: 100px 0 110px; }
  .faq-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 88px); align-items: start; }
  .faq-aside { display: block; position: sticky; top: 100px; }
  .faq-list { margin-top: 0; }
  .faq-list summary { font-size: 19px; padding: 24px 0; }
}

/* =========================================================
   9. Запис на огляд
   ========================================================= */
.visit {
  padding: 64px 0 80px;
  background: radial-gradient(70% 60% at 75% 55%, rgba(210, 181, 124, .07) 0%, transparent 70%);
}
.visit-grid { display: grid; gap: 32px; }
.visit-grid > * { min-width: 0; } /* щоб стрічка днів гортались, а не розпирала сторінку */

.visit-perks { list-style: none; margin-top: 28px; border-top: 1px solid var(--line); }
.visit-perks li { display: grid; gap: 4px; padding: 16px 0 16px 28px; border-bottom: 1px solid var(--line); position: relative; }
.visit-perks li::before {
  content: ''; position: absolute; left: 2px; top: 23px;
  width: 12px; height: 7px;
  border: solid var(--gold); border-width: 0 0 1.5px 1.5px;
  transform: rotate(-45deg);
}
.visit-perks b { font: 400 17px var(--f-display); }
.visit-perks span { font-size: 14px; color: var(--muted); }

.visit-contacts { display: none; }

.visit-card {
  background: var(--bg-2);
  border: 1px solid rgba(210, 181, 124, .28);
  padding: 22px;
  position: relative;
}
.visit-form { display: flex; flex-direction: column; gap: 18px; }

.vf-flat {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: rgba(210, 181, 124, .08);
  border: 1px solid rgba(210, 181, 124, .3);
  font-size: 14px; color: var(--muted);
  animation: fadeUp .4s var(--ease);
}
.vf-flat b { color: var(--bone); font-weight: 400; }
.vf-flat button { width: 44px; height: 44px; margin: -8px -10px -8px 0; display: grid; place-items: center; color: var(--muted); }
.vf-flat[hidden] { display: none; }

.input { display: flex; flex-direction: column; gap: 8px; }
.input > span { font-size: 13px; color: var(--muted); }
.input input {
  width: 100%;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--bone);
  font: 400 16px var(--f-text); /* 16px — щоб iPhone не збільшував сторінку */
  outline: none;
  border-radius: 0;
  transition: border-color .3s;
}
.input input::placeholder { color: var(--dim); }
.input input:focus { border-color: var(--gold); }
.input .err { display: none; font-size: 12px; color: #E08A6E; }
.input.invalid input { border-color: #E08A6E; }
.input.invalid .err { display: block; }

.pick { border: 0; min-width: 0; }
.pick legend { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.pick-row {
  display: flex; gap: 6px;
  overflow-x: auto; scrollbar-width: none;
  margin: 0 -22px; padding: 0 22px;
}
.pick-row::-webkit-scrollbar { display: none; }
.pick-row button {
  flex: none;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 64px; min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  font: 400 14px/1.2 var(--f-text);
  color: var(--muted);
  transition: background .3s, color .3s, border-color .3s;
}
.pick-row button small { font: 400 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.pick-row button[aria-pressed="true"] { background: var(--bone); color: var(--bg); border-color: var(--bone); }

.check { display: flex; align-items: center; gap: 12px; font-size: 14px; cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check i { flex: none; width: 20px; height: 20px; border: 1px solid var(--muted); position: relative; transition: .3s; }
.check input:checked + i { background: var(--gold); border-color: var(--gold); }
.check input:checked + i::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--bg); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.check input:focus-visible + i { outline: 1px solid var(--gold); outline-offset: 3px; }

.vf-submit { width: 100%; padding-top: 20px; padding-bottom: 20px; }
.vf-submit[disabled] { opacity: .6; pointer-events: none; }
.vf-note { font-size: 12px; color: var(--muted); line-height: 1.5; }
/* пастка для ботів — поза екраном, людина її не бачить */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form-error {
  padding: 14px 16px;
  border: 1px solid rgba(224, 138, 110, .5); background: rgba(224, 138, 110, .08);
  font-size: 14px; line-height: 1.5; color: var(--bone); outline: none;
}
.form-error a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.pick-row button:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

.visit-done { text-align: center; padding: 28px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; outline: none; }
.visit-done[hidden] { display: none; }
.visit-done svg { color: var(--gold); margin-bottom: 6px; }
.visit-done .tick { stroke-dasharray: 30; stroke-dashoffset: 30; animation: tick .7s .2s var(--ease) forwards; }
.visit-done h3 { font: 400 24px/1.25 var(--f-display); }
.visit-done p { color: var(--muted); max-width: 360px; margin-bottom: 10px; }
@keyframes tick { to { stroke-dashoffset: 0; } }

@media (min-width: 900px) {
  .visit { padding: 100px 0 120px; }
  .visit-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 5vw, 88px); align-items: center; }
  .visit-card { padding: 36px; }
  .pick-row { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
  .visit-contacts { display: flex; flex-direction: column; gap: 4px; margin-top: 28px; }
  .visit-contacts a { font: 300 26px var(--f-display); transition: color .3s; }
  .visit-contacts a:hover { color: var(--gold); }
  .visit-contacts span { font-size: 13px; color: var(--muted); }
}

/* =========================================================
   Футер
   ========================================================= */
.footer { border-top: 1px solid var(--line); padding: 48px 0 24px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 20px; }
.footer-brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 14px; }
.footer-brand p { font-size: 14px; color: var(--muted); max-width: 280px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col b { font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.footer-col a { transition: color .3s; }
.footer-col a:hover { color: var(--gold); }
.footer-col span { color: var(--muted); }
.socials { display: flex; gap: 8px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: border-color .3s; }
.socials a:hover { border-color: var(--gold); }
.socials svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }

.footer-word {
  margin: 48px 0 20px;
  font: 200 clamp(30px, 11.5vw, 168px)/.9 var(--f-display);
  letter-spacing: -.03em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(230, 223, 210, .14);
  user-select: none;
}
.footer-bottom {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 18px; border-top: 1px solid var(--line);
  font: 400 11px/1.5 var(--f-mono); letter-spacing: .04em; color: var(--muted);
}
.footer-bottom a:hover { color: var(--gold); }

@media (min-width: 900px) {
  .footer { padding: 72px 0 28px; }
  .footer-top { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* =========================================================
   Зображення: рендери, фото й заглушки, поки файлів немає
   ========================================================= */
.media {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: var(--ar, 3 / 2);
  background: #121714;
  border: 0; padding: 0; width: 100%; color: inherit; text-align: left;
}
button.media { cursor: zoom-in; }
.media picture, .media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.media img { object-fit: cover; opacity: 0; transition: opacity .6s ease, transform 1.2s var(--ease); }
.media.is-loaded img { opacity: 1; }
@media (hover: hover) { button.media:hover img { transform: scale(1.03); } }

/* заглушка: ліс на світанку і підпис, що тут буде */
.ph {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: radial-gradient(110% 80% at 50% 105%, #222B25 0%, #151A17 50%, #101411 100%);
}
.ph::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 80'%3E%3Cpath fill='%230C0F0D' d='M0 80V58l10-26 10 26V40l12-34 12 34v14l9-20 9 20V44l11-30 11 30v12l8-18 8 18V36l12-30 12 30v18l9-22 9 22v26z'/%3E%3C/svg%3E") repeat-x bottom / auto 100%;
  opacity: .9;
}
.ph-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px; max-width: 90%; }
.ph-in svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.2; opacity: .8; }
.ph-in b { font: 400 15px/1.3 var(--f-display); color: var(--bone); }
.ph-in small { font: 500 10px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* підпис «Візуалізація» / «Фото · місяць» */
.render-tag {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  font: 500 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 9px; color: var(--bone);
  background: rgba(13, 16, 14, .78); border: 1px solid rgba(230, 223, 210, .16);
  pointer-events: none;
}
.g-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 40px 16px 14px;
  font: 400 15px/1.3 var(--f-display); color: var(--bone);
  background: linear-gradient(transparent, rgba(8, 10, 9, .85));
  pointer-events: none;
}
.media:not(.is-loaded) .g-cap { display: none; }

/* =========================================================
   Галерея «Як виглядатиме квартал»
   ========================================================= */
.gallery { padding: 56px 0 80px; }
/* на телефоні — стрічка зі свайпом */
.g-grid {
  display: flex; gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad);
}
.g-grid::-webkit-scrollbar { display: none; }
.g-item { flex: 0 0 82%; aspect-ratio: 4 / 5; scroll-snap-align: start; scroll-margin-left: var(--pad); }

@media (min-width: 640px) {
  .g-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 240px; overflow: visible; margin: 0; padding: 0; }
  .g-item { aspect-ratio: auto; }
  .g1 { grid-column: 1 / -1; grid-row: span 2; }
}
@media (min-width: 900px) { .gallery { padding: 100px 0 110px; } }
@media (min-width: 1100px) {
  .g-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(4, 230px); grid-auto-rows: auto; }
  .g1 { grid-column: 1 / 3; grid-row: 1 / 3; }
  .g2 { grid-column: 3; grid-row: 1; }
  .g3 { grid-column: 3; grid-row: 2; }
  .g4 { grid-column: 4; grid-row: 1 / 3; }
  .g5 { grid-column: 1; grid-row: 3 / 5; }
  .g6 { grid-column: 2 / 4; grid-row: 3; }
  .g7 { grid-column: 2 / 4; grid-row: 4; }
  .g8 { grid-column: 4; grid-row: 3 / 5; }
}

/* =========================================================
   Шоурум (інтер'єри) у блоці квартир
   ========================================================= */
.interiors { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.int-head { margin-bottom: 20px; display: grid; gap: 10px; }
.int-head h3 { font: 300 26px/1.2 var(--f-display); letter-spacing: -.01em; }
.int-head p { color: var(--muted); max-width: 520px; font-size: 15px; }
.int-grid {
  display: flex; gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad);
}
.int-grid::-webkit-scrollbar { display: none; }
.int-item { flex: 0 0 78%; aspect-ratio: 4 / 5; scroll-snap-align: start; scroll-margin-left: var(--pad); }
@media (min-width: 640px) {
  .int-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; overflow: visible; margin: 0; padding: 0; }
  .int-item { aspect-ratio: auto; }
}
@media (min-width: 900px) {
  .interiors { margin-top: 80px; padding-top: 40px; }
  .int-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; margin-bottom: 28px; }
  .int-head h3 { font-size: 32px; }
  .int-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, 200px); }
  .i1 { grid-column: 1 / 3; grid-row: 1; }
  .i2 { grid-column: 1 / 3; grid-row: 2; }
  .i3 { grid-column: 3; grid-row: 1 / 3; }
  .i4 { grid-column: 4; grid-row: 1 / 3; }
}

/* =========================================================
   Фото з майданчика по місяцях
   ========================================================= */
.pp { margin-top: 40px; }
.pp-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.pp-head h3 { font: 300 24px/1.2 var(--f-display); }
.pp-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
.pp-tabs::-webkit-scrollbar { display: none; }
.pp-tabs button {
  flex: none; min-height: 44px; padding: 12px 18px;
  border: 1px solid var(--line); border-radius: 99px;
  font: 400 14px/1 var(--f-text); color: var(--muted);
  transition: background .3s, color .3s, border-color .3s;
}
.pp-tabs button[aria-selected="true"] { background: var(--bone); color: var(--bg); border-color: var(--bone); }
.pp-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.pp-panel[hidden] { display: none; }
@media (min-width: 640px) {
  .pp-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-head { flex-direction: row; justify-content: space-between; align-items: center; }
  .pp-tabs { margin: 0; padding: 0; }
}
@media (min-width: 900px) { .pp { margin-top: 56px; } }

/* =========================================================
   Лайтбокс
   ========================================================= */
.lb {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(6, 8, 7, .97); color: var(--bone);
  overscroll-behavior: contain;
}
.lb[open] { display: grid; grid-template-columns: 1fr; place-items: center; animation: fadeUp .35s var(--ease); }
.lb::backdrop { background: rgba(6, 8, 7, .9); }
.lb-fig { margin: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; padding: calc(64px + var(--safe-t)) 12px calc(96px + var(--safe-b)); width: 100%; }
.lb-media {
  width: min(100%, calc((100dvh - 200px) * var(--arn, 1.5)));
  max-height: calc(100dvh - 200px);
  cursor: default; touch-action: pan-y;
}
.lb-media img { object-fit: contain; background: #0A0C0B; }
.lb-cap { display: flex; justify-content: space-between; gap: 16px; width: min(100%, calc((100dvh - 200px) * var(--arn, 1.5))); font-size: 15px; color: var(--bone); }
.lb-count { font: 400 12px var(--f-mono); color: var(--muted); letter-spacing: .1em; white-space: nowrap; }
.lb-close, .lb-nav {
  position: fixed; z-index: 3;
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid rgba(230, 223, 210, .22); border-radius: 50%;
  background: rgba(13, 16, 14, .7); color: var(--bone);
  transition: border-color .3s, background .3s;
}
.lb-close { top: calc(12px + var(--safe-t)); right: 12px; }
.lb-nav { bottom: calc(24px + var(--safe-b)); }
.lb-prev { left: calc(50% - 60px); }
.lb-next { right: calc(50% - 60px); }
@media (hover: hover) { .lb-close:hover, .lb-nav:hover { border-color: var(--gold); } }
@media (min-width: 900px) {
  .lb-fig { padding: 72px 96px 56px; }
  .lb-nav { top: 50%; bottom: auto; margin-top: -24px; }
  .lb-prev { left: 24px; }
  .lb-next { right: 24px; }
  .lb-close { top: 20px; right: 24px; }
}

/* =========================================================
   Підказка-тост (демо-документи)
   ========================================================= */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); z-index: 60;
  transform: translate(-50%, 20px);
  padding: 14px 20px;
  max-width: calc(100% - 32px);
  background: var(--bone); color: var(--bg);
  font-size: 14px; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* анімації, яких не видно на екрані, не працюють даремно */
.paused, .paused * { animation-play-state: paused !important; }

/* =========================================================
   Телефони: прибираємо важкі ефекти, щоб скрол був плавним
   ========================================================= */
@media (max-width: 899px), (hover: none) {
  .nav.scrolled { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .mobile-menu { padding-top: calc(100px + var(--safe-t)); padding-bottom: calc(32px + var(--safe-b)); }
}

/* =========================================================
   Менше руху — для тих, хто так налаштував систему
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01s !important; }
  .kh-pulse, .scroll-cue i { animation: none !important; opacity: 0; }
}
