/* Buildbase — фирменный стиль «Бетон и сигнал».
   Без сборщиков: обычный CSS на переменных. */

@font-face {
  font-family: "Geologica";
  src: url("fonts/geologica-sharp.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("fonts/onest.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("fonts/martian-mono.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}
/* Подогнанный запасной шрифт, чтобы при загрузке текст не прыгал. */
@font-face {
  font-family: "Onest Fallback";
  src: local("Arial"), local("Roboto");
  size-adjust: 101%;
  ascent-override: 96%;
}

:root {
  --paper: #F2EFE8;
  --paper-2: #E8E3D8;
  --ink: #14130F;
  --muted: #5E5A52;
  --signal: #FF5A1F;
  --signal-ink: #B23A0B;
  --night: #121211;
  --night-2: #1C1B19;
  --bone: #EAE6DC;
  --bone-muted: #A29E94;
  --ok: #1F7A4D;
  --err: #B3261E;

  --f-display: "Geologica", "Onest Fallback", system-ui, sans-serif;
  --f-text: "Onest", "Onest Fallback", system-ui, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --line: 2px;
  --shadow: 4px 4px 0 var(--ink);
  --gutter: 16px;
  --max: 1200px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.025em;
  margin: 0;
  text-wrap: balance;
}
button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 8px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Типографика ---------- */
.mono {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 18px;
}
.label::before {
  content: ""; width: 10px; height: 10px; background: var(--signal); flex: none;
}
.h-section { font-size: clamp(34px, 6vw, 64px); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 40ch; }

/* «Плинт» — толстая базовая линия под заголовком: всё стоит на base. */
.plinth { position: relative; padding-bottom: 22px; margin-bottom: 40px; }
.plinth::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: min(220px, 50%); height: 8px; background: var(--ink);
}
.section-head { display: grid; gap: 18px; margin-bottom: 44px; }
.section-head .plinth { margin-bottom: 0; }
.section-head p { color: var(--muted); max-width: 52ch; margin: 0; }

/* ---------- Кнопки ---------- */
.btn {
  --bg: var(--paper); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  background: var(--bg); color: var(--fg);
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow);
  font: 600 16px/1 var(--f-text);
  text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn--signal { --bg: var(--signal); }
.btn--ink { --bg: var(--ink); --fg: var(--paper); }
.btn--sm { min-height: 42px; padding: 0 14px; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); }
.btn--sm:hover { box-shadow: 4px 4px 0 var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.on-night .btn { border-color: var(--bone); box-shadow: 4px 4px 0 var(--bone); }
.on-night .btn:hover { box-shadow: 6px 6px 0 var(--bone); }
.on-night .btn:active { box-shadow: 0 0 0 var(--bone); }

.link {
  color: var(--signal-ink); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.on-night .link { color: var(--signal); }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: var(--line) solid var(--ink);
}
.header__in { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.logo { display: inline-flex; color: var(--ink); flex: none; }
.logo svg { height: 26px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--signal); }
.header__cta { margin-left: 8px; }
.burger {
  display: none; margin-left: 8px;
  width: 44px; height: 44px; border: var(--line) solid var(--ink); background: var(--paper);
  cursor: pointer; padding: 0; place-items: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform .2s;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 899px) {
  .burger { display: grid; }
  .header__cta .txt-long { display: none; }
  .header__cta { margin-left: auto; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: var(--line) solid var(--ink);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .nav a { display: block; padding: 14px 0; font-size: 20px; font-family: var(--f-display); font-weight: 700; border-bottom: 1px solid var(--paper-2); }
}
@media (min-width: 900px) {
  .header__cta .txt-short { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 8vw, 96px); }
.hero__grid { display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 74px); margin-bottom: 26px; }
.nowrap { white-space: nowrap; }
.hero h1 em { font-style: normal; background: var(--signal); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero__lead { margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-bottom: 30px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.hero__meta li {
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .02em;
  border: 1.5px solid var(--ink); padding: 6px 10px; background: var(--paper);
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.15fr .85fr; }
}


/* ---------- Полоса доверия ---------- */
.on-night { background: var(--night); color: var(--bone); }
.on-night .label, .on-night .lead, .on-night .section-head p { color: var(--bone-muted); }
.on-night .plinth::after { background: var(--signal); }
.stats { border-block: var(--line) solid var(--ink); }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stats li { padding: 28px var(--gutter); border-top: 1px solid #2A2926; }
.stats li:first-child { border-top: 0; }
.stats b { display: block; font: 800 clamp(36px, 5vw, 52px)/1 var(--f-display); letter-spacing: -.03em; color: var(--bone); margin-bottom: 8px; }
.stats b span { color: var(--signal); }
.stats small { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; color: var(--bone-muted); letter-spacing: .03em; }
@media (min-width: 700px) {
  .stats li { border-top: 0; border-left: 1px solid #2A2926; }
  .stats li:first-child { border-left: 0; }
}

/* ---------- Секции ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section + .section { border-top: var(--line) solid var(--ink); }

/* Карточки — блоки с толстой обводкой, без скруглений. */
.card {
  background: var(--paper); border: var(--line) solid var(--ink);
  padding: 26px; position: relative;
}
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--2 { grid-template-columns: repeat(2, 1fr); } }

.who .card { display: flex; flex-direction: column; gap: 12px; }
.who h3 { font-size: 24px; }
.who p { color: var(--muted); margin: 0; flex: 1; }
.who .card a { margin-top: 8px; align-self: flex-start; }
.who__ico { width: 44px; height: 44px; background: var(--ink); display: grid; place-items: center; margin-bottom: 6px; }
.who__ico svg { width: 24px; height: 24px; }

/* Услуги — bento: первая карточка шире. */
.services { display: grid; gap: 20px; }
@media (min-width: 760px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) {
  .services { grid-template-columns: repeat(6, 1fr); }
  .services .card:nth-child(1) { grid-column: span 4; }
  .services .card:nth-child(2) { grid-column: span 2; }
  .services .card:nth-child(3) { grid-column: span 3; }
  .services .card:nth-child(4) { grid-column: span 3; }
}
.svc { display: flex; flex-direction: column; gap: 14px; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.svc:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.svc__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.svc__idx { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.svc h3 { font-size: clamp(24px, 3vw, 32px); }
.svc p { color: var(--muted); margin: 0; }
.svc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.svc li { padding-left: 22px; position: relative; }
.svc li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 4px; background: var(--ink); }
.svc__foot { margin-top: auto; padding-top: 18px; border-top: 1.5px dashed var(--ink); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.price { font: 800 26px/1 var(--f-display); letter-spacing: -.02em; }
.price small { display: block; margin-top: 6px; font: 400 12px/1.3 var(--f-mono); text-transform: uppercase; color: var(--muted); letter-spacing: .02em; }
.svc--hot { background: var(--ink); color: var(--bone); }
.svc--hot p, .svc--hot .svc__idx, .svc--hot .price small { color: var(--bone-muted); }
.svc--hot li::before { background: var(--signal); }
.svc--hot .svc__foot { border-color: var(--bone-muted); }
.svc--hot .btn { border-color: var(--bone); box-shadow: 3px 3px 0 var(--bone); }
.tag { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; background: var(--signal); color: var(--ink); padding: 4px 8px; letter-spacing: .03em; white-space: nowrap; }
.note { margin-top: 22px; color: var(--muted); }

/* ---------- Кейсы ---------- */
.case { display: grid; gap: 28px; align-items: center; }
.case + .case { margin-top: clamp(56px, 8vw, 96px); }
@media (min-width: 960px) {
  .case { grid-template-columns: 1.2fr 1fr; gap: 56px; }
  .case:nth-of-type(even) .case__media { order: 2; }
}
.frame { border: var(--line) solid var(--ink); background: var(--paper); box-shadow: 8px 8px 0 var(--ink); }
.frame__bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: var(--line) solid var(--ink); font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); }
.frame__bar i { width: 10px; height: 10px; border: 1.5px solid var(--ink); flex: none; }
.frame__bar i:first-child { background: var(--signal); }
.frame__bar span { margin-left: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; background: var(--paper-2); }
.case h3 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.case dl { margin: 22px 0; display: grid; gap: 14px; }
.case dt { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .03em; margin-bottom: 2px; }
.case dd { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.tags li { font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; border: 1.5px solid var(--ink); padding: 5px 9px; }
.case--next { margin-top: clamp(56px, 8vw, 96px); background: var(--signal); border: var(--line) solid var(--ink); padding: clamp(28px, 5vw, 56px); display: grid; gap: 20px; align-items: center; }
.case--next h3 { font-size: clamp(30px, 4.5vw, 52px); }
.case--next p { margin: 0; max-width: 44ch; }
@media (min-width: 860px) { .case--next { grid-template-columns: 1fr auto; } }

/* ---------- Процесс ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 34px 64px; }
.steps li::before {
  counter-increment: s; content: "0" counter(s);
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); font: 500 13px/1 var(--f-mono);
}
.steps li::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--ink); }
.steps li:last-child::after { display: none; }
.steps li:last-child::before { background: var(--signal); color: var(--ink); }
.steps h3 { font-size: 24px; margin: 8px 0 8px; }
.steps p { color: var(--muted); margin: 0; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .steps li { padding: 70px 0 0; }
  .steps li::after { left: 44px; right: -24px; top: 21px; bottom: auto; width: auto; height: 2px; }
}

/* ---------- FAQ ---------- */
.faq { border-top: var(--line) solid var(--ink); max-width: 900px; }
.faq details { border-bottom: var(--line) solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font: 700 clamp(19px, 2.4vw, 23px)/1.3 var(--f-display); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 18px 3px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 3px 18px no-repeat;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--muted); max-width: 70ch; }
.faq details > div p:last-child { margin: 0; }

/* ---------- Контакты и форма ---------- */
.contact__grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.contact h2 { font-size: clamp(40px, 7vw, 76px); margin-bottom: 24px; }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.contact__list small { display: block; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; color: var(--bone-muted); letter-spacing: .03em; }
.contact__list a, .contact__list span { font-size: 19px; color: var(--bone); }

.form { background: var(--paper); color: var(--ink); border: var(--line) solid var(--bone); padding: clamp(22px, 4vw, 36px); box-shadow: 8px 8px 0 var(--signal); }
.form h3 { font-size: 28px; margin-bottom: 6px; }
.form > p { color: var(--muted); margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field > label, .field legend { display: block; font-weight: 600; margin-bottom: 8px; font-size: 15px; }
.opt-note { font-weight: 400; color: var(--muted); }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: #FBFAF6; border: var(--line) solid var(--ink); border-radius: 0;
  font-size: 17px; appearance: none;
}
textarea.input { min-height: 110px; resize: vertical; }
.input:focus-visible { outline: 3px solid var(--signal); outline-offset: 0; }
.input[aria-invalid="true"] { border-color: var(--err); background: #FDF1EF; }
.err { display: block; min-height: 0; color: var(--err); font-size: 14px; margin-top: 6px; }
.err:empty { display: none; }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1.5px solid var(--ink); background: #FBFAF6; font-size: 15px; cursor: pointer; user-select: none;
}
.chip input:checked + span { background: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.check a { color: var(--signal-ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; margin-top: 8px; }
.status { margin: 16px 0 0; padding: 14px 16px; border: var(--line) solid currentColor; font-weight: 500; }
.status:empty { display: none; }
.status--ok { color: var(--ok); background: #EEF6F0; }
.status--err { color: var(--err); background: #FDF1EF; }
.spin { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Футер ---------- */
.footer { background: var(--night); color: var(--bone); padding: 64px 0 28px; border-top: 8px solid var(--signal); }
.footer__grid { display: grid; gap: 36px; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer .logo { color: var(--bone); }
.footer .logo svg { height: 32px; }
.footer p { color: var(--bone-muted); margin-top: 16px; max-width: 34ch; }
.footer h4 { font: 400 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--bone-muted); margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--signal); }
.footer__legal { margin-top: 56px; padding-top: 22px; border-top: 1px solid #2A2926; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; color: var(--bone-muted); }
.footer__legal button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font-size: 14px; }

/* ---------- Мобильная панель и cookie ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: var(--line) solid var(--ink);
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.dock .btn { min-height: 48px; box-shadow: none; }
.dock.is-shown { transform: none; }
@media (min-width: 900px) { .dock { display: none; } }

.cookie {
  position: fixed; z-index: 60; left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  max-width: 560px; background: var(--night); color: var(--bone);
  border: var(--line) solid var(--bone); box-shadow: 6px 6px 0 var(--signal);
  padding: 18px 20px; font-size: 15px;
}
.cookie p { margin: 0 0 14px; color: var(--bone); }
.cookie a { color: var(--signal); }
.cookie__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { min-height: 42px; box-shadow: none; border-color: var(--bone); }
.cookie [hidden] { display: none; }

/* ---------- Появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .7s var(--ease); }

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

/* ---------- Документы (политика, согласие) ---------- */
.doc { padding: clamp(40px, 7vw, 80px) 0 96px; }
.doc .container { max-width: 780px; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); }
.doc h2 { font-size: 24px; margin: 40px 0 12px; letter-spacing: -.01em; }
.doc p, .doc li { color: #2E2C27; }
.doc ul { padding-left: 22px; }
.doc .back { display: inline-block; margin-bottom: 28px; }
.doc .meta { color: var(--muted); font-size: 15px; }

/* ---------- Правки после проверки ---------- */
.burger { flex: none; }
@media (max-width: 599px) {
  .header .logo svg { height: 22px; }
}
@media (max-width: 439px) {
  .header__cta { min-width: 44px; padding: 0 11px; }
  .header__cta .txt-short { display: none; }
}
/* Кнопка формы стоит на светлой карточке внутри тёмной секции. */
.on-night .form .btn { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.on-night .form .btn:hover { box-shadow: 6px 6px 0 var(--ink); }
.case--next > div { display: grid; gap: 12px; }
@media (max-width: 959px) {
  .hero__grid { gap: 32px; }
}

/* ---------- Правки по отчёту QA ---------- */
/* Фокус: на светлом графитовая рамка (оранжевый даёт лишь 2,7:1), на тёмном — оранжевая. */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-night :focus-visible, .footer :focus-visible, .cookie :focus-visible, .svc--hot :focus-visible { outline-color: var(--signal); }
.on-night .form :focus-visible { outline-color: var(--ink); }
.input:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; box-shadow: 0 0 0 6px var(--signal); }
.chip input:focus-visible + span { outline-color: var(--ink); }
.input::placeholder { color: #6E6A61; opacity: 1; }
/* Под мобильной панелью — запас, чтобы она не закрывала подвал. */
@media (max-width: 899px) { body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); } }
.hero h1 { font-size: clamp(32px, 5.4vw, 74px); }
.doc h1 { font-size: clamp(30px, 7vw, 56px); overflow-wrap: anywhere; hyphens: auto; }
.contact__tg { margin-top: 28px; }

/* =====================================================================
   v5: конструктор, кинетический заголовок, честный блок, анимации
   ===================================================================== */

/* ---------- Заголовок с меняющимся словом ---------- */
.hero__grid { align-items: start; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1fr minmax(380px, 460px); gap: 56px; } }
.hero h1 { font-size: clamp(34px, 5vw, 70px); }
.h1-line { display: block; }
.rot {
  display: inline-block; position: relative; vertical-align: bottom;
  background: var(--signal); padding: 0 .14em; margin: .04em 0;
  transition: width .45s var(--ease);
  overflow: hidden; white-space: nowrap;
}
.rot__word { display: inline-block; }
.rot__word .ch { display: inline-block; transform-origin: 50% 100%; }
.rot.is-out .ch { animation: chOut .32s var(--ease) both; }
.rot.is-in .ch { animation: chIn .5s var(--ease) both; }
@keyframes chOut { to { transform: translateY(-110%) rotate(-8deg); opacity: 0; } }
@keyframes chIn { from { transform: translateY(110%) rotate(8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.hero__lead { max-width: 34ch; }

/* ---------- Конструктор ---------- */
.kit {
  border: var(--line) solid var(--ink); background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink); scroll-margin-top: calc(var(--header-h) + 16px);
}
.kit__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: var(--line) solid var(--ink); background: var(--ink); color: var(--bone); }
.kit__head .mono { color: var(--bone-muted); }
.kit__title { font-size: 18px; letter-spacing: -.01em; }
.kit__body { display: grid; }
.kit__stage {
  position: relative; height: 210px; border-bottom: var(--line) solid var(--ink);
  background:
    linear-gradient(var(--paper-2) 1px, transparent 1px) 0 0 / 100% 30px;
  overflow: hidden;
}
.kit__stack { position: absolute; left: 0; right: 0; bottom: 34px; display: flex; flex-direction: column-reverse; align-items: center; gap: 0; }
.blk {
  height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 14px; border: var(--line) solid var(--ink); margin-top: -2px;
  font: 500 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .03em;
  transform-origin: 50% 100%;
}
.blk b { font: 800 15px/1 var(--f-display); text-transform: none; letter-spacing: -.01em; }
.blk--landing { width: 62%; background: var(--signal); color: var(--ink); }
.blk--bot { width: 50%; background: var(--ink); color: var(--bone); }
.blk--shop { width: 76%; background: repeating-linear-gradient(-45deg, var(--paper) 0 8px, var(--paper-2) 8px 16px); color: var(--ink); }
.blk.is-landing { animation: land .62s cubic-bezier(.3, 0, .2, 1) both; }
.blk.is-leaving { animation: leave .3s var(--ease) both; }
@keyframes land {
  0% { transform: translateY(-260px); }
  70% { transform: translateY(0) scale(1.04, .86); }
  85% { transform: translateY(-6px) scale(.98, 1.03); }
  100% { transform: none; }
}
@keyframes leave { to { transform: translateX(40px) rotate(6deg); opacity: 0; } }
.kit__stage.is-shake .kit__base { animation: thud .3s; }
@keyframes thud { 40% { transform: translateY(2px); } }
.kit__base {
  position: absolute; left: 10%; right: 10%; bottom: 14px; height: 20px; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.kit__base span { font: 400 10px/1 var(--f-mono); color: var(--bone-muted); letter-spacing: .3em; text-transform: uppercase; }
.kit__empty {
  position: absolute; inset: 0 0 34px; display: grid; place-items: center; margin: 0; text-align: center;
  font: 400 12px/1.6 var(--f-mono); text-transform: uppercase; color: var(--muted); letter-spacing: .04em;
  transition: opacity .2s;
}
.kit__stage.has-blocks .kit__empty { opacity: 0; }
.kit__controls { padding: 16px; display: grid; gap: 14px; }
.kit__opts { display: grid; gap: 8px; }
.opt {
  display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 12px;
  min-height: 50px; padding: 0 14px; text-align: left; cursor: pointer;
  background: #FBFAF6; border: var(--line) solid var(--ink); font-size: 16px;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s;
}
.opt:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.opt[aria-pressed="true"] { background: var(--ink); color: var(--bone); }
.opt[aria-pressed="true"] .opt__price { color: var(--bone-muted); }
.opt__sw { width: 18px; height: 18px; border: 1.5px solid currentColor; position: relative; }
.opt__sw--landing { background: var(--signal); }
.opt__sw--bot { background: var(--ink); border-color: var(--bone-muted); }
.opt__sw--shop { background: repeating-linear-gradient(-45deg, var(--paper) 0 3px, var(--paper-2) 3px 6px); }
.opt[aria-pressed="true"] .opt__sw::after {
  content: ""; position: absolute; inset: 3px; background: none;
  border: solid var(--bone); border-width: 0 2.5px 2.5px 0; transform: rotate(40deg) scale(.7) translate(-1px, -2px);
}
.opt__name { font-weight: 600; }
.opt__price { font: 400 12px var(--f-mono); color: var(--muted); white-space: nowrap; }
.kit__sum { display: grid; grid-template-columns: 1fr 1fr; border: var(--line) solid var(--ink); }
.kit__sum > div { padding: 10px 14px; }
.kit__sum > div + div { border-left: var(--line) solid var(--ink); }
.kit__sum .mono { display: block; color: var(--muted); margin-bottom: 4px; font-size: 11px; }
.kit__sum b { font: 800 22px/1.1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kit__note { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.kit__go { width: 100%; }
.kit__go[aria-disabled="true"] { opacity: .45; pointer-events: none; box-shadow: none; }
.kit__unsure { justify-self: center; font-size: 15px; }

/* Набор из конструктора внутри формы */
.kitpick { position: relative; border: var(--line) dashed var(--ink); padding: 12px 40px 12px 14px; margin-bottom: 18px; background: #FBFAF6; }
.kitpick .mono { color: var(--muted); font-size: 11px; }
.kitpick p { margin: 4px 0 0; font-weight: 600; }
.kitpick__x { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border: 0; background: none; font-size: 22px; cursor: pointer; line-height: 1; }
.kitpick.is-new { animation: pop .5s var(--ease); }
@keyframes pop { 0% { transform: scale(.96); background: var(--signal); } 100% { transform: none; } }

/* ---------- Цифры ---------- */
.stats b .u { color: var(--signal); }

/* ---------- Без прикрас ---------- */
.why .h-section { max-width: 18ch; }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: var(--line) solid var(--ink); }
.why__list li { display: grid; grid-template-columns: 56px 1fr; gap: 6px 18px; padding: 24px 0; border-bottom: var(--line) solid var(--ink); }
.why__n { grid-row: span 2; font: 500 13px/1 var(--f-mono); width: 44px; height: 44px; display: grid; place-items: center; border: var(--line) solid var(--ink); }
.why__list li:nth-child(2) .why__n { background: var(--signal); }
.why h3 { font-size: clamp(22px, 2.6vw, 28px); }
.why p { margin: 0; color: var(--muted); max-width: 60ch; }
@media (min-width: 900px) {
  .why__list { grid-template-columns: 1fr 1fr; column-gap: 48px; border-top: 0; }
  .why__list li:nth-child(-n+2) { border-top: var(--line) solid var(--ink); }
}

/* ---------- Кейсы: шторка и наклон ---------- */
.js .curtain { display: block; clip-path: inset(0 100% 0 0); transition: clip-path 1s cubic-bezier(.7, 0, .2, 1) .15s; }
.case.is-in .curtain { clip-path: inset(0 0 0 0); }
.frame { transition: transform .4s var(--ease); transform-style: preserve-3d; will-change: transform; }

/* ---------- Процесс: линия рисуется при прокрутке ---------- */
@media (min-width: 900px) {
  .steps li::after { transform-origin: 0 50%; transform: scaleX(var(--p, 1)); transition: transform .1s linear; }
}

/* ---------- Подвал: буквы падают на «плиту» ---------- */
.drop-word {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 56px; padding-bottom: 6px; border-bottom: 10px solid var(--signal);
  font: 800 clamp(56px, 17vw, 236px)/.8 var(--f-display); letter-spacing: -.04em; color: var(--bone);
  user-select: none; overflow: hidden;
}
.drop-word span { display: inline-block; transform-origin: 50% 100%; }
.js .drop-word span { transform: translateY(-120%) rotate(var(--r, 0deg)); opacity: 0; }
.drop-word.is-in span { animation: letterDrop .7s cubic-bezier(.3, 0, .2, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes letterDrop {
  0% { transform: translateY(-120%) rotate(var(--r, 0deg)); opacity: 1; }
  65% { transform: translateY(0) scale(1.05, .9); opacity: 1; }
  82% { transform: translateY(-4%) scale(.98, 1.02); }
  100% { transform: none; opacity: 1; }
}
.drop-word span:nth-child(6) { color: var(--signal); }

@media (prefers-reduced-motion: reduce) {
  .js .curtain { clip-path: none !important; }
  .js .drop-word span { transform: none !important; opacity: 1 !important; }
  .blk { animation: none !important; }
}
.blk { white-space: nowrap; font-size: 11px; }
.blk--landing { width: 76%; }
.blk--bot { width: 66%; }
.blk--shop { width: 90%; }
@media (min-width: 960px) { .blk--landing { width: 70%; } .blk--bot { width: 60%; } .blk--shop { width: 84%; } }
/* Логотип «Плита» выше и короче прежнего */
.logo svg { height: 30px; width: auto; }
.footer .logo svg { height: 40px; }
@media (max-width: 599px) { .header .logo svg { height: 26px; } }

/* Подвал: слово как в логотипе — плита только под base */
.drop-word { justify-content: flex-start; border-bottom: 0; padding-bottom: 0; overflow: visible;
  font-size: clamp(52px, 15.6vw, 212px); line-height: .78; }
.drop-word .dw-build, .drop-word .dw-base { display: inline-flex; }
.drop-word .dw-base { position: relative; padding-bottom: .21em; }
.drop-word .dw-base::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: .14em; background: var(--signal);
  transform-origin: 0 50%;
}
.js .drop-word .dw-base::after { transform: scaleX(0); }
.drop-word.is-in .dw-base::after { transform: scaleX(1); transition: transform .6s var(--ease) .75s; }
.drop-word span:nth-child(6) { color: inherit; }
.drop-word { margin-bottom: 8px; }
@media (prefers-reduced-motion: reduce) { .js .drop-word .dw-base::after { transform: none !important; } }
.js .drop-word .dw-build, .js .drop-word .dw-base,
.drop-word.is-in .dw-build, .drop-word.is-in .dw-base { transform: none; opacity: 1; animation: none; }
.drop-word { font-size: clamp(52px, 18.5vw, 228px); }

/* Образец «бот» не путать с отмеченным чекбоксом */
.opt__sw--bot { background: linear-gradient(var(--bone), var(--bone)) center / 8px 2px no-repeat, var(--ink); }

/* Чекбоксы конструктора: обычный квадрат, при выборе — оранжевая заливка с галочкой */
.opt__sw, .opt__sw--landing, .opt__sw--bot, .opt__sw--shop {
  width: 22px; height: 22px; border: 2px solid currentColor; background: transparent;
  position: relative; display: block; flex: none;
}
.opt__sw::after { content: none; }
.opt[aria-pressed="true"] .opt__sw { background: var(--signal); border-color: var(--signal); }
.opt[aria-pressed="true"] .opt__sw::after {
  content: ""; position: absolute; inset: auto; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid var(--ink); border-width: 0 3px 3px 0; transform: rotate(45deg); background: none;
}
.opt { grid-template-columns: 22px 1fr auto; }

/* Обложки кейсов: у картинки свои рамки устройств, поэтому снаружи только тонкая обводка и жёсткая тень */
.cover { margin: 0; border: var(--line) solid var(--ink); box-shadow: 8px 8px 0 var(--ink); background: var(--paper);
  transition: transform .4s var(--ease); transform-style: preserve-3d; will-change: transform; }
.cover img { width: 100%; height: auto; aspect-ratio: 16 / 10; display: block; }
@media (min-width: 960px) { .case { grid-template-columns: 1.3fr 1fr; } }

/* Кейсы: обложка во всю ширину, описание под ней в две колонки */
.case { grid-template-columns: 1fr !important; gap: 28px; }
.case .case__media { order: 0 !important; }
@media (min-width: 900px) {
  .case > div:not(.case__media) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); grid-auto-flow: row dense; column-gap: 56px; align-items: start; }
  .case > div:not(.case__media) > .label, .case > div:not(.case__media) > h3 { grid-column: 1; }
  .case > div:not(.case__media) > dl, .case > div:not(.case__media) > .tags, .case > div:not(.case__media) > .link { grid-column: 2; }
  .case > div:not(.case__media) > dl { margin-top: 0; }
  .case > div:not(.case__media) > .link { justify-self: start; }
}
@media (min-width: 900px) {
  .case > div:not(.case__media) { grid-auto-flow: row; grid-template-rows: auto auto 1fr auto auto; }
  .case > div:not(.case__media) > .label { grid-row: 1; }
  .case > div:not(.case__media) > h3 { grid-row: 2; }
  .case > div:not(.case__media) > dl { grid-row: 1 / span 3; }
  .case > div:not(.case__media) > .tags { grid-row: 4; }
  .case > div:not(.case__media) > .link { grid-row: 5; }
}

/* Предложение для первых клиентов */
.offer {
  margin-top: 28px; display: grid; gap: 18px 32px; align-items: center;
  background: var(--night); color: var(--bone); border: var(--line) solid var(--ink);
  box-shadow: 8px 8px 0 var(--signal); padding: clamp(22px, 4vw, 36px);
}
.offer__num { font: 800 clamp(72px, 12vw, 128px)/.8 var(--f-display); color: var(--signal); letter-spacing: -.04em; }
.offer .label { color: var(--bone-muted); margin-bottom: 10px; }
.offer h3 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; }
.offer p { color: var(--bone-muted); margin: 0; max-width: 62ch; }
.offer .btn { border-color: var(--bone); box-shadow: 4px 4px 0 var(--bone); justify-self: start; }
@media (min-width: 900px) { .offer { grid-template-columns: auto 1fr auto; } }
.offer :focus-visible { outline-color: var(--signal); }
