/* ==========================================================================
   МЕРА — демонстрационный сайт ремонтной компании
   ========================================================================== */

:root {
  --bg: #F3F0EA;
  --ink: #272C29;
  --terra: #A85F42;
  --terra-hover: #93503A;
  --terra-ink: #8E4B31;   /* терракота для мелкого текста на светлом фоне */
  --terra-lt: #DA9677;    /* терракота для текста на графите */
  --stone: #D9D4CB;
  --muted: #5B605C;
  --line: rgba(39, 44, 41, .16);
  --lt: #F3F0EA;
  --lt-mut: rgba(243, 240, 234, .72);
  --lt-line: rgba(243, 240, 234, .18);
  --wrap: 1320px;
  --pad: 40px;
  --f-head: 'Manrope', system-ui, sans-serif;
  --f-body: 'Onest', system-ui, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-family: var(--f-head); font-weight: 600; letter-spacing: -.025em; }
p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
a { color: inherit; }
a:hover { color: var(--terra-ink); }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page { position: relative; overflow-x: clip; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.sec { padding: 140px 0; scroll-margin-top: 72px; }

/* image containers: illustration fills the box */
.media { position: relative; overflow: hidden; background: var(--stone); }
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- typography helpers ---------- */
.idx {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  color: var(--muted);
}
.idx::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.idx b { color: var(--terra-ink); font-weight: 600; }
.h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.08; }
.lead { font-size: 18px; color: var(--muted); }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 28px;
  background: var(--terra); color: #fff; border: 1px solid var(--terra); border-radius: 2px;
  font: 500 16px/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--terra-hover); border-color: var(--terra-hover); color: #fff; }
.btn .arr, .tlink .arr { transition: transform .25s ease; }
.btn:hover .arr, .tlink:hover .arr { transform: translateX(4px); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tlink {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-weight: 500; text-decoration: none;
  transition: border-color .2s, color .2s;
}
.tlink:hover { border-color: var(--terra); }

/* ---------- logo ---------- */
.logo { display: inline-flex; flex-direction: column; gap: 7px; padding: 8px 0; text-decoration: none; color: var(--ink); }
.logo:hover { color: inherit; }
.logo-dim { position: relative; height: 1px; background: currentColor; margin-right: 6px; }
.logo-dim::before, .logo-dim::after { content: ""; position: absolute; top: -4px; width: 1px; height: 9px; background: currentColor; }
.logo-dim::before { left: 0; }
.logo-dim::after { right: 0; }
.logo-word { font: 800 21px/1 var(--f-head); letter-spacing: 6px; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.hdr-in { height: 80px; display: flex; align-items: center; gap: 40px; }
.nav { display: flex; gap: 36px; margin-left: auto; }
.nav a { position: relative; padding: 10px 0; font-size: 15px; font-weight: 500; text-decoration: none; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--terra);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.hdr-cta { min-height: 44px; padding: 0 20px; font-size: 15px; }
.burger {
  display: none; width: 44px; height: 44px; margin-left: auto; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s ease; }
.hdr.open .burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
.hdr.open .burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.mnav { display: none; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 44fr 56fr; min-height: 800px; border-bottom: 1px solid var(--line); }
.hero-txt {
  display: flex; flex-direction: column;
  padding: 96px 48px 44px max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad)));
}
.hero h1 { margin-top: 36px; font-size: clamp(40px, 4.3vw, 68px); line-height: 1.02; letter-spacing: -.04em; }
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 em { font-style: normal; color: var(--terra); }
.hero-lead { margin-top: 28px; max-width: 430px; font-size: 18px; color: var(--muted); }
.hero-act { margin-top: 44px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.hero-plan { margin-top: auto; padding-top: 72px; }
.hero-plan p { margin-bottom: 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.scale { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.scale::after { content: ""; position: absolute; right: 0; top: -5px; width: 1px; height: 9px; background: var(--ink); }
.scale li { position: relative; padding: 14px 8px 0 0; font-size: 14px; line-height: 1.3; color: var(--muted); }
.scale li::before { content: ""; position: absolute; left: 0; top: -5px; width: 1px; height: 9px; background: var(--ink); }
.scale b { display: block; margin-bottom: 6px; font: 600 12px/1 var(--f-head); letter-spacing: .1em; color: var(--ink); }
.hero-media { min-height: 640px; }
.hero-down {
  position: absolute; right: 28px; bottom: 24px; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; background: var(--bg);
  display: flex; align-items: center; justify-content: center; text-decoration: none;
}

/* dimension marks over illustrations */
.dim { position: absolute; z-index: 2; color: var(--ink); font-size: 12px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.dim-h { top: 44px; left: 14%; right: 22%; height: 1px; background: rgba(39, 44, 41, .7); }
.dim-h::before, .dim-h::after { content: ""; position: absolute; top: -6px; width: 1px; height: 13px; background: rgba(39, 44, 41, .7); transform: rotate(45deg); }
.dim-h::before { left: 0; }
.dim-h::after { right: 0; }
.dim-h span { position: absolute; left: 50%; top: -11px; transform: translateX(-50%); padding: 2px 8px; background: var(--bg); }
.dim-v { left: 40px; top: 22%; bottom: 26%; width: 1px; background: rgba(39, 44, 41, .7); }
.dim-v::before, .dim-v::after { content: ""; position: absolute; left: -6px; width: 13px; height: 1px; background: rgba(39, 44, 41, .7); transform: rotate(-45deg); }
.dim-v::before { top: 0; }
.dim-v::after { bottom: 0; }
.dim-v span { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%) rotate(-90deg); padding: 2px 8px; background: var(--bg); white-space: nowrap; }
.cap {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  display: flex; gap: 18px; align-items: baseline;
  padding: 16px 28px 0 0; background: var(--bg);
  font-size: 13px; color: var(--muted);
}
.cap b { font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.cap-dark { background: var(--ink); color: var(--lt-mut); }
.cap-dark b { color: var(--lt); }

/* ---------- section heads ---------- */
.sec-head { align-items: start; margin-bottom: 72px; }
.sec-head .idx { grid-column: 1 / 5; padding-top: 14px; }
.sec-head-txt { grid-column: 5 / 12; }
.sec-head-txt .lead { margin-top: 24px; max-width: 600px; }

/* ---------- 01 services ---------- */
.svc { border-top: 1px solid var(--ink); }
.svc-row { align-items: start; row-gap: 24px; padding: 44px 0; border-bottom: 1px solid var(--line); }
.svc-n { grid-column: 1 / 2; padding-top: 12px; font: 300 15px/1 var(--f-head); letter-spacing: .06em; color: var(--muted); }
.svc-main { grid-column: 2 / 7; }
.svc-main h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.12; }
.svc-start { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--terra-ink); }
.svc-main p { margin-top: 16px; max-width: 480px; color: var(--muted); }
.svc-main .tlink { margin-top: 20px; font-size: 15px; }
.svc-inc { grid-column: 7 / 10; padding-top: 8px; }
.svc-inc p { margin-bottom: 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.svc-inc li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.svc-inc li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 1px; background: var(--terra); }
.svc-img { grid-column: 10 / 13; aspect-ratio: 4 / 3; }
.svc-row:nth-child(2) .svc-img { aspect-ratio: 1 / 1; }
.svc-foot { margin-top: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; color: var(--muted); }

/* ---------- 02 examples ---------- */
.ex { padding-top: 40px; }
.ex-note {
  grid-column: 5 / 12; margin-top: 28px;
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px; border: 1px solid var(--line);
  font-size: 15px; line-height: 1.5; color: var(--muted);
}
.ex-note b { flex: none; padding-top: 3px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); }
.ex-scale { margin: 0 0 112px; }
.ex-scale p { margin-bottom: 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ex-scale div { display: flex; gap: 6px; }
.ex-scale a {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 16px; border-top: 2px solid var(--ink);
  font-size: 15px; text-decoration: none; transition: border-color .2s;
}
.ex-scale a b { font: 600 22px/1 var(--f-head); letter-spacing: -.02em; }
.ex-scale a span { padding-right: 12px; color: var(--muted); }
.ex-scale a:hover { border-color: var(--terra); color: var(--ink); }

.proj { align-items: start; row-gap: 32px; margin-bottom: 140px; scroll-margin-top: 100px; }
.pm-tag {
  position: absolute; left: 0; top: 0; z-index: 2;
  padding: 9px 14px; background: var(--bg);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.pm-open {
  position: absolute; inset: 0; z-index: 3; padding: 0;
  display: flex; align-items: flex-end; justify-content: flex-end;
  border: 0; background: transparent; cursor: pointer;
}
.pm-open span {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px;
  background: var(--ink); color: var(--bg); font: 500 14px/1 var(--f-body);
  opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s;
}
.pm-open:hover span, .pm-open:focus-visible span { opacity: 1; transform: none; }
.pno { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.parea { display: flex; align-items: flex-start; gap: 6px; margin-top: 18px; font: 200 104px/.86 var(--f-head); letter-spacing: -.05em; }
.parea sup { margin-top: 8px; font-size: 24px; font-weight: 400; line-height: 1; letter-spacing: 0; }
.pinfo h3 { margin-top: 28px; font-size: 26px; line-height: 1.2; }
.psub { margin-top: 6px; font-size: 15px; color: var(--terra-ink); }
.ptxt { margin-top: 16px; font-size: 16px; color: var(--muted); }
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; border-top: 1px solid var(--line); }
.spec div { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.spec dd { margin-top: 2px; font-size: 15px; font-weight: 500; }
.sw { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 20px; }
.sw li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sw i { display: block; width: 20px; height: 20px; border: 1px solid rgba(39, 44, 41, .2); }
.gbtn { margin-top: 28px; }

.proj-a .pm1 { grid-column: 1 / 9; grid-row: 1; aspect-ratio: 4 / 3; }
.proj-a .pinfo { grid-column: 9 / 13; grid-row: 1 / 3; }
.proj-a .pm2 { grid-column: 4 / 9; grid-row: 2; aspect-ratio: 16 / 10; }
.proj-b .pinfo { grid-column: 1 / 5; grid-row: 1; padding-top: 96px; }
.proj-b .pm1 { grid-column: 5 / 10; grid-row: 1; aspect-ratio: 4 / 5; }
.proj-b .pm2 { grid-column: 10 / 13; grid-row: 1; aspect-ratio: 3 / 4; align-self: end; }
.proj-c .pm1 { grid-column: 1 / 13; grid-row: 1; aspect-ratio: 21 / 9; }
.proj-c .pinfo { position: relative; z-index: 4; grid-column: 1 / 6; grid-row: 2; margin-top: -160px; padding: 40px 40px 0 0; background: var(--bg); }
.proj-c .pm2 { grid-column: 7 / 10; grid-row: 2; aspect-ratio: 4 / 5; }
.proj-c .pm3 { grid-column: 10 / 13; grid-row: 2; aspect-ratio: 4 / 5; margin-top: 72px; }
.proj-c .gal { grid-row: 3; }

/* gallery */
.gal { grid-column: 1 / 13; padding-top: 20px; border-top: 1px solid var(--ink); }
.gal-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.gal-top h4 { font-size: 18px; line-height: 1.3; letter-spacing: -.01em; }
.gal-top h4 span { font-weight: 400; color: var(--muted); }
.gal-close {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--ink);
  font: 500 14px var(--f-body); cursor: pointer;
}
.gal-close:hover { border-color: var(--ink); }
.gal-stage { aspect-ratio: 16 / 9; }
.gal-stage > img { transition: opacity .25s ease; }
.gal-stage.is-swapping > img { opacity: 0; }
.gal-bar { position: absolute; right: 0; bottom: 0; z-index: 3; display: flex; align-items: stretch; background: var(--bg); }
.gal-bar output { display: flex; align-items: center; padding: 0 20px; font: 500 14px var(--f-head); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.gal-bar button {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  border: 0; border-left: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer;
}
.gal-bar button:hover { background: var(--ink); color: var(--bg); }
.gal-cap { position: absolute; left: 0; bottom: 0; z-index: 3; padding: 16px 24px 0 0; background: var(--bg); font-size: 15px; }
.gal-note { margin-left: 10px; font-size: 13px; color: var(--muted); }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.thumb { aspect-ratio: 16 / 10; padding: 0; border: 0; cursor: pointer; opacity: .55; transition: opacity .2s; }
.thumb:hover { opacity: .85; }
.thumb[aria-current="true"] { opacity: 1; box-shadow: inset 0 0 0 2px var(--ink); }
.thumb i {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  padding: 6px 8px; background: var(--bg);
  font: 500 11px/1 var(--f-body); font-style: normal; letter-spacing: .06em;
}

/* ---------- 03 calculator ---------- */
.calc { background: var(--ink); color: var(--lt); scroll-margin-top: 0; }
.calc .idx { color: var(--lt-mut); }
.calc .idx b { color: var(--terra-lt); }
.calc-intro { grid-column: 1 / 6; }
.calc-intro .h2 { margin-top: 28px; }
.calc-intro .lead { margin-top: 24px; max-width: 420px; color: var(--lt-mut); }
.calc-note { margin-top: 48px; max-width: 420px; padding-top: 20px; border-top: 1px solid var(--lt-line); font-size: 14px; color: var(--lt-mut); }
.calc-note b { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--lt); }
.calc-ui { grid-column: 7 / 13; }
.cstep { min-width: 0; margin: 0 0 40px; padding: 0 0 40px; border: 0; border-bottom: 1px solid var(--lt-line); }
.cstep-last { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.cstep legend { display: flex; gap: 14px; align-items: baseline; margin-bottom: 22px; padding: 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--lt-mut); }
.cstep legend b { font-weight: 600; color: var(--terra-lt); }
.area-read { display: flex; align-items: baseline; gap: 12px; font-family: var(--f-head); }
.area-read output { font-size: clamp(80px, 9vw, 128px); font-weight: 200; line-height: .86; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.area-read span { font-size: 28px; color: var(--lt-mut); }
.ruler { position: relative; height: 44px; margin: 28px 11px 0; }
.tick { position: absolute; bottom: 0; width: 1px; height: 8px; background: rgba(243, 240, 234, .36); }
.tick.maj { height: 16px; background: rgba(243, 240, 234, .8); }
.tick i { position: absolute; bottom: 22px; left: 0; transform: translateX(-50%); font: 400 11px/1 var(--f-body); font-style: normal; color: var(--lt-mut); }
.rmark { position: absolute; bottom: 0; z-index: 1; width: 2px; height: 36px; margin-left: -1px; background: var(--terra-lt); transition: left .15s ease; }
.range { display: block; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.range::-webkit-slider-runnable-track { height: 2px; background: rgba(243, 240, 234, .32); }
.range::-moz-range-track { height: 2px; background: rgba(243, 240, 234, .32); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--terra); border: 3px solid var(--lt); }
.range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--terra); border: 3px solid var(--lt); }
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.presets p { margin-right: 6px; font-size: 13px; color: var(--lt-mut); }
.pre {
  min-height: 44px; padding: 0 18px;
  border: 1px solid rgba(243, 240, 234, .3); border-radius: 999px; background: transparent; color: var(--lt);
  font: 500 14px var(--f-body); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.pre:hover { border-color: var(--lt); }
.pre[aria-pressed="true"] { background: var(--lt); color: var(--ink); border-color: var(--lt); }
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.opt {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  min-height: 124px; padding: 18px 18px 20px; text-align: left;
  border: 1px solid rgba(243, 240, 234, .26); border-radius: 2px; background: transparent; color: var(--lt);
  font-family: var(--f-body); cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.opt::after { content: ""; position: absolute; right: 16px; top: 20px; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(243, 240, 234, .5); }
.opt b { padding-right: 24px; font: 600 17px/1.25 var(--f-head); }
.opt span { font-size: 14px; line-height: 1.45; color: var(--lt-mut); }
.opt:hover { border-color: rgba(243, 240, 234, .7); }
.opt.on { background: var(--lt); color: var(--ink); border-color: var(--lt); }
.opt.on span { color: var(--muted); }
.opt.on::after { background: var(--terra); border-color: var(--terra); }

.summary { position: relative; row-gap: 36px; margin-top: 24px; padding: 48px; background: var(--lt); color: var(--ink); }
.summary::before, .summary::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--terra); }
.summary::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.summary::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.sum-h { margin-bottom: 16px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sum-params { grid-column: 1 / 5; }
.sum-params div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.sum-params dt { font-size: 14px; color: var(--muted); }
.sum-params dd { font: 600 19px/1.3 var(--f-head); text-align: right; }
.sum-sec { grid-column: 5 / 9; }
.sum-sec ol { counter-reset: s; }
.sum-sec li { counter-increment: s; display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.sum-sec li::before { content: counter(s, decimal-leading-zero); min-width: 20px; font: 500 12px/1.9 var(--f-head); color: var(--terra-ink); }
.sum-cta { grid-column: 9 / 13; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.sum-cta p { font-size: 15px; color: var(--muted); }

/* ---------- 04 process ---------- */
.proc-head { margin-bottom: 24px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { position: relative; padding: 28px 32px 0 0; border-top: 1px solid var(--ink); }
.step:nth-child(1) { margin-top: 216px; }
.step:nth-child(2) { margin-top: 144px; }
.step:nth-child(3) { margin-top: 72px; }
.step:not(:first-child)::before { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 72px; background: var(--ink); }
.step::after { content: ""; position: absolute; left: -4px; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.step:last-child::after { left: -5px; top: -6px; width: 11px; height: 11px; background: var(--terra); }
.step-n { font: 200 112px/.84 var(--f-head); letter-spacing: -.06em; color: #ADA597; }
.step h3 { margin-top: 24px; font-size: 22px; line-height: 1.25; }
.step-d { margin-top: 12px; font-size: 16px; color: var(--muted); }
.step-out { margin-top: 22px; padding-top: 14px; border-top: 1px dashed rgba(39, 44, 41, .3); font-size: 15px; font-weight: 500; }
.step-out span { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); }
.strip { align-items: start; margin-top: 120px; }
.strip .f1 { grid-column: 2 / 7; }
.strip .f2 { grid-column: 8 / 13; margin-top: 96px; }
.strip .f1 .ph { aspect-ratio: 4 / 3; }
.strip .f2 .ph { aspect-ratio: 16 / 10; }
.strip figcaption { display: flex; gap: 14px; margin-top: 14px; font-size: 15px; color: var(--muted); }
.strip figcaption b { font: 600 12px/1.8 var(--f-head); letter-spacing: .08em; color: var(--ink); }

/* ---------- 05 transparency ---------- */
.clear { background: var(--stone); }
.clear-txt { grid-column: 1 / 6; padding-right: 24px; }
.clear-txt .h2 { margin-top: 28px; }
.pr-list { margin-top: 48px; }
.pr { display: grid; grid-template-columns: 44px minmax(0, 1fr); padding: 24px 0; border-top: 1px solid rgba(39, 44, 41, .22); }
.pr-n { font: 600 13px/1.9 var(--f-head); letter-spacing: .06em; color: var(--terra-ink); }
.pr h3 { font-size: 20px; line-height: 1.3; }
.pr p { grid-column: 2; margin-top: 8px; font-size: 16px; color: #4A4F4B; }
.flow { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; }
.flow span { padding: 5px 10px; border: 1px solid rgba(39, 44, 41, .32); border-radius: 999px; white-space: nowrap; }
.flow span.k { border-color: var(--terra); color: var(--terra-ink); }
.flow i { font-style: normal; color: var(--muted); }
.sheet { position: relative; grid-column: 6 / 13; align-self: start; margin-top: 8px; padding: 36px 40px 32px; background: #FAF8F4; }
.sheet::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; opacity: .25;
  background: repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 12px);
}
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.sheet-head h3 { font-size: 20px; }
.sheet-head p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.badge { flex: none; padding: 6px 10px; border: 1px solid var(--terra); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); }
.tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 14px; }
.tbl th { padding: 10px 8px; border-bottom: 1px solid var(--ink); text-align: left; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tbl td { padding: 14px 8px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.4; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .code { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }
.tbl tr.add td { background: rgba(168, 95, 66, .07); }
.st { display: inline-block; padding: 3px 9px; border: 1px solid rgba(39, 44, 41, .32); border-radius: 999px; font-size: 12px; white-space: nowrap; }
.st-wait { background: var(--stone); border-color: var(--stone); }
.st-add { color: var(--terra-ink); border-color: var(--terra); }
.add-note { display: block; margin-top: 2px; font-size: 12px; color: var(--terra-ink); }
.sheet-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 20px; font-size: 13px; color: var(--muted); }

/* ---------- 06 faq ---------- */
.faq-head { position: sticky; top: 120px; grid-column: 1 / 5; align-self: start; }
.faq-head .h2 { margin-top: 28px; }
.faq-head .lead { margin-top: 20px; font-size: 16px; }
.faq-head .tlink { margin-top: 20px; font-size: 15px; }
.faq-list { grid-column: 6 / 13; border-top: 1px solid var(--ink); }
.fq { border-bottom: 1px solid var(--line); }
.fq h3 { font-size: inherit; letter-spacing: 0; }
.fq-btn {
  width: 100%; min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; border: 0; background: none; text-align: left; cursor: pointer;
  font: 600 21px/1.3 var(--f-head); letter-spacing: -.01em; color: var(--ink);
}
.fq-btn:hover { color: var(--terra-ink); }
.fq-ic { position: relative; flex: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; transition: background .25s, border-color .25s; }
.fq-ic::before, .fq-ic::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor;
  transform: translate(-50%, -50%); transition: transform .3s ease;
}
.fq-ic::after { transform: translate(-50%, -50%) rotate(90deg); }
.fq.open .fq-ic { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.fq.open .fq-ic::after { transform: translate(-50%, -50%) rotate(0deg); }
.fq-pan { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease, visibility 0s linear .35s; visibility: hidden; }
.fq.open .fq-pan { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .35s ease; }
.fq-pan > div { overflow: hidden; }
.fq-pan p { max-width: 680px; padding: 0 72px 28px 0; color: var(--muted); }

/* ---------- 07 contact ---------- */
.fin { padding: 140px 0 0; background: var(--ink); color: var(--lt); scroll-margin-top: 0; }
.fin .idx { color: var(--lt-mut); }
.fin .idx b { color: var(--terra-lt); }
.fin-grid { align-items: end; }
.fin-txt { grid-column: 1 / 7; padding-bottom: 120px; }
.fin h2 { margin-top: 32px; font-size: clamp(40px, 5vw, 72px); line-height: 1.02; letter-spacing: -.035em; }
.fin-sub { margin-top: 24px; max-width: 440px; font-size: 18px; color: var(--lt-mut); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; max-width: 600px; margin-top: 56px; }
.fld label { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--lt-mut); }
.fld input {
  width: 100%; height: 56px; padding: 0;
  border: 0; border-bottom: 1px solid rgba(243, 240, 234, .42); border-radius: 0;
  background: transparent; color: var(--lt); font: 400 20px var(--f-body);
  transition: border-color .2s;
}
.fld input::placeholder { color: rgba(243, 240, 234, .4); }
.fld input:focus { outline: none; border-bottom-color: var(--terra-lt); }
.fld input:focus-visible { outline: none; box-shadow: 0 2px 0 var(--terra-lt); }
.fin-calc { grid-column: 1 / -1; padding: 12px 16px; border: 1px dashed rgba(243, 240, 234, .3); font-size: 14px; color: var(--lt-mut); }
.fin-calc b { font-weight: 500; color: var(--lt); }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form-note { grid-column: 1 / -1; font-size: 13px; color: var(--lt-mut); }
.demo-msg { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; max-width: 600px; margin-top: 28px; padding: 20px 24px; border: 1px solid var(--terra-lt); }
.demo-msg b { display: block; margin-bottom: 6px; font: 600 17px/1.3 var(--f-head); }
.demo-msg p { font-size: 15px; color: var(--lt-mut); }
.demo-msg button {
  flex: none; min-height: 44px; padding: 0 16px;
  border: 1px solid rgba(243, 240, 234, .4); border-radius: 2px; background: transparent; color: var(--lt);
  font: 500 14px var(--f-body); cursor: pointer;
}
.demo-msg button:hover { border-color: var(--lt); }
.fin-media { grid-column: 8 / 13; aspect-ratio: 4 / 5; background: #3A403C; }

/* ---------- footer ---------- */
.ftr { padding: 64px 0 40px; background: var(--ink); color: var(--lt); border-top: 1px solid var(--lt-line); }
.ftr .logo { grid-column: 1 / 4; align-self: start; justify-self: start; color: var(--lt); }
.ftr-desc { grid-column: 4 / 8; max-width: 380px; font-size: 15px; color: var(--lt-mut); }
.ftr-nav { grid-column: 9 / 13; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.ftr-nav a { display: inline-block; padding: 8px 0; font-size: 15px; text-decoration: none; }
.ftr-nav a:hover { color: var(--terra-lt); }
.ftr-bot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--lt-line); font-size: 14px; color: var(--lt-mut); }
.ftr-demo { display: flex; align-items: center; gap: 10px; color: var(--lt); }
.ftr-demo i {
  flex: none; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--terra-lt); border-radius: 50%;
  font: 600 11px/1 var(--f-head); font-style: normal; color: var(--terra-lt);
}

/* ---------- reveal on scroll ---------- */
.js-reveal .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js-reveal .rv.in { opacity: 1; transform: none; }

/* ==========================================================================
   ≤ 1100px
   ========================================================================== */
@media (max-width: 1100px) {
  :root { --pad: 32px; }
  .nav { gap: 24px; }
  .hero-txt { padding-right: 40px; }
  .svc-main { grid-column: 2 / 8; }
  .svc-inc { grid-column: 8 / 13; }
  .svc-img { grid-column: 2 / 8; }
  .summary { padding: 40px 32px; }
  .sum-params { grid-column: 1 / 7; }
  .sum-sec { grid-column: 7 / 13; }
  .sum-cta { grid-column: 1 / 13; flex-direction: row; align-items: center; }
  .step { padding-right: 20px; }
  .step-n { font-size: 88px; }
}

/* ==========================================================================
   ≤ 860px — мобильная раскладка
   ========================================================================== */
@media (max-width: 860px) {
  :root { --pad: 20px; }
  body { font-size: 16px; }
  .sec { padding: 88px 0; }
  .g12 { grid-template-columns: minmax(0, 1fr); }
  .g12 > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .h2 { font-size: clamp(30px, 8.2vw, 36px); }
  .lead { font-size: 16px; }

  /* header + menu */
  .hdr-in { height: 64px; gap: 16px; }
  .nav, .hdr-cta { display: none; }
  .burger { display: flex; }
  .mnav {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    padding: 8px 0 24px; background: var(--bg); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s;
  }
  .hdr.open .mnav { opacity: 1; visibility: visible; transform: none; transition: opacity .28s ease, transform .28s ease; }
  .mnav li a {
    display: flex; align-items: baseline; gap: 16px; min-height: 60px; padding: 14px 0;
    border-bottom: 1px solid var(--line); text-decoration: none;
    font: 600 26px/1.2 var(--f-head); letter-spacing: -.02em;
  }
  .mnav li a span { font: 500 12px/1 var(--f-body); letter-spacing: .1em; color: var(--terra-ink); }
  .mnav .btn { width: 100%; margin-top: 20px; }

  /* hero */
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-txt { padding: 36px var(--pad) 40px; }
  .hero h1 { margin-top: 24px; font-size: clamp(34px, 10.4vw, 42px); }
  .hero h1 span { white-space: normal; }
  .hero-lead { margin-top: 20px; font-size: 17px; }
  .hero-act { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 32px; }
  .hero-act .btn { width: 100%; }
  .hero-act .tlink { align-self: center; border-bottom: 0; }
  .hero-plan, .hero-down { display: none; }
  .hero-media { min-height: 0; aspect-ratio: 4 / 5; }
  .dim-h { top: 28px; left: 12%; right: 16%; }
  .dim-v { left: 24px; }
  .cap { flex-wrap: wrap; gap: 10px; padding: 12px 16px 0 var(--pad); font-size: 12px; }

  .sec-head { margin-bottom: 48px; }
  .sec-head .idx { padding-top: 0; margin-bottom: 20px; }

  /* services */
  .svc-row { row-gap: 20px; padding: 32px 0; }
  .svc-n { order: 0; padding-top: 0; }
  .svc-main { order: 1; }
  .svc-img { order: 2; aspect-ratio: 16 / 10 !important; }
  .svc-inc { order: 3; }
  .svc-foot { flex-direction: column; align-items: flex-start; }

  /* examples */
  .ex-note { flex-direction: column; gap: 6px; margin-top: 24px; }
  .ex-scale { margin-bottom: 64px; }
  .ex-scale div { flex-direction: column; gap: 12px; }
  .ex-scale a { flex: none !important; width: 100%; }
  .ex-scale a b { font-size: 20px; }
  .proj { row-gap: 24px; margin-bottom: 88px; }
  .pm1 { order: 1; }
  .pinfo { order: 2; }
  .gal { order: 4; }
  .proj .pm2, .proj .pm3 { display: none; }
  .proj .pm1 { aspect-ratio: 4 / 5; }
  .proj-b .pinfo { padding-top: 0; }
  .proj-c .pinfo { margin-top: -64px; margin-right: 24px; padding: 24px 20px 0 0; }
  .parea { font-size: 84px; }
  .pm-open span { opacity: 1; transform: none; padding: 12px 14px; font-size: 13px; }
  .gbtn { width: 100%; }
  .gal-stage { aspect-ratio: 4 / 5; }
  .gal-cap { display: none; }
  .thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
  .thumb { flex: 0 0 38%; scroll-snap-align: start; }

  /* calculator */
  .calc-ui { margin-top: 48px; }
  .opts { grid-template-columns: minmax(0, 1fr); }
  .opt { min-height: 0; padding: 16px 48px 16px 16px; }
  .opt::after { top: 50%; margin-top: -6px; }
  .ruler { margin-top: 20px; }
  .presets p { flex-basis: 100%; }
  .summary { row-gap: 28px; margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); padding: 32px 20px; }
  .sum-cta { flex-direction: column; align-items: stretch; }
  .sum-cta .btn { width: 100%; }

  /* process */
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step:nth-child(n) { margin-top: 0; padding: 0 0 48px 28px; border-top: 0; border-left: 1px solid var(--ink); }
  .step:last-child { padding-bottom: 0; border-left-color: transparent; }
  .step:not(:first-child)::before { display: none; }
  .step::after { left: -5px; top: 4px; }
  .step:last-child::after { left: -6px; }
  .step-n { font-size: 64px; }
  .step h3 { margin-top: 16px; }
  .strip { row-gap: 32px; margin-top: 64px; }
  .strip .f2 { margin-top: 0; }

  /* transparency: таблица → строки */
  .clear-txt { padding-right: 0; }
  .sheet { margin: 48px calc(-1 * var(--pad)) 0; padding: 28px 20px 24px; }
  .sheet-head { flex-direction: column; }
  .tbl table { min-width: 0; }
  .tbl thead { display: none; }
  .tbl tbody { display: block; }
  .tbl tr { display: grid; grid-template-columns: 44px auto minmax(0, 1fr); gap: 6px 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .tbl tr.add { background: rgba(168, 95, 66, .07); }
  .tbl td, .tbl tr.add td { padding: 0; border: 0; background: transparent; }
  .tbl td:nth-child(2) { grid-column: 2 / -1; }
  .tbl td:nth-child(3) { grid-column: 2; color: var(--muted); }
  .tbl td:nth-child(4) { grid-column: 3; text-align: left; }
  .tbl td:nth-child(5) { grid-column: 2 / -1; }

  /* faq */
  .faq-head { position: static; margin-bottom: 40px; }
  .fq-btn { padding: 22px 0; font-size: 18px; }
  .fq-pan p { padding-right: 0; }

  /* contact */
  .fin { padding-top: 88px; }
  .fin-txt { padding-bottom: 56px; }
  .form { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 40px; }
  .form .btn { justify-self: stretch; width: 100%; }
  .demo-msg { flex-direction: column; }
  .fin-media { margin: 0 calc(-1 * var(--pad)); aspect-ratio: 4 / 3; }

  .ftr .g12 { row-gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js-reveal .rv { opacity: 1; transform: none; }
}
