/* «Открытая дверь» — демо ремонта квартир. Мир: приквартирный холл новостройки во время ремонта —
   бетон, крафт-картон, заводская плёнка, синий малярный скотч, объявление соседям, красный маркер. */
:root {
  --concrete: #DCDAD5;
  --concrete-2: #CECBC5;
  --concrete-3: #BDBAB3;
  --ink: #1E1E1C;
  --ink-2: #47453F;
  --kraft: #C49A68;
  --kraft-ink: #2A2118;
  --paper: #FBFAF6;
  --tape: #2F5FD0;
  --tape-2: #2650B4;
  --tape-ink: #1C3F96;
  --tape-soft: #B9C9EE;
  --marker: #B5271F;
  --graphite: #2E3133;
  --f-head: 'Dela Gothic One', 'Arial Black', sans-serif;
  --f-text: 'PT Sans', 'Helvetica Neue', Arial, sans-serif;
  --f-mark: 'Pangolin', 'Comic Sans MS', cursive;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
body {
  margin: 0; background: var(--concrete) var(--grain); color: var(--ink);
  font: 400 1.125rem/1.55 var(--f-text); text-rendering: optimizeLegibility;
}
::selection { background: var(--tape); color: #fff; }
a { color: var(--tape-2); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 400; line-height: 1.06; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.85rem, 3.4vw, 3rem); }
p { margin: 0 0 .8em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.mk { font-family: var(--f-mark); }
/* значение-пример: пунктир и подсказка «уточнить у заказчика» */
.ex { text-decoration: underline dotted; text-decoration-color: currentColor; text-underline-offset: .22em; text-decoration-thickness: 1.5px; cursor: help; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: .7em 1.5em; border: 0; border-radius: 3px; cursor: pointer;
  background: var(--tape); color: #fff; font: 700 1.08rem/1.2 var(--f-text); text-decoration: none;
  box-shadow: 0 2px 0 var(--tape-2), 0 8px 18px -10px rgba(0, 0, 0, .45);
  transition: background .2s, transform .2s cubic-bezier(.2, .8, .2, 1);
}
.btn:hover { background: var(--tape-2); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: #6F7B99; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-sm { min-height: 42px; padding: .45em 1.1em; font-size: .98rem; }
.btn-wide { width: 100%; }

/* ---------- полоса демо и шапка ---------- */
.demo-strip { margin: 0; padding: .5em var(--gut); background: var(--graphite); color: #E6E3DC; font-size: .86rem; line-height: 1.4; text-align: center; }
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 2rem;
  padding: .7rem var(--gut); background: rgba(220, 218, 213, .94); backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(30, 30, 28, .08);
}
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 30px; height: 36px; flex: none; }
.brand-name { font: 400 1.18rem/1 var(--f-head); }
.brand-name small { display: block; margin-top: .3em; font: 400 .8rem/1 var(--f-text); color: var(--ink-2); letter-spacing: .01em; }
.nav { display: flex; gap: 1.4rem; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 1rem; }
.nav a:hover { color: var(--tape-2); text-decoration: underline; }
@media (max-width: 1100px) { .nav { display: none; } .top .btn { margin-left: auto; } }
.top .btn { white-space: nowrap; }
@media (max-width: 520px) { .brand-name small { display: none; } .brand-name { font-size: 1rem; } .brand-mark { width: 24px; height: 30px; } .top { gap: .8rem; } .top .btn { font-size: .88rem; padding: .4em .75em; min-height: 40px; } }

/* ---------- первый экран ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  max-width: var(--max); margin: 0 auto; padding: clamp(24px, 4vh, 48px) var(--gut) 0;
  min-height: min(calc(100vh - 120px), 900px);
}
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 4.3rem); line-height: 1.02; }
.lead { margin: 1.3rem 0 1.8rem; max-width: 34em; font-size: 1.2rem; color: var(--ink-2); }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.link-door {
  background: none; border: 0; padding: .3em 0; cursor: pointer; color: var(--ink);
  font: 700 1.08rem var(--f-text); text-decoration: underline; text-decoration-color: var(--tape); text-decoration-thickness: 3px; text-underline-offset: .3em;
}
.link-door:hover { color: var(--tape-2); }
.hero-note { margin-top: 1.6rem; font-size: .98rem; color: var(--ink-2); max-width: 32em; }

/* стена холла и пол из керамогранита под дверью */
.hero-wall { background: linear-gradient(to top, #BDB9B1 0 34px, #A9A59D 34px 36px, transparent 36px); }
/* дверь */
.hall {
  --h: clamp(560px, calc(100vh - 150px), 860px);
  position: relative; height: var(--h); width: calc(var(--h) * .6); perspective: 1700px; align-self: end; justify-self: center;
}
.hall::before { /* наличник */
  content: ''; position: absolute; left: 10%; top: 5%; width: 70%; height: 86.5%;
  background: linear-gradient(90deg, #5B5F62, #74787B 20%, #5F6366); border-radius: 2px;
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .5);
}
.doorway, .leaf { position: absolute; left: 13%; top: 7.5%; width: 64%; height: 84%; }
.doorway { background: #191A1A; overflow: hidden; cursor: pointer; }
.doorway-room, .doorway-room .room { width: 100%; height: 100%; display: block; }
.spill {
  position: absolute; left: 13%; bottom: 0; width: 64%; height: 9%; z-index: 3; pointer-events: none;
  transform: translateY(100%); opacity: 0; transition: opacity .6s .25s;
  background: linear-gradient(180deg, rgba(255, 236, 190, .55), rgba(255, 236, 190, 0));
  clip-path: polygon(0 0, 100% 0, 112% 100%, -12% 100%);
}
.leaf {
  z-index: 2; transform-origin: 0 50%; transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); cursor: pointer;
  transform-style: preserve-3d;
}
.leaf-face {
  position: absolute; inset: 0; border-radius: 1px;
  background:
    linear-gradient(115deg, rgba(160, 200, 235, .2) 0 18%, rgba(255, 255, 255, .2) 19%, rgba(160, 200, 235, .14) 21% 47%, rgba(255, 255, 255, .13) 48%, rgba(160, 200, 235, .16) 50% 78%, rgba(255, 255, 255, .17) 79%, rgba(160, 200, 235, .14) 81%),
    linear-gradient(#45494C 0 0) 50% 7% / 74% 40% no-repeat,
    linear-gradient(#45494C 0 0) 50% 93% / 74% 40% no-repeat,
    linear-gradient(#26292B 0 0) 50% 6.4% / 77% 41.4% no-repeat,
    linear-gradient(#26292B 0 0) 50% 93.6% / 77% 41.4% no-repeat,
    linear-gradient(90deg, #2C2F31, #3E4245 45%, #303335);
  box-shadow: inset 0 0 0 6px #232628, inset 0 0 0 7px rgba(255, 255, 255, .06);
}
.leaf-face::after { /* складки плёнки */
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(97deg, transparent 0 46px, rgba(255, 255, 255, .07) 47px 49px, transparent 50px 90px);
}
.film-corner { /* отогнутый угол плёнки */
  position: absolute; right: 0; top: 0; width: 22%; aspect-ratio: 1;
  background: linear-gradient(225deg, #2C2F31 50%, rgba(205, 228, 246, .9) 50%, #EAF3FA 72%, rgba(170, 205, 235, .6));
  clip-path: polygon(0 0, 100% 0, 100% 100%); filter: drop-shadow(-3px 4px 3px rgba(0, 0, 0, .3));
}
.handle { position: absolute; right: 9%; top: 56%; width: 22%; height: 3.2%; border-radius: 20px; background: linear-gradient(#E6E8EA, #9EA3A7); box-shadow: 0 3px 4px rgba(0, 0, 0, .4); }
.handle::before { content: ''; position: absolute; right: 0; top: -60%; width: 34%; height: 220%; border-radius: 6px; background: linear-gradient(#D5D8DB, #8D9296); }
.lock { position: absolute; right: 12%; top: 63%; width: 4%; height: 2.6%; border-radius: 3px; background: #B8BCBF; box-shadow: 0 34px 0 #B8BCBF; }
.peephole { position: absolute; left: 50%; top: 9%; width: 5%; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(circle, #9AA7B3 20%, #C6CBCF 22% 55%, #7D8286 58%); }
.notice {
  position: absolute; left: 9%; top: 15%; width: 68%; padding: 7% 7% 5%;
  background: var(--paper); color: #111; font: 400 calc(var(--h) * .0172)/1.35 var(--f-text);
  transform: rotate(-1.6deg) translateZ(1px);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 10px 18px -8px rgba(0, 0, 0, .55);
}
.notice::after { /* файлик: блик */
  content: ''; position: absolute; inset: -3px; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .55) 38%, rgba(255, 255, 255, 0) 46%), rgba(225, 235, 245, .12);
  border: 1px solid rgba(255, 255, 255, .5);
}
.notice p { margin: 0 0 .45em; }
.notice-h { font: 400 1.62em/1.05 var(--f-head); margin-bottom: .5em !important; }
.notice-sign { margin: .7em 0 0 !important; font-style: italic; }
.tape { position: absolute; z-index: 2; width: 34%; height: 9%; min-height: 16px; max-height: 26px; background: rgba(47, 95, 208, .9); box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  clip-path: polygon(0 8%, 6% 0, 12% 10%, 20% 0, 100% 0, 96% 12%, 100% 26%, 95% 44%, 100% 62%, 96% 80%, 100% 100%, 0 100%, 4% 82%, 0 64%, 5% 46%, 0 28%); }
.tape-l { left: -9%; top: -3%; transform: rotate(-38deg); }
.tape-r { right: -9%; top: -3%; transform: rotate(36deg); }
.door-num { position: absolute; left: 41%; top: 0; width: 8%; aspect-ratio: 1.2; display: grid; place-items: center; background: #A7AAAD; color: #2B2D2F; font: 400 clamp(.6rem, 1.5vh, .9rem) var(--f-head); border-radius: 2px; }
.cardboard {
  position: absolute; left: -6%; right: -4%; bottom: -3.5%; height: 9%; z-index: 4;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 9px), linear-gradient(#CDA676, #B98F5D);
  clip-path: polygon(6% 0, 95% 0, 100% 100%, 0 100%); display: grid; place-items: center;
}
.cardboard .mk { color: #2A2118; font-size: clamp(.8rem, 1.8vh, 1.1rem); transform: rotate(-2deg); }
.hall-cap { position: absolute; right: -24%; top: 50%; z-index: 5; margin: 0; color: var(--ink-2); font-size: 1.05rem; transform: rotate(-6deg); transition: opacity .3s; }
.hall-cap::before { content: '←'; margin-right: .3em; }
.hall.open .leaf { transform: rotateY(-76deg); }
.hall.open .spill { opacity: 1; }
.hall.open .hall-cap { opacity: 0; }
@media (hover: hover) { .hall:not(.open) .leaf:hover { transform: rotateY(-7deg); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 28px; }
  .hall { --h: min(152vw, 640px); justify-self: center; margin-top: 0; margin-bottom: 18px; }
  .hero { gap: 12px; padding-top: 20px; }
  .l-opt, .hero-note { display: none; }
  .lead { margin: .9rem 0 1.2rem; }
  .hall-cap { right: -2%; top: 0; font-size: .95rem; }
  .notice { left: 6%; width: 82%; }
  .n-opt { display: none; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .lead { font-size: 1.08rem; }
}

/* ---------- общие разделы ---------- */
section { position: relative; }
.weeks, .smeta, .works, .contract, .faq { padding: clamp(64px, 10vw, 128px) 0 0; }
.kraft { margin-top: clamp(64px, 10vw, 128px); padding: clamp(56px, 8vw, 104px) 0; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .045) 0 2px, transparent 2px 11px), var(--kraft); color: var(--kraft-ink); }
.sec-head { max-width: 46rem; margin-bottom: 2.2rem; }
.sec-head p { margin-top: 1rem; color: var(--ink-2); }

/* ---------- 14 недель ---------- */
.weeks .wrap:first-child { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.mode { display: inline-flex; padding: 4px; background: var(--concrete-2); border-radius: 4px; margin-bottom: 2.2rem; }
.mode-b { border: 0; background: none; padding: .55em 1em; border-radius: 3px; cursor: pointer; font: 700 .98rem var(--f-text); color: var(--ink-2); }
.mode-b[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.weeks-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); grid-template-areas: "scene report" "strip report"; gap: 18px clamp(20px, 3vw, 40px); align-items: start; }
.scene { grid-area: scene; position: relative; border: clamp(8px, 1vw, 12px) solid var(--graphite); border-bottom-width: clamp(8px, 1vw, 12px); background: var(--graphite); box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .6); }
.scene-room .room { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; }
.room .off { opacity: 0; transition: opacity .45s; }
.room [data-on] { transition: opacity .45s; }
.room .mk { font-family: var(--f-mark); fill: #1F1F1D; }
.room .laser { filter: drop-shadow(0 0 3px #33D84E); }
.scene-tag { position: absolute; left: 14px; top: -16px; margin: 0; padding: .1em .8em; background: rgba(47, 95, 208, .92); color: #fff; font-size: 1.15rem; transform: rotate(-2deg); }
.strip { grid-area: strip; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.strip-step { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font: 700 1.4rem/1 var(--f-text); cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.strip-step:disabled { opacity: .35; cursor: default; }
.strip-weeks { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 6px 2px 14px; }
.strip-weeks::-webkit-scrollbar { display: none; }
.wk { position: relative; flex: 1 0 34px; cursor: pointer; }
.wk input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wk span { display: grid; place-items: center; height: 40px; background: var(--tape-soft); color: var(--tape-ink); font: 700 1rem var(--f-text); transition: background .25s, color .25s, transform .25s; clip-path: polygon(0 6%, 100% 0, 97% 50%, 100% 100%, 0 94%, 3% 50%); }
.wk:hover span { background: #A2B6E8; }
.wk input:checked + span { background: var(--tape); color: #fff; transform: translateY(-3px); }
.wk input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.wk-pay::after { content: '₽'; position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); font: 700 .8rem var(--f-text); color: var(--ink-2); }
.report { grid-area: report; position: relative; padding: 30px clamp(20px, 2.4vw, 32px) 22px; background: var(--paper); box-shadow: 0 1px 1px rgba(0, 0, 0, .12), 0 18px 30px -20px rgba(0, 0, 0, .45); }
.report::before { content: ''; position: absolute; left: 50%; top: -11px; width: 110px; height: 24px; transform: translateX(-50%) rotate(-2deg); background: rgba(47, 95, 208, .88); clip-path: polygon(0 10%, 5% 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%); }
.report-n { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 .6rem; font-size: .95rem; font-weight: 700; color: var(--ink-2); }
.report-upd { font-weight: 400; }
.report-h { font-size: clamp(1.45rem, 2vw, 1.85rem); margin-bottom: 1.1rem; min-height: 2.1em; }
.report-dl { margin: 0; }
.report-dl > div { padding: .7rem 0; border-top: 1px dashed rgba(30, 30, 28, .2); }
.report-dl dt { font-size: .88rem; font-weight: 700; color: var(--ink-2); margin-bottom: .15rem; }
.report-dl dd { margin: 0; font-size: 1.04rem; line-height: 1.45; }
.report.has-hide .r-hide dd::after { content: 'фото → паспорт квартиры'; display: inline-block; margin-left: .5em; padding: 0 .5em; background: var(--tape-soft); color: var(--tape-ink); font: 400 .9rem var(--f-mark); transform: rotate(-1.5deg); }
.report.has-pay .r-pay dd { color: var(--tape-2); font-weight: 700; }
.report.has-risk .r-risk dd { color: var(--marker); font-weight: 700; }
.report.has-risk .r-risk dt { color: var(--marker); }
@media (max-width: 900px) {
  .weeks-grid { grid-template-columns: 1fr; grid-template-areas: "scene" "strip" "report"; }
  .scene-room .room { aspect-ratio: 4 / 3; }
  .report-h { min-height: 0; }
}

/* ---------- паспорт квартиры ---------- */
.pasport-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pasport-text h2 { margin-bottom: 1.1rem; }
.pasport-text p { max-width: 34em; }
.pasport-list { margin: 1.2rem 0; padding: 0; list-style: none; }
.pasport-list li { position: relative; padding: .45rem 0 .45rem 1.6rem; }
.pasport-list li::before { content: ''; position: absolute; left: 0; top: .95rem; width: 12px; height: 12px; background: var(--tape); transform: rotate(8deg); }
.pasport-why { font-size: 1.45rem; color: var(--kraft-ink); transform: rotate(-1.5deg); margin-top: 1.4rem; }
.board { position: relative; min-height: 560px; }
.pin { position: absolute; margin: 0; background: var(--paper); padding: 10px 10px 8px; box-shadow: 0 2px 2px rgba(0, 0, 0, .15), 0 20px 26px -16px rgba(40, 25, 10, .6); }
.pin .tape { left: 50%; top: -12px; width: 96px; height: 22px; transform: translateX(-50%) rotate(-3deg); }
.pin figcaption { padding-top: 7px; font-size: .9rem; color: var(--ink-2); }
.pin-room .room { display: block; width: 100%; height: auto; }
.pin-a { left: 0; top: 0; width: 56%; transform: rotate(-2.2deg); }
.pin-a .room { aspect-ratio: 520 / 420; }
.pin-b { right: 0; top: 34%; width: 58%; transform: rotate(1.8deg); z-index: 2; }
.pin-b .room { aspect-ratio: 760 / 250; }
.sheet { left: 0; bottom: -40px; width: 50%; padding: 20px 20px 14px; font-size: .92rem; line-height: 1.4; transform: rotate(-.8deg); z-index: 3; }
.sheet p { margin: 0 0 .5em; }
.sheet-h { font: 400 1.05rem var(--f-head); }
.sheet-sign .mk { font-size: 1.05rem; color: var(--tape-2); }
.sheet-ex { font-size: .8rem; color: var(--ink-2); text-align: right; }
@media (max-width: 900px) {
  .pasport-grid { grid-template-columns: 1fr; }
  .board { min-height: 0; display: grid; gap: 28px; padding-top: 12px; }
  .pin { position: relative; inset: auto; width: auto; }
  .pin-a, .pin-b, .sheet { width: 92%; }
  .pin-b { justify-self: end; }
}

/* ---------- смета ---------- */
.smeta-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.rooms { background: var(--paper); padding: 10px clamp(18px, 2.4vw, 34px) 26px; box-shadow: 0 1px 1px rgba(0, 0, 0, .1), 0 18px 30px -22px rgba(0, 0, 0, .45); }
.room-row { border-bottom: 1px dashed rgba(30, 30, 28, .22); }
.room-row summary { display: flex; align-items: baseline; gap: 1rem; padding: 1.05rem 0; cursor: pointer; list-style: none; }
.room-row summary::-webkit-details-marker { display: none; }
.room-row summary::before { content: '+'; flex: none; width: 1.2em; font-weight: 700; color: var(--tape); }
.room-row[open] summary::before { content: '−'; }
.rr-name { flex: 1; font-size: 1.12rem; font-weight: 700; }
.rr-sum { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.room-row p { margin: 0 0 1rem 2.2rem; color: var(--ink-2); font-size: 1rem; }
.rooms-total { display: flex; justify-content: space-between; align-items: baseline; margin: 1.3rem 0 0; }
.rooms-total span { font-size: 1.12rem; font-weight: 700; }
.rooms-total b { font: 400 clamp(1.9rem, 3vw, 2.6rem) var(--f-head); }
.pays h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); margin-bottom: 1.1rem; }
.pay-list { margin: 0 0 1.2rem; padding: 0; list-style: none; }
.pay-list li { display: grid; grid-template-columns: 7.5em 1fr auto; align-items: baseline; gap: .8rem; padding: .7rem 0; border-bottom: 1px dashed rgba(30, 30, 28, .22); }
.pay-w { justify-self: start; padding: .05em .55em; background: var(--tape); color: #fff; font-weight: 700; font-size: .92rem; clip-path: polygon(0 8%, 100% 0, 96% 50%, 100% 100%, 0 92%, 3% 50%); }
.pay-what { font-size: 1rem; }
.pay-list b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pays-note { font-size: 1rem; color: var(--ink-2); }
.notin { position: relative; margin-top: 2rem; padding: 26px 24px 14px; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .045) 0 2px, transparent 2px 11px), var(--kraft); color: var(--kraft-ink); transform: rotate(.8deg); box-shadow: 0 16px 24px -18px rgba(40, 25, 10, .7); }
.notin .tape { left: 30px; top: -12px; width: 90px; height: 22px; transform: rotate(-4deg); }
.notin-h { font-size: 1.5rem; margin: 0 0 .4rem; color: var(--kraft-ink); }
.notin ul { margin: 0; padding-left: 1.2rem; }
.notin li { margin-bottom: .35rem; font-size: 1rem; }
@media (max-width: 900px) {
  .smeta-grid { grid-template-columns: 1fr; }
  .pay-list li { grid-template-columns: 1fr auto; }
  .pay-what { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- работы ---------- */
.works-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 28px; }
.work { position: relative; margin: 0; background: var(--paper); padding: 10px 10px 14px; box-shadow: 0 2px 2px rgba(0, 0, 0, .12), 0 22px 30px -22px rgba(0, 0, 0, .55); }
.work img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(.82) sepia(.06) contrast(.97); }
.work::after { content: ''; position: absolute; inset: 10px 10px auto; aspect-ratio: 3 / 2; background: var(--grain); opacity: .9; pointer-events: none; mix-blend-mode: multiply; }
.work .tape { left: 50%; top: -12px; width: 100px; height: 22px; transform: translateX(-50%) rotate(2deg); }
.work figcaption { padding: 10px 4px 0; display: grid; gap: .15rem; }
.work figcaption b { font-size: 1.08rem; }
.work figcaption i { font-style: normal; font-size: .82rem; color: var(--ink-2); line-height: 1.35; margin-top: .3rem; }
.w1 { grid-column: 1 / span 7; transform: rotate(-.8deg); }
.w2 { grid-column: 8 / span 5; transform: rotate(1.2deg); margin-top: 60px; }
.w3 { grid-column: 2 / span 5; transform: rotate(1deg); }
.w4 { grid-column: 7 / span 6; transform: rotate(-1deg); margin-top: -30px; }
@media (max-width: 900px) {
  .works-grid { grid-template-columns: 1fr; gap: 36px; }
  .w1, .w2, .w3, .w4 { grid-column: auto; margin-top: 0; }
}

/* ---------- соседям ---------- */
.neighbours-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.neighbours-grid > div p { margin-top: 1.1rem; max-width: 30em; }
.rules { position: relative; margin: 0; padding: 40px clamp(22px, 3vw, 44px) 26px; list-style: none; background: var(--paper); color: #111; transform: rotate(-1deg); box-shadow: 0 2px 2px rgba(0, 0, 0, .15), 0 26px 34px -22px rgba(40, 25, 10, .7); }
.rules::before, .rules::after { content: ''; position: absolute; top: -10px; width: 110px; height: 24px; background: rgba(47, 95, 208, .9); clip-path: polygon(0 10%, 5% 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%); }
.rules::before { left: -18px; transform: rotate(-30deg); }
.rules::after { right: -18px; transform: rotate(28deg); }
.rules li { padding: .55rem 0; font-size: 1.05rem; line-height: 1.45; }
.rules li + li { border-top: 1px dashed rgba(0, 0, 0, .18); }
@media (max-width: 900px) { .neighbours-grid { grid-template-columns: 1fr; } }

/* ---------- договор: листы на двери изнутри ---------- */
.dark { margin-top: clamp(64px, 10vw, 128px); padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px); background: var(--graphite) var(--grain); color: #ECEAE4; }
.dark .sec-head p { color: #C9C6BF; }
.dark .ex { text-decoration-color: rgba(236, 234, 228, .6); }
.terms { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 44px 28px; align-items: start; }
.term { position: relative; grid-column: span 2; padding: 26px 22px 18px; background: var(--paper); color: var(--ink); box-shadow: 0 18px 28px -18px rgba(0, 0, 0, .8); }
.term .tape { left: 50%; top: -12px; width: 92px; height: 22px; transform: translateX(-50%) rotate(-3deg); }
.term:nth-child(1) { transform: rotate(-1.2deg); }
.term:nth-child(2) { transform: rotate(.9deg); margin-top: 18px; }
.term:nth-child(3) { transform: rotate(-.4deg); grid-column: span 2; }
.term:nth-child(4) { transform: rotate(1.4deg); grid-column: 2 / span 2; }
.term:nth-child(5) { transform: rotate(-1deg); margin-top: 24px; }
.term:nth-child(6) { transform: rotate(.6deg); }
.term-big { margin: 0 0 .5rem; font: 400 clamp(1.5rem, 2.3vw, 2.1rem)/1 var(--f-head); }
.term:nth-child(3) .term-big, .term:nth-child(4) .term-big { font-size: clamp(2.2rem, 3.6vw, 3.2rem); }
.term p:last-child { margin: 0; font-size: 1.02rem; }
@media (max-width: 900px) { .terms { grid-template-columns: 1fr 1fr; } .term, .term:nth-child(3), .term:nth-child(4) { grid-column: span 1; margin-top: 0; } }
@media (max-width: 560px) { .terms { grid-template-columns: 1fr; } }

/* ---------- вопросы ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq h2 { position: sticky; top: 100px; }
.qa { margin: 0; }
.qa > div { padding: 0 0 1.8rem; }
.qa dt { font: 400 1.22rem/1.2 var(--f-head); margin-bottom: .5rem; }
.qa dt::before { content: ''; display: inline-block; width: 14px; height: 14px; margin-right: .55rem; background: var(--tape); transform: rotate(8deg) translateY(-1px); }
.qa dd { margin: 0; color: var(--ink-2); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq h2 { position: static; } }

/* ---------- заявка ---------- */
.cta-in { text-align: center; max-width: 44rem; }
.cta-in h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
.cta-in p { margin: 1.2rem auto 1.8rem; font-size: 1.15rem; }
.cta-tel { margin-top: 1.4rem !important; font-size: 1rem !important; }
.cta-tel a { color: var(--kraft-ink); font-weight: 700; }

/* ---------- подвал ---------- */
.foot { background: var(--graphite); color: #D8D5CE; padding: 48px 0 56px; }
.foot-in { display: grid; gap: 1.2rem; }
.foot-brand { font: 400 1.2rem var(--f-head); color: #fff; margin: 0; }
.foot-docs { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.foot a { color: #C9D6F5; }
.foot a:hover { color: #fff; }
.foot-demo { font-size: .9rem; max-width: 60em; color: #B7B3AB; margin: 0; }

/* ---------- окно заявки ---------- */
.dlg { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); overflow: auto; }
.dlg::backdrop { background: rgba(30, 30, 28, .55); backdrop-filter: blur(2px); }
.dlg-form { position: relative; padding: 30px clamp(20px, 4vw, 36px) 26px; }
.dlg-form::before { content: ''; position: absolute; left: 50%; top: 0; width: 120px; height: 22px; transform: translateX(-50%) rotate(-2deg); background: rgba(47, 95, 208, .9); }
.dlg-x { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink-2); }
.dlg-x:hover { color: var(--ink); }
.dlg-demo { display: inline-block; margin: 8px 0 12px; padding: .1em .6em; background: var(--tape-soft); color: var(--tape-ink); font-size: .92rem; font-weight: 700; }
.dlg h2 { font-size: 1.8rem; margin-bottom: 1.2rem; }
.fld { display: grid; gap: .3rem; margin-bottom: 1rem; }
.fld > span { font-size: .95rem; font-weight: 700; }
.fld i { font-style: normal; font-weight: 400; color: var(--ink-2); }
.fld input, .fld textarea { width: 100%; padding: .7em .8em; border: 2px solid var(--concrete-3); border-radius: 3px; background: #fff; font: 400 1.05rem var(--f-text); color: var(--ink); }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--tape); }
.fld-kind { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 0 0 1rem; padding: 0; border: 0; }
.fld-kind legend { float: left; width: 100%; margin-bottom: .3rem; font-size: .95rem; font-weight: 700; }
.fld-kind label { display: flex; align-items: center; gap: .4rem; cursor: pointer; }
.agree { display: grid; gap: .55rem; margin: 1.1rem 0 1.2rem; font-size: .92rem; line-height: 1.4; }
.ag { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; }
.ag input { flex: none; width: 20px; height: 20px; margin: .05rem 0 0; accent-color: var(--tape); }
.ag i { font-style: normal; color: var(--ink-2); }
.ag-all { font-weight: 700; }
input[type="radio"] { accent-color: var(--tape); width: 18px; height: 18px; }
.dlg-hint { margin: .7rem 0 0; font-size: .9rem; color: var(--ink-2); }
.dlg-done { padding: 24px 0 6px; }
.dlg-done p { color: var(--ink-2); margin-bottom: 1.4rem; }

/* ---------- правовые страницы ---------- */
.doc { max-width: 52rem; padding-top: 48px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 1.2rem 0 .4rem; }
.doc h2 { font-size: 1.35rem; margin: 2.2rem 0 .8rem; }
.doc h3 { font: 700 1.12rem var(--f-text); margin: 1.4rem 0 .5rem; }
.doc p, .doc li { max-width: 70ch; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin-bottom: .35rem; }
.doc-note { padding: .9rem 1.1rem; background: var(--paper); border-left: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); font-size: 1rem; }
.doc-ver { color: var(--ink-2); font-size: 1rem; }
.ask { color: var(--marker); }

/* ---------- кто за дверью ---------- */
.crew { padding: clamp(64px, 10vw, 128px) 0 0; }
.crew-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.crew-text h2 { margin-bottom: 1.1rem; }
.crew-text > p { color: var(--ink-2); max-width: 34em; }
.crew-rules { margin: 1.4rem 0 0; padding: 0; list-style: none; }
.crew-rules li { position: relative; padding: .5rem 0 .5rem 1.6rem; max-width: 34em; }
.crew-rules li::before { content: ''; position: absolute; left: 0; top: 1rem; width: 12px; height: 12px; background: var(--tape); transform: rotate(8deg); }
.crew-sheet { position: relative; justify-self: center; width: min(100%, 420px); padding: 38px 30px 20px; background: var(--paper); color: #111; transform: rotate(1.4deg); box-shadow: 0 2px 2px rgba(0, 0, 0, .15), 0 26px 34px -22px rgba(0, 0, 0, .6); }
.crew-sheet .tape-l { left: -14px; top: -6px; width: 90px; height: 22px; }
.crew-sheet .tape-r { right: -14px; top: -6px; width: 90px; height: 22px; }
.crew-h { font: 400 1.6rem/1.05 var(--f-head); margin: 0 0 1rem; }
.crew-sheet dl { margin: 0; }
.crew-sheet dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; }
.crew-sheet dt { font-weight: 700; }
.crew-sheet dd { margin: 0; font-family: var(--f-mark); font-size: 1.05rem; color: var(--tape-ink); text-align: right; }
.crew-ex { margin: .9rem 0 0; font-size: .82rem; color: var(--ink-2); text-align: right; }
@media (max-width: 900px) { .crew-grid { grid-template-columns: 1fr; } }
