/* =====================================================================
   Фонд Век — стили сайта.
   Основная версия — мобильная (390 px); расширения — от 700 и 1040 px.
   Палитра взята из логотипа: серый, чёрный, зелёный шевроны.
   ===================================================================== */
:root {
  --ink: #1b1b1a;
  --ink-soft: #3b3b38;
  --mute: #666662;
  --grey: #9c9c9c;
  --line: #d4d4ce;
  --band: #f1f1ed;
  --paper: #fff;
  --green: #1aa045;
  --green-deep: #0f7534;
  --err: #c2301c;
  --dark-line: #3d3d3a;
  --dark-mute: #b4b4ae;
  --f-head: 'Fira Sans Extra Condensed', 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --chev: polygon(0 0, 46% 0, 100% 50%, 46% 100%, 0 100%, 54% 50%);
  --pad: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  padding-bottom: calc(60px + env(safe-area-inset-bottom));
  font: 400 17px/1.5 var(--f-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
legend { padding: 0; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { padding: 0; border: 0; background: none; cursor: pointer; text-align: inherit; }
a { color: inherit; text-underline-offset: 3px; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Типографика ---------- */
.label {
  font: 500 14px/1.3 var(--f-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--mute);
}
.h2 {
  font: 800 clamp(40px, 11vw, 76px)/.92 var(--f-head);
  letter-spacing: .005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.h3 { font: 700 28px/1 var(--f-head); letter-spacing: .015em; text-transform: uppercase; }
.big { font-size: 20px; line-height: 1.35; font-weight: 500; }

/* Шеврон — знак из логотипа. По умолчанию красится в цвет текста. */
.chev { flex: none; width: auto; height: .72em; fill: currentColor; }

/* Код региона, как на автомобильном номере */
.rg {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 24px; padding: 1px 5px 0;
  border: 1.5px solid var(--ink); border-radius: 3px;
  background: #fff; color: var(--ink);
  font: 700 18px/1 var(--f-head); letter-spacing: .03em;
}

/* Ссылка со стрелкой */
.lnk {
  display: inline-flex; align-items: center; gap: 8px;
  padding-bottom: 2px; border-bottom: 2px solid var(--ink);
  font-weight: 600; text-decoration: none; cursor: pointer;
}
.lnk .chev { height: 11px; fill: var(--green); transition: transform .15s; }
.lnk:hover .chev { transform: translateX(3px); }

/* ---------- Кнопки ---------- */
.btn {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; min-height: 58px; padding: 10px 18px;
  border: 2px solid var(--ink); background: #fff; color: var(--ink);
  font: 600 17px/1.2 var(--f-body); text-align: left; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.btn .chev { height: 16px; transition: transform .15s; }
.btn:hover .chev { transform: translateX(4px); }
.btn--go { background: var(--green); border-color: var(--green); color: #0b0b0a; }
.btn--go .chev__1 { opacity: .32; }
.btn--go .chev__2 { opacity: .62; }
.btn--go:hover { background: #1fb54f; border-color: #1fb54f; }
.btn--go:disabled { background: var(--grey); border-color: var(--grey); cursor: progress; }
.btn--line { background: transparent; }
.btn--line .chev { fill: var(--green); }
.btn--line:hover { background: var(--ink); color: #fff; }

/* ---------- Шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 2px solid var(--ink); }
.hdr__in { display: flex; align-items: center; gap: 6px; height: 56px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.logo__mark { width: 38px; height: 20px; flex: none; }
.logo__word { font: 800 19px/1 var(--f-body); letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; }
.citysel { position: relative; margin-left: auto; }
.citysel__btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 2px;
  font-weight: 600; font-size: 15px; white-space: nowrap; cursor: pointer; list-style: none;
}
.citysel__btn::-webkit-details-marker { display: none; }
.citysel__name { display: none; }
.citysel__btn::after {
  content: ""; display: inline-block; flex: none; width: 7px; height: 7px; margin: 0 0 3px 7px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .15s;
}
.citysel[open] .citysel__btn::after { margin-bottom: -3px; transform: rotate(-135deg); }
.citysel__btn:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
@media (max-width: 1039px) { .citysel__menu { position: fixed !important; top: 64px !important; left: 12px !important; right: 12px; width: auto !important; max-width: 420px; transform: none !important; } }
@media (min-width: 700px) and (max-width: 1039px) { .citysel__menu { left: auto !important; right: 12px; width: 380px !important; } }
.citysel__menu {
  position: absolute; top: calc(100% + 8px); left: 50%; z-index: 70; width: min(340px, calc(100vw - 24px)); transform: translateX(-50%);
  padding: 8px; border: 2px solid var(--ink); background: #fff; box-shadow: 0 18px 40px -20px rgba(0,0,0,.45);
}
.citysel__title { padding: 6px 10px 8px; font-size: 14px; color: var(--mute); }
.citysel__i { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 10px 40px 10px 10px; text-decoration: none; color: var(--ink); }
.citysel__i .rg { flex: none; margin-top: 1px; }
.citysel__txt { display: grid; gap: 2px; min-width: 0; }
.citysel__txt b { font-weight: 600; font-size: 16px; line-height: 1.25; }
.citysel__txt small { font-size: 14px; line-height: 1.35; color: var(--mute); }
.citysel__i:hover, .citysel__i:focus-visible { background: var(--band); outline: 0; }
.citysel__i[aria-current] { background: var(--band); }
.citysel__i[aria-current]::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 6px; height: 11px; margin-top: -8px;
  border-right: 2px solid var(--green-deep); border-bottom: 2px solid var(--green-deep); transform: rotate(45deg);
}
.hdr__nav, .hdr__contact { display: none; }
.hdr__call, .hdr__burger { display: grid; place-items: center; width: 44px; height: 44px; flex: none; }
.hdr__call { background: var(--green); color: #0b0b0a; }
.citysel + .hdr__nav + .hdr__contact + .hdr__call { margin-left: 4px; }
.hdr__in > .logo + .hdr__nav + .hdr__contact + .hdr__call { margin-left: auto; }

.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: square; stroke-linejoin: miter; }
.ico--fill { fill: currentColor; stroke: none; }

.menu { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 56px); max-height: calc(100dvh - 56px); overflow-y: auto; overscroll-behavior: contain; background: #fff; border-bottom: 2px solid var(--ink); }
.menu__label { padding: 16px 0 4px; font-size: 14px; color: var(--mute); }
.menu__svc { padding-bottom: 10px; }
.menu .menu__svc a { min-height: 44px; border-top: 0; font-size: 16px; }
.menu .menu__svc a[aria-current] { font-weight: 700; }
.menu__svc + a { border-top: 1px solid var(--line); }
.menu a { display: flex; align-items: center; min-height: 54px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 500; text-decoration: none; }
.menu a:first-child { border-top: 0; }
.menu .menu__phone { font: 800 34px/1 var(--f-head); letter-spacing: .02em; }
.menu__city { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.menu__city a { min-height: 44px; border: 0; gap: 7px; font-size: 17px; }
.menu__city a[aria-current] { font-weight: 700; }

/* ---------- Первый экран ---------- */
.hero { position: relative; overflow: hidden; background: var(--band); }
.hero__chev { position: absolute; z-index: 0; top: 34px; right: -150px; width: 520px; pointer-events: none; }
.hero__chev .chev { display: block; width: 100%; height: auto; }
.hero__chev .chev__1 { fill: #e6e6e1; }
.hero__chev .chev__2 { fill: #dcdcd6; }
.hero__chev .chev__3 { fill: #cfe6d5; }
.hero__grid { position: relative; z-index: 1; display: grid; gap: 18px; padding-top: 18px; padding-bottom: 36px; }
.hero__over { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 10px; color: var(--ink); }
.hero__addr { display: none; color: var(--mute); }
.hero__h1 {
  font: 800 clamp(44px, 13.4vw, 68px)/.9 var(--f-head);
  letter-spacing: .005em; text-transform: uppercase; text-wrap: balance;
}
.hero__h1 sup { position: relative; top: .1em; font-size: .36em; line-height: 1; vertical-align: top; color: var(--mute); }
.hero__lead { margin-top: 12px; max-width: 33em; font-size: 17px; line-height: 1.4; color: var(--ink-soft); }

/* Вкладки услуг: все пять видны сразу */
.tabs {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px;
  border: 2px solid var(--ink); border-bottom: 0; background: var(--ink);
}
.tabs__t {
  position: relative; grid-column: span 6;
  display: flex; align-items: center; min-height: 54px; padding: 7px 9px 5px;
  background: #fff; color: var(--ink);
  font: 700 19px/1 var(--f-head); letter-spacing: .03em; text-transform: uppercase;
  transition: background .12s, color .12s;
}
.tabs__t:nth-child(3) { grid-column: span 5; }
.tabs__t:nth-child(4) { grid-column: span 3; }
.tabs__t:nth-child(5) { grid-column: span 4; }
.tabs__t:hover { background: var(--band); }
.tabs__t[aria-selected="true"] { background: var(--ink); color: #fff; }
.tabs__t[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--green); }
.tabs__t:focus-visible { outline-offset: -4px; }
@media (max-width: 379px) { .tabs__t { padding: 7px 7px 5px; font-size: 17px; } }

.sheet { background: #fff; border: 2px solid var(--ink); }
.panel { padding: 18px var(--pad) 20px; }

/* Калькулятор */
.calc { display: grid; gap: 22px; }
.calc__in { display: grid; gap: 20px; align-content: start; }
.calc__row { display: grid; gap: 9px; }
.sum { display: flex; align-items: baseline; gap: 8px; }
.sum__inp {
  flex: 1; min-width: 0; width: 100%; padding: 0; border: 0; outline: 0; background: none;
  font: 800 56px/1.05 var(--f-head); letter-spacing: .01em; font-variant-numeric: tabular-nums;
}
.sum__cur { font: 800 40px/1 var(--f-head); color: var(--grey); }

.range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 36px; margin: -20px 0 0; background: transparent; cursor: pointer; --fill: 18%; }
.range::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(90deg, var(--green) var(--fill), #d2d2cc var(--fill)); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 34px; height: 34px; margin-top: -14px; border: 0; border-radius: 0;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M6 4 2 8l4 4m4-8 4 4-4 4'/%3E%3C/svg%3E") center/16px no-repeat;
}
.range::-moz-range-track { height: 6px; background: #d2d2cc; }
.range::-moz-range-progress { height: 6px; background: var(--green); }
.range::-moz-range-thumb {
  width: 34px; height: 34px; border: 0; border-radius: 0;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M6 4 2 8l4 4m4-8 4 4-4 4'/%3E%3C/svg%3E") center/16px no-repeat;
}
.range:focus-visible { outline: 0; }
.range:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--green); outline-offset: 2px; }
.range__ends { display: flex; justify-content: space-between; margin-top: -6px; font: 500 14px/1.2 var(--f-mono); color: var(--mute); }

.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.chip { min-height: 48px; padding: 4px 2px; border: 1.5px solid var(--ink); background: #fff; font-weight: 600; font-size: 15px; line-height: 1.1; text-align: center; }
.chip:hover { background: var(--band); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Кнопки-переключатели */
.seg { display: grid; gap: 6px; }
.seg--6, .seg--3 { grid-template-columns: repeat(3, 1fr); }
.seg--2, .seg--icons { grid-template-columns: repeat(2, 1fr); }
.seg__i { position: relative; display: block; }
.seg__i input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg__i span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 6px 8px;
  border: 1.5px solid var(--ink); background: #fff;
  font-weight: 600; font-size: 15px; line-height: 1.15; text-align: center;
  transition: background .12s, color .12s;
}
.seg__i:hover span { background: var(--band); }
.seg__i input:checked + span { background: var(--ink); color: #fff; }
.seg__i input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.seg--6 .seg__i span { flex-direction: column; gap: 3px; min-height: 60px; padding: 6px 2px; }
.seg--6 b { font-weight: 600; font-size: 16px; line-height: 1; }
.seg--6 small { font-weight: 400; font-size: 14px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; opacity: .72; }
.seg--icons .seg__i span { justify-content: flex-start; min-height: 52px; padding-left: 10px; }
.seg--icons .ico { width: 26px; height: 26px; stroke-width: 1.5; }
.seg--icons .seg__i input:checked + span .ico { color: var(--green); }

/* Результат расчёта — тёмная панель */
.calc__out {
  container-type: inline-size;
  margin: 0 calc(var(--pad) * -1) -20px; padding: 20px var(--pad) 22px;
  background: var(--ink); color: #fff;
}
.calc__out .label { color: var(--dark-mute); }
.calc__pay {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; margin: 4px 0 10px;
  font: 800 76px/.95 var(--f-head); font-size: clamp(52px, 22cqi, 80px);
  letter-spacing: .01em; font-variant-numeric: tabular-nums;
}
.calc__cur { font-size: .6em; color: var(--green); }
.ledger > div { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; border-top: 1px solid var(--dark-line); }
.ledger dt { display: flex; flex: 1; align-items: baseline; gap: 8px; min-width: 0; font-size: 15px; color: #d0d0cb; }
.ledger dt::after { content: ""; flex: 1; min-width: 12px; border-bottom: 1px dotted #6f6f6a; transform: translateY(-3px); }
.ledger dd { font: 500 15px/1.3 var(--f-mono); white-space: nowrap; }

.sched { border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); margin-bottom: 16px; }
.sched summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 48px; cursor: pointer; list-style: none; font-weight: 500; font-size: 15px;
  text-decoration: underline; text-decoration-color: #77776f; text-underline-offset: 4px;
}
.sched summary::-webkit-details-marker { display: none; }
.sched summary::after { content: ""; width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.sched[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.sched__note { margin-bottom: 8px; font-size: 14px; line-height: 1.4; color: var(--dark-mute); }
.sched__note b { font-weight: 600; color: #fff; white-space: nowrap; }
.sched__scroll { max-height: 296px; overflow: auto; margin-bottom: 12px; padding-right: 8px; scrollbar-width: thin; scrollbar-color: #6f6f6a transparent; }
.sched__t { width: 100%; font: 400 14px/1.3 var(--f-mono); font-variant-numeric: tabular-nums; }
.sched__t th { position: sticky; top: 0; padding: 6px 4px; background: var(--ink); color: var(--dark-mute); font-weight: 500; text-align: right; letter-spacing: 0; }
.sched__t td { padding: 6px 4px; border-top: 1px solid var(--dark-line); text-align: right; white-space: nowrap; }
.sched__t th:first-child, .sched__t td:first-child { padding-left: 0; text-align: left; color: var(--dark-mute); }
.sched__t th:last-child, .sched__t td:last-child { padding-right: 0; }

.calc__note { margin-top: 10px; font-size: 14px; line-height: 1.4; color: #d0d0cb; }
.calc__fine { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--dark-line); font-size: 14px; line-height: 1.4; color: var(--dark-mute); }
.step2 { margin-top: 4px; }
.step2__over { margin-bottom: 12px; color: var(--green) !important; }
.calc__out .field label, .calc__out .check { color: #fff; }
.calc__out .field label i { color: var(--dark-mute); }
.calc__out .field input:not([type="checkbox"]) { border-color: #fff; }
.calc__out .check input { border-color: #fff; }
.calc__out .field__error { color: #ff9c8a; }
.calc__out .failbox { border-color: #ff9c8a; color: #fff; }

/* ---------- Формы ---------- */
.form { display: grid; gap: 16px; }
.form__intro { font-size: 17px; line-height: 1.4; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.form__set { display: grid; gap: 9px; }
.form__alt { font-size: 15px; color: var(--ink-soft); }
.form__alt a { font-weight: 600; color: var(--ink); }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: 15px; line-height: 1.25; }
.field label i { font-style: normal; font-weight: 400; color: var(--mute); }
.field input:not([type="checkbox"]):not([type="file"]), .field textarea {
  width: 100%; min-height: 52px; padding: 12px 13px;
  border: 1.5px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink);
  font-size: 17px; line-height: 1.3; -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a5a5a0; opacity: 1; }
.field input:not([type="checkbox"]):focus, .field textarea:focus { outline: 0; border-color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.field--mono input { font-family: var(--f-mono) !important; letter-spacing: .05em; text-transform: uppercase; }
.field--mono input::placeholder { font-family: var(--f-body); letter-spacing: 0; text-transform: none; }
.field__hint { font-size: 14px; line-height: 1.35; color: var(--mute); }
.field__error { font-size: 14px; line-height: 1.35; font-weight: 500; color: var(--err); }
.has-error input:not([type="checkbox"]), .has-error textarea { border-color: var(--err) !important; box-shadow: inset 0 0 0 1.5px var(--err) !important; }
.has-error .check input { border-color: var(--err); box-shadow: 0 0 0 1.5px var(--err); }

.check { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 14px !important; line-height: 1.4 !important; font-weight: 400 !important; cursor: pointer; }
.check input { -webkit-appearance: none; appearance: none; display: grid; place-content: center; width: 26px; height: 26px; margin: 0; border: 1.5px solid var(--ink); border-radius: 0; background: #fff; cursor: pointer; }
.check input::after { content: ""; width: 13px; height: 7px; border-left: 2.5px solid #0b0b0a; border-bottom: 2.5px solid #0b0b0a; transform: translateY(-2px) rotate(-45deg); opacity: 0; }
.check input:checked { background: var(--green); border-color: var(--green); }
.check input:checked::after { opacity: 1; }

/* VIN или госномер */
.oneof__grid { display: grid; gap: 8px; }
.oneof__or { font: 500 14px/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; text-align: center; color: var(--mute); }
.plate { display: flex; align-items: stretch; height: 52px; overflow: hidden; border: 2px solid var(--ink); border-radius: 7px; background: #fff; }
.field .plate input {
  flex: 1; min-width: 0; min-height: 0; height: 100%; padding: 2px 12px 0; border: 0 !important; box-shadow: none !important;
  font: 700 31px/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase;
}
.field .plate input::placeholder { color: #c5c5c0; }
.plate:focus-within { border-color: var(--green); box-shadow: 0 0 0 1.5px var(--green); }
.has-error .plate { border-color: var(--err); }
.plate i {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 0 9px; border-left: 2px solid var(--ink);
  font: 700 14px/1 var(--f-head); font-style: normal; letter-spacing: .08em;
}
.plate i::after { content: ""; width: 20px; height: 12px; border: 1px solid #b9b9b4; background: linear-gradient(#fff 33.3%, #1c57a5 0 66.6%, #d52b1e 0); }

.filebtn { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border: 1.5px dashed var(--ink); font-weight: 600 !important; font-size: 16px !important; cursor: pointer; }
.filebtn:hover { background: var(--band); }
.field--file input:focus-visible + .field__hint { outline: 3px solid var(--green); outline-offset: 2px; }

.failbox { display: grid; gap: 8px; padding: 14px; border: 2px solid var(--err); font-size: 15px; }
.failbox__links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 600; }

/* Анимация подбора — как табло */
.match { margin: -18px calc(var(--pad) * -1) 20px; padding: 22px var(--pad) 24px; background: var(--ink); color: #fff; }
.panel:has(> .okbox[hidden]) > .match { margin-bottom: -20px; }
.match__over { color: var(--dark-mute); }
.match__title { margin-top: 6px; font: 800 42px/.95 var(--f-head); letter-spacing: .01em; text-transform: uppercase; }
.match__count { margin-top: 10px; font: 500 14px/1.3 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--dark-mute); }
.match__count b { font-weight: 500; color: #fff; }
.match.is-done .match__count b { color: var(--green); }
.match__list { margin-top: 16px; border-top: 1px solid var(--dark-line); }
.match__row {
  display: grid; grid-template-columns: 30px 1fr auto; grid-template-areas: "n name bar" "n status bar";
  column-gap: 8px; row-gap: 3px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--dark-line);
}
.match__n { grid-area: n; align-self: start; padding-top: 4px; font: 500 14px/1 var(--f-mono); color: #8d8d87; }
.match__name { grid-area: name; font: 700 26px/1 var(--f-head); letter-spacing: .03em; text-transform: uppercase; }
.match__status { grid-area: status; font: 500 14px/1.2 var(--f-mono); letter-spacing: .03em; text-transform: uppercase; color: #8d8d87; transition: color .3s; }
.match__bar { grid-area: bar; display: flex; }
.match__bar i { width: 24px; height: 28px; margin-left: -7px; background: #3a3a37; clip-path: var(--chev); transition: background .35s; }
.match__bar i:first-child { margin-left: 0; }
.match__row[data-stage="1"] .match__status, .match__row[data-stage="2"] .match__status { color: #fff; }
.match__row[data-stage="3"] .match__status { color: var(--green); }
.match__row[data-stage="1"] .match__bar i:nth-child(1),
.match__row[data-stage="2"] .match__bar i:nth-child(1),
.match__row[data-stage="3"] .match__bar i:nth-child(1) { background: var(--grey); }
.match__row[data-stage="2"] .match__bar i:nth-child(2),
.match__row[data-stage="3"] .match__bar i:nth-child(2) { background: #fff; }
.match__row[data-stage="3"] .match__bar i:nth-child(3) { background: var(--green); }
.match__row[data-stage="1"] .match__bar i:nth-child(2),
.match__row[data-stage="2"] .match__bar i:nth-child(3) { animation: blink 1s steps(2, jump-none) infinite; }
@keyframes blink { 50% { background: #6a6a65; } }
.match__note { margin-top: 14px; font-size: 14px; line-height: 1.4; color: var(--dark-mute); }

.okbox { display: grid; gap: 12px; justify-items: start; }
.okbox__text { font-size: 19px; line-height: 1.35; font-weight: 500; }
.okbox__alt { font-size: 15px; color: var(--ink-soft); }
.okbox__alt a { font-weight: 600; color: var(--ink); white-space: nowrap; }
.stamp {
  display: inline-block; margin: 8px 0 6px 6px; padding: 7px 14px 4px;
  border: 3px solid var(--green); outline: 1.5px solid var(--green); outline-offset: 3px;
  color: var(--green-deep); font: 800 32px/1 var(--f-head); letter-spacing: .07em; text-transform: uppercase;
  transform: rotate(-3deg);
}

/* Под заголовком: три факта, слово руководителя */
.facts { border-top: 2px solid var(--ink); }
.facts li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 17px; line-height: 1.25; }
.facts .chev { height: 14px; fill: var(--green); }
.say { display: grid; grid-template-columns: 76px 1fr; gap: 6px 14px; align-items: start; margin-top: 20px; }
.say img { grid-row: 1 / 3; width: 76px; height: 92px; object-fit: cover; object-position: 50% 12%; }
.say blockquote { font-size: 16px; line-height: 1.4; font-weight: 500; }
.say blockquote::before { content: "«"; }
.say blockquote::after { content: "»"; }
.say figcaption { font-size: 14px; line-height: 1.35; color: var(--mute); }
.say figcaption b { font-weight: 600; color: var(--ink); }
.hero__reg { margin-top: 16px; font-size: 14px; color: var(--mute); }
.hero__reg a { font-weight: 600; color: var(--ink); }

/* ---------- Разделы ---------- */
.sec { padding: 52px 0 60px; border-top: 2px solid var(--ink); }
.sec--band { background: var(--band); }
.sec__head { display: grid; gap: 12px; max-width: 980px; margin-bottom: 28px; }
.sec__n { display: inline-block; margin-right: 10px; padding: 2px 6px 1px; background: var(--ink); color: #fff; letter-spacing: .06em; }
.sec__lead { max-width: 40em; font-size: 17px; line-height: 1.45; color: var(--ink-soft); }
.more { margin-top: 28px; }

/* Шаги: шевронов становится больше — к третьему складывается знак */
.steps { display: grid; }
.steps__i { display: grid; gap: 10px; align-content: start; padding: 22px 0 24px; border-top: 1px solid var(--ink); }
.steps__i:first-child { border-top-width: 2px; }
.steps__mark { display: block; height: 30px; }
.steps__mark .chev { height: 30px; }
.steps__mark .chev__1 { fill: var(--grey); }
.steps__mark .chev__2 { fill: var(--ink); }
.steps__mark .chev__3 { fill: var(--green); }
.steps__i p { max-width: 34em; color: var(--ink-soft); }

/* Кто выдаёт деньги */
.who { display: grid; gap: 28px; }
.who__text { display: grid; gap: 14px; max-width: 40em; }
.who__list .label { margin-bottom: 10px; }
.reg li { display: grid; gap: 3px; justify-items: start; padding: 14px 0 16px; border-top: 1px solid var(--ink); }
.reg li:first-child { border-top-width: 2px; }
.reg b { font: 700 30px/1 var(--f-head); letter-spacing: .015em; text-transform: uppercase; }
.reg span { font-size: 15px; color: var(--ink-soft); }
.reg a { margin-top: 4px; font-size: 15px; font-weight: 600; }

.cmp { margin-top: 40px; border-top: 2px solid var(--ink); }
.cmp__head { display: none; }
.cmp__row { display: grid; gap: 12px; padding: 18px 0 20px; border-bottom: 1px solid var(--ink); }
.cmp__what { font: 700 30px/1 var(--f-head); letter-spacing: .015em; text-transform: uppercase; }
.cmp__tag { display: block; margin-bottom: 3px; font: 500 14px/1.3 var(--f-mono); font-style: normal; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.cmp__self { color: var(--mute); }
.cmp__we { padding-left: 12px; border-left: 4px solid var(--green); font-weight: 500; }
.cmp__we .cmp__tag { color: var(--green-deep); }

/* Слово руководителя проекта */
.word { display: grid; gap: 22px; }
.word__img { width: 100%; max-width: 440px; aspect-ratio: 520 / 569; object-fit: cover; border: 2px solid var(--ink); }
.word__body { display: grid; gap: 16px; align-content: start; }
.word__q { font-size: 21px; line-height: 1.38; font-weight: 500; text-wrap: pretty; }
.word__q::before { content: "«"; }
.word__q::after { content: "»"; }
.word__by { display: grid; gap: 3px; padding-top: 14px; border-top: 2px solid var(--ink); }
.word__by b { font: 700 30px/1 var(--f-head); letter-spacing: .015em; text-transform: uppercase; }
.word__by span { font-size: 15px; color: var(--mute); }

/* Клиенты: лента фотографий */
.rail { overflow-x: auto; padding: 0 var(--pad) 14px; scroll-snap-type: x mandatory; scroll-padding-left: var(--pad); -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
.rail__in { display: flex; gap: 12px; width: max-content; }
.cl { width: min(70vw, 270px); scroll-snap-align: start; border: 2px solid var(--ink); background: #fff; }
.cl img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.cl__cap { padding: 12px 12px 8px; border-top: 2px solid var(--ink); }
.cl__who { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cl__who b { font: 700 28px/1 var(--f-head); letter-spacing: .015em; text-transform: uppercase; }
.cl__who span { font-size: 14px; color: var(--mute); text-align: right; }
.cl__num { margin-top: 8px; }
.cl__num div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 8px; padding: 6px 0; border-top: 1px dotted var(--grey); font-size: 14px; }
.cl__num dt { color: var(--mute); }
.cl__num dd { font-family: var(--f-mono); font-weight: 500; white-space: nowrap; }

.vids__over { margin: 34px 0 12px; color: var(--ink); }
.vids { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.vid__box { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 2px solid var(--ink); background: var(--ink); }
.vid__box img { width: 100%; height: 100%; object-fit: cover; }
.vid__box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid__play { position: absolute; left: 0; bottom: 0; display: grid; place-items: center; width: 52px; height: 52px; background: var(--green); color: #0b0b0a; }
.vid__play:hover { background: #1fb54f; }
.vid:has(.is-playing) { grid-column: 1 / -1; }
.vid__cap { display: grid; margin-top: 8px; line-height: 1.3; }
.vid__cap b { font-weight: 600; }
.vid__cap span { font-size: 14px; color: var(--mute); }

/* Команда */
.team { display: grid; }
.tm { display: grid; grid-template-columns: 116px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid var(--ink); }
.tm:first-child { border-top-width: 2px; }
.tm img { width: 116px; aspect-ratio: 4 / 5; object-fit: cover; }
.tm__body { display: grid; gap: 6px; justify-items: start; }
.tm__body p:not(.label) { color: var(--ink-soft); }
.tm__body .lnk { margin-top: 4px; }

/* Раскрывающиеся списки */
.acc { border-top: 2px solid var(--ink); }
.acc__i { border-bottom: 1px solid var(--ink); }
.acc__i summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; padding: 14px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; line-height: 1.25; }
.acc__i summary::-webkit-details-marker { display: none; }
.acc__i summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-right: 6px; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.acc__i[open] summary::after { border-color: var(--green); transform: rotate(-135deg) translate(-3px, -3px); }
.acc__i > p, .acc__i > ul { max-width: 46em; padding-bottom: 20px; color: var(--ink-soft); }
.ticks li { position: relative; padding: 6px 0 6px 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 13px; width: 13px; height: 11px; background: var(--green); clip-path: var(--chev); }
.faq__more { padding: 18px 0 0; }

/* Другая ситуация */
.next { display: grid; border-top: 2px solid var(--ink); }
.nx { display: grid; gap: 10px; align-content: start; justify-items: start; padding: 20px 0 24px; border-bottom: 1px solid var(--ink); }
.nx p { max-width: 34em; color: var(--ink-soft); }
.nx .btn { width: auto; min-height: 52px; margin-top: 6px; font-size: 16px; }

/* Офисы и карта */
.offs { display: grid; gap: 20px; }
.offs__list { border-top: 2px solid var(--ink); }
.off { padding: 14px 0 16px; border-bottom: 1px solid var(--ink); }
.off__pick { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; }
.off__name { font: 700 32px/1 var(--f-head); letter-spacing: .015em; text-transform: uppercase; padding-top: 2px; }
.off__show { margin-left: auto; font: 500 14px/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.off.is-active .off__show { color: var(--green-deep); }
.off.is-active .off__show::before { content: ""; display: inline-block; width: 8px; height: 9px; margin-right: 6px; background: var(--green); clip-path: var(--chev); }
.off__body { display: grid; gap: 6px; padding: 6px 0 0 40px; }
.off__hours { font-size: 15px; color: var(--mute); }
.off__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 2px; }
.off__phone { font: 700 28px/1 var(--f-head); letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
.map { position: relative; min-height: 340px; border: 2px solid var(--ink); background: #e8e8e3; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; font-size: 15px; color: var(--mute); }

/* ---------- Подвал ---------- */
.ftr { padding: 40px 0 28px; background: var(--ink); color: #d6d6d1; }
.ftr .logo { color: #fff; }
.ftr .logo__mark path:nth-child(2) { fill: #fff; }
.ftr__top { display: grid; gap: 28px; padding-bottom: 28px; }
.ftr__brand p { max-width: 26em; margin-top: 14px; font-size: 15px; }
.ftr__nav { display: grid; gap: 4px; justify-items: start; }
.ftr__nav a { display: flex; align-items: center; min-height: 40px; font-weight: 500; text-decoration: none; }
.ftr__nav a:hover, .ftr__msg a:hover, .ftr__bottom a:hover { color: #fff; text-decoration: underline; }
.ftr__phone { display: inline-block; font: 800 44px/1 var(--f-head); letter-spacing: .02em; color: #fff; text-decoration: none; white-space: nowrap; }
.ftr__contact p { margin-top: 8px; font-size: 15px; }
.ftr__msg { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 600; color: #fff; }
.ftr__legal { display: grid; gap: 10px; padding: 24px 0; border-top: 1px solid var(--dark-line); font-size: 14px; line-height: 1.5; color: #a8a8a2; }
.ftr__legal sup { font-size: 14px; line-height: 1; }
.ftr__bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 18px; border-top: 1px solid var(--dark-line); font-size: 14px; }
.ftr__dev { margin-left: auto; opacity: .75; }
.ftr__dev:hover { opacity: 1; }

/* ---------- Панель быстрой связи ---------- */
.qbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--ink); transition: transform .2s;
}
.qbar.is-hidden { transform: translateY(110%); }
.qbar > * {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 60px; border-left: 1px solid var(--dark-line);
  color: #fff; font-size: 14px; font-weight: 500; line-height: 1; text-decoration: none;
}
.qbar > :first-child { border-left: 0; background: var(--green); color: #0b0b0a; font-weight: 600; }
.qbar .ico { width: 22px; height: 22px; }
.fab { display: none; }

/* ---------- Окна ---------- */
.dlg { width: 100%; max-width: min(520px, calc(100vw - 20px)); max-height: calc(100dvh - 20px); padding: 0; border: 0; background: transparent; color: var(--ink); overflow: auto; }
.dlg::backdrop { background: rgba(20, 20, 19, .74); }
.dlg__box { position: relative; padding: 24px 18px 20px; border: 2px solid var(--ink); background: #fff; }
.dlg__close { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 44px; height: 44px; }
.dlg__title { padding-right: 40px; font: 800 38px/.95 var(--f-head); letter-spacing: .01em; text-transform: uppercase; }
.dlg__sub { margin: 10px 0 18px; color: var(--ink-soft); }
.dlg__sub:empty { margin: 0 0 16px; }
.dlg form { display: grid; gap: 14px; }
.dlg__links { display: grid; margin-top: 14px; border-top: 2px solid var(--ink); }
.dlg__links a { display: flex; align-items: center; justify-content: space-between; min-height: 58px; border-bottom: 1px solid var(--ink); font-weight: 600; font-size: 18px; text-decoration: none; }
.dlg__links .chev { height: 14px; fill: var(--green); }

.cookies {
  position: fixed; left: 10px; right: 10px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 55;
  display: grid; gap: 10px; max-width: 460px; padding: 14px;
  border: 2px solid var(--ink); background: #fff; font-size: 14px; line-height: 1.4;
}
.cookies__btns { display: flex; gap: 8px; }
.cookies__btns button { flex: 1; min-height: 48px; padding: 4px 8px; border: 1.5px solid var(--ink); font-weight: 600; font-size: 15px; text-align: center; }
.cookies__btns button:last-child { background: var(--ink); color: #fff; }

/* ---------- Внутренние страницы ---------- */
.phead { padding: 28px 0 32px; background: var(--band); }
.phead .label { margin-bottom: 12px; color: var(--ink); }
.phead h1 { font: 800 clamp(46px, 13vw, 96px)/.9 var(--f-head); letter-spacing: .005em; text-transform: uppercase; text-wrap: balance; }
.phead p:not(.label) { max-width: 36em; margin-top: 14px; font-size: 18px; line-height: 1.4; color: var(--ink-soft); }
.phead .btn { width: auto; margin-top: 20px; }
.phead .btn--go { display: inline-flex; }
.phead--doc h1 { font-size: clamp(36px, 9vw, 64px); }
.phead .stamp { margin-bottom: 22px; }
.prose { max-width: 46em; }
.prose h2 { margin: 30px 0 10px; font: 700 30px/1 var(--f-head); letter-spacing: .015em; text-transform: uppercase; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-bottom: 12px; }
.prose ul { padding-left: 22px; list-style: square; }
.prose li { margin-bottom: 6px; }
.note { padding: 12px 14px; border: 1.5px dashed var(--ink); font-size: 15px; }
.reqs { border-top: 2px solid var(--ink); }
.reqs div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--ink); }
.reqs dt { font: 500 14px/1.3 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.reqs dd { font-weight: 500; }
.cta { display: grid; gap: 14px; justify-items: start; }
.cta .btn { width: auto; }
.grid2 { display: grid; gap: 32px; }
.clgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.clgrid .cl { width: auto; }
.clgrid .cl__who { display: grid; gap: 2px; }
.clgrid .cl__who span { text-align: left; }
.phead .e404 { margin: 0 0 8px; max-width: none; font: 800 clamp(110px, 30vw, 240px)/.8 var(--f-head); letter-spacing: .01em; color: var(--ink); }
.phead .e404 span { color: var(--green); }

/* =====================================================================
   От 700 px: планшет
   ===================================================================== */
@media (min-width: 700px) {
  :root { --pad: 28px; }
  body { font-size: 17px; }
  .hero__grid { padding-top: 28px; padding-bottom: 48px; }
  .hero__addr { display: inline; }
  .citysel__name { display: inline; }
  .hero__chev { top: 10px; right: -120px; width: 720px; }
  .tabs { display: flex; }
  .tabs__t { flex: 1 1 auto; min-height: 60px; padding: 8px 20px 6px 11px; font-size: 20px; }
  .panel { padding: 24px 24px 26px; }
  .calc { grid-template-columns: 1fr 1fr; gap: 24px; }
  .calc__out { margin: -24px -24px -26px 0; padding: 24px 24px 26px; }
  .match { margin: -24px -24px 24px; padding: 28px 24px; }
  .panel:has(> .okbox[hidden]) > .match { margin-bottom: -26px; }
  .match__title { font-size: 52px; }
  .match__row { grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "n name status bar"; padding: 14px 0; }
  .match__n { align-self: center; padding-top: 0; }
  .oneof__grid { grid-template-columns: 1fr auto 1fr; align-items: end; }
  .oneof__or { padding-bottom: 18px; }
  .seg--2 { grid-template-columns: repeat(4, 1fr); }
  .form { max-width: 720px; }
  .sec { padding: 72px 0 84px; }
  .sec__head { margin-bottom: 40px; }
  .big { font-size: 23px; }
  .steps { grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
  .steps__i { padding: 26px 28px 8px 0; border-top: 0; }
  .steps__i + .steps__i { padding-left: 28px; border-left: 1px solid var(--ink); }
  .steps__mark, .steps__mark .chev { height: 38px; }
  .vids { grid-template-columns: repeat(4, 1fr); }
  .vid:has(.is-playing) { grid-column: span 2; }
  .team { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .tm { grid-template-columns: 1fr; gap: 14px; padding: 0; border-top: 0; }
  .tm img { width: 100%; border: 2px solid var(--ink); }
  .next { grid-template-columns: repeat(3, 1fr); }
  .nx { padding: 26px 28px 30px 0; border-bottom: 0; }
  .nx + .nx { padding-left: 28px; border-left: 1px solid var(--ink); }
  .word { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px; align-items: end; }
  .word__q { font-size: 26px; }
  .ftr__top { grid-template-columns: 1fr 1fr; gap: 36px 40px; }
  .clgrid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .grid2 { grid-template-columns: 1fr 1fr; gap: 48px; }
  .phead { padding: 44px 0 52px; }
  .dlg__box { padding: 30px 28px 26px; }
}

/* =====================================================================
   От 1040 px: компьютер
   ===================================================================== */
@media (min-width: 1040px) {
  :root { --pad: 32px; }
  html { scroll-padding-top: 96px; }
  body { padding-bottom: 0; }
  .hdr__in { height: 72px; gap: 22px; }
  .logo__mark { width: 46px; height: 24px; }
  .logo__word { font-size: 23px; }
  .citysel { margin-left: 4px; }
  .citysel__btn { font-size: 16px; }
  .citysel__menu { left: 0; transform: none; }
  .hdr__nav { display: flex; gap: 26px; margin-left: auto; }
  .hdr__nav a { font-weight: 500; font-size: 16px; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
  .hdr__nav a:hover, .hdr__nav a[aria-current] { border-bottom-color: var(--green); }

  /* «Услуги» — выпадающий список направлений */
  .svcsel { position: relative; }
  .svcsel__btn {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 0; border-bottom: 2px solid transparent;
    font-weight: 500; font-size: 16px; cursor: pointer; list-style: none; white-space: nowrap;
  }
  .svcsel__btn::-webkit-details-marker { display: none; }
  .svcsel__btn::after {
    content: ""; flex: none; width: 6px; height: 6px; margin-bottom: 3px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s;
  }
  .svcsel[open] .svcsel__btn::after { margin-bottom: -3px; transform: rotate(-135deg); }
  .svcsel__btn:hover, .svcsel__btn[data-current] { border-bottom-color: var(--green); }
  .svcsel__btn:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
  .svcsel__menu {
    position: absolute; top: calc(100% + 14px); left: -16px; z-index: 70; width: 380px;
    padding: 8px; border: 2px solid var(--ink); background: #fff; box-shadow: 0 18px 40px -20px rgba(0,0,0,.45);
  }
  .hdr__nav .svcsel__i {
    position: relative; display: grid; gap: 2px; padding: 10px 40px 10px 12px; border: 0;
    font-weight: 400; text-decoration: none; color: var(--ink);
  }
  .svcsel__i b { font-weight: 600; font-size: 16px; line-height: 1.25; }
  .svcsel__i small { font-size: 14px; line-height: 1.35; color: var(--mute); }
  .hdr__nav .svcsel__i:hover, .hdr__nav .svcsel__i:focus-visible { background: var(--band); outline: 0; }
  .hdr__nav .svcsel__i[aria-current] { background: var(--band); }
  .svcsel__i[aria-current]::after {
    content: ""; position: absolute; right: 16px; top: 50%; width: 6px; height: 11px; margin-top: -8px;
    border-right: 2px solid var(--green-deep); border-bottom: 2px solid var(--green-deep); transform: rotate(45deg);
  }
  .hdr__contact { display: flex; align-items: center; gap: 6px; margin-left: 18px; }
  .hdr__phone { margin-right: 8px; font: 800 32px/1 var(--f-head); letter-spacing: .02em; text-decoration: none; white-space: nowrap; padding-top: 2px; }
  .hdr__ico { display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--ink); }
  .hdr__ico:hover { background: var(--ink); color: #fff; }
  .hdr__call, .hdr__burger, .menu { display: none !important; }

  .hero__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "text calc" "aside calc";
    grid-template-rows: auto 1fr;
    column-gap: 52px; row-gap: 28px; align-items: start;
    padding-top: 40px; padding-bottom: 72px;
  }
  .hero__text { grid-area: text; }
  .hero__calc { grid-area: calc; }
  .hero__aside { grid-area: aside; }
  .hero__chev { top: 56px; right: auto; left: calc(50% - 760px); width: 800px; }
  .hero__h1 { font-size: clamp(64px, 6.2vw, 100px); line-height: .88; }
  .hero__lead { margin-top: 18px; font-size: 19px; }
  .facts li { padding: 13px 0; font-size: 18px; }
  .say { grid-template-columns: 92px 1fr; margin-top: 24px; }
  .say img { width: 92px; height: 112px; }

  .who { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
  .cmp__head, .cmp__row { display: grid; grid-template-columns: 200px 1fr 1fr; gap: 40px; }
  .cmp__head { padding: 12px 0; border-bottom: 1px solid var(--ink); font: 500 14px/1.3 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
  .cmp__head span:last-child { color: var(--green-deep); }
  .cmp__row { align-items: start; padding: 22px 0 24px; }
  .cmp__tag { display: none; }
  .cmp__we { padding-left: 16px; }

  .rail { overflow: visible; max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }
  .rail__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; width: auto; }
  .cl { width: auto; }
  .vids { gap: 20px; }
  .team { gap: 28px; }
  .acc--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; border-top: 0; }
  .acc--3 .acc__i { border-top: 2px solid var(--ink); border-bottom: 0; }
  .acc--3 summary { pointer-events: none; font: 700 30px/1 var(--f-head); letter-spacing: .015em; text-transform: uppercase; }
  .acc--3 summary::after { display: none; }
  .faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 52px; align-items: start; }
  .faq .sec__head { position: sticky; top: 104px; margin-bottom: 0; }
  .offs { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 52px; }
  .map { min-height: 500px; }

  .ftr__top { grid-template-columns: 1.5fr 1.1fr .9fr 1.3fr; }
  .qbar { display: none; }
  .fab { display: block; position: fixed; right: 24px; bottom: 24px; z-index: 60; }
  .fab__btn { display: flex; align-items: center; gap: 10px; height: 56px; margin-left: auto; padding: 0 18px 0 14px; border: 2px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; }
  .fab.is-open .fab__btn { background: var(--green); border-color: var(--green); color: #0b0b0a; }
  .fab__list { display: none; min-width: 270px; margin-bottom: 8px; border: 2px solid var(--ink); background: #fff; }
  .fab.is-open .fab__list { display: grid; }
  .fab__list > * { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 0 16px; border-top: 1px solid var(--line); font-weight: 500; font-size: 16px; text-decoration: none; }
  .fab__list > :first-child { border-top: 0; font: 800 28px/1 var(--f-head); letter-spacing: .02em; }
  .fab__list > :hover { background: var(--band); }
  .cookies { left: 24px; right: auto; bottom: 24px; }
}

/* Узкий компьютер: в шапке не хватает места на всё — мессенджеры остаются в кнопке «Связаться» */
@media (min-width: 1040px) and (max-width: 1279px) {
  .hdr__in { gap: 18px; }
  .hdr__nav { gap: 20px; }
  .hdr__contact { margin-left: 6px; }
  .hdr__ico { display: none; }
}

@media (min-width: 1280px) {
  .calc { gap: 28px; }
  .panel { padding: 28px 28px 30px; }
  .calc__out { margin: -28px -28px -30px 0; padding: 28px 28px 30px; }
  .match { margin: -28px -28px 28px; padding: 32px 28px; }
  .panel:has(> .okbox[hidden]) > .match { margin-bottom: -30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .hdr, .qbar, .fab, .cookies, .map, .hero__chev { display: none !important; }
  body { padding: 0; }
}
