/* EcomDesk — сайт бренда и программ (первая — КИЗ Автовывод). Цвета как
   у программ: тёмно-синий интерфейс, жёлтый акцент знака, синие ссылки. */
:root {
  --ink: #0b1220;
  --ink-2: #111a2e;
  --ink-3: #1b2640;
  --text: #0f172a;
  --muted: #5b6679;
  --muted-2: #8a94a8;
  --bg: #f6f7fb;
  --card: #ffffff;
  --line: #e4e8f0;
  --yellow: #ffd400;
  --yellow-2: #ffe24d;
  --blue: #2563eb;
  --blue-soft: #eaf1ff;
  --green: #16a34a;
  --green-soft: #e8f7ee;
  --red: #dc2626;
  --red-soft: #fdecec;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 30px 80px rgba(3, 8, 20, .45);
  --wrap: 1180px;
  /* Только системные шрифты: без обращений к зарубежным серверам (152-ФЗ) */
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5.2vw, 60px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--white { background: var(--card); }
.section--dark { background: var(--ink); color: #e8ecf5; }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--yellow); }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--muted); max-width: 720px; }
.section--dark .lead { color: #aab4c8; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 48px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
  font: 700 17px/1 var(--font); cursor: pointer; text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--yellow); color: #141414; box-shadow: 0 8px 24px rgba(255, 212, 0, .28); }
.btn--primary:hover { background: var(--yellow-2); box-shadow: 0 12px 30px rgba(255, 212, 0, .38); }
.btn--ghost { border-color: rgba(255, 255, 255, .25); color: #fff; }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .6); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--outline { border-color: var(--line); color: var(--text); background: #fff; }
.btn--outline:hover { border-color: #c9d0dd; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-note { font-size: 14px; color: var(--muted-2); margin-top: 12px; }

/* ---------- шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, .86); backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header__in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.logo img { width: 34px; height: 34px; }
.logo small { display: block; font-size: 12px; font-weight: 500; color: #8f9ab0; letter-spacing: 0; margin-top: 1px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: #c5cddc; font-size: 15px; font-weight: 500; white-space: nowrap; }
.logo span { white-space: nowrap; }
.header .logo { flex: none; }
.nav a:hover { color: #fff; text-decoration: none; }
.header .btn { margin-left: 4px; }
.burger { display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.burger svg { width: 28px; height: 28px; }

/* ---------- первый экран ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--ink); color: #fff;
  padding: 72px 0 0;
}
.hero::before { /* клетки DataMatrix на фоне */
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 30%, transparent 80%);
}
.hero::after {
  content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: -420px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(circle, rgba(37, 99, 235, .35), transparent 60%);
}
.hero__in { position: relative; z-index: 1; text-align: center; }
.hero h1 { max-width: 980px; margin: 0 auto 22px; }
.hero h1 mark { background: none; color: var(--yellow); }
.hero .lead { color: #b3bdd0; margin: 0 auto 34px; max-width: 760px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px;
  border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  font-size: 14px; color: #cfd6e4; margin-bottom: 26px;
}
.pill b { background: var(--yellow); color: #141414; border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.hero__facts { display: flex; justify-content: center; gap: 12px 30px; flex-wrap: wrap; margin: 30px 0 0; padding: 0; list-style: none; color: #9aa5ba; font-size: 15px; }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts svg { width: 18px; height: 18px; color: var(--yellow); }

.shot {
  position: relative; margin: 60px auto 0; max-width: 1060px;
}
.window {
  border-radius: 14px 14px 0 0; overflow: hidden; background: #fff;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .12); border-bottom: 0;
}
.window__bar { height: 34px; background: #e9ecf2; display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #cfd4de; }
.window__bar span { margin-left: 10px; font-size: 12px; color: #6b7487; }
.toasts { position: absolute; right: -30px; top: 90px; display: grid; gap: 10px; width: 330px; z-index: 2; }
.toast {
  display: flex; gap: 12px; align-items: center; background: #fff; color: var(--text);
  border-radius: 14px; padding: 12px 14px; box-shadow: 0 16px 40px rgba(3, 8, 20, .35);
  font-size: 14px; line-height: 1.35; opacity: 0; transform: translateY(10px);
  animation: toast .6s ease forwards;
}
.toast:nth-child(2) { animation-delay: 1.1s; }
.toast:nth-child(3) { animation-delay: 2.2s; }
.toast__ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.toast__ic svg { width: 18px; height: 18px; }
.toast small { display: block; color: var(--muted-2); font-size: 12px; }
@keyframes toast { to { opacity: 1; transform: none; } }

/* ---------- полоса доверия ---------- */
.trust { background: var(--ink-2); border-top: 1px solid rgba(255, 255, 255, .06); color: #aab4c8; }
.trust__in { display: flex; gap: 14px 40px; justify-content: center; flex-wrap: wrap; padding: 22px 0; font-size: 15px; }
.trust__in span { display: flex; align-items: center; gap: 10px; }
.trust svg { width: 20px; height: 20px; color: #7f8aa3; }

/* ---------- карточки / сетки ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); font-size: 16px; }
.ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); margin-bottom: 18px;
}
.ic svg { width: 24px; height: 24px; }
.ic--y { background: #fff6c2; color: #8a6d00; }
.ic--g { background: var(--green-soft); color: var(--green); }
.ic--r { background: var(--red-soft); color: var(--red); }

/* ---------- было / стало ---------- */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.versus .card { padding: 34px; }
.versus h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; margin-bottom: 20px; }
.versus ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.versus li { display: flex; gap: 12px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.versus li svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.versus__bad li svg { color: var(--red); }
.versus__good { border-color: #bfe6cd; background: linear-gradient(180deg, #f3fcf6, #fff 60%); }
.versus__good li svg { color: var(--green); }
.versus__good li { color: var(--text); }

/* ---------- шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.step { position: relative; padding-top: 70px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center; font-weight: 800; font-size: 22px;
  background: var(--yellow); color: #141414;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 26px; left: 68px; right: 4px; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 6px, transparent 6px 12px);
}
.step p { color: #aab4c8; font-size: 16px; margin: 0; }

/* ---------- главный аргумент ---------- */
.highlight {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
.flow { display: grid; gap: 12px; }
.flow__row {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; font-size: 16px;
}
.flow__row b { font-weight: 600; }
.flow__row small { display: block; color: var(--muted-2); font-size: 13px; }
.flow__dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #cbd2df; }
.flow__row--muted { opacity: .75; }
.flow__row--cancel .flow__dot { background: var(--red); }
.flow__row--sold { border-color: #9edbb5; box-shadow: 0 0 0 4px var(--green-soft); }
.flow__row--sold .flow__dot { background: var(--green); }
.tag { margin-left: auto; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.tag--wait { background: #f1f3f7; color: var(--muted); }
.tag--ok { background: var(--green-soft); color: var(--green); }
.tag--no { background: var(--red-soft); color: var(--red); }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--green); margin-top: 2px; }

/* ---------- скриншоты ---------- */
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.tab {
  border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 999px;
  padding: 10px 18px; font: 600 15px/1 var(--font); cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.gallery { max-width: 1060px; margin: 0 auto; }
.gallery .window { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(15, 23, 42, .16); }
.panel[hidden] { display: none; }
.panel figcaption { text-align: center; color: var(--muted); font-size: 15px; margin-top: 18px; }

/* ---------- калькулятор ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; padding: 0; }
.calc__in { padding: 36px; }
.calc__out { padding: 36px; background: var(--ink); color: #fff; display: grid; align-content: center; gap: 18px; }
.calc label { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 10px; }
.calc output { font-weight: 800; color: var(--blue); }
.calc input[type=range] { width: 100%; accent-color: var(--blue); margin-bottom: 26px; }
.calc__big { font-size: clamp(40px, 5vw, 56px); font-weight: 800; line-height: 1; color: var(--yellow); }
.calc__out p { margin: 0; color: #aab4c8; font-size: 15px; }
.calc__note { font-size: 13px; color: var(--muted-2); margin: 0; }

/* ---------- цены ---------- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; max-width: 1020px; margin: 0 auto; }
.price { display: flex; flex-direction: column; }
.price--best { border: 2px solid var(--ink); position: relative; }
.price__badge { position: absolute; top: -14px; left: 28px; background: var(--yellow); color: #141414; font-size: 13px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.price__name { font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.price__sum { font-size: 42px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.price__sum small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price__per { color: var(--muted); font-size: 15px; margin: 6px 0 20px; min-height: 24px; }
.price ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; font-size: 15px; }
.price li { display: flex; gap: 10px; }
.price li svg { flex: none; width: 20px; height: 20px; color: var(--green); margin-top: 2px; }
.price .btn { margin-top: auto; width: 100%; }
.price__btns { margin-top: auto; display: grid; gap: 10px; }
.price__btns .btn { width: 100%; }
.pay-how { max-width: 1020px; margin: 26px auto 0; }
.pay-how ol { margin: 0 0 14px; padding-left: 1.3em; display: grid; gap: 8px; color: var(--muted); font-size: 16px; }
.pay-how ol b { color: var(--text); }
.pay-how p { font-size: 15px; }

/* ---------- требования ---------- */
.req { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.req .card { padding: 24px; }
.req h3 { font-size: 17px; margin-bottom: 6px; }
.req p { font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 700; font-size: 17px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 24px 20px; color: var(--muted); font-size: 16px; }
.faq details > div p:last-child { margin: 0; }

/* ---------- финальный призыв ---------- */
.final {
  background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(37, 99, 235, .35), transparent 70%), var(--ink);
  color: #fff; text-align: center; padding: 96px 0;
}
.final h2 { color: #fff; max-width: 760px; margin: 0 auto 16px; }
.final .lead { color: #aab4c8; margin: 0 auto 34px; }
.final--page { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 72px 0; }

/* ---------- подвал ---------- */
.footer { background: #070c17; color: #8f9ab0; font-size: 15px; padding: 56px 0 32px; }
.footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: #b3bdd0; }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 40px; padding-top: 24px; font-size: 13px; color: #6d7890; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__in { grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.footer__brand p { margin: 14px 0 0; max-width: 340px; }
.footer__tm { font-size: 12px; color: #5d6880; margin: 14px 0 0; }

/* ---------- бренд EcomDesk ---------- */
.logo span { line-height: 1.2; }
.header__product {
  display: flex; align-items: center; gap: 8px; flex: none;
  padding: 6px 12px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap;
}
.header__product:hover { text-decoration: none; border-color: rgba(255, 255, 255, .25); }
.header__product img { width: 24px; height: 24px; border-radius: 6px; }
.header--product .header__in { gap: 20px; }
.header--product .nav { gap: 22px; }
.product-badge {
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 22px;
  text-align: left; color: #fff; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15;
}
.product-badge img { width: 52px; height: 52px; border-radius: 12px; }
.product-badge small { display: block; font-size: 14px; font-weight: 500; color: #8f9ab0; letter-spacing: 0; margin-top: 2px; }
.product-badge + .pill { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }

a.pill:hover { text-decoration: none; border-color: rgba(255, 255, 255, .25); color: #fff; }
.hero--brand { padding: 88px 0 96px; }
.hero--brand h1 { max-width: 900px; }

/* витрина программ */
.products { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; align-items: stretch; }
.product { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.product__shot { display: block; background: var(--ink); padding: 26px 26px 0; max-height: 320px; overflow: hidden; }
.product__shot .window { border-radius: 10px 10px 0 0; }
.product__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.product__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.product__head img { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.product__head h3 { margin: 0 0 2px; font-size: 24px; }
.product__tags { font-size: 14px; color: var(--muted); font-weight: 500; }
.product .checks { margin: 4px 0 22px; font-size: 16px; }
.product__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
.product__price { display: grid; gap: 2px; }
.product__price b { font-size: 22px; letter-spacing: -.02em; }
.product__trial { display: inline-block; width: fit-content; font-size: 13px; font-weight: 700; color: var(--green); background: var(--green-soft); border-radius: 999px; padding: 3px 10px; }
.product__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.product--soon {
  padding: 32px; background: transparent; box-shadow: none; border: 2px dashed #cfd6e2;
  justify-content: center; color: var(--muted);
}
.product--soon h3 { color: var(--text); }
.product--soon .ic { background: #eef1f6; color: var(--muted); }
.product--soon .btn { align-self: flex-start; margin-top: 8px; }
.soon-tag { display: inline-block; width: fit-content; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #eef1f6; border-radius: 999px; padding: 4px 10px; margin-bottom: 16px; }

/* полезное */
.useful { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; max-width: 1020px; margin: 0 auto; }
.useful h3 { font-size: 22px; margin-bottom: 8px; }
.useful h3 a { color: var(--text); }
.useful .eyebrow { margin-bottom: 8px; }
.useful p { margin: 0; }

/* ---------- статья ---------- */
.article-hero { background: var(--ink); color: #fff; padding: 56px 0 60px; }
.article-hero h1 { font-size: clamp(30px, 4.4vw, 48px); max-width: 900px; }
.article-hero .lead { color: #b3bdd0; max-width: 780px; }
.crumbs { font-size: 14px; color: #8f9ab0; margin-bottom: 22px; }
.crumbs a { color: #b3bdd0; }
.meta { font-size: 14px; color: #8f9ab0; margin-top: 20px; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding: 56px 20px 96px; align-items: start; }
.prose { font-size: 18px; line-height: 1.75; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin: 1.8em 0 .6em; scroll-margin-top: 90px; }
.prose h3 { font-size: 21px; margin: 1.5em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 0 0 1.4em; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: #f1f4f9; font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.prose code { background: #eef1f6; padding: 2px 6px; border-radius: 6px; font-size: .88em; }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.note { border-left: 4px solid var(--yellow); background: #fffbe6; padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 0 0 1.4em; font-size: 16px; }
.note--blue { border-color: var(--blue); background: var(--blue-soft); }
.note p:last-child { margin: 0; }
.table-scroll { overflow-x: auto; }
.aside { position: sticky; top: 92px; display: grid; gap: 20px; }
.toc { font-size: 15px; }
.toc h4 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.toc ol { padding-left: 1.2em; margin: 0; display: grid; gap: 8px; }
.toc a { color: var(--text); }
.promo { background: var(--ink); color: #fff; border: 0; }
.promo h3 { color: #fff; }
.promo p { color: #aab4c8; }
.promo .btn { width: 100%; }
.inline-cta { display: flex; gap: 24px; align-items: center; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px 30px; margin: 2em 0; }
.inline-cta p { margin: 0; color: #c5cddc; font-size: 16px; line-height: 1.5; }
.inline-cta b { color: #fff; display: block; font-size: 19px; margin-bottom: 4px; }
.inline-cta .btn { flex: none; }

/* ---------- анимация появления ---------- */
/* скрываем до появления только при включённом JS — без JS всё видно сразу */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .toasts { right: 16px; top: auto; bottom: 24px; width: 270px; }
  .grid--4, .req { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav, .header .btn--sm { display: none; }
  .burger { display: block; }
  .header.is-open .nav {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--ink); padding: 8px 20px 20px; border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .header.is-open .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 17px; }
  .grid--3, .versus, .highlight, .calc, .prices, .footer__in { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .step::after { display: none; }
  .highlight { gap: 36px; }
  .article { grid-template-columns: 1fr; }
  .aside { position: static; }
  .price--best { order: -1; }
  .products, .useful { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: repeat(2, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
  .header__product { margin-left: auto; }
  .header__product ~ .burger { margin-left: 0; }
}
@media (max-width: 1380px) {
  .header--product .logo small { display: none; }
}
@media (max-width: 1060px) and (min-width: 961px) {
  .header--product .nav { gap: 16px; }
  .header--product .nav a { font-size: 14px; }
  .header--product .btn--sm { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .grid--2, .grid--4, .req, .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero__cta .btn { width: 100%; }
  .toasts { display: none; }
  .shot { margin-top: 40px; }
  .window__bar { height: 26px; }
  .card, .versus .card { padding: 22px; }
  .calc__in, .calc__out { padding: 26px 22px; }
  .inline-cta { flex-direction: column; align-items: stretch; }
  .prose { font-size: 17px; }
  .tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .tab { flex: none; }
  .header__product { display: none; }
  .header__product ~ .burger { margin-left: auto; }
  .product-badge { font-size: 22px; }
  .product-badge img { width: 44px; height: 44px; }
  .hero--brand { padding: 56px 0 68px; }
  .product__shot { padding: 16px 16px 0; }
  .product__body, .product--soon { padding: 22px; }
  .product__head h3 { font-size: 20px; }
  .section-head .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.2; }
  .product__head img { width: 44px; height: 44px; }
  .product__btns, .product__btns .btn { width: 100%; }
  .product__btns .btn { flex: 1 1 140px; }
  .footer__in { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
}
@media (max-width: 380px) {
  .logo small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .toast { animation: none; opacity: 1; transform: none; }
}

/* ---------- баннер cookie ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
  max-width: 760px; margin: 0 auto; padding: 18px 20px;
  display: flex; gap: 18px; align-items: center;
  background: #fff; color: var(--text); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 20px 60px rgba(3, 8, 20, .28);
  font-size: 14px; line-height: 1.5;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie__btns { display: flex; gap: 8px; flex: none; }
@media (max-width: 640px) {
  .cookie { flex-direction: column; align-items: stretch; }
  .cookie__btns { flex-direction: column; }
  .cookie__btns .btn { width: 100%; }
}

/* hidden должен скрывать и кнопки с display:flex */
[hidden] { display: none !important; }

/* одинокая карточка в последнем ряду сетки по три — на всю ширину */
@media (min-width: 961px) { .grid--3 > :last-child:nth-child(3n+1) { grid-column: 1 / -1; } }

/* ---------- окно оплаты ---------- */
.paydlg { position: fixed; inset: 0; z-index: 120; background: rgba(3, 8, 20, .6); display: grid; place-items: center; padding: 16px; }
.paydlg__box {
  position: relative; width: 100%; max-width: 440px; background: #fff; color: var(--text);
  border-radius: 18px; padding: 28px; box-shadow: 0 30px 80px rgba(3, 8, 20, .45);
  display: grid; gap: 10px; max-height: calc(100vh - 32px); overflow: auto;
}
.paydlg__box h3 { margin: 0; font-size: 22px; }
.paydlg__plan { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.paydlg__box label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.paydlg__box input[type=email], .paydlg__box input[name=inn] {
  font: 500 17px/1.2 var(--font); padding: 12px 14px; border: 1px solid #cfd6e2; border-radius: 12px;
}
.paydlg__box input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.paydlg__box small { color: var(--muted-2); font-size: 13px; margin-top: -4px; }
.paydlg__check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; font-size: 14px !important; margin-top: 4px; }
.paydlg__check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.paydlg__err { margin: 0; color: var(--red); font-size: 14px; }
.paydlg__note { margin: 4px 0 0; color: var(--muted-2); font-size: 12px; line-height: 1.45; }
.paydlg__x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; }
.paydlg .btn { width: 100%; }

/* ---------- счёт для ИП и ООО ---------- */
.price__invoice { display: block; text-align: center; font-size: 14px; font-weight: 600; margin-top: 2px; }
.paydlg__box select {
  font: 500 16px/1.2 var(--font); padding: 11px 12px; border: 1px solid #cfd6e2; border-radius: 12px; background: #fff; color: var(--text);
}
.paydlg__box input[type=tel], .paydlg__box input[name=payer_inn], .paydlg__box input[name=payer_kpp],
.paydlg__box input[name=payer_name], .paydlg__box input[name=license_inn] {
  font: 500 17px/1.2 var(--font); padding: 12px 14px; border: 1px solid #cfd6e2; border-radius: 12px;
}
.paydlg__opt { color: var(--muted-2); font-weight: 400; }
.paydlg__done { display: grid; gap: 12px; }
.paydlg__done h3 { margin: 0; }
.paydlg__done p { margin: 0; color: var(--muted); }
