/* Шрифт Onest с нашего сайта (переменный, 300–700) и подогнанный запасной шрифт без скачков вёрстки */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("assets/fonts/onest-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("assets/fonts/onest-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20BC, U+20BE-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("assets/fonts/onest-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("assets/fonts/onest-ruble.woff2") format("woff2"); unicode-range: U+20BD; }
@font-face { font-family: "Onest Fallback"; src: local("Arial"), local("Liberation Sans"), local("Helvetica"), local("Roboto"); size-adjust: 102%; ascent-override: 95%; descent-override: 30%; line-gap-override: 0%; }

:root {
  --paper: #ffffff;
  --mist: #f1f3f6;
  --ink: #15171a;
  --graphite: #5b616b;
  --line: #dde1e7;
  --accent: #2747f5;
  --accent-soft: #e8ecfe;
  --control-line: #8a929e;

  --font: "Onest", "Onest Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 7vw, 96px);
  --r-control: 8px;
  --r-card: 20px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.75rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
h3 { font-size: 1.15rem; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--graphite); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--accent); color: #fff;
  border: 1.5px solid var(--accent); border-radius: var(--r-control);
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: #1b37d6; border-color: #1b37d6; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper); border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 15px; white-space: nowrap; }
.btn-wide { width: 100%; }

/* Шапка */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; margin: 0; text-decoration: none; }
.logo img { display: block; width: 34px; height: auto; }
.wordmark { font-size: 17px; font-weight: 300; letter-spacing: .08em; white-space: nowrap; color: var(--ink); }
.wordmark b { font-weight: 700; }
.footer-brand { display: grid; gap: 6px; }
.byline { margin-left: 44px; font-size: 11px; letter-spacing: .24em; color: var(--graphite); }
.footer-brand .muted { margin-top: 10px; }
.footer-req { font-size: 13px; color: var(--graphite); }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--graphite); }
.nav a:hover { color: var(--ink); }
@media (max-width: 1200px) { .nav { gap: 18px; font-size: 14px; } }
@media (max-width: 1080px) { .nav a[href="#included"], .nav a[href="#faq"] { display: none; } }

/* Первый экран */
.hero { padding: clamp(40px, 6vw, 80px) 0 var(--section); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.lead { margin-top: 28px; max-width: 34em; font-size: 1.125rem; color: var(--graphite); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 24px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.4; color: var(--graphite); }
.hero-facts li { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hero-facts strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.fact-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }

/* Витрина: чертёж превращается в готовый лендинг под выбранную нишу */
.showcase { position: relative; display: grid; gap: 22px; min-width: 0; }
.stage { position: relative; padding-bottom: 42px; }

.mock {
  /* Тема макета задаётся из script.js под нишу */
  --m-bg: #ffffff; --m-ink: var(--ink); --m-accent: var(--accent); --m-on: #fff;
  --m-soft: var(--mist); --m-line: rgba(21, 23, 26, .1); --m-field: #fff;
  --m-display: var(--font);
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(21, 23, 26, .04), 0 50px 90px -50px rgba(39, 71, 245, .45);
}
.mock-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: var(--mist); border-bottom: 1px solid var(--line); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9ced6; }
.mock-url { margin-left: 12px; padding: 2px 14px; background: var(--paper); border-radius: 5px; font-size: 11px; color: var(--graphite); }

.page {
  position: relative;
  display: grid; gap: 14px;
  padding: 16px 18px 20px;
  background: var(--m-bg); color: var(--m-ink);
  font-size: 12px; line-height: 1.45;
  transition: background-color .8s ease, color .8s ease;
}
.page::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--accent-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent-soft) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0; transition: opacity .6s ease;
}
.page > * { position: relative; transition: opacity .28s ease, transform .28s ease; }
.page.is-swapping > * { opacity: 0; transform: translateY(5px); }

.t {
  border-radius: 3px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: color .6s ease, background-color .6s ease;
}

.pg-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pg-logo { font: 700 13px/1.2 var(--m-display); letter-spacing: -0.01em; }
.pg-phone { font-size: 11px; opacity: .8; }

.pg-offer { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: center; }
.pg-title { min-height: 3.5em; margin-bottom: 8px; font: 700 var(--m-size, 19px)/1.15 var(--m-display); letter-spacing: -0.015em; text-wrap: balance; }
.pg-text { margin-bottom: 12px; opacity: .78; }
.pg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 12px; border-radius: 6px;
  background: var(--m-accent); color: var(--m-on); font-weight: 600;
  transition: background-color .8s ease, color .8s ease;
}
.pg-art { position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 8px; overflow: hidden; background: var(--m-soft); transition: background-color .8s ease; }
.pg-art svg { display: block; width: 100%; height: 100%; transition: opacity .7s ease .15s; }

.pg-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pg-benefits > div { min-height: 42px; padding: 10px; border: 1px solid transparent; border-radius: 6px; background: var(--m-soft); font-weight: 500; transition: background-color .8s ease, border-color .8s ease; }

.pg-quiz { padding: 12px; border: 1px solid var(--m-line); border-radius: 8px; transition: border-color .8s ease, background-color .8s ease; }
.pg-q { margin-bottom: 8px; font-weight: 600; }
.pg-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pg-opts > span { padding: 7px 4px; border: 1px solid var(--m-line); border-radius: 6px; text-align: center; font-size: 11px; transition: border-color .8s ease, background-color .8s ease; }
.pg-opts > .sel { border-color: var(--m-accent); box-shadow: inset 0 0 0 1px var(--m-accent); }

.pg-form { display: grid; grid-template-columns: 1fr 1fr .95fr; gap: 6px; align-items: stretch; }
.pg-input { padding: 7px 10px; border: 1px solid var(--m-line); border-radius: 6px; background: var(--m-field); opacity: .9; transition: background-color .8s ease, border-color .8s ease; }
.pg-input .t { opacity: .6; }

.note {
  position: absolute; top: -9px; right: 8px; z-index: 2;
  padding: 1px 9px; background: var(--paper);
  border: 1px solid var(--accent); border-radius: 999px;
  color: var(--accent); font: 500 11px/1.5 var(--font); white-space: nowrap;
  opacity: 0; transform: translateY(3px);
  transition: opacity .35s ease, transform .35s ease;
}

/* Состояние «чертёж» */
.stage[data-state="wire"] .page { background-color: #fff; color: var(--ink); }
.stage[data-state="wire"] .page::before { opacity: 1; }
.stage[data-state="wire"] .t { color: transparent; background-color: var(--ink); }
.stage[data-state="wire"] .t.sub { background-color: #c3c8d0; }
.stage[data-state="wire"] .t.on { background-color: rgba(255, 255, 255, .75); }
.stage[data-state="wire"] .pg-input .t { opacity: 1; }
.stage[data-state="wire"] .pg-btn { background-color: var(--accent); }
.stage[data-state="wire"] .pg-art { background-color: var(--mist); background-image: repeating-linear-gradient(135deg, transparent 0 8px, #e2e6ec 8px 16px); }
.stage[data-state="wire"] .pg-art svg { opacity: 0; transition-delay: 0s; }
.stage[data-state="wire"] .pg-benefits > div { background-color: #fff; border-color: var(--line); }
.stage[data-state="wire"] .pg-quiz { border: 1px dashed var(--accent); background-color: #fff; }
.stage[data-state="wire"] .pg-opts > span { border-color: var(--line); background-color: #fff; box-shadow: none; }
.stage[data-state="wire"] .pg-opts > .sel { border-color: var(--accent); background-color: var(--accent-soft); }
.stage[data-state="wire"] .pg-input { border-color: var(--line); background-color: #fff; }
.stage[data-state="wire"] .note { opacity: 1; transform: none; }

/* Уведомление о заявке */
.toast {
  position: absolute; left: -26px; bottom: 0; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 18px 40px -16px rgba(21, 23, 26, .28);
  font-size: 13px; line-height: 1.35;
  opacity: 0; transform: translateY(14px) scale(.97);
  transition: opacity .45s ease, transform .5s cubic-bezier(.2, .9, .3, 1.2);
}
.toast.show { opacity: 1; transform: none; }
.toast strong { display: block; font-size: 14px; }
.toast span { color: var(--graphite); }
.toast-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #1fae5b; box-shadow: 0 0 0 4px #dcf3e5; }

/* Переключатель ниш */
.switcher { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.switcher-label { flex: 1 1 auto; font-size: 14px; color: var(--graphite); }
.niche-chips { order: 3; flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.niche-chips button {
  position: relative; overflow: hidden;
  padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font: 500 13px/1.2 var(--font); cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.niche-chips button:hover { border-color: var(--ink); }
.niche-chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.niche-chips.is-auto button[aria-pressed="true"]::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent); transform-origin: left; transform: scaleX(0);
  animation: chip-progress var(--cycle, 5.5s) linear forwards;
}
@keyframes chip-progress { to { transform: scaleX(1); } }

.wire-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; color: var(--graphite); cursor: pointer; }
.wire-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wire-track { position: relative; width: 36px; height: 20px; border-radius: 999px; background: var(--control-line); transition: background-color .2s; }
.wire-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s; }
.wire-toggle input:checked + .wire-track { background: var(--accent); }
.wire-toggle input:checked + .wire-track::after { transform: translateX(16px); }
.wire-toggle input:focus-visible + .wire-track { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Сборка при загрузке */
.js .page > * { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.js .page > :nth-child(1) { animation-delay: .1s; }
.js .page > :nth-child(2) { animation-delay: .35s; }
.js .page > :nth-child(3) { animation-delay: .6s; }
.js .page > :nth-child(4) { animation-delay: .85s; }
.js .page > :nth-child(5) { animation-delay: 1.1s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .page > * { animation: none; }
  .page > *, .t, .note, .toast, .pg-art svg { transition: none !important; }
  .niche-chips.is-auto button[aria-pressed="true"]::after { display: none; }
}
/* Секции */
.section { padding: var(--section) 0; }
.section-tint { background: var(--mist); }
.section-ink { background: var(--ink); color: #fff; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 48px; }
.section-head p { color: var(--graphite); max-width: 32em; }

/* Услуги: список с ценой и сроком */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.service { display: flex; flex-direction: column; gap: 12px; padding: 14px 14px 28px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); transition: border-color .2s; }
.service:hover { border-color: #b9bfc9; }
.service { position: relative; }
.service-main, .service-main:hover { border: 2px solid var(--accent); padding: 13px 13px 27px; }
.badge { position: absolute; top: 26px; right: 26px; z-index: 1; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.2; }
.service > :not(.viz) { margin-left: 14px; margin-right: 14px; }
.service .viz { height: 168px; margin-bottom: 8px; }
.service h3 { font-size: 1.5rem; }
.service p { color: var(--graphite); max-width: 36em; }
.service dl { display: flex; gap: 40px; margin-top: auto; margin-bottom: 0; padding-top: 10px; }
.service dt { font-size: 13px; color: var(--graphite); }
.service dd { margin: 0; font-weight: 600; font-size: 1.05rem; }

/* Мини-схемы форматов */
.fmt .pg, .fmt .q { display: flex; flex-direction: column; gap: 6px; padding: 12px; background: var(--paper); border-radius: 8px; box-shadow: 0 1px 2px rgba(21,23,26,.06), 0 8px 24px -12px rgba(21,23,26,.18); }
.fmt i { display: block; height: 6px; border-radius: 3px; background: #d5d9e0; }
.fmt i.h { width: 80%; height: 10px; background: var(--ink); }
.fmt i.s { width: 55%; }
.fmt-quiz .q { width: 176px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fmt-quiz em { grid-column: 1 / -1; font: 500 10.5px/1.2 var(--font); color: var(--graphite); font-style: normal; }
.fmt-quiz s { grid-column: 1 / -1; height: 4px; margin-bottom: 4px; border-radius: 2px; background: var(--mist); text-decoration: none; }
.fmt-quiz s i { width: 40%; height: 4px; background: var(--accent); }
.fmt-quiz b { height: 30px; border: 1px solid var(--line); border-radius: 6px; }
.fmt-quiz b.on { border-color: var(--accent); background: var(--accent-soft); }
.fmt-land { align-items: flex-start; padding-top: 22px; }
.fmt-land .pg { width: 150px; height: 170px; }
.fmt-land b { width: 54px; height: 14px; margin: 4px 0 6px; border-radius: 4px; background: var(--accent); }
.fmt-land u { height: 18px; border-radius: 4px; background: var(--mist); }
.fmt-cat .grid { display: grid; grid-template-columns: repeat(3, 44px); gap: 8px; }
.fmt-cat b { height: 52px; border-radius: 6px; background: var(--paper); box-shadow: inset 0 -14px 0 #fff, inset 0 0 0 1px var(--line); background-image: linear-gradient(var(--accent-soft), var(--accent-soft)); background-size: 100% 34px; background-repeat: no-repeat; }
.fmt-cat b:nth-child(2) { background-image: linear-gradient(var(--accent), var(--accent)); }
.fmt-multi { position: relative; }
.fmt-multi .pg { position: absolute; width: 120px; height: 96px; }
.fmt-multi .pg:nth-child(1) { transform: translate(-36px, -14px); opacity: .55; }
.fmt-multi .pg:nth-child(2) { transform: translate(-18px, -2px); opacity: .8; }
.fmt-multi .pg:nth-child(3) { transform: translate(0, 10px); }
.fmt-multi i.nav { height: 4px; margin-bottom: 4px; background: repeating-linear-gradient(90deg, var(--accent) 0 16px, transparent 16px 22px); }

/* Ниши */
.niches-head { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px 64px; align-items: end; margin-bottom: 40px; }
.niches-head p { max-width: 34em; }
.marquees {
  display: grid; gap: 12px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee { display: flex; gap: 10px; width: max-content; animation: marquee 48s linear infinite; }
.marquee.reverse { animation-direction: reverse; animation-duration: 56s; }
.marquees:hover .marquee, .marquees.is-off .marquee { animation-play-state: paused; }
.marquee-track { display: flex; gap: 10px; }
.marquee-track li { padding: 12px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: 16px; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(calc(-50% - 5px)); } }
@media (max-width: 640px) { .marquee-track li { padding: 10px 18px; font-size: 15px; } }
@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; flex-wrap: wrap; width: auto; padding: 0 var(--gutter); }
  .marquee-track[aria-hidden="true"] { display: none; }
  .marquee-track { flex-wrap: wrap; }
  .marquees { -webkit-mask-image: none; mask-image: none; }
}

/* Сопровождение */
.section-flush { padding-top: 0; }
.addon { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px 64px; padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); }
.addon-head { display: grid; gap: 20px; align-content: start; justify-items: start; }
.addon-head h2 { max-width: 14ch; }
.addon-list { display: grid; gap: 0; }
.addon-list li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.addon-list .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.addon-list .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.addon-list li:first-child { padding-top: 0; border-top: 0; }
.addon-list h3 { margin-bottom: 8px; }
.addon-list p { color: var(--graphite); font-size: 15px; max-width: 40em; }

/* Трафик */
.traffic-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.traffic-grid h2 { max-width: 14ch; }
.traffic-grid p { margin: 24px 0 36px; color: #b6bbc4; max-width: 36em; }
.channels li { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; border-bottom: 1px solid #2c3036; }
.channels li:first-child { border-top: 1px solid #2c3036; }
.channels strong { font-weight: 600; font-size: 1.1rem; }
.channels span { color: #8d939d; font-size: 15px; text-align: right; }

/* Этапы — настоящая последовательность, поэтому с номерами */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; counter-reset: step; }
.steps li { position: relative; padding-top: 64px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1.5px solid var(--accent); border-radius: 50%;
  color: var(--accent); font-weight: 600;
  background: var(--paper);
}
.steps li::after { content: ""; position: absolute; top: 20px; left: 48px; right: -20px; border-top: 1px dashed var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--graphite); font-size: 15px; }
.steps li::before { transition: background-color .4s ease, color .4s ease; }
.steps li::after { transition: border-color .4s ease; }
.steps li.is-done::before { background: var(--accent); color: #fff; }
.steps li.is-done::after { top: 19px; border-top: 2px solid var(--accent); }

/* Цены */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 36px 32px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); transition: border-color .2s; }
.plan:hover { border-color: #b9bfc9; }
.plan-main, .plan-main:hover { border: 2px solid var(--accent); }
.plan h3 { font-size: 1.25rem; }
.price { margin: 18px 0 8px; font-size: 2.1rem; font-weight: 700; letter-spacing: -0.03em; }
.plan-desc { color: var(--graphite); font-size: 15px; }
.plan ul { margin: 24px 0 32px; display: grid; gap: 10px; font-size: 15px; }
.plan li { position: relative; padding-left: 26px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }

.bonus { display: flex; gap: 24px; align-items: flex-start; margin-top: 20px; padding: 28px 32px; background: var(--accent-soft); border-radius: var(--r-card); color: var(--accent); }
.bonus svg { flex: none; }
.bonus h3 { color: var(--ink); margin-bottom: 6px; }
.bonus p { color: #2b3140; max-width: 60em; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--accent); font-size: 1.5rem; line-height: 1; font-weight: 400; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--graphite); max-width: 40em; }

/* Калькулятор */
.calc-deal {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px 24px; align-items: center;
  margin-bottom: 40px; padding: 24px 28px;
  background: var(--accent-soft); border: 1.5px solid var(--accent); border-radius: var(--r-card);
}
.calc-deal-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: #fff; }
.calc-deal h3 { font-size: 1.2rem; }
.calc-deal p { margin-top: 4px; color: #2b3140; font-size: 15px; max-width: 46em; }
.calc-deal-plans { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.calc-deal-plans li { padding: 6px 12px; background: var(--paper); border-radius: 999px; font-size: 14px; color: var(--graphite); }
.calc-deal-plans b { color: var(--ink); font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) {
  .calc-deal { grid-template-columns: auto 1fr; padding: 20px; }
  .calc-deal-btn { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .calc-deal { grid-template-columns: 1fr; }
}
.calc { display: grid; grid-template-columns: 1.55fr 1fr; gap: 40px; align-items: start; }
.calc-steps { display: grid; gap: 32px; min-width: 0; }
.calc-step { margin: 0; padding: 0; border: 0; min-width: 0; }
.calc-step legend { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 0; font-weight: 600; font-size: 1.1rem; }
.step-n { display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--accent); border-radius: 50%; color: var(--accent); font-size: 14px; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.opt-grid.three { grid-template-columns: repeat(3, 1fr); }
.opt { position: relative; display: block; cursor: pointer; }
.opt[hidden] { display: none; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt > span {
  display: block; height: 100%;
  padding: 14px 44px 14px 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.opt > span::after {
  content: ""; position: absolute; top: 15px; right: 15px;
  width: 18px; height: 18px; border: 1.5px solid var(--control-line); border-radius: 50%;
  transition: border-color .15s, background-color .15s;
}
.opt input[type="checkbox"] + span::after { border-radius: 5px; }
.opt b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.opt small { display: block; margin-top: 4px; color: var(--graphite); font-size: 13px; }
.opt:hover > span { border-color: var(--graphite); }
.opt input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #f7f8ff; }
.opt input:checked + span::after {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.opt-wide { grid-column: 1 / -1; }
.legend-note { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--graphite); }
.opt input:disabled + span { opacity: .55; cursor: not-allowed; }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.summary {
  position: sticky; top: 92px;
  display: grid; gap: 16px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: 0 30px 60px -40px rgba(39, 71, 245, .35);
}
.summary h3 { font-size: 1.25rem; }
.sum-list { display: grid; gap: 6px; font-size: 14px; color: var(--graphite); }
.sum-list li { display: flex; justify-content: space-between; gap: 12px; }
.sum-list li span:last-child { color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sum-total { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; padding: 16px 0; border-block: 1px solid var(--line); }
.sum-total span { display: block; font-size: 13px; color: var(--graphite); }
.sum-total output { display: block; font-size: 1.55rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.sum-total div + div output { font-size: 1.15rem; padding-top: .3em; }
.calc-alt { margin-top: 28px; color: var(--graphite); }
.calc-alt a { color: var(--ink); font-weight: 600; text-decoration-color: var(--line); text-underline-offset: 3px; }

.field label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 500; }
.optional { color: var(--graphite); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px;
  border: 1px solid var(--control-line); border-radius: var(--r-control);
  background: var(--paper); color: var(--ink);
  font: 400 16px/1.4 var(--font);
  transition: border-color .15s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.has-error input { border-color: #c62828; box-shadow: 0 0 0 3px #fde4e4; }
.field-hint, .field-err { margin-top: 6px; font-size: 13px; line-height: 1.4; }
.field-hint { color: var(--graphite); }
.field-err { display: flex; gap: 6px; align-items: baseline; color: #b42318; font-weight: 500; }
.field-err::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; transform: translateY(-1px); }
.field-err[hidden], .field.has-error .field-hint { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 13px; font-weight: 400; line-height: 1.45; color: var(--graphite); cursor: pointer; }
.field .check { display: flex; margin-bottom: 0; font-size: 13px; font-weight: 400; }
.check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.check span { flex: 1; min-width: 0; }
.check a { color: var(--ink); text-underline-offset: 2px; }
.field.has-error .check input { outline: 2px solid #c62828; outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form-note { font-size: 13px; color: var(--graphite); }
.form-status:empty { display: none; }
.form-status { padding: 14px 16px; border-radius: 8px; font-size: 15px; }
.form-status.ok { background: #dcf3e5; color: #11603a; }
.form-status.err { background: #fde4e4; color: #9b1c1c; }
.form-status.info { background: var(--accent-soft); color: var(--ink); }
.form-status a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }

/* Страница благодарности */
.thanks { padding: clamp(40px, 6vw, 72px) 0 var(--section); }
.thanks-wrap { max-width: 860px; display: grid; gap: clamp(40px, 6vw, 64px); }
.thanks-hero { display: grid; justify-items: start; gap: 12px; }
.thanks-mark { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 16px 40px -16px rgba(39, 71, 245, .6); }
.thanks h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.05; text-wrap: balance; }
.thanks-lead { max-width: 34em; font-size: 1.125rem; color: var(--graphite); }
.thanks-summary { padding: 10px 14px; background: var(--accent-soft); border-radius: var(--r-control); font-size: 15px; }
.thanks-summary[hidden] { display: none; }
.thanks-block h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.thanks-sub { margin-top: 10px; color: var(--graphite); }
.thanks-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; counter-reset: step; }
.thanks-steps li { display: grid; align-content: start; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); counter-increment: step; }
.thanks-steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 6px; border: 1.5px solid var(--accent); border-radius: 50%; color: var(--accent); font-size: 14px; font-weight: 600; }
.thanks-steps span { color: var(--graphite); font-size: 15px; }
.thanks-bonus { margin-top: 0; }
.socials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.social { display: flex; align-items: center; gap: 14px; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-card); text-decoration: none; transition: border-color .2s, transform .2s; }
.social:hover { border-color: var(--ink); transform: translateY(-2px); }
.social-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--mist); }
.social-tg .social-icon { color: #229ed9; }
.social-yt .social-icon { color: #ff0033; }
.social-rt .social-icon { color: #100943; }
.social-vk .social-icon { color: #0077ff; }
.social-tc .social-icon { color: #ff5a1f; }
.social-max .social-icon { color: #6a3df5; }
.social-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.social-text b { font-weight: 600; }
.social-text small { color: var(--graphite); font-size: 13px; line-height: 1.4; }
.social-cta { flex: none; font-size: 14px; font-weight: 600; color: var(--accent); }
.thanks-actions p { color: var(--graphite); }
.thanks-actions .hero-actions { margin-top: 16px; }
@media (max-width: 760px) {
  .thanks-steps, .socials { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .social-cta { display: none; }
}

/* Попап заявки на тариф */
.modal {
  width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: var(--r-card);
  background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(21, 23, 26, .45);
  overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(21, 23, 26, .55); }
.modal[open] { animation: modal-in .22s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } }
body:has(.modal[open]) { overflow: hidden; }
.modal-box { position: relative; display: grid; gap: 16px; padding: clamp(22px, 5vw, 32px); }
.modal-close {
  position: absolute; top: 10px; right: 10px;
  display: grid; place-items: center; width: 44px; height: 44px;
  background: none; border: 0; border-radius: 50%; color: var(--graphite); cursor: pointer;
}
.modal-close:hover { background: var(--mist); color: var(--ink); }
.modal-kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.modal h3 { margin-top: -8px; padding-right: 36px; font-size: 1.5rem; line-height: 1.2; }
.modal-total { padding: 14px 0; }
.modal-details summary { cursor: pointer; font-size: 15px; font-weight: 500; color: var(--accent); }
.modal-list { display: grid; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--graphite); }
.modal-list li { position: relative; padding-left: 24px; }
.modal-list li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }
.modal-general { display: grid; gap: 16px; }
.modal-general[hidden], .modal [data-mode][hidden] { display: none; }
.modal-text { color: var(--graphite); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.chips legend { margin-bottom: 8px; padding: 0; font-size: 15px; font-weight: 500; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; transition: border-color .15s, background-color .15s, color .15s; }
.chip:hover span { border-color: var(--graphite); }
.chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.modal-alt { font-size: 14px; color: var(--graphite); text-align: center; }
.modal-alt a { color: var(--accent); text-underline-offset: 3px; }

/* Подвал */
.site-footer { padding: 48px 0; border-top: 1px solid var(--line); font-size: 15px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: -12px; }
.footer-links a { display: inline-block; padding: 12px 0; color: var(--graphite); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-legal { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.footer-legal a { display: inline-block; padding: 10px 0; color: var(--graphite); text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--ink); }

/* Юридические страницы */
.legal-back { margin-left: auto; }
.legal { padding: clamp(40px, 6vw, 72px) 0 var(--section); }
.legal-wrap { max-width: 800px; }
.legal-kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.legal h1 { margin-top: 12px; font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.1; text-wrap: balance; }
.legal-date { margin-top: 14px; font-size: 15px; color: var(--graphite); }
.legal section { margin-top: 44px; scroll-margin-top: 88px; }
.legal h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 14px; }
.legal p + p, .legal p + ul, .legal ul + p, .legal .legal-card + p, .legal .legal-table + p { margin-top: 12px; }
.legal section ul { display: grid; gap: 6px; padding-left: 1.2em; list-style: disc; }
.legal section ul li::marker { color: var(--accent); }
.legal a { color: var(--accent); text-underline-offset: 3px; }
.legal-toc { margin-top: 32px; padding: 20px 24px; background: var(--mist); border-radius: var(--r-card); }
.legal-toc ol { columns: 2; column-gap: 32px; padding-left: 1.4em; list-style: decimal; font-size: 15px; }
.legal-toc li { padding: 3px 0; break-inside: avoid; }
.legal-toc a { color: var(--ink); text-decoration-color: var(--line); }
.legal-card { display: grid; margin: 0; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.legal-card div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 12px 20px; }
.legal-card div + div { border-top: 1px solid var(--line); }
.legal-card dt { color: var(--graphite); font-size: 15px; }
.legal-card dd { margin: 0; overflow-wrap: anywhere; }
.legal-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); }
.legal-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.legal-table th, .legal-table td { padding: 12px 16px; text-align: left; vertical-align: top; }
.legal-table th { background: var(--mist); font-weight: 600; }
.legal-table tr + tr td, .legal-table tbody tr:first-child td { border-top: 1px solid var(--line); }
.todo { padding: 0 4px; background: #fff4c2; border-radius: 4px; }
@media (max-width: 640px) {
  .legal-toc ol { columns: 1; }
  .legal-card div { grid-template-columns: 1fr; gap: 2px; }
}

/* Адаптив */
@media (max-width: 1080px) {
  .calc { grid-template-columns: 1fr; }
  .summary { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .steps li::after { display: none; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero-grid, .niches-head, .traffic-grid, .faq-grid, .addon { grid-template-columns: 1fr; gap: 40px; }
  .showcase { max-width: 640px; }
  .toast { left: 10px; }
  .section-head { grid-template-columns: 1fr; margin-bottom: 32px; }
  .plans { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .header-inner { gap: 12px; }
  .site-header .logo img { width: 28px; }
  .site-header .wordmark { font-size: 14px; letter-spacing: .06em; }
  .site-header .btn-small { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .hero-facts { grid-template-columns: 1fr; gap: 14px; }
  .hero-facts li { flex-direction: row; }
  .page { padding: 12px 12px 16px; gap: 12px; font-size: 10.5px; }
  .pg-title { font-size: calc(var(--m-size, 19px) * .8); }
  .stage { padding-bottom: 60px; }
  .pg-offer { gap: 10px; }
  .pg-benefits > div { padding: 8px; min-height: 0; }
  .pg-opts { grid-template-columns: repeat(2, 1fr); }
  .pg-opts > span { font-size: 10.5px; }
  .pg-form { grid-template-columns: 1fr 1fr; }
  .pg-form .pg-btn { grid-column: 1 / -1; }
  .note { font-size: 10px; }
  .toast { left: 6px; right: 6px; }
  .wire-toggle { margin-left: 0; }
  .opt-grid, .opt-grid.three { grid-template-columns: 1fr; }
  .bonus { flex-direction: column; gap: 14px; padding: 24px; }
    .channels li { flex-direction: column; gap: 4px; }
  .channels span { text-align: left; }
  .faq details p { padding-right: 0; }
}

/* Заголовок первого экрана */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-copy h1 { max-width: none; font-size: clamp(2.8rem, 5vw, 4.1rem); line-height: 1; white-space: nowrap; }
.h1-sub span { display: block; }
.h1-sub { margin-top: 14px; font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; color: var(--graphite); text-wrap: balance; }

/* Мягкое сияние: первый экран и калькулятор */
.aurora { position: relative; isolation: isolate; overflow: hidden; overflow: clip; }
.aurora::before {
  content: ""; position: absolute; inset: -15%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(34% 38% at 74% 30%, rgba(39, 71, 245, .2), transparent 75%),
    radial-gradient(30% 34% at 90% 64%, rgba(132, 94, 247, .16), transparent 75%),
    radial-gradient(28% 32% at 60% 80%, rgba(56, 189, 248, .15), transparent 75%);
}
.aurora-left::before { transform: scaleX(-1); }

/* Что входит: бенто-сетка */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px 14px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); transition: border-color .2s; }
.tile:hover { border-color: #b9bfc9; }
.tile h3, .tile p { padding: 0 8px; }
.tile.wide { grid-column: span 2; }
.tile p { color: var(--graphite); font-size: 15px; }
.viz { position: relative; display: flex; align-items: center; justify-content: center; height: 148px; margin-bottom: 10px; overflow: hidden; background: var(--mist); border-radius: 12px; }

.viz-outline { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 20px; }
.viz-outline span { padding: 2px 10px; border-radius: 6px; background: var(--paper); font-size: 11.5px; line-height: 1.5; font-weight: 500; }
.viz-outline span:first-child { background: var(--accent); color: #fff; }
.viz-outline span:nth-child(2) { margin-left: 16px; }
.viz-outline span:nth-child(3) { margin-left: 32px; border: 1px dashed var(--accent); background: var(--paper); color: var(--accent); }
.viz-outline span:nth-child(4) { margin-left: 16px; }

.viz-design { gap: 10px; }
.viz-design b { margin-right: 10px; font: 700 56px/1 var(--font); letter-spacing: -0.05em; }
.viz-design i { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); }
.viz-design i:nth-of-type(2) { background: var(--accent); }
.viz-design i:nth-of-type(3) { background: var(--accent-soft); }
.viz-design i:nth-of-type(4) { background: var(--paper); }

.viz-phone { align-items: flex-end; }
.viz-phone > span { display: flex; flex-direction: column; gap: 6px; width: 72px; height: 118px; margin-bottom: -14px; padding: 14px 9px; border: 2px solid var(--ink); border-bottom: 0; border-radius: 16px 16px 0 0; }
.viz-phone i { height: 6px; border-radius: 3px; background: #c3c8d0; }
.viz-phone i:first-child { width: 80%; height: 9px; background: var(--ink); }
.viz-phone i:nth-child(3) { width: 60%; }
.viz-phone b { height: 16px; margin-top: 6px; border-radius: 4px; background: var(--accent); }

.viz-speed { flex-direction: column; gap: 12px; }
.viz-speed .bar { width: 68%; height: 10px; border-radius: 999px; background: var(--paper); overflow: hidden; }
.viz-speed .bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.viz-speed .lbl { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--graphite); }
.viz-speed .lbl::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1fae5b; }

.viz-edits { flex-direction: column; align-items: stretch; justify-content: center; gap: 8px; padding: 14px 16px; }
.viz-edits .msg { align-self: flex-start; max-width: 85%; padding: 7px 12px; border-radius: 12px 12px 12px 4px; background: var(--paper); font-size: 12px; }
.viz-edits .msg.me { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: var(--accent); color: #fff; }

.viz-domain { flex-wrap: wrap; gap: 12px; padding: 0 16px; }
.viz-domain .url { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; background: var(--paper); font-size: 15px; }
.viz-domain .url svg { color: #1fae5b; }
.viz-domain .live { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #dcf3e5; color: #11603a; font-size: 13px; font-weight: 600; }
.viz-domain .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1fae5b; }

/* Мобильная панель с кнопкой */
.mobile-cta { display: none; }
.btn-icon { width: 52px; padding: 0; flex: none; }

@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: flex; gap: 8px;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .3s ease;
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta .btn:first-child { flex: 1; }
  .site-footer { padding-bottom: 96px; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
  .mobile-cta { transition: none; }
}

/* Сенсорные экраны: цели касания не меньше 44 px */
@media (pointer: coarse) {
  .niche-chips button { min-height: 44px; }
  .nav a, .calc-alt a { display: inline-block; padding-block: 10px; }
  .btn-small { min-height: 44px; }
  .logo { min-height: 44px; }
}

/* Выделение текста в цветах сайта */
::selection { background: var(--accent-soft); color: var(--ink); }

/* H1 в одну строку на узких экранах: шрифт по ширине экрана */
@media (max-width: 640px) { .hero-copy h1 { font-size: min(2.8rem, calc((100vw - 2 * var(--gutter)) / 8.7)); } }

/* Кто отвечает */
.founder { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); }
.founder-photo { display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 16px; background: radial-gradient(120% 90% at 30% 20%, #fff 0%, var(--accent-soft) 55%, #d3dbfd 100%); color: var(--accent); }
.founder-photo span { font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 600; letter-spacing: .02em; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.founder-kicker { color: var(--accent); font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.founder-role { color: var(--graphite); margin-top: 8px; }
.founder-text { margin-top: 24px; max-width: 38em; }
.founder-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 16px 48px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.founder-stats b { display: block; font-size: 1.35rem; font-weight: 600; }
.founder-stats span { color: var(--graphite); font-size: 14px; }
.founder-links { margin-top: 24px; color: var(--graphite); font-size: 15px; }
.founder-links a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--control-line); text-underline-offset: 3px; }
.founder-links a:hover { color: var(--accent); text-decoration-color: currentColor; }
@media (max-width: 900px) {
  .founder { grid-template-columns: 1fr; }
  .founder-photo { width: 100%; max-width: 420px; aspect-ratio: 1; }
  .founder-photo img { object-position: 50% 15%; }
}
@media (max-width: 640px) {
  .founder-stats { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 380px) {
  .addon-head h2 { font-size: 1.7rem; }
}
