/* Yangi Chirchiq — сайт ЖК, v3 «архитектурный». Mobile-first.
   Язык: узкий гротеск капсом (как у крупных девелоперов), моно-подписи «с чертежа», золото логотипа,
   кирпич фасада, графит. Подпись бренда — срез вверх-вправо, как у столбов логотипа: на секциях, фото, кнопках. */

@font-face { font-family: 'YC Cond'; src: url('assets/fonts/cond.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'YC Sans'; src: url('assets/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'YC Mono'; src: url('assets/fonts/mono.woff2') format('woff2'); font-weight: 400 500; font-display: swap; }

:root {
	--ink: #121110;
	--ink-2: #1b1915;
	--ink-3: #27231d;
	--paper: #f3eee4;
	--paper-2: #e9e1d0;
	--gold: #edcb6e;
	--gold-deep: #85661c;
	--brick: #a8472f;
	--text: #1b1814;
	--muted: #5f574b;
	--muted-d: #b9ae9a;
	--line: rgba(27, 24, 20, .16);
	--line-d: rgba(237, 203, 110, .2);
	--slant: 44px;
	--pad: 16px;
	--cond: 'YC Cond', 'Arial Narrow', Impact, sans-serif;
	--sans: 'YC Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--mono: 'YC Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16px/1.55 var(--sans); overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 200; background: var(--gold); color: var(--ink); padding: 8px 14px; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.dark { background: var(--ink); color: var(--paper); }
.ic { width: 20px; height: 20px; flex: none; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.cut { clip-path: polygon(0 var(--cut, 32px), 100% 0, 100% 100%, 0 100%); }

/* ─── Типографика ─── */
.h1, .h2 { font-family: var(--cond); font-weight: 700; text-transform: uppercase; margin: 0; letter-spacing: -.005em; text-wrap: balance; }
.h1 { font-size: clamp(64px, 19vw, 220px); line-height: .84; }
.h2 { font-size: clamp(52px, 13vw, 140px); line-height: .86; }
.idx { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--gold-deep); }
.idx b { font-weight: 500; color: var(--text); }
.dark .idx { color: var(--muted-d); }
.dark .idx b { color: var(--gold); }
.idx__line { flex: 0 1 120px; height: 1px; background: currentColor; position: relative; transform-origin: left; transition: transform 1.1s var(--ease); }
.idx__line::after { content: ''; position: absolute; right: 0; top: -4px; width: 1px; height: 9px; background: currentColor; }
.js .sec__head:not(.is-in) .idx__line, .js .lead__text:not(.is-in) .idx__line { transform: scaleX(0); }
.sec { padding: 80px 0; position: relative; }
.sec__head { margin-bottom: 40px; }
.sec__lead { margin: 20px 0 0; font-size: 17px; color: var(--muted); max-width: 560px; }
.sec__lead a { color: var(--gold-deep); }
.dark .sec__lead { color: var(--muted-d); }
.dark .sec__lead a { color: var(--gold); }

/* Тёмные секции входят срезом, как грани логотипа */
.sec.dark { clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%); margin-top: calc(var(--slant) * -1); padding-top: calc(80px + var(--slant)); }

/* Заголовки по словам из-под маски */
.kin__m { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em 0 .04em; margin: -.14em 0 -.04em; }
.kin__w { display: inline-block; transform: translateY(102%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.kin.is-in .kin__w { transform: none; }

/* ─── Кнопки ─── */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border: 0;
	font: 600 15px/1 var(--sans); letter-spacing: .02em; text-decoration: none; transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--ink); clip-path: polygon(0 10px, 100% 0, 100% 100%, 0 100%); }
.btn--gold:hover { background: #f6da8d; }
.btn--line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.dark .btn--line, .hero .btn--line, .plan__card .btn--line { color: var(--paper); box-shadow: inset 0 0 0 1px rgba(243,238,228,.35); }
.dark .btn--line:hover, .hero .btn--line:hover, .plan__card .btn--line:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold); }

/* ─── Шапка ─── */
.top { position: fixed; inset: 0 0 auto; z-index: 90; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 0 var(--pad); color: var(--paper); transition: background .3s, box-shadow .3s; }
.top.is-solid { background: rgba(18, 17, 16, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line-d); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 24px; height: 33px; }
.brand__name { font: 700 19px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.top__end { display: flex; align-items: center; gap: 8px; }
.top__phone, .top__tg { display: none; }
.top__call { display: grid; place-items: center; width: 40px; height: 38px; color: var(--ink); background: var(--gold); clip-path: polygon(0 6px, 100% 0, 100% 100%, 0 100%); }
.lang { display: flex; border: 1px solid var(--line-d); }
.lang button { background: none; border: 0; padding: 9px 9px; font: 500 11px/1 var(--mono); letter-spacing: .08em; color: var(--muted-d); }
.lang button[aria-pressed='true'] { background: var(--gold); color: var(--ink); }
.burger { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 4px 0 8px; background: none; border: 0; color: var(--paper); }
.burger__l { position: relative; width: 22px; height: 2px; background: currentColor; transition: background .2s; }
.burger__l::before, .burger__l::after { content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.burger__l::before { top: -7px; } .burger__l::after { top: 7px; width: 14px; }
.burger__t { display: none; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.burger[aria-expanded='true'] .burger__l { background: transparent; }
.burger[aria-expanded='true'] .burger__l::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded='true'] .burger__l::after { width: 22px; transform: translateY(-7px) rotate(-45deg); }

/* ─── Меню на весь экран ─── */
.menu { position: fixed; inset: 0; z-index: 80; background: var(--ink); color: var(--paper); padding: 84px var(--pad) 32px; overflow-y: auto;
	display: grid; gap: 36px; align-content: start; animation: menuIn .5s var(--ease); }
@keyframes menuIn { from { clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); } to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); } }
.menu__nav { display: grid; }
.menu__nav a { display: flex; align-items: baseline; gap: 14px; text-decoration: none; font: 700 clamp(40px, 11vw, 92px)/1 var(--cond); text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid var(--line-d); transition: color .2s, padding .3s var(--ease); }
.menu__nav a:hover { color: var(--gold); padding-left: 10px; }
.menu__nav i { font: 500 12px/1 var(--mono); font-style: normal; color: var(--gold); }
.menu__side { display: grid; gap: 8px; align-content: start; }
.menu__big { font: 700 32px/1.1 var(--cond); text-decoration: none; letter-spacing: .02em; }
.menu__addr { margin: 10px 0 6px; color: var(--muted-d); font-size: 15px; max-width: 360px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; padding: 12px 14px; border: 1px solid var(--line-d); }
.socials a:hover { border-color: var(--gold); color: var(--gold); }

/* ─── Первый экран ─── */
.hero { position: relative; min-height: 100svh; background: var(--ink); color: var(--paper); display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; background: var(--ink-2) url('assets/poster/hero.webp') center / cover; }
.hero__media::after { content: ''; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(18,17,16,.6) 0%, rgba(18,17,16,0) 20%, rgba(18,17,16,.1) 38%, rgba(18,17,16,.85) 62%, var(--ink) 100%); }
.hero__inner { position: relative; z-index: 2; width: 100%; padding: 0 var(--pad) 28px; }
.hero__coords { color: var(--gold); margin: 0 0 14px; }
.hero__row { display: grid; gap: 22px; margin-top: 18px; }
.hero__lead { margin: 0; font-size: 16px; color: #ddd4c3; max-width: 520px; }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__cta .btn { flex: 1 1 auto; }
.hero__price { display: grid; grid-template-columns: repeat(3, 1fr); margin: 26px 0 0; border-top: 1px solid var(--line-d); }
.hero__price div { padding: 14px 10px 0 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.hero__price div + div { padding-left: 12px; border-left: 1px solid var(--line-d); }
.hero__price dt { font: 500 10.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted-d); }
.hero__price dd { margin: 0; font: 700 40px/1 var(--cond); color: var(--gold); }
.hero__price small { font: 600 13px var(--sans); color: var(--paper); margin-left: 3px; }
.hero__tag { position: absolute; z-index: 2; top: 74px; left: var(--pad); margin: 0; display: flex; align-items: center; gap: 8px; color: var(--paper); background: rgba(18,17,16,.55); padding: 7px 10px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #e2513a; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(226,81,58,.6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(226,81,58,0); } }
.hero__dim { display: none; }

/* Размерная линия */
.dim { position: relative; color: var(--gold); }
.dim--v { width: 1px; background: currentColor; transform-origin: top; transition: transform 1.4s var(--ease); }
.dim--v::before, .dim--v::after { content: ''; position: absolute; left: -6px; width: 13px; height: 1px; background: currentColor; }
.dim--v::before { top: 0; } .dim--v::after { bottom: 0; }
.dim--v > span { position: absolute; top: 50%; left: -10px; white-space: nowrap; transform: translate(-100%, -50%); color: var(--gold); background: var(--ink); padding: 4px 6px; }
.js .dim--v:not(.is-in) { transform: scaleY(0); }

/* ─── Бегущая строка ─── */
.marquee { background: var(--gold); color: var(--ink); overflow: hidden; position: relative; z-index: 3; }
.marquee__track { display: flex; width: max-content; animation: marq 38s linear infinite; }
.marquee span { font: 700 26px/1 var(--cond); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; padding: 14px 0; padding-right: .4em; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ─── Цифры ─── */
.facts { background: var(--ink); color: var(--paper); }
.facts__list { list-style: none; margin: 0 auto; padding: 0; max-width: 1320px; display: grid; grid-template-columns: repeat(2, 1fr); }
.facts li { padding: 26px var(--pad) 22px; border-bottom: 1px solid var(--line-d); display: flex; flex-direction: column; gap: 8px; }
.facts li:nth-child(odd) { border-right: 1px solid var(--line-d); }
.facts li:last-child { grid-column: 1 / -1; border-right: 0; }
.facts b { font: 700 72px/.85 var(--cond); color: var(--gold); font-variant-numeric: tabular-nums; }
.facts b span { font: inherit; }
.facts small { font: 700 26px var(--cond); margin-left: 4px; color: var(--paper); }
.facts .mono { color: var(--muted-d); }

/* ─── 01 Преимущества: закреплённое фото ─── */
.why { padding-bottom: 40px; }
.why__split { display: grid; }
.why__stick { position: sticky; top: 60px; z-index: 2; height: 42vh; margin: 0 calc(var(--pad) * -1); background: var(--paper); padding: 0 var(--pad) 10px; }
.why__pics { position: relative; height: 100%; --cut: 26px; background: var(--ink-2); }
.why__pics img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease), transform 1.4s var(--ease); }
.why__pics img.is-on { opacity: 1; transform: none; }
.why__count { position: absolute; right: calc(var(--pad) + 10px); bottom: 22px; margin: 0; color: var(--paper); background: rgba(18,17,16,.6); padding: 6px 9px; }
.why__count b { color: var(--gold); font-weight: 500; }
.why__list { list-style: none; margin: 0; padding: 0; }
.why__list li { min-height: 36vh; padding: 36px 0; border-bottom: 1px solid var(--line); display: grid; align-content: center; gap: 10px; opacity: .3; transition: opacity .5s; }
.why__list li.is-on { opacity: 1; }
.why__list i { font-style: normal; color: var(--gold-deep); }
.why__list h3 { margin: 0; font: 700 clamp(36px, 9vw, 64px)/.92 var(--cond); text-transform: uppercase; }
.why__list p { margin: 0; color: var(--muted); font-size: 16px; max-width: 460px; }

/* ─── 02 Характеристики ─── */
.specs { background-color: var(--ink); background-image: linear-gradient(rgba(237,203,110,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(237,203,110,.05) 1px, transparent 1px); background-size: 32px 32px; }
.specs__grid { display: grid; gap: 36px; }
.specs__draw { margin: 0; background: rgba(27,25,21,.9); padding: 18px; clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 100%); }
.specs__draw svg { width: 100%; height: auto; }
.sd-slab { fill: #3a342b; stroke: var(--gold); stroke-width: 1.5; }
.sd-wall { fill: #5a3428; }
.sd-win { fill: #24323a; stroke: var(--paper); stroke-width: 1.5; }
.sd-glass { stroke: rgba(246,241,231,.35); stroke-width: 1; }
.sd-gas { fill: #8d877b; }
.sd-ins { fill: #c9a24a; opacity: .85; }
.sd-brick { fill: var(--brick); }
.sd-dim path { fill: none; stroke: var(--gold); stroke-width: 1.5; }
.sd-dim text { font: 500 13px var(--mono); fill: var(--muted-d); text-transform: uppercase; }
.sd-dim .sd-big { font: 700 44px var(--cond); fill: var(--gold); }
.sd-dim .sd-mid { font: 700 28px var(--cond); fill: var(--gold); }
.sd-lab { font: 500 12px var(--mono); fill: var(--paper); text-transform: uppercase; }
.specs__list { margin: 0; display: grid; }
.specs__list div { display: flex; align-items: baseline; gap: 10px; padding: 12px 0; }
.specs__list dt { display: flex; align-items: baseline; flex: 1; gap: 10px; color: var(--muted-d); font-size: 14px; line-height: 1.35; }
.specs__list dt::after { content: ''; flex: 1 0 24px; border-bottom: 1px dotted rgba(237,203,110,.45); transform: translateY(-4px); }
.specs__list dd { margin: 0; font: 700 32px/1 var(--cond); color: var(--gold); white-space: nowrap; text-align: right; }
.specs__list dd span { font: 600 15px var(--cond); color: var(--paper); margin-left: 2px; }

/* ─── 03 Хроника стройки ─── */
.build__head { display: grid; gap: 28px; }
.build__video { position: relative; max-width: 380px; aspect-ratio: 9 / 13; --cut: 36px; background: var(--ink-2); }
.build__video video { width: 100%; height: 100%; object-fit: cover; }
.stamp { position: absolute; left: 14px; bottom: 18px; background: var(--brick); color: #fff; padding: 10px 14px; font: 700 20px/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; transform: rotate(-4deg); }
.tl { position: relative; margin-top: 40px; }
.tl__rail { position: absolute; left: 0; right: 0; top: 18px; height: 1px; background: var(--line); }
.tl__fill { position: absolute; left: 0; top: 0; height: 1px; width: var(--fill, 0); background: var(--gold-deep); transition: width 1.6s var(--ease); }
.tl__track { list-style: none; margin: 0; padding: 0 var(--pad) 12px; display: grid; grid-auto-flow: column; grid-auto-columns: 78vw; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; position: relative; }
.tl__track::-webkit-scrollbar { display: none; }
.tl__card { scroll-snap-align: start; position: relative; padding-top: 40px; display: grid; gap: 10px; align-content: start; }
.tl__card::before { content: ''; position: absolute; top: 13px; left: 0; width: 11px; height: 11px; background: var(--paper); border: 2px solid var(--gold-deep); transform: rotate(45deg); }
.tl__card.is-now::before { background: var(--gold); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(237,203,110,.35); }
.tl__card time { color: var(--gold-deep); font-size: 13px; }
.tl__card b { font: 700 28px/.95 var(--cond); text-transform: uppercase; }
.tl__card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.tl__card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; background: var(--paper-2); clip-path: polygon(0 14px, 100% 0, 100% 100%, 0 100%); }
.tl__card--text { background: var(--paper-2); padding: 52px 18px 20px; border-top: 3px solid var(--gold-deep); margin-top: 40px; }
.tl__card--text::before { top: -8px; left: 16px; }
.tl__card--ghost { background: transparent; border: 1px dashed var(--gold-deep); padding: 52px 18px 20px; margin-top: 40px; }
.tl__card--ghost::before { top: -8px; left: 16px; background: var(--paper); }
.tl__nav { display: none; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.arr { width: 52px; height: 52px; border: 1px solid var(--line); background: transparent; font-size: 18px; transition: background .2s, color .2s; }
.arr:hover { background: var(--ink); color: var(--gold); }

/* ─── 04 Квартиры ─── */
.plans { background: var(--paper-2); }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin-bottom: 18px; }
.tabs button { display: flex; align-items: baseline; justify-content: center; background: transparent; border: 0; padding: 14px 6px; font-size: 14px; font-weight: 600; transition: background .25s, color .25s; }
.tabs button + button { border-left: 1px solid var(--line); }
.tabs b { font: 700 34px/1 var(--cond); }
.tabs button[aria-selected='true'] { background: var(--ink); color: var(--gold); }
.plan { display: grid; gap: 14px; }
.plan__draw { background: var(--paper); padding: 30px 16px 16px; clip-path: polygon(0 26px, 100% 0, 100% 100%, 0 100%); }
.plan__svg { width: 100%; height: auto; max-height: 360px; margin: 0 auto; }
.pl-walls rect, .pl-walls path { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: square; }
.pl-labels text { font: 500 12px var(--mono); fill: var(--muted); text-anchor: middle; text-transform: uppercase; }
.pl-dim path { fill: none; stroke: var(--gold-deep); stroke-width: 1.5; }
.pl-dim text { font: 700 20px var(--cond); fill: var(--gold-deep); text-anchor: middle; paint-order: stroke; stroke: var(--paper); stroke-width: 10px; }
.plan__note { margin: 12px 0 0; color: var(--muted); }
.plan__card { background: var(--ink); color: var(--paper); padding: 26px 20px; display: grid; gap: 6px; align-content: start; }
.plan__name { margin: 0 0 6px; font: 700 54px/1 var(--cond); text-transform: uppercase; }
.plan__name b { color: var(--gold); }
.plan__specs { margin: 0 0 18px; }
.plan__specs div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-d); }
.plan__specs dt { color: var(--muted-d); font-size: 14px; }
.plan__specs dd { margin: 0; font: 700 24px/1.1 var(--cond); color: var(--gold); text-align: right; }
.plan__specs dd span { font-size: 15px; color: var(--paper); }

/* ─── 05 Рассрочка ─── */
.calc { background: var(--ink-2); padding: 28px 18px 22px; display: grid; gap: 22px; border: 1px solid var(--line-d); }
.rng { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: baseline; color: var(--muted-d); }
.rng output { font: 700 30px/1 var(--cond); color: var(--gold); }
.rng input { grid-column: 1 / -1; }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; }
input[type='range']::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--gold) var(--p, 50%), #4a4337 var(--p, 50%)); }
input[type='range']::-moz-range-track { height: 2px; background: #4a4337; }
input[type='range']::-moz-range-progress { height: 2px; background: var(--gold); }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; background: var(--gold); border: 4px solid var(--ink-2); box-shadow: 0 0 0 1px var(--gold); transform: rotate(45deg); }
input[type='range']::-moz-range-thumb { width: 16px; height: 16px; background: var(--gold); border: 3px solid var(--ink-2); border-radius: 0; transform: rotate(45deg); }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips legend { color: var(--muted-d); margin-bottom: 10px; padding: 0; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: grid; place-items: center; min-width: 52px; height: 44px; padding: 0 14px; border: 1px solid var(--line-d); font-weight: 600; font-size: 14px; transition: background .2s, color .2s; }
.chips input:checked + span { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.calc__bar { display: flex; height: 10px; background: #2f2a22; }
.calc__bar-a { width: var(--a, 30%); background: var(--gold); transition: width .4s var(--ease); }
.calc__bar-b { flex: 1; background: repeating-linear-gradient(90deg, rgba(237,203,110,.45) 0 2px, transparent 2px 8px); }
.calc__out { display: grid; border-top: 1px solid var(--line-d); }
.calc__out div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-d); color: var(--muted-d); }
.calc__out b { font: 600 17px/1.2 var(--sans); color: var(--paper); text-align: right; font-variant-numeric: tabular-nums; }
.calc__month b { font: 700 44px/1 var(--cond); color: var(--gold); }
.calc__note { margin: 0; font-size: 13px; color: var(--muted-d); }

/* ─── 06 Район ─── */
.map__grid { display: grid; gap: 28px; }
.map__fig { margin: 0; }
.map__svg { width: 100%; height: auto; clip-path: polygon(0 30px, 100% 0, 100% 100%, 0 100%); }
.m-bg { fill: var(--ink-2); }
.m-green { fill: #2c3324; }
.m-water { fill: #3f6676; }
.m-canal { fill: none; stroke: #4f7a8a; stroke-width: 2; }
.m-canal-big { fill: none; stroke: #4f7a8a; stroke-width: 7; stroke-linejoin: round; }
.m-road { fill: none; stroke: #463f33; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.m-road-main { fill: none; stroke: #5d5442; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.m-ring { fill: rgba(237,203,110,.05); stroke: var(--gold); stroke-dasharray: 4 6; stroke-width: 1.4; }
.m-ring--2 { fill: none; opacity: .55; }
.m-ringl { font: 500 12px var(--mono); fill: var(--gold); }
.m-pt circle { fill: var(--ink); stroke: var(--gold); stroke-width: 3; }
.m-pt text { font: 700 19px var(--cond); fill: var(--paper); text-transform: uppercase; letter-spacing: .02em; }
.m-pt .m-sub { font: 500 12px var(--mono); fill: var(--gold); text-transform: none; }
.m-home__bg { fill: var(--ink); stroke: var(--gold); stroke-width: 2; }
.m-home path { fill: var(--gold); transform: scale(1.1); }
.m-home text { font: 700 18px var(--cond); fill: var(--gold); letter-spacing: .1em; text-transform: uppercase; }
.m-scale path { fill: none; stroke: var(--paper); stroke-width: 1.5; }
.m-scale text, .m-osm { font: 500 11px var(--mono); fill: var(--muted-d); }
.m-wlabel { font: 500 13px var(--mono); fill: #a9c4d1; text-transform: uppercase; letter-spacing: .06em; }
.map__fig figcaption { color: var(--muted); margin-top: 10px; text-transform: none; }
.day { list-style: none; margin: 0; padding: 0; display: grid; }
.day li { padding: 20px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.day__t { color: var(--gold-deep); }
.day b { font: 700 30px/1 var(--cond); text-transform: uppercase; }
.day img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; margin-top: 8px; clip-path: polygon(0 16px, 100% 0, 100% 100%, 0 100%); }

/* ─── 07 Галерея: мозаика ─── */
.gal { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 8px; }
.gal li { break-inside: avoid; margin-bottom: 8px; }
.gal button { display: block; position: relative; width: 100%; padding: 0; border: 0; background: var(--ink-2); overflow: hidden; }
.gal li:nth-child(3n+1) button { clip-path: polygon(0 22px, 100% 0, 100% 100%, 0 100%); }
.gal img { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; transition: transform 1s var(--ease); }
.gal--w img { aspect-ratio: 3 / 2; }
.gal button:hover img { transform: scale(1.05); }
.gal span { position: absolute; left: 10px; bottom: 10px; background: rgba(18,17,16,.75); color: var(--paper); padding: 6px 8px; }
.gal button::after { content: ''; position: absolute; right: 10px; top: 10px; width: 14px; height: 14px; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); opacity: 0; transition: opacity .3s; }
.gal button:hover::after { opacity: 1; }
.lb { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; }
.lb::backdrop { background: rgba(10, 9, 7, .94); }
.lb img { max-height: 92vh; max-width: 94vw; width: auto; }
.lb__x { position: fixed; top: 12px; right: 12px; width: 48px; height: 48px; background: var(--gold); border: 0; font-size: 26px; color: var(--ink); }

/* ─── 08 Видео ─── */
.reels__list { list-style: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); display: grid; grid-auto-flow: column; grid-auto-columns: 60%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.reels__list::-webkit-scrollbar { display: none; }
.reels__list li { scroll-snap-align: start; }
.reel { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--ink-2); aspect-ratio: 9 / 16; overflow: hidden; color: var(--paper); text-align: left; }
.reel img, .reel video { width: 100%; height: 100%; object-fit: cover; }
.reel__play { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px; background: var(--gold); clip-path: polygon(0 12px, 100% 0, 100% 100%, 0 100%); transition: transform .3s var(--ease); }
.reel__play::after { content: ''; position: absolute; left: 26px; top: 21px; border: 12px solid transparent; border-left: 18px solid var(--ink); border-right: 0; }
.reel:hover .reel__play { transform: scale(1.08); }
.reel__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 12px; background: linear-gradient(180deg, transparent, rgba(18,17,16,.9)); font: 700 20px/1 var(--cond); text-transform: uppercase; display: flex; gap: 8px; align-items: flex-start; }
.reel__cap i { font-style: normal; padding: 3px 5px; border: 1px solid var(--gold); color: var(--gold); flex: none; font-size: 10px; }
.reel.is-playing .reel__play, .reel.is-playing .reel__cap, .reel.is-playing img { display: none; }

/* ─── 09 Заявка и контакты ─── */
.lead__wrap { display: grid; gap: 40px; }
.contact { list-style: none; margin: 30px 0 0; padding: 0; display: grid; }
.contact li { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line-d); }
.contact .mono { color: var(--gold); }
.contact a { font: 700 28px/1.1 var(--cond); text-decoration: none; letter-spacing: .01em; }
.contact a:hover { color: var(--gold); }
.contact .contact__sm, .contact li:last-child a { font: 400 15px/1.4 var(--sans); color: var(--muted-d); }
.form { background: var(--ink-2); border: 1px solid var(--line-d); padding: 40px 20px 24px; display: grid; gap: 20px; clip-path: polygon(0 26px, 100% 0, 100% 100%, 0 100%); }
.form__t { margin: 6px 0 0; font: 700 40px/1 var(--cond); text-transform: uppercase; color: var(--gold); }
.form label > .mono { display: block; color: var(--muted-d); margin-bottom: 4px; }
.form input:not([type=radio]) { width: 100%; height: 50px; padding: 0; border: 0; border-bottom: 1px solid rgba(243,238,228,.3); background: transparent; color: var(--paper); font-size: 20px; border-radius: 0; }
.form input::placeholder { color: rgba(243,238,228,.3); }
.form input:not([type=radio]):focus { outline: none; border-bottom-color: var(--gold); }
.form input[aria-invalid='true'] { border-bottom-color: #e26a4e; }
.form__err { margin: 0; color: #f08b72; font-weight: 600; font-size: 14px; }
.form__note { margin: 0; font-size: 13px; color: var(--muted-d); }
.form__done { border-top: 1px solid var(--line-d); padding-top: 16px; }
.form__done p { margin: 0 0 10px; font-weight: 600; }

/* ─── Подвал ─── */
.foot { background: var(--ink); color: var(--paper); padding: 56px 0 96px; overflow: hidden; border-top: 1px solid var(--line-d); }
.foot__top { display: grid; gap: 30px; }
.foot__logo { width: 150px; }
.foot__cols { display: grid; gap: 22px; }
.foot__cols div { display: grid; gap: 6px; align-content: start; }
.foot__cols .mono { color: var(--gold); margin-bottom: 4px; }
.foot__cols a { text-decoration: none; font-size: 15px; }
.foot__cols a:hover { color: var(--gold); }
.foot__cols p { margin: 0; font-size: 15px; color: var(--muted-d); max-width: 320px; }
.foot__word { margin: 40px 0 10px; font: 800 17.4vw/.8 var(--cond); text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(237,203,110,.55); text-align: center; letter-spacing: -.01em; user-select: none; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot__bottom p { margin: 0; font-size: 12.5px; color: var(--muted-d); }

/* ─── Нижняя панель на телефоне ─── */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 1px; background: var(--line-d);
	padding-bottom: env(safe-area-inset-bottom); transform: translateY(110%); transition: transform .4s var(--ease); }
.dock.is-on { transform: none; }
.dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 60px; background: var(--ink); color: var(--paper); text-decoration: none; font: 500 10.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.dock .ic { color: var(--gold); }
.dock .dock__main { background: var(--gold); color: var(--ink); font: 700 18px/1 var(--cond); flex-direction: row; letter-spacing: .04em; }

/* ─── Появление ─── */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }

/* Схема и чертёж на телефоне: подписи крупнее */
@media (max-width: 719px) {
	.m-pt text { font-size: 26px; }
	.m-pt .m-sub { font-size: 18px; }
	.m-ringl, .m-scale text, .m-osm, .m-wlabel { font-size: 17px; }
	.m-home text { font-size: 24px; }
	.sd-lab { font-size: 17px; }
	.sd-dim text { font-size: 16px; }
	.sd-dim .sd-big { font-size: 54px; }
	.sd-dim .sd-mid { font-size: 36px; }
	.specs__draw { padding: 12px 8px; }
}

/* ═══ Планшет ═══ */
@media (min-width: 720px) {
	:root { --pad: 32px; --slant: 64px; }
	.sec { padding: 112px 0; }
	.sec.dark { padding-top: calc(112px + var(--slant)); }
	.top__tg { display: grid; place-items: center; width: 40px; height: 38px; color: var(--gold); border: 1px solid var(--line-d); }
	.burger__t { display: inline; }
	.facts__list { grid-template-columns: repeat(5, 1fr); }
	.facts li, .facts li:nth-child(odd) { border-right: 1px solid var(--line-d); border-bottom: 0; padding: 34px 24px 28px; }
	.facts li:last-child { grid-column: auto; border-right: 0; }
	.facts b { font-size: 92px; }
	.menu { grid-template-columns: 1.6fr 1fr; align-content: center; padding-top: 96px; }
	.tl__track { grid-auto-columns: 340px; padding-left: max(var(--pad), calc((100vw - 1320px) / 2 + var(--pad))); }
	.tl__nav { display: flex; }
	.gal { columns: 3; column-gap: 12px; }
	.gal li { margin-bottom: 12px; }
	.reels__list { grid-auto-columns: 31%; }
	.plan { grid-template-columns: 1.4fr 1fr; }
	.foot__cols { grid-template-columns: repeat(3, 1fr); }
}

/* ═══ Десктоп ═══ */
@media (min-width: 1080px) {
	:root { --pad: 44px; --slant: 90px; }
	.top { height: 76px; }
	.top__phone { display: block; text-decoration: none; font: 700 22px/1 var(--cond); letter-spacing: .04em; margin-right: 6px; }
	.top__phone:hover { color: var(--gold); }
	.top__call { display: none; }
	.hero { align-items: stretch; min-height: max(720px, 100vh); }
	.hero__media { left: auto; width: 46%; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
	.hero__media::after { background: linear-gradient(90deg, rgba(18,17,16,.55) 0%, rgba(18,17,16,0) 35%), linear-gradient(0deg, rgba(18,17,16,.5), rgba(18,17,16,0) 30%); }
	.hero__inner { display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 0 44px max(var(--pad), calc((100vw - 1320px) / 2 + var(--pad))); }
	.h1 { font-size: clamp(96px, 9.4vw, 176px); max-width: 8.6ch; position: relative; z-index: 3; }
	.pay .h2, .lead .h2 { font-size: clamp(56px, 6.6vw, 104px); }
	.hero__row { grid-template-columns: minmax(0, 480px) auto; align-items: end; gap: 40px; margin-top: 26px; max-width: 980px; }
	.hero__cta .btn { flex: 0 0 auto; }
	.hero__price { max-width: 560px; margin-top: 30px; }
	.hero__price dd { font-size: 52px; }
	.hero__tag { top: auto; bottom: 26px; left: auto; right: 26px; }
	.hero__dim { display: block; position: absolute; z-index: 3; top: 120px; bottom: 44px; left: calc(54% + 30px); }
	.marquee span { font-size: 34px; padding: 18px 0; }
	.why__split { grid-template-columns: 1fr 1fr; gap: 72px; }
	.why__stick { top: 104px; height: calc(100vh - 140px); margin: 0; padding: 0; background: none; }
	.why__pics { --cut: 56px; }
	.why__count { right: 18px; bottom: 18px; }
	.why__list li { min-height: 58vh; }
	.specs__grid { grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
	.build__head { grid-template-columns: 1fr 360px; align-items: end; gap: 64px; }
	.plan { grid-template-columns: 1.5fr 1fr; gap: 20px; }
	.plan__card { padding: 34px 32px; }
	.pay__wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: start; }
	.pay__wrap .sec__head { position: sticky; top: 120px; }
	.calc { padding: 36px 36px 30px; }
	.map__grid { grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: start; }
	.reels__list { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; }
	.lead__wrap { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
	.form { padding: 52px 40px 36px; }
	.dock { display: none; }
	.foot { padding-bottom: 40px; }
	.foot__top { grid-template-columns: 220px 1fr; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.kin__w { transform: none; }
	.js .rv { opacity: 1; transform: none; }
	.js .dim--v:not(.is-in), .js .sec__head:not(.is-in) .idx__line, .js .lead__text:not(.is-in) .idx__line { transform: none; }
}

/* Ссылка на анкету */
.lead__quiz { margin-top: 26px; width: 100%; max-width: 460px; text-align: center; line-height: 1.3; padding-block: 12px; }
.hero__coords { font-weight: 500; line-height: 1.5; }
@media (max-width: 719px) { .hero__geo { display: none; } }

/* Форма: мелкая ссылка Telegram, ловушка для ботов */
.form__tg { justify-self: center; padding: 6px 0; font-size: 14px; color: var(--muted-d); text-underline-offset: 3px; }
.form__tg:hover { color: var(--gold); }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
