/* По месту — дизайн интерьера (демо). Мир: готовая квартира днём — стены-краски по разделам, солнечно-жёлтое действие, петроль для линий; бетон и лазер — только внутри рисунков комнаты. */
@font-face { font-family: "Geologica"; src: url(../fonts/Geologica-cyrillic.woff2) format("woff2"); font-weight: 300 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geologica"; src: url(../fonts/Geologica-latin.woff2) format("woff2"); font-weight: 300 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Pangolin"; src: url(../fonts/Pangolin-cyrillic.woff2) format("woff2"); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Pangolin"; src: url(../fonts/Pangolin-latin.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+2212; }

:root {
  --wall: #f8f7f4;         /* белая стена — земля страницы */
  --apricot: #fde6c4;      /* стена первого экрана и финала */
  --sky: #e1ecf4;          /* листы проекта */
  --sage: #e5ecdc;         /* выезды */
  --rose: #f8e0d8;         /* первая встреча */
  --paper: #fffdf9;        /* лист проекта, окно заявки */
  --ink: #232326;          /* графит: текст */
  --ink-2: #54473a;        /* текст мягче: тёплый, под цветные стены */
  --sun: #ffc83a;          /* действие и выбранное */
  --sun-l: #ffe8a3;        /* маркер, плашки оплаты */
  --petrol: #2c6a8a;       /* линии, прогресс, поле «Квартиры» */
  --petrol-d: #22556f;     /* подвал */
  --shade: rgba(60, 45, 25, .18);
  --f: "Geologica", system-ui, sans-serif;
  --hand: "Pangolin", "Geologica", sans-serif;
  --wrap: 1240px;
  --pad: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; font-family: var(--f); font-size: 18px; line-height: 1.55; font-weight: 380; color: var(--ink);
  background: var(--wall); font-variation-settings: "SHRP" 30;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; caret-color: var(--ink);
}
::selection { background: var(--sun-l); color: var(--ink); }
html { scrollbar-color: var(--ink-2) var(--wall); }
img, svg { display: block; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.06; letter-spacing: -.022em; font-variation-settings: "SHRP" 55; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* демо-плашка */
.demo-strip { margin: 0; padding: 7px var(--pad); background: var(--sun-l); color: var(--ink); font-size: 13px; line-height: 1.4; text-align: center; }
.demo-val { border-bottom: 1.5px dotted currentColor; cursor: help; }
.todo { background: var(--sun-l); padding: 0 .2em; border-radius: 2px; }

/* шапка */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px;
  height: 68px; padding: 0 var(--pad); background: rgba(248, 247, 244, .92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(35, 35, 38, .12);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -.02em; }
.brand-sign { width: 34px; height: 21px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linejoin: round; }
.brand-sign path + path { fill: var(--ink); }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 16px; }
.nav a { text-decoration: none; padding: 6px 0; background: linear-gradient(var(--petrol), var(--petrol)) 0 100% / 0 2px no-repeat; transition: background-size .25s ease-out; }
.nav a:hover { background-size: 100% 2px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; padding: 12px 9px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu { position: fixed; z-index: 19; inset: 68px 0 auto; padding: 12px var(--pad) 24px; background: var(--wall); box-shadow: 0 18px 30px var(--shade); display: grid; gap: 4px; }
.menu[hidden] { display: none; }
.menu a { padding: 12px 0; font-size: 20px; text-decoration: none; border-bottom: 1px solid rgba(35, 35, 38, .12); }
.menu .btn { margin-top: 14px; }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 4px; cursor: pointer;
  font: 600 17px/1.2 var(--f); letter-spacing: -.005em; color: var(--ink); text-decoration: none;
  background: var(--sun); box-shadow: 0 0 0 0 rgba(255, 200, 58, .45), 0 6px 16px rgba(120, 80, 0, .18);
  transition: box-shadow .25s ease-out, transform .15s ease-out;
}
.btn:hover { box-shadow: 0 0 0 5px rgba(255, 200, 58, .45), 0 8px 22px rgba(120, 80, 0, .24); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: #c9cbc6; color: #4c4c51; box-shadow: none; cursor: not-allowed; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 62px; padding: 0 36px; font-size: 19px; }
.link { font-weight: 500; text-decoration: underline; text-decoration-color: rgba(35, 35, 38, .4); }
.link:hover { text-decoration-color: var(--ink); }

/* первый экран */
.hero { background: var(--apricot); display: grid; grid-template-columns: minmax(400px, 43%) 1fr; min-height: min(calc(100svh - 68px - 34px), 940px); }
.hero-text { display: flex; flex-direction: column; justify-content: center; gap: 26px; padding: 48px var(--pad) 64px; }
.hero h1 { font-size: clamp(38px, 3.75vw, 58px); }
.lead { font-size: clamp(18px, 1.35vw, 21px); color: var(--ink-2); max-width: 34ch; }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hero-room { position: relative; margin: 0; display: grid; grid-template-rows: 1fr auto; min-height: 560px; background: #e9e2d6; }
.room { width: 100%; height: 100%; overflow: hidden; }
.room .mk path { fill: none; stroke: #1f1f22; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.room .mk-lab text { font-family: var(--hand); fill: #1f1f22; stroke: rgba(196, 193, 187, .9); stroke-width: 4px; paint-order: stroke; stroke-linejoin: round; }
.room .mk-lead { stroke: #2a2a2e; stroke-width: 1; fill: none; stroke-dasharray: 2 3; }
.stage { display: grid; gap: 6px; padding: 16px clamp(16px, 3vw, 36px) 18px; background: #fff; color: var(--ink); }
.stage-label { font-size: 14px; color: var(--ink-2); }
.stage-range { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; margin: 0; cursor: grab; }
.stage-range:active { cursor: grabbing; }
.stage-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--sun) var(--p, 100%), #e6e0d6 var(--p, 100%)); }
.stage-range::-moz-range-track { height: 4px; border-radius: 2px; background: #e6e0d6; }
.stage-range::-moz-range-progress { height: 4px; background: var(--sun); }
.stage-range::-webkit-slider-thumb { -webkit-appearance: none; width: 40px; height: 26px; margin-top: -11px; border-radius: 5px; background: #fff; border: 3px solid var(--sun); box-shadow: 0 3px 8px var(--shade); }
.stage-range::-moz-range-thumb { width: 36px; height: 22px; border-radius: 5px; background: #fff; border: 3px solid var(--sun); }
.stage-range:focus-visible { outline: 2px solid var(--petrol); outline-offset: 2px; }
.stage-stops { display: flex; justify-content: space-between; font-family: var(--hand); font-size: 18px; color: #6e5d4b; }
.stage-stops span { cursor: pointer; transition: color .2s; }
.stage-stops span.on { color: var(--ink); background: var(--sun-l); border-radius: 3px; padding: 0 6px; margin: 0 -6px; }
.note { font-size: 12.5px; color: #6e5d4b; }

/* разделы */
.sec { position: relative; overflow: hidden; padding: clamp(72px, 9vw, 128px) 0; }
.sec h2 { position: relative; font-size: clamp(32px, 3.6vw, 54px); max-width: 22ch; }
.sec h2::before { /* мазок краски от края страницы до заголовка */
  content: ""; position: absolute; right: calc(100% + 22px); top: .52em; width: 100vw; height: 6px;
  background: var(--sun); border-radius: 3px; margin-top: -2px;
}
.sec-lead { margin-top: 20px; max-width: 58ch; font-size: clamp(18px, 1.3vw, 20px); color: var(--ink-2); }
mark.pen { background: none; color: inherit; padding-bottom: 2px; background-image: linear-gradient(transparent 62%, rgba(255, 200, 58, .55) 62%, rgba(255, 200, 58, .55) 92%, transparent 92%); }

/* листы */
.sheets { background: var(--sky); }
.sheets-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr) 300px; gap: 36px; align-items: start; margin-top: 52px; }
.sheet-tabs { display: grid; gap: 6px; position: sticky; top: 96px; }
.sheet-tabs button, .visit-line button {
  font: 500 17px/1.3 var(--f); color: var(--ink-2); text-align: left; cursor: pointer;
  padding: 12px 14px; border: 0; border-radius: 4px; background: transparent;
  transition: background .2s, color .2s;
}
.sheet-tabs button:hover { background: rgba(35, 35, 38, .07); color: var(--ink); }
.sheet-tabs button[aria-selected="true"] { background: var(--sun); color: var(--ink); }
.sheet { margin: 0; background: var(--paper); border-radius: 2px; transform: rotate(-.5deg); box-shadow: 0 2px 4px rgba(40, 35, 30, .18), 0 22px 46px rgba(40, 35, 30, .26); }
.plan { width: 100%; height: auto; aspect-ratio: 4 / 3.1; }
.sheet-text { display: grid; gap: 14px; padding-top: 6px; }
.sheet-h { font-size: 28px; }
.sheet-p { color: var(--ink-2); }
.sheet-who { font-size: 16px; }
.sheet-who span { color: var(--ink-2); }
.album { margin-top: 56px; display: grid; grid-template-columns: 180px 1fr; gap: 36px; }
.album-h { grid-column: 2; font-weight: 600; }
.album-list { grid-column: 2; margin-top: -26px; font-family: var(--hand); font-size: 21px; line-height: 1.6; max-width: 70ch; }

/* цена */
.price { background: var(--wall); }
.price-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; margin-top: 52px; align-items: start; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 14px; font-weight: 600; font-size: 15px; letter-spacing: .02em; color: var(--ink-2); }
.flats-svg { width: 100%; max-width: 420px; height: auto; margin-bottom: 10px; }
.flats-btns, .packs-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.flats-btns label, .packs-btns label { position: relative; cursor: pointer; }
.flats-btns input, .packs-btns input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.flats-btns span, .packs-btns span {
  display: block; padding: 10px 16px; border-radius: 4px; background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(35, 35, 38, .2); font-size: 15px; line-height: 1.3; transition: background .2s, box-shadow .2s;
}
.flats-btns b { font-size: 19px; font-weight: 700; }
.flats-btns label:hover span, .packs-btns label:hover span { background: var(--sun-l); }
.flats-btns input:checked + span, .packs-btns input:checked + span { background: var(--sun); color: var(--ink); box-shadow: none; }
.flats-btns input:focus-visible + span, .packs-btns input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.packs-btns span { font-size: 16px; font-weight: 500; padding: 12px 18px; }
.area { display: grid; gap: 4px; margin-top: 18px; max-width: 420px; font-size: 15px; color: var(--ink-2); }
.area output { font-weight: 700; color: var(--ink); }
.area input { width: 100%; accent-color: var(--petrol); }
.packs { margin-top: 40px; }
.pack-list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pack-list li { position: relative; padding-left: 26px; }
.pack-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 13px; height: 2px; background: var(--ink); }
.pack-list li.new::before { background: var(--petrol); height: 3px; }
.pack-list li.new { font-weight: 500; }
.price-out { display: grid; gap: 18px; padding: clamp(24px, 3vw, 40px); background: #fff; color: var(--ink); border-radius: 6px; box-shadow: 0 24px 50px var(--shade); }
.sum { font-size: clamp(48px, 6vw, 88px); font-weight: 700; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.sum-n { display: inline-flex; }
.dg { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; }
.dg > span { display: flex; flex-direction: column; transition: transform .55s cubic-bezier(.2, .8, .2, 1); }
.dg > span > span { height: 1em; line-height: 1; }
.sum-note { font-size: 16px; color: var(--ink-2); }
.sum-note b { color: var(--ink); font-weight: 600; }
.pay-h { font-size: 15px; color: var(--ink-2); margin-bottom: 10px; }
.pay-bar { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.pay-bar li { flex: var(--w) 1 0; min-width: 0; padding: 14px 12px 10px; border-radius: 4px; background: var(--sun-l); }
.pay-bar b { display: block; font-size: 20px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.pay-bar small { display: block; font-size: 13px; line-height: 1.35; color: #5e5a54; margin-top: 2px; }
.budget, .nadzor { font-size: 16px; color: var(--ink-2); }
.price-out .btn { justify-self: start; margin-top: 6px; }

/* выезды */
.visits { background: var(--sage); }
.visits-grid { margin-top: 48px; }
.visit-line { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.visit-line::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: rgba(35, 35, 38, .25); }
.visit-line::after { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 3px; background: var(--petrol); transform-origin: 0 50%; transform: scaleX(var(--vp, .1)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.visit-line button { position: relative; z-index: 1; display: grid; gap: 8px; width: 100%; padding: 0 8px 8px 0; background: none; color: var(--ink-2); }
.visit-line button b { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px rgba(35, 35, 38, .3); font-size: 18px; color: var(--ink); transition: background .2s, box-shadow .2s; }
.visit-line button:hover b { box-shadow: inset 0 0 0 2px var(--ink); }
.visit-line button[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.visit-line button[aria-selected="true"] b { background: var(--sun); box-shadow: 0 3px 8px var(--shade); }
.visit { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.room-visit { height: auto; aspect-ratio: 16 / 10.5; border-radius: 4px; box-shadow: 0 0 0 8px #fff, 0 24px 48px rgba(40, 50, 30, .22); background: #e9e2d6; }
.visit-text { display: grid; gap: 14px; }
.visit-h { font-size: clamp(26px, 2.4vw, 36px); }
.visit-when { font-family: var(--hand); font-size: 22px; }
.visit-p { color: var(--ink); }
.visit-get { font-size: 16px; color: var(--ink-2); }
.visit-get span { font-weight: 600; color: var(--ink); }

/* квартиры — палитра готовой комнаты */
.flats-sec { background: var(--petrol); color: #fff; }
.flats-sec .sec-lead { color: #dcebf3; }
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 52px; }
.case { display: grid; grid-template-rows: auto 1fr; background: var(--paper); color: var(--ink); border-radius: 6px; overflow: hidden; box-shadow: 0 22px 44px rgba(10, 30, 45, .28); }
.case-big { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); grid-template-rows: auto; }
.room-case { height: auto; aspect-ratio: 4 / 3; background: #e9e2d6; }
.case-big .room-case { aspect-ratio: 16 / 10.5; }
.case-body { display: grid; align-content: start; gap: 12px; padding: 22px 24px 24px; background: var(--paper); }
.case-big .case-body { padding: 36px; align-content: center; }
.case h3 { font-size: clamp(21px, 1.8vw, 28px); }
.case-data { font-size: 15px; color: var(--ink-2); }
.case-toggle {
  justify-self: start; font: 600 15px/1 var(--f); padding: 10px 16px; border-radius: 4px; cursor: pointer;
  color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px rgba(35, 35, 38, .35); transition: background .2s, color .2s, box-shadow .2s;
}
.case-toggle:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.case-toggle[aria-pressed="true"] { background: var(--sun); color: var(--ink); box-shadow: none; }
.case-demo { font-size: 12.5px; line-height: 1.45; color: #6e5d4b; }

/* первая встреча */
.ask { background: var(--rose); }
.ask-list { list-style: none; margin: 44px 0 0; padding: 0; columns: 2 380px; column-gap: 64px; }
.ask-list li { break-inside: avoid; font-family: var(--hand); font-size: clamp(22px, 1.9vw, 28px); line-height: 1.3; padding: 14px 0 16px; }
.ask-list li::after { content: ""; display: block; height: 3px; margin-top: 10px; width: 70%; border-radius: 2px; background: rgba(35, 35, 38, .55); transform: rotate(-.6deg); }
.ask-list li:nth-child(3n+2)::after { width: 52%; transform: rotate(.5deg); }
.ask-list li:nth-child(3n)::after { width: 61%; }
.ask-note { margin-top: 34px; font-size: 19px; font-weight: 500; }

/* вопросы */
.faq { background: var(--wall); }
.faq-list { margin-top: 40px; max-width: 900px; display: grid; gap: 10px; }
.faq-list { gap: 0; }
.faq details { border-top: 2px solid rgba(35, 35, 38, .6); }
.faq details:last-child { border-bottom: 2px solid rgba(35, 35, 38, .6); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 56px 24px 0; font-weight: 600; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.3; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 18px; height: 2px; background: var(--ink); }
.faq summary::before { content: ""; position: absolute; right: 16px; top: calc(50% - 8px); width: 2px; height: 18px; background: var(--ink); transition: transform .25s; }
.faq details[open] summary::before { transform: scaleY(0); }
.faq details[open] summary::after { background: var(--petrol); height: 3px; }
.faq details p { padding: 0 0 26px; max-width: 68ch; color: var(--ink-2); font-size: 18px; }

/* финал */
.finale { background: var(--apricot); color: var(--ink); text-align: left; }
.finale .sec-lead { color: var(--ink-2); }
.finale .btn { margin-top: 36px; }
.finale-note { margin-top: 16px; font-size: 15px; color: #6e5d4b; }

.finale-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.room-final { height: auto; aspect-ratio: 4 / 3.2; border-radius: 4px; background: #e9e2d6; box-shadow: 0 0 0 8px #fff, 0 30px 60px var(--shade); }

/* подвал */
.foot { background: var(--petrol-d); color: #d7e6ee; padding: 48px var(--pad) 28px; font-size: 15px; }
.foot-in { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 32px; }
.foot b { color: #fff; }
.foot a { color: #fff; }
.foot-nav, .foot-docs { display: grid; gap: 8px; align-content: start; }
.foot-demo { max-width: var(--wrap); margin: 36px auto 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 13px; color: #c3d8e3; }

/* окно заявки */
.dlg { width: min(560px, calc(100vw - 24px)); max-height: calc(100svh - 24px); padding: 0; border: 0; border-radius: 6px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.dlg::backdrop { background: rgba(20, 20, 22, .62); backdrop-filter: blur(3px); }
.dlg[open] { animation: dlg-in .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px); } }
.dlg-x { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: 4px; }
.dlg-x svg { width: 22px; height: 22px; margin: auto; stroke: var(--ink); stroke-width: 2; }
.dlg-x:hover { background: rgba(35, 35, 38, .07); }
.form { display: grid; gap: 16px; padding: 30px clamp(18px, 4vw, 34px) 28px; }
.form h2 { font-size: 30px; padding-right: 40px; }
.form-lead { color: var(--ink-2); font-size: 16px; }
.form-demo { font-size: 14px; padding: 8px 12px; border-radius: 4px; background: var(--sun-l); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { grid-column: 1 / -1; display: grid; gap: 5px; font-size: 14px; color: var(--ink-2); }
.field-half { grid-column: auto; }
.field i { font-style: normal; color: #616166; }
.field input, .field select {
  font: 400 17px/1.3 var(--f); color: var(--ink); width: 100%; min-height: 48px; padding: 10px 12px;
  border: 0; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1.5px #c9c6c0;
}
.field input:focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--petrol), 0 0 0 4px rgba(44, 106, 138, .22); }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #b3261e; }
.field-err { font-style: normal; font-size: 13.5px; color: #b3261e; }
.agree { display: grid; gap: 10px; font-size: 14.5px; line-height: 1.45; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.check-all { font-weight: 600; }
.check small { display: block; color: #6e5d4b; font-size: 13px; }
.form .btn { width: 100%; }
.form-hint { font-size: 14px; color: var(--ink-2); text-align: center; }
.form-done { padding: 14px; border-radius: 4px; background: var(--sun-l); font-weight: 500; }

/* листы: подписи */
.plan text { font-family: var(--f); font-size: 13px; fill: #2a2a2e; }
.plan .hand { font-family: var(--hand); font-size: 16px; }
.plan .hand.small { font-size: 13px; }
.plan .hand.big { font-size: 22px; }
.plan .dim path { stroke: #2a2a2e; stroke-width: 1; fill: none; }
.plan .dim text { font-size: 12.5px; font-weight: 500; }
.plan .stamp rect, .plan .stamp path { fill: none; stroke: #2a2a2e; stroke-width: 1.2; }
.plan .stamp text { font-size: 12px; }
.plan .stamp .st-b { font-weight: 700; font-size: 13px; }

/* правовые страницы */
.doc { background: var(--wall); }
.doc-top { display: flex; align-items: center; justify-content: space-between; padding: 18px var(--pad); background: var(--apricot); }
.doc-back { font-size: 16px; }
.doc-main { max-width: 820px; margin: 0 auto; padding: 48px var(--pad) 72px; }
.doc-main h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.doc-main h2 { font-size: 22px; margin: 34px 0 10px; }
.doc-main p, .doc-main li { margin: 8px 0; color: var(--ink-2); }
.doc-note { padding: 12px 16px; border-radius: 4px; background: var(--sun-l); color: var(--ink) !important; font-size: 15px; }
.doc-ver { font-size: 15px; }
.foot-demo-doc { padding: 24px var(--pad); background: var(--petrol-d); color: #c3d8e3; font-size: 13px; }
.foot-demo-doc a { color: #fff; }
.doc-main .btn { margin-top: 20px; }

/* узкие экраны */
@media (max-width: 1100px) {
  .sheets-grid { grid-template-columns: 1fr; gap: 22px; }
  .sheet-tabs { position: static; display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .sheet-tabs button { white-space: nowrap; }
  .album { grid-template-columns: 1fr; }
  .album-h, .album-list { grid-column: 1; }
  .price-grid { grid-template-columns: 1fr; }
  .visit { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 900px) {
  .nav, .top > .btn { display: none; }
  .nav-toggle { display: block; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-text { display: contents; }
  .hero h1 { order: 1; padding: 32px var(--pad) 22px; }
  .hero-room { order: 2; }
  .hero .lead { order: 3; padding: 22px var(--pad) 0; max-width: none; }
  .hero-act { order: 4; padding: 18px var(--pad) 40px; }
  .hero-room { min-height: 0; }
  .hero-room .room { height: clamp(340px, 62vw, 560px); }
  .cases { grid-template-columns: 1fr; }
  .case-big { grid-template-columns: 1fr; }
  .case-big .case-body { padding: 22px 24px 24px; }
  .foot-in { grid-template-columns: 1fr; gap: 22px; }
  .finale-grid { grid-template-columns: 1fr; gap: 36px; }
  .sec h2::before { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .demo-strip { font-size: 12px; padding: 6px var(--pad); }
  .hero h1 { font-size: 33px; padding: 22px var(--pad) 18px; }
  .lead { font-size: 16.5px; }
  .hero-room .room { height: 320px; }
  .stage { padding: 12px var(--pad) 12px; }
  .visit-line { grid-template-columns: repeat(5, minmax(108px, 1fr)); overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding: 0 var(--pad); }
  .visit-line::before, .visit-line::after { left: var(--pad); }
  .fields { grid-template-columns: 1fr; }
  .field-half { grid-column: 1 / -1; }
  .pay-bar { flex-direction: column; }
  .stage-stops { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
