/* Сайт студии «СОКОЛ ЦПС». Мир «Чертёж»: ватман, оранжевая миллиметровка внутри рамки листа, тушь,
   красный карандаш проверяющего. Текст на базовой сетке 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; }

/* «цены» роняются (Антон, 08.10.2026): буквы по одной падают на строчку вниз и гаснут, потом встают на место.
   Падение с ускорением, как у брошенной вещи, возврат мягкий. Без скрипта и при reduced-motion слово стоит. */
.drop { display: inline-block; white-space: nowrap; }
.drop i { display: inline-block; font-style: normal; transform-origin: 50% 85%; }
.drop i:nth-child(1) { --k: 0; --r: -8deg; }
.drop i:nth-child(2) { --k: 1; --r: 6deg; }
.drop i:nth-child(3) { --k: 2; --r: -5deg; }
.drop i:nth-child(4) { --k: 3; --r: 9deg; }
@media (prefers-reduced-motion: no-preference) {
  .js .drop i { animation: drop 5.6s calc(1.4s + var(--k) * .12s) infinite both; }
}
@keyframes drop {
  0% { transform: none; opacity: 1; animation-timing-function: cubic-bezier(.5, 0, .9, .6); }
  9% { transform: translateY(.42em) rotate(calc(var(--r) * .5)); opacity: .38; animation-timing-function: linear; }
  15% { transform: translateY(1.1em) rotate(var(--r)); opacity: 0; }
  16% { transform: translateY(-.32em); opacity: 0; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
  30%, 100% { transform: none; opacity: 1; }
}

/* красный карандаш: длина пути 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; }

/* короткий прейскурант: что и сколько, двумя строками */
.plist { margin: 24px 0 0; max-width: 440px; border-block: 2px solid var(--ink); }
.pl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; padding: 12px 0; }
.pl-row + .pl-row { border-top: 1px solid var(--ink); }
.plist dt { font-size: 15px; line-height: 20px; font-weight: 600; }
.plist dd { margin: 0; text-align: right; white-space: nowrap; font-weight: 800; font-size: 22px; line-height: 28px; --slnt: -12; --shrp: 60; font-variant-numeric: tabular-nums; }
.plist small, .o-price small { font-size: 14px; font-weight: 600; color: var(--ink-2); }
/* «около» над ценой, чтобы колонка цены не теснила название */
.plist small { display: block; line-height: 16px; }
.price { position: relative; display: inline-block; padding: 0 4px; }
.pencil-o { position: absolute; left: -18px; top: -11px; width: calc(100% + 36px); height: calc(100% + 22px); overflow: visible; }
.pl-note { margin-top: 10px; font-size: 15px; line-height: 24px; font-weight: 600; --slnt: -12; max-width: 30em; }

.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; }

/* настоящие экраны в устройствах тушью: корпус телефона залит тушью, окно браузера в рамке */
.hero-vis { position: relative; margin: 32px 0 0; }
.win { display: none; }
.phone { position: relative; padding: 8px; border-radius: 44px; background: var(--ink); }
.phone::after { content: ""; position: absolute; top: 17px; left: 50%; width: 28%; height: 21px; border-radius: 11px; background: #000; transform: translateX(-50%); z-index: 6; }
.phone-scr { position: relative; overflow: hidden; border-radius: 36px; background: #fff; aspect-ratio: 390 / 844; }
.hero-phone { width: min(290px, 82%); margin: 0 auto; }
.hero-phone img { display: block; width: 100%; height: auto; }
/* строка состояния цвета верхней полосы сайта: вырез телефона лежит в ней, как на настоящем телефоне */
.hero-phone .phone-scr { padding-top: 13.7%; background: #b0955a; }
/* уведомление Телеграма поверх сайта: копия настоящего, поэтому со своей тенью и системным шрифтом */
.push {
  position: absolute; left: 6px; right: 6px; top: 44px; z-index: 5;
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: 9px; row-gap: 1px; align-items: baseline;
  padding: 10px 11px 11px; border-radius: 18px; background: rgb(250 250 250 / .97); color: #111;
  font: 400 12px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 8px 22px rgb(0 0 0 / .3);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.js .push:not(.is-in) { opacity: 0; transform: translateY(-14px) scale(.97); }
.push-ico { grid-row: 1 / span 3; align-self: start; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(#3cb2e6, #1f95c9); display: grid; place-items: center; }
.push-ico svg { width: 24px; height: 24px; fill: #fff; }
.push-app { font-size: 11px; color: #6b6b70; text-transform: uppercase; letter-spacing: .04em; }
.push-time { font-size: 11px; color: #6b6b70; }
.push-t { grid-column: 2 / -1; font-weight: 700; font-size: 13px; }
.push-b { grid-column: 2 / -1; font-size: 13px; }
.call { display: none; }
.hero-vis 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; }

/* ---------- что делаю и сколько стоит ---------- */
.o-lead { margin: -8px 0 24px; max-width: 40em; color: var(--ink-2); }
.o-lead b { color: var(--ink); font-weight: 700; }
.olist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.o-row { display: grid; padding: 20px 0; border-bottom: 1px solid var(--ink); }
.o-row:last-child { border-bottom-width: 2px; }
.o-name { margin: 0; font-size: 20px; line-height: 24px; }
.o-desc { margin-top: 8px; color: var(--ink-2); max-width: 40em; }
.o-price { margin-top: 12px; font-weight: 800; font-size: 24px; line-height: 32px; --slnt: -12; --shrp: 60; font-variant-numeric: tabular-nums; }
.o-price-t { font-size: 17px; line-height: 24px; font-weight: 700; }

/* ---------- что входит ---------- */
.checks { list-style: none; margin: 0; padding: 0; max-width: 900px; border-top: 2px solid var(--ink); }
.checks li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 8px; padding: 12px 0; border-bottom: 1px solid rgb(22 23 26 / .4); }
.checks .tick { grid-row: span 2; padding-top: 2px; }
.checks .tick svg { display: block; width: 22px; height: 18px; overflow: visible; }
.checks .tick path { stroke: var(--ink-2); stroke-width: 2; }
.checks b { font-weight: 700; }
.checks li > span:last-child { color: var(--ink-2); font-size: 15px; line-height: 24px; }
.total-line { margin-top: 16px; font-weight: 700; }
.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 { margin-top: 4px; 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-tabs { display: none; }
.js .demo-tabs { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 420px; margin: 24px auto 0; border: 2px solid var(--ink); border-radius: 2px; background: var(--paper); }
.demo-tabs button { position: relative; min-height: 44px; padding: 0 6px; border: 0; background: none; font-weight: 700; font-size: 15px; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.demo-tabs button + button { border-left: 1px solid var(--ink); }
.demo-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tab-dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.demo-phones { display: grid; gap: 32px; justify-items: center; margin-top: 24px; }
.dp { margin: 0; width: min(320px, 100%); }
.js .dp:not(.is-active) { display: none; }
.dp-lbl { margin-bottom: 10px; text-align: center; font-size: 15px; line-height: 24px; color: var(--ink-2); --slnt: -12; }
.js .dp-lbl { display: none; }
.demo .phone-scr { aspect-ratio: 390 / 760; display: flex; flex-direction: column; }

/* админка: копия настоящей (белые панели, системный шрифт, как у админки фабрики) */
.am { background: #f4f3f0; color: #17171a; font: 400 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.am-top { display: flex; align-items: center; gap: 6px; padding: 42px 12px 10px; background: #fff; border-bottom: 1px solid #dcdad5; }
.am-top b { flex: 1; font-size: 16px; font-weight: 650; }
.am-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.am-site { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border: 1px solid #c9c6bf; border-radius: 999px; font-size: 13px; }
.am-site svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.am-body { flex: 1; display: grid; align-content: start; gap: 10px; padding: 12px; overflow: hidden; }
.am-flash { display: none; padding: 10px 12px; border-radius: 12px; background: #e5f2e8; color: #1d6b3a; font-weight: 600; }
.am-flash.is-on { display: block; animation: msg-in .4s var(--ease) both; }
.am-hint { color: #4a4a50; font-size: 13px; line-height: 1.4; }
.am-card { padding: 12px; border: 1px solid #dcdad5; border-radius: 12px; background: #fff; }
.am-card-h { margin-bottom: 8px; font-weight: 650; font-size: 15px; }
.am-lbl { margin-bottom: 4px; font-size: 13px; color: #4a4a50; }
.am-num { display: grid; grid-template-columns: 46px 1fr 46px; align-items: stretch; height: 46px; border: 1px solid #c9c6bf; border-radius: 10px; overflow: hidden; }
.am-num .step { display: grid; place-items: center; padding: 0; border: 0; background: #f4f3f0; color: #17171a; cursor: pointer; transition: background .15s var(--ease); }
.am-num .step svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.am-num .step:hover { background: #e9e7e2; }
.am-num .step:focus-visible { outline: 2px solid #2a5bd7; outline-offset: -2px; }
.adm-price { display: grid; place-items: center; font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.am-sw { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; line-height: 1.35; cursor: pointer; }
.am-sw input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.am-sw-ui { position: relative; flex: none; width: 40px; height: 24px; border-radius: 12px; background: #c9c6bf; transition: background .2s var(--ease); }
.am-sw-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .25); transition: transform .2s var(--ease); }
.am-sw input:checked + .am-sw-ui { background: #17171a; }
.am-sw input:checked + .am-sw-ui::after { transform: translateX(16px); }
.am-sw input:focus-visible + .am-sw-ui { outline: 2px solid #2a5bd7; outline-offset: 2px; }
.am-row { display: flex; justify-content: space-between; font-size: 13px; color: #4a4a50; }
.am-foot { padding: 10px 12px 18px; border-top: 1px solid #dcdad5; background: #f4f3f0; }
.adm-save { width: 100%; min-height: 46px; border: 0; border-radius: 12px; background: #17171a; color: #fff; font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; transition: background .2s var(--ease); }
.adm-save:not(:disabled):hover { background: #34343a; }
.adm-save:disabled { background: #c9c6bf; cursor: default; }
.adm-save:focus-visible { outline: 2px solid #2a5bd7; outline-offset: 2px; }

/* сайт фирмы: копия темы route (сажа, бронза, Geologica), раздел цен */
.rs { background: #f2f1ee; color: #141414; }
.rs-top { display: flex; align-items: center; justify-content: space-between; padding: 42px 14px 12px; background: #141414; color: #f2f1ee; }
.rs-logo { font-weight: 800; font-size: 15px; letter-spacing: .04em; border-bottom: 1.5px solid currentColor; --shrp: 70; }
.rs-call { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgb(242 241 238 / .4); }
.rs-call svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.rs-promo { padding: 8px 14px; background: #b0955a; color: #141414; font-size: 13px; line-height: 18px; font-weight: 700; text-align: center; }
.rs-promo:not([hidden]) { animation: msg-in .4s var(--ease) both; }
.rs-sec { flex: 1; padding: 16px 14px 8px; overflow: hidden; }
.rs-h { margin: 0; font-weight: 800; font-size: 26px; line-height: 1.05; text-transform: uppercase; --shrp: 70; }
.rs-sub { margin-top: 6px; font-size: 13px; line-height: 18px; color: #54504a; }
.rs-tier { margin-top: 14px; padding-top: 12px; border-top: 1px solid #d6d1c8; }
.rs-tn { font-weight: 800; font-size: 16px; line-height: 20px; text-transform: uppercase; --shrp: 70; }
.rs-tp { position: relative; display: inline-block; margin-top: 2px; font-size: 24px; line-height: 30px; font-variant-numeric: tabular-nums; }
.rs-tp b { font-weight: 800; }
.rs-tier ul { display: grid; gap: 3px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; line-height: 18px; color: #54504a; }
.rs-tier li { position: relative; padding-left: 14px; }
.rs-tier li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 2px; background: #b0955a; }
.pencil-sp { position: absolute; left: -12px; top: -8px; width: calc(100% + 24px); height: calc(100% + 16px); overflow: visible; }
.pencil-sp path { stroke-width: 2.4; }
.rs-dock { padding: 10px 14px 18px; background: #141414; }
.sp-book { width: 100%; min-height: 46px; border: 0; border-radius: 6px; background: #b0955a; color: #141414; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s var(--ease); }
.sp-book:hover { background: #c8ad74; }
.sp-book:focus-visible { outline: 2px solid #f2f1ee; outline-offset: 2px; }

/* Телеграм: копия чата (шапка, обои, пузыри, строка ввода) */
.tg { color: #000; font: 400 14px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.tg-top { display: flex; align-items: center; gap: 8px; padding: 42px 10px 8px; background: #f7f7f7; border-bottom: 1px solid #d9d9d9; }
.tg-back { width: 22px; height: 22px; fill: none; stroke: #2481cc; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tg-ava { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(#ffa95a, #f07c38); color: #fff; font-weight: 700; font-size: 15px; }
.tg-who { display: grid; line-height: 1.2; }
.tg-who b { font-weight: 600; font-size: 14px; }
.tg-who small { font-size: 12px; color: #6c6c70; }
.tg-wall {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 10px 8px; overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, #dfe7bd 0, transparent 55%),
    radial-gradient(circle at 82% 30%, #a7cf9f 0, transparent 50%),
    radial-gradient(circle at 30% 85%, #c9dda5 0, transparent 55%),
    radial-gradient(circle at 85% 88%, #8fc196 0, transparent 50%),
    #b7d3a4;
}
.tg-pill { align-self: center; padding: 3px 10px; border-radius: 12px; background: rgb(40 70 40 / .32); color: #fff; font-size: 12px; line-height: 16px; font-weight: 600; text-align: center; }
.tg-msg { align-self: flex-start; max-width: 88%; padding: 6px 9px 5px; border-radius: 14px 14px 14px 4px; background: #fff; box-shadow: 0 1px 1px rgb(0 0 0 / .14); font-size: 13px; line-height: 1.38; animation: msg-in .5s var(--ease) both; }
.tg-msg b { font-weight: 600; }
.tg-time { float: right; margin: 6px 0 -2px 10px; font-size: 11px; color: #6c7074; }
.nw { white-space: nowrap; }
.tg-bar { display: flex; align-items: center; gap: 8px; padding: 7px 10px 16px; border-top: 1px solid #d9d9d9; background: #f7f7f7; }
.tg-bar svg { width: 22px; height: 22px; fill: none; stroke: #8a8a8e; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tg-input { flex: 1; height: 32px; padding: 0 12px; border: 1px solid #d9d9d9; border-radius: 16px; background: #fff; color: #6c7074; font-size: 14px; line-height: 30px; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- схема работы ---------- */
.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; }

/* ---------- частые вопросы ---------- */
.qa { max-width: 900px; border-block: 2px solid var(--ink); }
.qa details + details { border-top: 1px solid var(--ink); }
.qa summary { position: relative; display: block; padding: 16px 48px 16px 0; font-weight: 700; font-size: 17px; line-height: 24px; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
/* плюс, нарисованный двумя линиями тушью; у открытого вопроса остаётся минус */
.qa summary::before, .qa summary::after { content: ""; position: absolute; right: 10px; top: 27px; width: 16px; height: 2px; background: var(--ink); transition: transform .2s var(--ease); }
.qa summary::after { transform: rotate(90deg); }
.qa details[open] summary::after { transform: rotate(0deg); }
.qa summary:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.qa details p { padding: 0 48px 18px 0; color: var(--ink-2); max-width: 40em; }

/* ---------- кто делает ---------- */
.who-p { color: var(--ink-2); max-width: 36em; }
.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); }

/* ---------- квитанция и корешки ---------- */
.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: 112px 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(--ink); 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: 1fr 1fr; border-top: 2px solid var(--ink); }
.st-facts > span { border-right: 1px solid var(--ink); }
.st-facts > span:nth-child(2n) { border-right: 0; }
.st-facts > span:nth-child(n+3) { 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; }
  .o-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) minmax(0, 3fr); column-gap: 24px; align-items: baseline; }
  .o-desc { margin-top: 0; }
  .o-price { margin-top: 0; text-align: right; }
  .checks li { grid-template-columns: 30px minmax(0, 5fr) minmax(0, 7fr); column-gap: 16px; }
  .checks .tick { grid-row: auto; }
  .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; }
}

/* ---------- компьютер ---------- */
@media (min-width: 960px) {
  :root { --pad: 56px; }
  .sheet { margin: 16px 16px 16px 48px; }
  h1 { font-size: clamp(48px, 4.6vw, 66px); line-height: 1.1; }
  .lead { font-size: 19px; line-height: 32px; margin-top: 24px; }
  .plist dt { font-size: 16px; }
  .plist dd { font-size: 24px; }
  .flow-sec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 48px; align-items: start; }
  .flow { margin-top: 0; }
  h2 { font-size: 44px; line-height: 48px; }
  .js .demo-tabs { display: none; }
  .demo-phones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; margin-top: 40px; }
  .js .dp:not(.is-active), .js .dp-lbl { display: block; }
  .dp { width: 100%; max-width: 300px; }
  .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); }
}

/* ---------- окно браузера и телефон с заявкой: с 720 px; до 1200 px под текстом, дальше справа ---------- */
@media (min-width: 720px) {
  .hero-vis { max-width: 640px; margin: 40px auto 0; padding: 48px 64px 56px 0; }
  .win { display: block; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: #141414; }
  .win-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-bottom: 2px solid var(--ink); background: var(--paper); }
  .win-bar i { width: 9px; height: 9px; border: 1.5px solid var(--ink); border-radius: 50%; }
  .win-url { margin-left: 10px; padding: 0 12px; min-width: 160px; border: 1px solid var(--ink); border-radius: 9px; font-size: 11px; line-height: 16px; color: var(--ink-2); }
  .win img { display: block; width: 100%; height: auto; }
  .hero-vis { min-height: 470px; }
  .hero-phone { position: absolute; right: 0; top: 46px; width: 196px; margin: 0; padding: 6px; border-radius: 32px; }
  /* экран телефона короче настоящего: виден верх сайта, а телефон не выше окна браузера и не закрывает подписи */
  .hero-phone .phone-scr { aspect-ratio: 390 / 690; }
  .hero-phone::after { top: 12px; height: 15px; }
  .hero-phone .phone-scr { border-radius: 26px; }
  .hero-phone .push { top: 32px; left: 4px; right: 4px; padding: 7px 8px 8px; column-gap: 7px; border-radius: 13px; }
  .hero-phone .push-ico { width: 26px; height: 26px; border-radius: 7px; }
  .hero-phone .push-ico svg { width: 18px; height: 18px; }
  .hero-phone .push-app, .hero-phone .push-time { font-size: 9px; }
  .hero-phone .push-t, .hero-phone .push-b { font-size: 10.5px; }
  .call { display: block; position: absolute; margin: 0; font-size: 14px; line-height: 20px; color: var(--ink); font-weight: 600; --slnt: -12; }
  .call::after { content: ""; position: absolute; width: 1px; background: var(--ink); }
  .call-site { left: 0; top: 0; }
  .call-site::after { left: 24px; top: 22px; height: 24px; }
  .call-push { right: 0; top: 0; width: 196px; text-align: center; }
  .call-push::after { left: 50%; top: 44px; height: 36px; }
  .call-push::before { content: ""; position: absolute; left: calc(50% - 3px); top: 77px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); z-index: 7; }
  .call-push { z-index: 7; }
  .hero-vis figcaption { position: absolute; left: 0; bottom: 8px; margin: 0; max-width: calc(100% - 230px); text-align: left; }
  .cap-m { display: none; }
}

@media (min-width: 1200px) {
  .hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: 48px; align-items: center; padding-block: 48px 64px; }
  .hero-vis { max-width: none; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pencil path, .stub, .btn, .strip-btn, .step, .sp-book, .adm-save, .ref, .ref .ico, .film-chip, .push, .demo-tabs button, .am-sw-ui, .am-sw-ui::after, .qa summary::before, .qa summary::after { transition: none; }
  .tg-msg, .am-flash.is-on, .rs-promo:not([hidden]) { animation: none; }
}
