/* Сайт студии «СОКОЛ ЦПС». Мир «Чертёж»: ватман, оранжевая миллиметровка внутри рамки листа, тушь,
   красный карандаш проверяющего. Текст на базовой сетке 8 px (клетка миллиметровки). Шрифт один, Geologica:
   прямой для текста, наклонный и заострённый для чертёжных надписей. */

@font-face {
  font-family: "Geologica";
  src: url("fonts/geologica.woff2") format("woff2-variations"), url("fonts/geologica.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f8f9fa;
  --ink: #16171a;
  --ink-2: #45474c;
  --ink-3: #66696e;
  --red: #cf2f25;
  --red-text: #b2241b;
  --g-minor: rgb(226 118 58 / .06);
  --g-mid: rgb(226 118 58 / .11);
  --g-major: rgb(226 118 58 / .2);
  --font: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: 16px;
  --wrap: 1180px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
  scrollbar-color: var(--ink) var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: #eceef0;
  font: 400 17px/24px var(--font);
  font-feature-settings: "kern" 1;
}
/* оси шрифта берутся из переменных на каждом элементе, а не наследуются готовой строкой */
* { font-variation-settings: "SHRP" var(--shrp, 0), "slnt" var(--slnt, 0); }

::selection { background: rgb(207 47 37 / .2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
button { font: inherit; color: inherit; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* лист: ватман с миллиметровкой в рамке тушью, слева поле подшивки; вокруг листа чистый стол */
.sheet {
  position: relative;
  margin: 8px 8px 8px 22px;
  border: 2px solid var(--ink);
  min-height: calc(100vh - 16px);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--g-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--g-major) 1px, transparent 1px),
    linear-gradient(var(--g-mid) 1px, transparent 1px),
    linear-gradient(90deg, var(--g-mid) 1px, transparent 1px),
    linear-gradient(var(--g-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--g-minor) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 40px 40px, 40px 40px, 8px 8px, 8px 8px;
  background-position: -1px -1px;
}

/* все горизонтальные линии листа идут от рамки до рамки, содержимое по центру */
.strip, main > section, .foot { padding-inline: max(var(--pad), calc((100% - var(--wrap)) / 2)); }

.strip {
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px;
  padding-block: 8px; border-bottom: 2px solid var(--ink); background: var(--paper);
}
.brand { grid-row: 1; font-weight: 800; font-size: 16px; line-height: 24px; letter-spacing: .07em; --shrp: 100; text-decoration: none; }
.tagline { grid-row: 2; font-size: 13px; line-height: 16px; color: var(--ink-2); --slnt: -12; }
.strip-btn {
  grid-row: 1 / span 2; grid-column: 2;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 2px solid var(--ink); border-radius: 2px; background: var(--paper);
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.strip-btn .ico { width: 18px; height: 18px; }
.strip-btn:hover { background: var(--ink); color: var(--paper); }

main > section { padding-block: 40px 48px; border-top: 1px solid var(--ink); }
main > section:first-child { border-top: 0; }

h2 { font-weight: 800; font-size: 28px; line-height: 32px; letter-spacing: -.01em; --shrp: 40; margin-bottom: 24px; text-wrap: balance; }
h3 { font-weight: 800; font-size: 20px; line-height: 24px; --shrp: 40; margin-bottom: 16px; }

/* ---------- первый экран ---------- */
.hero { padding-top: 24px; }
h1 { font-weight: 800; font-size: clamp(34px, 9.4vw, 72px); line-height: 1.12; letter-spacing: -.015em; --shrp: 40; text-wrap: balance; }
.pencil-u { position: relative; white-space: nowrap; }
.pencil-u .pencil { position: absolute; left: -2%; bottom: -.17em; width: 104%; height: .3em; overflow: visible; }
.pencil-u .pencil path { stroke-width: 1.5; }

/* красный карандаш: длина пути 1, прорисовка сдвигом штриха; без скрипта линия видна сразу */
.pencil path {
  fill: none; stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  filter: url(#graphite);
  stroke-dasharray: 1; stroke-dashoffset: 0;
  transition: stroke-dashoffset .8s var(--ease);
}
/* до начала рисования штрих спрятан: скруглённый конец штриха нулевой длины виден точкой */
.js .pencil:not(.is-drawn) path { stroke-dashoffset: 1; visibility: hidden; }

.lead { margin-top: 16px; color: var(--ink-2); max-width: 34em; }

.dim { margin-top: 24px; max-width: 400px; }
.dim-val { display: flex; justify-content: center; }
.price {
  position: relative; display: inline-block; padding: 2px 18px 4px;
  font-weight: 800; font-size: 32px; line-height: 40px; --slnt: -12; --shrp: 60;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pencil-o { position: absolute; left: -26px; top: -15px; width: calc(100% + 52px); height: calc(100% + 30px); overflow: visible; }
.dim-line { position: relative; height: 16px; margin-top: 4px; }
.dim-line::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--ink); }
.dim-line .ext { position: absolute; top: -6px; bottom: 0; width: 1px; background: var(--ink); }
.dim-line .ext-l { left: 0; }
.dim-line .ext-r { right: 0; }
.dim-line .arw { position: absolute; top: 4.5px; width: 11px; height: 6px; background: var(--ink); }
.dim-line .arw-l { left: 1px; clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.dim-line .arw-r { right: 1px; clip-path: polygon(100% 50%, 0 0, 0 100%); }
.dim-note { display: flex; justify-content: flex-end; margin-top: 4px; }
.dim-note span {
  position: relative; padding: 0 4px 2px 22px; border-bottom: 1px solid var(--ink);
  color: var(--ink); font-size: 15px; line-height: 24px; font-weight: 600; --slnt: -12;
}
.dim-note span::before { content: ""; position: absolute; left: 0; bottom: -1px; width: 30px; height: 1px; background: var(--ink); transform-origin: 0 100%; transform: rotate(-40deg); }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; margin-top: 20px; padding: 0 22px;
  background: var(--ink); color: var(--paper); border: 2px solid var(--ink); border-radius: 2px;
  font-weight: 700; font-size: 17px; text-decoration: none;
  transition: background .2s var(--ease), transform .1s;
}
.btn:hover { background: #2c2e33; }
.btn:active { transform: translateY(1px); }
.alt { margin-top: 12px; font-size: 15px; line-height: 24px; color: var(--ink-2); text-align: center; }
.alt a { color: var(--ink); }
.byline { margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--ink); font-size: 15px; line-height: 24px; color: var(--ink-2); max-width: 34em; }
.byline b { color: var(--ink); font-weight: 700; }
.by-k { margin-right: 4px; font-size: 13px; color: var(--ink-3); --slnt: -12; }

/* ---------- взрыв-схема ---------- */
.drawing { margin-top: 16px; }
.iso { display: block; width: 100%; max-width: 600px; height: auto; margin: 0 auto; overflow: visible; }
.iso .ln { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.iso .ln-b { stroke-width: 3.2; }
.iso .ln-t { stroke-width: 1.4; }
.iso .pf { fill: var(--paper); }
.iso .f { fill: var(--ink); }
.iso .hat { fill: url(#hatch); }
.iso .drop { stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 12 3 2 3; transition: opacity .3s; }
.iso-call circle { fill: var(--ink); }
.iso-call path { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.iso-call text { font: 700 30px var(--font); fill: var(--ink); text-anchor: middle; --slnt: -12; --shrp: 60; }
.hatch-line { stroke: var(--ink); stroke-width: .8; stroke-opacity: .7; }
/* прорисовка тушью: линии по очереди (задержка --d на каждой линии), заливки и номера после */
.js .iso:not(.is-on) .ln { stroke-dasharray: 1; stroke-dashoffset: 1; visibility: hidden; }
.js .iso:not(.is-on) .f, .js .iso:not(.is-on) .hat, .js .iso:not(.is-on) .iso-call, .js .iso:not(.is-on) .drop { opacity: 0; }
.iso.is-on .ln { stroke-dasharray: 1; animation: ink-draw 1s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms); }
.iso.is-on .f, .iso.is-on .hat { animation: ink-fill .6s ease-out both; animation-delay: .9s; }
.iso.is-on .iso-call, .iso.is-on .drop { animation: ink-fill .5s ease-out both; animation-delay: 1.3s; }
@keyframes ink-draw { from { stroke-dashoffset: 1; visibility: hidden; } to { stroke-dashoffset: 0; visibility: visible; } }
@keyframes ink-fill { from { opacity: 0; } to { opacity: 1; } }
.drawing figcaption { margin: 16px auto 0; max-width: 30em; text-align: center; text-wrap: balance; font-size: 14px; line-height: 24px; color: var(--ink-2); --slnt: -12; }

/* ---------- спецификация ---------- */
.table-wrap { overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 2px solid var(--ink); font-size: 15px; line-height: 24px; }
.spec-table col.c-tick { width: 30px; }
.spec-table col.c-pos { width: 40px; }
.spec-table th {
  padding: 4px 8px; text-align: left; vertical-align: bottom;
  font-weight: 600; font-size: 13px; line-height: 16px; color: var(--ink-2); --slnt: -12;
  border-bottom: 2px solid var(--ink); border-right: 1px solid var(--ink);
}
.spec-table td { padding: 8px; vertical-align: top; border-right: 1px solid var(--ink); border-bottom: 1px solid rgb(22 23 26 / .4); }
.spec-table th:last-child, .spec-table td:last-child { border-right: 0; }
.spec-table td:nth-child(3) { font-weight: 600; }
.spec-table .note { display: none; color: var(--ink-2); }
.spec-table .m-note { display: block; margin-top: 2px; font-weight: 400; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.spec-table .pos { text-align: center; font-weight: 700; --slnt: -12; font-variant-numeric: tabular-nums; }
.spec-table .tick { padding: 8px 2px 0 4px; }
.spec-table .tick svg { display: block; width: 22px; height: 18px; overflow: visible; }
.spec-table .tick path { stroke: var(--ink-2); stroke-width: 2; }
.spec-table .group td { padding-top: 12px; font-weight: 700; --slnt: -12; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; color: var(--ink); }
.spec-table tfoot td { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 700; padding-block: 12px; }
.total-k { color: var(--ink-2); font-weight: 600; --slnt: -12; margin-right: 6px; }
.total { font-size: 20px; --slnt: -12; --shrp: 60; font-variant-numeric: tabular-nums; margin-right: 8px; white-space: nowrap; }
.total-n { color: var(--red-text); --slnt: -12; white-space: nowrap; }
.total-d { display: block; margin-top: 4px; font-weight: 400; font-size: 14px; line-height: 24px; color: var(--ink-2); }

/* ---------- ролик ---------- */
.film-lead { color: var(--ink-2); max-width: 40em; }
.film-box { margin-top: 32px; }
.film-frame { position: relative; }
.film-frame video { display: block; width: 100%; height: auto; border: 2px solid var(--ink); background: var(--paper); }
/* своя кнопка запуска (ставит скрипт): вся заставка нажимается, а ярлык стоит под подзаголовком заставки,
   как кнопка под заголовком; полоса кнопок браузера появляется после запуска. Места взяты из заставок */
.film-play { position: absolute; inset: 0; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.film-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px;
  border: 2px solid var(--ink); border-radius: 2px; background: var(--paper);
  font-weight: 700; font-size: 16px; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.film-chip svg { width: 18px; height: 18px; fill: currentColor; }
.film-h .film-chip { left: 6.9%; top: 63%; }
.film-v .film-chip { left: 9.6%; top: 42%; min-height: 44px; font-size: 15px; }
.film-play:hover .film-chip { background: var(--ink); color: var(--paper); }
.film-frame.is-playing .film-play { display: none; }
.film-h { display: none !important; }
.film-v { max-width: 420px; margin: 0 auto; }

/* ---------- попробуйте: вы владелец ---------- */
.demo-head p { color: var(--ink-2); max-width: 40em; }
.nojs-note { display: none; }
html:not(.js) .nojs-note { display: inline; }
.demo-grid { display: grid; gap: 32px; margin-top: 32px; }
.dev .view-lbl { margin-bottom: 8px; font-size: 14px; line-height: 16px; color: var(--ink-2); --slnt: -12; }
.dev .view-lbl span { font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; margin-right: 6px; }
.dev-body {
  position: relative; min-height: 256px; padding: 34px 16px 18px;
  border: 2px solid var(--ink); border-radius: 26px; background: var(--paper);
}
.dev-body::before { content: ""; position: absolute; top: 13px; left: 50%; width: 46px; height: 5px; border-radius: 3px; background: var(--ink); transform: translateX(-50%); }
.adm-h { font-weight: 800; font-size: 20px; line-height: 24px; --shrp: 40; margin-bottom: 16px; }
.adm-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-block: 1px solid rgb(22 23 26 / .4); }
.adm-name { font-weight: 600; }
.stepper { display: flex; align-items: center; gap: 4px; }
.step {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 2px solid var(--ink); border-radius: 2px; background: var(--paper); cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.step:hover { background: var(--ink); color: var(--paper); }
.step .ico { width: 18px; height: 18px; stroke-width: 2.2; }
.adm-price { min-width: 64px; text-align: center; font-weight: 800; font-size: 19px; --slnt: -12; --shrp: 60; font-variant-numeric: tabular-nums; }
.adm-toggle { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 15px; line-height: 20px; cursor: pointer; }
.adm-toggle input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 2px solid var(--ink); border-radius: 2px; background: var(--paper); display: grid; place-items: center; cursor: pointer; }
.adm-toggle input:checked::after { content: ""; width: 11px; height: 6px; border: solid var(--ink); border-width: 0 0 2.4px 2.4px; transform: translateY(-2px) rotate(-45deg); }
.adm-save {
  width: 100%; min-height: 48px; margin-top: 16px; border: 2px solid var(--ink); border-radius: 2px;
  background: var(--ink); color: var(--paper); font-weight: 700; cursor: pointer;
  transition: background .2s var(--ease), opacity .2s;
}
.adm-save:disabled { background: var(--paper); color: var(--ink-3); border-color: rgb(22 23 26 / .35); cursor: default; }
.adm-save:not(:disabled):hover { background: #2c2e33; }
.adm-status { min-height: 24px; margin-top: 8px; font-size: 14px; line-height: 24px; color: var(--ink-2); --slnt: -12; }

.site-prev { display: grid; align-content: start; gap: 4px; }
.sp-promo { margin: -6px -4px 8px; padding: 6px 10px; background: var(--ink); color: var(--paper); font-size: 14px; line-height: 20px; font-weight: 600; border-radius: 2px; }
.sp-name { font-weight: 800; font-size: 20px; line-height: 24px; --shrp: 40; margin-bottom: 8px; }
.sp-row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid rgb(22 23 26 / .4); font-size: 15px; }
.sp-price { position: relative; white-space: nowrap; font-weight: 600; }
.sp-num { font-weight: 800; font-variant-numeric: tabular-nums; }
.pencil-sp { position: absolute; left: -16px; top: -11px; width: calc(100% + 32px); height: calc(100% + 22px); overflow: visible; }
.pencil-sp path { stroke-width: 2.4; }
.sp-book {
  margin-top: 14px; min-height: 48px; border: 2px solid var(--ink); border-radius: 2px;
  background: var(--paper); font-weight: 700; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.sp-book:hover { background: var(--ink); color: var(--paper); }

.tg-chat { display: grid; align-content: end; gap: 10px; }
.tg-empty { align-self: center; justify-self: center; margin: auto 0; color: var(--ink-3); font-size: 15px; --slnt: -12; text-align: center; }
.tg-msg {
  justify-self: start; max-width: 92%; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: 14px 14px 14px 3px;
  background: #fff; font-size: 14px; line-height: 20px;
  animation: msg-in .5s var(--ease) both;
}
.tg-msg .tg-from { font-size: 12px; line-height: 16px; color: var(--ink-3); --slnt: -12; margin-bottom: 2px; }
.tg-msg b { font-weight: 800; }
.nw { white-space: nowrap; }
.tg-msg .tg-time { font-size: 12px; line-height: 16px; color: var(--ink-3); text-align: right; margin-top: 2px; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- схема работы по ГОСТ 19.701 ---------- */
.flow-text p { color: var(--ink-2); max-width: 34em; }
.flow { list-style: none; margin-top: 32px; padding: 0; display: grid; justify-items: center; }
.fc { position: relative; display: block; max-width: 320px; padding: 10px 14px; background: var(--paper); border: 2px solid var(--ink); text-align: center; font-size: 15px; line-height: 24px; }
.fc-term { border-radius: 999px; padding: 8px 20px; font-weight: 600; }
.fc-dec { width: 184px; height: 96px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.dec-shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dec-shape path { fill: var(--paper); stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.fc-dec span { position: relative; font-weight: 700; --slnt: -12; }
.flow > .fc + .fc, .flow > .fc-fork { margin-top: 40px; }
.flow > .fc + .fc::after, .branch > .fc-proc::after, .branch > .pay::after, .branch > .pay + .fc::after, .branch-no > .fc-term::after {
  content: ""; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 40px; transform: translateX(-50%);
  background: linear-gradient(var(--ink), var(--ink)) top / 2px calc(100% - 8px) no-repeat;
}
.flow > .fc + .fc::before, .branch > .fc-proc::before, .branch > .pay::before, .branch > .pay + .fc::before, .branch-no > .fc-term::before {
  content: ""; position: absolute; left: 50%; bottom: calc(100% + 2px); width: 10px; height: 10px; transform: translateX(-50%);
  background: var(--ink); clip-path: polygon(50% 100%, 0 0, 100% 0); z-index: 1;
}
.fc-fork { list-style: none; position: relative; width: 100%; max-width: 560px; }
.fc-fork::before { content: ""; position: absolute; left: 50%; top: -40px; width: 2px; height: 40px; background: var(--ink); transform: translateX(-50%); }
.branches { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; position: relative; }
.branches::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 2px; background: var(--ink); }
.branch { position: relative; display: grid; justify-items: center; align-content: start; }
.branch > .fc-proc, .branch > .pay, .branch > .fc-term { margin-top: 40px; }
.branch > .fc { width: 100%; }
.branch .fc-term { width: auto; }
.fork-lbl { position: absolute; top: 8px; left: calc(50% + 8px); font-size: 14px; line-height: 16px; color: var(--ink-2); --slnt: -12; }
.pay { position: relative; display: block; padding: 6px 8px; text-align: center; color: var(--red-text); font-size: 15px; line-height: 20px; --slnt: -12; }
.pay b { font-weight: 800; }
.pencil-pay { position: absolute; left: -14px; top: -11px; width: calc(100% + 28px); height: calc(100% + 22px); overflow: visible; }

/* ---------- кто делает ---------- */
.who-main { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; align-items: center; }
.who-main h2 { margin: 0; }
.who-main p { grid-column: 1 / -1; margin-top: 24px; color: var(--ink-2); max-width: 36em; }
.who-main .ref { grid-column: 1 / -1; }
.mono { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); display: grid; place-items: center; font-weight: 800; font-size: 24px; --slnt: -12; --shrp: 80; }
.ref {
  display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center;
  margin-top: 24px; max-width: 460px; padding: 12px 14px;
  border: 2px solid var(--ink); background: var(--paper); text-decoration: none;
  transition: background .2s var(--ease);
}
.ref-k { grid-column: 1; font-size: 13px; line-height: 16px; color: var(--ink-2); --slnt: -12; }
.ref-v { grid-column: 1; font-weight: 800; font-size: 19px; line-height: 24px; --shrp: 40; overflow-wrap: anywhere; }
.ref-d { grid-column: 1; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.ref .ico { grid-column: 2; grid-row: 1 / span 3; width: 24px; height: 24px; transition: transform .2s var(--ease); }
.ref:hover { background: #fff; }
.ref:hover .ico { transform: translateX(4px); }
.ai { margin-top: 40px; padding-top: 32px; border-top: 1px dashed rgb(22 23 26 / .55); }
.dash-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.dash-list li { position: relative; padding-left: 24px; max-width: 36em; }
.dash-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 12px; height: 2px; background: var(--ink); }
.note { margin-top: 16px; color: var(--ink-2); font-size: 15px; --slnt: -12; }

/* ---------- штамп и корешки ---------- */
.close-lead { color: var(--ink-2); max-width: 36em; }
.stamp { margin-top: 32px; display: grid; grid-template-areas: "people" "name" "facts" "org"; background: var(--paper); border: 2px solid var(--ink); }
.st-people { grid-area: people; display: grid; grid-template-columns: 76px 1fr; }
.st-k { padding: 4px 8px; font-size: 13px; line-height: 24px; color: var(--ink-2); --slnt: -12; }
.st-v { padding: 4px 8px; font-size: 15px; line-height: 24px; font-weight: 600; }
.st-people .st-k { border-right: 1px solid var(--ink); }
.st-people > span:nth-child(n+3) { border-top: 1px solid var(--ink); }
.st-you { color: var(--red-text); font-weight: 800; --slnt: -12; }
.st-name { grid-area: name; display: grid; place-items: center; padding: 16px 12px; border-top: 2px solid var(--ink); font-weight: 800; font-size: 22px; line-height: 24px; text-align: center; --shrp: 40; }
.st-facts { grid-area: facts; display: grid; grid-template-columns: 1.3fr 1.3fr .6fr .7fr; border-top: 2px solid var(--ink); }
.st-facts > span { border-right: 1px solid var(--ink); }
.st-facts > span:nth-child(4n) { border-right: 0; }
.st-facts > span:nth-child(n+5) { border-top: 1px solid var(--ink); }
.st-facts .st-v { font-variant-numeric: tabular-nums; }
.st-org { grid-area: org; padding: 12px; border-top: 2px solid var(--ink); text-align: center; font-weight: 800; font-size: 20px; line-height: 24px; letter-spacing: .08em; --shrp: 100; }

.cutline { display: flex; align-items: center; gap: 8px; margin-top: 40px; color: var(--ink-3); font-size: 13px; line-height: 16px; --slnt: -12; }
.cutline::before { content: ""; order: 1; flex: 1; border-top: 1.5px dashed var(--ink); }
.cutline .ico { width: 18px; height: 18px; color: var(--ink); stroke-width: 1.6; order: 0; }
.cutline span { order: 2; }
.stubs { display: grid; margin-top: 8px; }
.stub {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center;
  min-height: 72px; padding: 12px 14px;
  border: 2px solid var(--ink); border-top: 1.5px dashed var(--ink);
  background: var(--paper); text-decoration: none;
  transform-origin: 50% 0; transition: transform .25s var(--ease), background .2s var(--ease);
}
.stub .ico { grid-row: span 2; width: 22px; height: 22px; }
.stub-k { font-size: 13px; line-height: 16px; color: var(--ink-2); --slnt: -12; }
.stub-v { font-weight: 700; font-size: 16px; line-height: 24px; overflow-wrap: anywhere; }
.stub:hover { transform: translateY(3px) rotate(-.7deg); background: #fff; }
.stub:hover .stub-v { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-block: 12px; border-top: 2px solid var(--ink); font-size: 13px; line-height: 16px; color: var(--ink-2); --slnt: -12; background: var(--paper); }

/* ---------- планшет ---------- */
@media (min-width: 720px) {
  :root { --pad: 32px; }
  .sheet { margin: 12px 12px 12px 36px; min-height: calc(100vh - 24px); }
  .strip { grid-template-columns: auto 1fr auto; }
  .brand, .tagline { grid-row: 1; }
  .tagline { grid-column: 2; font-size: 14px; }
  .strip-btn { grid-row: 1; grid-column: 3; }
  main > section { padding-block: 64px 72px; }
  h2 { font-size: 36px; line-height: 40px; margin-bottom: 32px; }
  .btn { display: inline-flex; min-width: 340px; }
  .alt { text-align: left; }
  .spec-table .note { display: table-cell; }
  .spec-table .m-note { display: none; }
  .spec-table col.c-name { width: 40%; }
  .demo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .film-h { display: block !important; max-width: 1040px; }
  .film-v { display: none !important; }
  .stubs { grid-template-columns: 1fr 1fr; max-width: 680px; }
  .stub + .stub { border-left: 1.5px dashed var(--ink); }
  .stub:first-child { border-right: 0; }
  .iso .ln { stroke-width: 1.5; }
  .iso .ln-b { stroke-width: 2.4; }
  .iso .ln-t { stroke-width: 1; }
  .iso-call text { font-size: 22px; }
  .iso-call path { stroke-width: 1.2; }
}

/* ---------- компьютер ---------- */
@media (min-width: 960px) {
  :root { --pad: 56px; }
  .sheet { margin: 16px 16px 16px 48px; }
  .hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 40px; align-items: center; padding-block: 48px 64px; }
  h1 { font-size: clamp(48px, 4.6vw, 66px); line-height: 1.1; }
  .lead { font-size: 19px; line-height: 32px; margin-top: 24px; }
  .drawing { margin-top: 0; }
  .spec-table { font-size: 16px; }
  .flow-sec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 48px; align-items: start; }
  .flow { margin-top: 0; }
  .who { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; align-items: start; }
  .ai { margin-top: 0; padding-top: 0; padding-left: 40px; border-top: 0; border-left: 1px dashed rgb(22 23 26 / .55); }
  h2 { font-size: 44px; line-height: 48px; }
  .stamp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "people name facts" "people name org"; }
  .st-name { border-top: 0; border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); font-size: 24px; line-height: 32px; }
  .st-facts { border-top: 0; }
  .st-org { display: grid; place-items: center; border-top: 2px solid var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  .pencil path, .stub, .btn, .strip-btn, .step, .sp-book, .adm-save, .ref, .ref .ico, .film-chip { transition: none; }
  .iso.is-on .ln, .iso.is-on .f, .iso.is-on .hat, .iso.is-on .iso-call, .iso.is-on .drop, .tg-msg { animation: none; }
}
