/* remontm2.ru — «ремонт м²». Характер: чертёж, размерные линии, точность. Без фреймворков и внешних шрифтов. */
:root {
  --paper: #f4f2ed;
  --paper-2: #ebe8e1;
  --card: #fbfaf7;
  --ink: #15171b;
  --ink-2: #2a2d33;
  --text: #2b2e35;
  --muted: #6b6f78;
  --line: rgba(21, 23, 27, .12);
  --line-2: rgba(21, 23, 27, .22);
  --acc: #ff5a1f;
  --acc-ink: #c43d0b;
  --acc-soft: rgba(255, 90, 31, .1);
  --ok: #1e8a5a;
  --r: 14px;
  --w: 1200px;
  --g: 20px;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Roboto Mono", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (min-width: 760px) { :root { --g: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--g); }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; letter-spacing: 0; }
.nowrap { white-space: nowrap; }

/* чертёжная сетка */
.grid-bg { background-color: var(--paper);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px),
                    linear-gradient(rgba(21,23,27,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(21,23,27,.05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; background-position: -1px -1px; }
.dark { background: var(--ink); color: #e9e7e2; --line: rgba(255,255,255,.12); --line-2: rgba(255,255,255,.24); --muted: #a2a5ad; --card: #1d2025; }
.dark.grid-bg { background-color: var(--ink);
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px),
                    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); }

/* типографика */
h1, h2, h3 { color: var(--ink); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 750; text-wrap: balance; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
h1 { font-size: clamp(34px, 6.2vw, 72px); letter-spacing: -.035em; }
h2 { font-size: clamp(28px, 4.2vw, 48px); }
h3 { font-size: 20px; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--acc-ink); margin-bottom: 18px; }
.dark .eyebrow { color: var(--acc); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; box-shadow: 0 -4px 0 -0 transparent; }
.sup { font-size: .55em; vertical-align: .65em; line-height: 0; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-acc { background: var(--acc); color: #fff; box-shadow: 0 8px 24px -10px rgba(255,90,31,.7); }
.btn-acc:hover { background: #ff6b33; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2a2d33; }
.btn-line { border-color: var(--line-2); background: transparent; color: var(--ink); }
.dark .btn-line { color: #fff; }
.btn-line:hover { border-color: var(--ink); }
.dark .btn-line:hover { border-color: #fff; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* шапка */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(244,242,237,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hdr.scrolled { border-bottom-color: var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 12px; height: 68px; }
@media (min-width: 760px) { .hdr .wrap { gap: 24px; } }
@media (max-width: 519px) { .hdr .cta { display: none; } .mnav { margin-left: auto; } }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -.03em; flex: none; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo b { font-weight: 800; }
.logo .m2 { color: var(--acc-ink); }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { white-space: nowrap; padding: 8px 11px; border-radius: 999px; text-decoration: none; font-size: 15px; color: var(--ink-2); transition: background .2s; }
.nav a:hover, .nav a[aria-current] { background: rgba(21,23,27,.06); }
.hdr-tel { display: none; font: 600 15px var(--mono); text-decoration: none; color: var(--ink); white-space: nowrap; }
.hdr .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
.hdr .cta { margin-left: auto; }
@media (min-width: 1080px) { .nav { display: flex; } .hdr .cta { margin-left: 0; } .mnav { display: none; } }
@media (min-width: 1300px) { .hdr-tel { display: inline; } }
.mnav { position: relative; }
.mnav summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); cursor: pointer; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary span, .mnav summary span::before, .mnav summary span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s; }
.mnav summary span::before, .mnav summary span::after { content: ""; position: absolute; left: 0; }
.mnav summary span::before { top: -6px; } .mnav summary span::after { top: 6px; }
.mnav[open] summary span { background: transparent; }
.mnav[open] summary span::before { transform: translateY(6px) rotate(45deg); }
.mnav[open] summary span::after { transform: translateY(-6px) rotate(-45deg); }
.mnav nav { position: fixed; left: 12px; right: 12px; top: 74px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.35); display: grid; gap: 2px; max-height: calc(100vh - 100px); overflow: auto; }
.mnav nav a { padding: 13px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--ink); }
.mnav nav a:hover { background: var(--paper-2); }
.mnav nav .mono { color: var(--acc-ink); }

/* hero */
.hero { padding: 40px 0 0; position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero { padding: 72px 0 0; } .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 56px; } }
.hero h1 em { font-style: normal; color: var(--acc-ink); white-space: nowrap; }
.hero .lead { margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); }
.price-tag { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--mono); }

.frame { position: relative; padding: 30px 34px 30px 0; }
.frame .pic { position: relative; border-radius: 6px; overflow: hidden; background: var(--paper-2); box-shadow: 0 30px 80px -40px rgba(21,23,27,.55); }
.frame .pic img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.badge-viz { position: absolute; left: 12px; bottom: 12px; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(21,23,27,.62); padding: 7px 9px; border-radius: 6px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
/* размерные линии */
.dim { position: absolute; color: var(--ink-2); font: 600 12px/1 var(--mono); }
.dim svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dim line, .dim path { stroke: currentColor; stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.dim-h { left: 0; right: 34px; top: 0; height: 20px; }
.dim-v { right: 0; top: 30px; bottom: 30px; width: 20px; }
.dim-lbl { position: absolute; background: var(--paper); padding: 2px 6px; white-space: nowrap; }
.dim-h .dim-lbl { left: 50%; top: 4px; transform: translateX(-50%); }
.dim-v .dim-lbl { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-90deg); }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s .3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.area-chip { position: absolute; right: 54px; top: 54px; background: var(--ink); color: #fff; border-radius: 10px; padding: 10px 12px; font: 600 13px/1.3 var(--mono); box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.area-chip span { color: var(--acc); }
.area-chip small { display: block; color: #9ea1a8; font-size: 11px; font-weight: 500; }

/* полоса фактов */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 56px; }
@media (min-width: 860px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { padding: 22px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(251,250,247,.6); }
.dark .fact { background: rgba(255,255,255,.02); }
.fact b { display: block; font: 700 clamp(26px, 3.4vw, 38px)/1.05 var(--mono); color: var(--ink); letter-spacing: -.03em; margin-bottom: 6px; }
.dark .fact b { color: #fff; }
.fact b small { font-size: .5em; letter-spacing: 0; margin-left: 4px; color: var(--muted); }
.fact span { font-size: 14px; color: var(--muted); line-height: 1.4; display: block; }

/* секции */
.sec { padding: 88px 0; }
@media (max-width: 759px) { .sec { padding: 64px 0; } }
.sec-head { display: grid; gap: 12px; margin-bottom: 44px; }
@media (min-width: 900px) { .sec-head.split { grid-template-columns: 1fr 1fr; align-items: end; gap: 56px; } .sec-head.split .lead { margin: 0 0 6px; } }
.sec-num { font: 600 12px var(--mono); color: var(--muted); }

/* услуги */
.svc { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; grid-template-columns: 1fr; }
@media (min-width: 640px) { .svc { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .svc { grid-template-columns: repeat(4, 1fr); } }
.svc > * { background: var(--card); padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; position: relative; transition: background .25s; min-height: 220px; }
.svc > a:hover { background: #fff; }
.svc .ico { width: 44px; height: 44px; color: var(--ink); margin-bottom: 6px; }
.svc .ico path, .svc .ico rect, .svc .ico circle, .svc .ico line, .svc .ico polyline { stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { margin: 0; }
.svc p { font-size: 15px; color: var(--muted); margin: 0; }
.svc .more { margin-top: auto; font: 600 13px var(--mono); color: var(--acc-ink); }
.svc .idx { position: absolute; right: 18px; top: 18px; font: 500 12px var(--mono); color: var(--muted); }
.svc .cta-cell { background: var(--ink); color: #e9e7e2; justify-content: space-between; }
.svc .cta-cell h3 { color: #fff; }
.svc .cta-cell p { color: #a2a5ad; }

/* пакеты */
.tiers { display: grid; gap: 16px; }
@media (min-width: 980px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.tier.hi { background: var(--ink); color: #dcdad4; border-color: var(--ink); }
.tier.hi h3, .tier.hi .tp b { color: #fff; }
.tier .tag { position: absolute; top: -11px; left: 24px; background: var(--acc); color: #fff; font: 600 11px/1 var(--mono); padding: 6px 9px; border-radius: 6px; letter-spacing: .04em; text-transform: uppercase; }
.tier h3 { font-size: 24px; margin: 0; }
.tier .hint { font-size: 15px; color: var(--muted); margin: -8px 0 0; }
.tier.hi .hint { color: #a2a5ad; }
.tp { font-family: var(--mono); color: var(--muted); font-size: 14px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; padding: 16px 0; border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2); }
.tier.hi .tp { border-color: rgba(255,255,255,.2); color: #a2a5ad; }
.tp b { font-size: 34px; color: var(--ink); letter-spacing: -.04em; line-height: 1; }
.tier ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 15px; }
.tier li { padding-left: 22px; position: relative; line-height: 1.45; }
.tier li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border: 1.5px solid var(--acc); border-radius: 2px; }
.tier .ex { font-size: 13px; color: var(--muted); font-family: var(--mono); margin-top: auto; }
.tier.hi .ex { color: #a2a5ad; }
.tier .btn { width: 100%; white-space: normal; text-align: center; }

/* калькулятор */
.calc { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--card); }
@media (min-width: 960px) { .calc { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.calc-in { padding: 28px 24px; display: grid; gap: 26px; align-content: start; }
@media (min-width: 760px) { .calc-in { padding: 36px; } }
.fld > .lbl { flex-wrap: wrap; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 650; color: var(--ink); margin-bottom: 12px; font-size: 15px; }
.fld > .lbl .mono { font-weight: 600; color: var(--muted); font-size: 13px; }
.area-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 16px; align-items: center; }
.num { position: relative; }
.num input { width: 100%; height: 52px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; padding: 0 44px 0 14px; font: 700 20px var(--mono); color: var(--ink); -moz-appearance: textfield; }
.num input::-webkit-outer-spin-button, .num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font: 600 14px var(--mono); pointer-events: none; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; cursor: pointer; --p: 30%; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--ink) var(--p), var(--line-2) var(--p)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-2); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
.ticks { display: flex; justify-content: space-between; font: 500 11px var(--mono); color: var(--muted); margin-top: 2px; }

/* сегменты — равные по ширине */
.seg { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 14px; background: var(--paper-2); }
.seg.wrap2 { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 520px) { .seg.wrap2 { grid-auto-flow: column; grid-template-columns: none; } }
.seg label { position: relative; display: block; min-width: 0; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 8px; border-radius: 10px; font-weight: 600; font-size: 14px; text-align: center; color: var(--ink-2); transition: background .2s, color .2s, box-shadow .2s; line-height: 1.2; }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 0 0 1px rgba(21,23,27,.06); }
.seg input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 1px; }
.seg label:hover input:not(:checked) + span { color: var(--ink); background: rgba(255,255,255,.5); }

.calc-out { background: var(--ink); color: #dcdad4; padding: 28px 24px; display: flex; flex-direction: column; gap: 20px; position: relative; }
@media (min-width: 760px) { .calc-out { padding: 36px; } }
.calc-out .k { font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #9ea1a8; }
.total { font: 700 clamp(38px, 5.4vw, 60px)/1 var(--mono); color: #fff; letter-spacing: -.045em; font-feature-settings: "tnum" 1; }
.per { font: 600 16px var(--mono); color: var(--acc); }
.wbar { height: 10px; border-radius: 6px; overflow: hidden; display: flex; background: rgba(255,255,255,.1); }
.wbar i { display: block; height: 100%; transition: width .5s var(--ease); }
.wbar i:first-child { background: #fff; } .wbar i:last-child { background: var(--acc); }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 14px; }
.legend div { display: grid; gap: 2px; }
.legend b { font: 700 18px var(--mono); color: #fff; }
.legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; }
.calc-out ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; color: #b9bbc1; border-top: 1px dashed rgba(255,255,255,.18); padding-top: 18px; }
.calc-out li { display: flex; justify-content: space-between; gap: 12px; }
.calc-out li b { color: #fff; font-family: var(--mono); font-weight: 600; text-align: right; }
.calc-out .btn { margin-top: auto; white-space: normal; text-align: center; line-height: 1.25; padding: 10px 20px; }
.calc-out .fine { font-size: 12px; color: #8b8e95; line-height: 1.5; margin: 0; }

/* график этапов */
.gantt { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--card); }
.g-row { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--line); }
.g-row:last-child { border-bottom: 0; }
@media (min-width: 900px) { .g-row { grid-template-columns: 330px 1fr; } }
.g-name { padding: 18px 22px; display: grid; gap: 4px; align-content: center; }
.g-name b { color: var(--ink); font-size: 16px; display: flex; gap: 10px; align-items: baseline; }
.g-name b .mono { color: var(--acc-ink); font-size: 12px; }
.g-name span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.g-track { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); min-height: 54px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .g-track { border-top: 0; border-left: 1px solid var(--line); } }
.g-track > i { border-right: 1px dashed var(--line); }
.g-track > i:last-of-type { border-right: 0; }
.g-bar { position: absolute; top: 50%; height: 26px; transform: translateY(-50%); background: var(--ink); border-radius: 6px; color: #fff; font: 600 11px/26px var(--mono); padding: 0 6px; min-width: 10px; white-space: nowrap; overflow: hidden; transform-origin: left center; }
.g-bar.acc { background: var(--acc); }
.g-head .g-track { min-height: 40px; }
.g-head .g-track > i { display: flex; align-items: center; justify-content: center; font: 600 11px var(--mono); color: var(--muted); font-style: normal; }
.g-head .g-name { font: 600 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.rv-on .g-bar { transform: translateY(-50%) scaleX(0); transition: transform .9s var(--ease); }
.rv-on .in .g-bar { transform: translateY(-50%) scaleX(1); }

/* «Мой ремонт» */
.portal { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .portal { grid-template-columns: 1fr 1fr; gap: 72px; } }
.feat { display: grid; gap: 0; border-top: 1px solid var(--line); }
.feat > div { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.feat .mono { color: var(--acc); font-weight: 700; font-size: 13px; padding-top: 3px; }
.feat b { color: #fff; display: block; margin-bottom: 2px; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }
.phone { width: min(340px, 100%); margin: 0 auto; background: #0c0d10; border-radius: 44px; padding: 12px; box-shadow: 0 50px 100px -40px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.08); }
.screen { background: var(--paper); color: var(--text); border-radius: 34px; overflow: hidden; height: 640px; display: flex; flex-direction: column; font-size: 13px; }
.scr-top { padding: 18px 18px 12px; background: var(--card); border-bottom: 1px solid var(--line); }
.scr-top .t { font-weight: 750; color: var(--ink); font-size: 16px; }
.scr-top .s { color: var(--muted); font-size: 12px; }
.prog { margin-top: 12px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.prog i { height: 5px; border-radius: 3px; background: var(--line-2); }
.prog i.d { background: var(--ink); } .prog i.c { background: var(--acc); }
.prog-l { display: flex; justify-content: space-between; margin-top: 8px; font: 600 11px var(--mono); }
.prog-l span:last-child { color: var(--acc-ink); }
.scr-body { padding: 14px; display: grid; gap: 10px; overflow: hidden; flex: 1; align-content: start; }
.post { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.post img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post div { padding: 9px 11px; display: flex; justify-content: space-between; gap: 8px; }
.post div b { color: var(--ink); font-weight: 650; }
.post div span { color: var(--muted); font: 500 11px var(--mono); white-space: nowrap; }
.bub { max-width: 82%; padding: 9px 12px; border-radius: 14px; line-height: 1.35; }
.bub.in { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bub.out { background: var(--ink); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.bub small { display: block; font: 500 10px var(--mono); opacity: .6; margin-top: 3px; }
.claim { border: 1px dashed var(--acc); background: var(--acc-soft); border-radius: 12px; padding: 9px 11px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.claim b { color: var(--ink); }
.claim span { font: 700 11px var(--mono); color: var(--acc-ink); white-space: nowrap; }

/* документы */
.docs { display: grid; gap: 12px; }
@media (min-width: 700px) { .docs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .docs { grid-template-columns: repeat(3, 1fr); } }
.doc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.doc svg { width: 40px; height: 48px; }
.doc svg path, .doc svg line { stroke: var(--ink); stroke-width: 1.3; fill: none; }
.doc svg .f { fill: var(--acc); stroke: none; }
.doc b { color: var(--ink); display: block; margin-bottom: 4px; }
.doc p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

.split2 { display: grid; gap: 40px; }
@media (min-width: 960px) { .split2 { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { padding-left: 34px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 6px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23ff5a1f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.checks b { color: var(--ink); }
.dark .checks b { color: #fff; }
.dark .checks li::before { background-color: rgba(255,255,255,.1); }

/* галерея */
.gal { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gal { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; } .gal .big { grid-column: span 2; grid-row: span 2; } }
.gal figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; background: var(--paper-2); }
.gal img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/2; transition: transform .8s var(--ease); }
@media (min-width: 900px) { .gal img { aspect-ratio: auto; } }
.gal figure:hover img { transform: scale(1.03); }
.gal figcaption { position: absolute; left: 10px; bottom: 10px; right: 10px; font: 600 11px/1.3 var(--mono); color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); letter-spacing: .02em; }

/* CTA планировка */
.plan-cta { display: grid; gap: 28px; align-items: center; border-radius: 22px; padding: 36px 26px; background: var(--acc); color: #fff; position: relative; overflow: hidden; }
@media (min-width: 900px) { .plan-cta { grid-template-columns: 1.3fr 1fr; padding: 52px; } }
.plan-cta h2 { color: #fff; margin-bottom: 10px; }
.plan-cta p { color: rgba(255,255,255,.88); margin: 0; font-size: 17px; }
.plan-cta .btn-ink { justify-self: start; }
@media (min-width: 900px) { .plan-cta .btn-ink { justify-self: end; } }
@media (max-width: 899px) { .plan-cta svg.bp { display: none; } }
.plan-cta svg.bp { position: absolute; right: -40px; bottom: -60px; width: 360px; opacity: .22; pointer-events: none; }
.plan-cta svg.bp * { stroke: #fff; fill: none; stroke-width: 2; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font-weight: 650; color: var(--ink); font-size: 18px; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--ink), var(--ink)) center/14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center/2px 14px no-repeat; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 22px; color: var(--text); max-width: 820px; }
.faq .a p:last-child { margin: 0; }

/* форма */
.form-wrap { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .form-wrap { grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; } .form-wrap .aside { position: sticky; top: 100px; } }
.form { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px 20px; display: grid; gap: 22px; color: var(--text); }
@media (min-width: 760px) { .form { padding: 36px; } }
.form .row2 { display: grid; gap: 22px; }
@media (min-width: 640px) { .form .row2 { grid-template-columns: 1fr 1fr; } }
.form label.t { display: block; font-weight: 650; color: var(--ink); font-size: 15px; margin-bottom: 8px; }
.form label.t small { font-weight: 500; color: var(--muted); }
.inp { width: 100%; height: 52px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; padding: 0 14px; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.inp:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(21,23,27,.07); }
.inp.bad { border-color: #d33; box-shadow: 0 0 0 4px rgba(221,51,51,.08); }
.drop { display: flex; align-items: center; gap: 14px; border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 16px; cursor: pointer; transition: border-color .2s, background .2s; position: relative; }
.drop:hover, .drop.over { border-color: var(--acc); background: var(--acc-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop svg { width: 38px; height: 38px; flex: none; }
.drop svg * { stroke: var(--ink); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.drop b { color: var(--ink); display: block; font-size: 15px; }
.drop span { font-size: 13px; color: var(--muted); display: block; }
.drop.has { border-style: solid; border-color: var(--ok); background: rgba(30,138,90,.06); }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 13px; color: var(--muted); line-height: 1.5; align-items: start; }
.consent input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.consent a { color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; min-height: 58px; font-size: 17px; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.msg { border-radius: 12px; padding: 14px 16px; font-size: 15px; display: none; }
.msg.err { display: block; background: rgba(221,51,51,.08); color: #a01d1d; }
.msg.ok { display: block; background: rgba(30,138,90,.1); color: #145c3c; }
.done { text-align: center; padding: 30px 10px; display: none; }
.done.show { display: block; }
.done svg { width: 64px; height: 64px; margin: 0 auto 14px; }
.done h3 { font-size: 26px; }
.fine { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* хлебные крошки, контент страниц */
.crumbs { font: 500 13px var(--mono); color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--acc-ink); }
.page-hero { padding: 40px 0 56px; border-bottom: 1px solid var(--line); }
@media (min-width: 980px) { .page-hero { padding: 64px 0 72px; } }
.page-hero .hero-grid { align-items: end; }
.page-hero h1 { font-size: clamp(32px, 4.8vw, 58px); }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(26px, 3.4vw, 36px); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose a { color: var(--acc-ink); text-underline-offset: 3px; }
.content-grid { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1040px) { .content-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; } .content-grid aside { position: sticky; top: 100px; align-self: start; } }
.side { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 14px; }
.side h3 { font-size: 17px; margin: 0; }
.side nav { display: grid; }
.side nav a { padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 15px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.side nav a:last-child { border-bottom: 0; }
.side nav a:hover { color: var(--acc-ink); }
.side nav a::after { content: "→"; color: var(--muted); }

/* таблицы */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin: 0 0 1.4em; }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
table.t th, table.t td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t thead th { font: 600 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; background: var(--paper-2); }
table.t tbody tr:last-child td, table.t tbody tr:last-child th { border-bottom: 0; }
table.t td.n, table.t th.n { text-align: right; font-family: var(--mono); white-space: nowrap; font-feature-settings: "tnum" 1; }
table.t tbody th { font-weight: 650; color: var(--ink); }
@media (max-width: 640px) { table.t tbody th { min-width: 130px; } }
table.t tfoot td { font-weight: 700; color: var(--ink); border-top: 1px solid var(--line-2); border-bottom: 0; }
.cap { font-size: 13px; color: var(--muted); margin-top: -.8em; margin-bottom: 1.4em; }

.links { display: grid; gap: 10px; }
@media (min-width: 640px) { .links { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .links { grid-template-columns: repeat(3, 1fr); } }
.links a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color .2s, transform .2s var(--ease); }
.links a:hover { border-color: var(--ink); transform: translateY(-2px); }
.links a span { font: 500 13px var(--mono); color: var(--muted); white-space: nowrap; }

.note { border-left: 3px solid var(--acc); background: var(--acc-soft); padding: 14px 18px; border-radius: 0 12px 12px 0; font-size: 15px; margin: 0 0 1.4em; }

/* подвал */
.ftr { background: var(--ink); color: #a2a5ad; padding: 64px 0 32px; font-size: 14px; }
.ftr a { color: #dcdad4; text-decoration: none; }
.ftr a:hover { color: #fff; }
.ftr-grid { display: grid; gap: 36px; }
@media (min-width: 720px) { .ftr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .ftr-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }
.ftr h4 { color: #fff; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ftr .logo { color: #fff; margin-bottom: 14px; }
.ftr .logo .m2 { color: var(--acc); }
.ftr .tel { font: 700 22px var(--mono); color: #fff; display: inline-block; margin: 6px 0 4px; }
.ftr .req { font: 13px/1.7 var(--mono); }
.ftr-bot { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 10px; font-size: 12.5px; line-height: 1.6; color: #82858d; }

/* мобильная липкая кнопка */
.mcta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; transform: translateY(140%); transition: transform .35s var(--ease); }
.mcta.show { transform: none; }
.mcta .btn { min-height: 50px; font-size: 15px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.45); }
@media (min-width: 900px) { .mcta { display: none; } }

/* появление при прокрутке */
.rv-on .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv-on .rv.in { opacity: 1; transform: none; }
.rv-on .rv.d1 { transition-delay: .08s; } .rv-on .rv.d2 { transition-delay: .16s; } .rv-on .rv.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .draw { stroke-dashoffset: 0; animation: none; }
  .rv-on .rv { opacity: 1; transform: none; }
  .rv-on .g-bar { transform: translateY(-50%) scaleX(1); }
}
@media print { .hdr, .mcta, .form-wrap, .plan-cta { display: none !important; } body { background: #fff; } }

@media (max-width: 899px) { .g-bar { font-size: 0; } .g-name b .mono:last-child { margin-left: auto; } }
.prose .eyebrow + h2 { margin-top: 0; }
