/* Сайт noxera.ru. Дизайн-система по аудиту Максима (23.10.2026, разделы 3–5):
   монохром — почти чёрный и тёплый светлый, акцент — чёрный, шрифт Onest */
:root {
  --ink: #121212;
  --ink-2: #3A3A40;
  --ink-muted: #6E6E76;
  --paper: #F7F6F2;
  --paper-2: #EFEDE7;
  --white: #FFFFFF;
  --line: rgba(18, 18, 18, .10);
  --line-strong: rgba(18, 18, 18, .18);
  --on-dark: #F2F1EC;
  --on-dark-muted: #A3A3AB;
  --line-dark: rgba(255, 255, 255, .12);
  /* Синий — только внутри макетов интерфейса: так выглядит сама система */
  --blue: #2B5CE0;
  --blue-soft: #EEF3FF;
  --ok: #14833B; --ok-soft: #E3F4E8;
  --warn: #A15C07; --warn-soft: #FCF0D9;
  --err: #C62828; --err-soft: #FDECEC;
  --r-sm: 8px; --r-md: 14px; --r-lg: 24px; --r-xl: 32px;
  --shadow-card: 0 1px 0 rgba(18, 18, 18, .04), 0 24px 48px -24px rgba(18, 18, 18, .18);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --container: 1200px;
  --section-gap: clamp(80px, 12vw, 160px);

  /* Прежние имена — для брифа и макетов */
  --background: var(--paper);
  --surface-subtle: var(--paper-2);
  --border: var(--line);
  --foreground: var(--ink);
  --foreground-secondary: var(--ink-2);
  --foreground-muted: var(--ink-muted);
  --primary: var(--ink);
  --primary-hover: #2A2A2F;
  --primary-subtle: #E8E6DF;
  --radius: 12px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Onest, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 650; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 641px) { .wrap { padding: 0 32px; } }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.05; letter-spacing: -.03em; }
.lead-text { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); }

/* Кнопки: один стиль — скруглённые на всю высоту */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--white); font: inherit; font-size: 15px; font-weight: 550;
  white-space: nowrap; cursor: pointer; transition: background-color .2s, transform .2s var(--ease-out), border-color .2s;
}
.button:hover { background: var(--primary-hover); }
.button:active { transform: scale(.98); }
.button--large { min-height: 52px; padding: 0 26px; font-size: 16px; }
.button--outline { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.button--outline:hover { background: var(--white); border-color: var(--ink); }
.button--ghost { background: transparent; color: var(--ink-2); }
.button--ghost:hover { background: var(--paper-2); }
.button--light { background: var(--white); color: var(--ink); }
.button--light:hover { background: var(--paper-2); }
.button:disabled { opacity: .55; cursor: default; }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 550; }
.arrow-link span { transition: transform .2s var(--ease-out); }
.arrow-link:hover span { transform: translateX(4px); }

/* Шапка: прозрачная над первым экраном, при прокрутке — фон и размытие (аудит A10) */
.topbar { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid transparent; transition: background-color .25s, border-color .25s, transform .3s var(--ease-out); }
.topbar.is-scrolled { background: rgba(247, 246, 242, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.topbar.is-hidden { transform: translateY(-100%); }
.topbar__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; color: var(--ink); }
/* Название продукта рядом со знаком (Миша, 5492): тонкий разделитель и полужирное название по высоте знака */
.brand__divider { width: 1px; height: 22px; background: var(--line); }
.brand__product { font-size: 19px; font-weight: 600; line-height: 1; letter-spacing: -.02em; color: var(--ink); transform: translateY(1px); }
.logo { display: block; height: 22px; width: auto; }
/* margin-top сдвигает меню на 2,5px вниз: центр текста встаёт по середине строчных букв логотипа, а не всей высоты с заглавной N (Максим, 4403) */
.topbar__nav { display: flex; gap: 26px; margin-top: 5px; margin-left: 16px; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.topbar__nav a { position: relative; }
.topbar__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out); }
.topbar__nav a:hover::after { transform: scaleX(1); }
/* «Ещё» в шапке: редкие ссылки убраны в список, чтобы шапка была короче (Максим, 4394) */
.topbar__more { position: relative; }
.topbar__more summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; }
.topbar__more summary::-webkit-details-marker { display: none; }
.topbar__more summary::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.topbar__more[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.topbar__more summary:hover { color: var(--ink); }
.topbar__more-menu { position: absolute; top: calc(100% + 14px); left: -16px; z-index: 30; display: grid; min-width: 220px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); box-shadow: 0 12px 32px rgba(18,18,18,.12); }
.topbar__more-menu a { padding: 10px 12px; border-radius: var(--r-md); color: var(--ink-2); }
.topbar__more-menu a::after { display: none; }
.topbar__more-menu a:hover { background: var(--paper-2); color: var(--ink); }
.topbar__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.burger { display: none; width: 44px; height: 44px; padding: 12px 11px; border: 0; border-radius: var(--r-sm); background: transparent; cursor: pointer; }
.burger span { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 68px 0 0; z-index: 9; display: grid; align-content: start; gap: 28px; padding: 24px 16px; background: var(--paper); overflow-y: auto; }
.mobile-menu__nav { display: grid; }
.mobile-menu__nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 22px; font-weight: 550; letter-spacing: -.01em; animation: menu-in .35s var(--ease-out) both; }
.mobile-menu__nav a:nth-child(2) { animation-delay: .04s; }
.mobile-menu__nav a:nth-child(3) { animation-delay: .08s; }
.mobile-menu__nav a:nth-child(4) { animation-delay: .12s; }
.mobile-menu__actions { display: grid; gap: 12px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
body.menu-open { overflow: hidden; }
body.menu-open .topbar { background: var(--paper); }
@media (max-width: 1200px) {
  .topbar__nav, .topbar__login { display: none; }
  .burger { display: block; }
}
@media (max-width: 480px) {
  .topbar__inner { gap: 8px; }
  .logo { height: 17px; }
  .brand { gap: 8px; }
  .brand__divider { height: 16px; }
  .brand__product { font-size: 15px; }
  .topbar__cta { padding: 0 14px; }
}
@media (max-width: 360px) { .topbar__cta { display: none; } }

/* Первый экран */
.hero { padding-top: clamp(40px, 7vw, 88px); text-align: center; }
@keyframes shine { 0%, 80% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.hero .eyebrow { margin-top: 0; }
.hero h1 { max-width: 1000px; margin: 14px auto 0; font-size: clamp(40px, 6.2vw, 84px); line-height: 1.02; letter-spacing: -.035em; }
.hero h1 .muted { display: block; }
.hero__lead { max-width: 640px; margin: 24px auto 0; font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); }
.hero__actions { display: flex; justify-content: center; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero__stage { margin-top: clamp(40px, 6vw, 72px); perspective: 1400px; }
.hero__stage .invoice-scene { margin-top: 0; transition: transform .4s var(--ease-out); }

/* Клиенты */
.clients { padding-top: clamp(56px, 7vw, 96px); text-align: center; }
.clients__list { display: flex; justify-content: center; align-items: center; gap: clamp(32px, 6vw, 72px); flex-wrap: wrap; margin-top: 20px; color: var(--ink-muted); }
.clients__list svg { height: 34px; width: auto; transition: color .2s; }
.clients__link { display: flex; color: inherit; }
.clients__list svg:hover, .clients__name:hover { color: var(--ink); }
.clients__name { font-size: 22px; font-weight: 700; letter-spacing: -.01em; transition: color .2s; }

/* Секции */
.section { padding-top: var(--section-gap); }
.section__head { max-width: 760px; }
.section__head .lead-text { margin-top: 18px; }
.section__head--center { margin: 0 auto; text-align: center; }

/* Чёрные блоки тоньше обычного промежутка между разделами (Максим, 4390) */
.dark { margin-top: var(--section-gap); padding: clamp(56px, 8vw, 104px) 0; background: var(--ink); color: var(--on-dark); }
.dark .muted, .dark .eyebrow { color: var(--on-dark-muted); }
.dark .lead-text { color: var(--on-dark-muted); }

/* Тёмный блок «как сейчас» */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.pain { padding: 28px; border: 1px solid var(--line-dark); border-radius: var(--r-lg); }
.pain__num { font-size: 13px; color: var(--on-dark-muted); }
.pain h3 { margin-top: 32px; font-size: 22px; letter-spacing: -.015em; }
.pain p { margin-top: 10px; color: var(--on-dark-muted); font-size: 16px; }
.scrub-words .word { opacity: .2; transition: opacity .2s linear; }

/* Возможности — сетка разного размера (bento) */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 56px; }
.tile { position: relative; display: grid; align-content: start; gap: 10px; padding: 28px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: transform .3s var(--ease-out), box-shadow .3s; }
.tile::before { content: ''; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(18,18,18,.06), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.tile:hover::before { opacity: 1; }
.tile h3 { font-size: 22px; letter-spacing: -.015em; }
.tile p { color: var(--ink-2); font-size: 16px; }
.tile__visual { margin-top: 12px; }
.tile--wide { grid-column: span 4; }
.tile--tall { grid-column: span 2; grid-row: span 2; }
.tile--third { grid-column: span 2; }
.tile--half { grid-column: span 3; }
/* Структура компании (Максим, 4413): во всю ширину, текст слева, схема справа */
.tile--full { grid-column: span 6; }
.tile--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 32px; }
.tile__text { display: grid; gap: 10px; }
.org-mock { display: grid; justify-items: center; min-width: 0; padding: 24px; border-radius: var(--r-md); background: var(--paper); font-size: 13px; }
.org-mock__row { display: flex; justify-content: center; }
.org-mock__branch { position: relative; display: grid; justify-items: center; align-content: start; min-width: 0; padding: 14px 10px 0; }
.org-mock__branch::before { content: ""; position: absolute; top: 0; left: 0; right: 0; border-top: 1px solid var(--line-strong); }
.org-mock__branch:first-child::before { left: 50%; }
.org-mock__branch:last-child::before { right: 50%; }
.org-mock__branch:only-child::before { display: none; }
.org-mock__branch::after { content: ""; position: absolute; top: 0; left: 50%; height: 14px; border-left: 1px solid var(--line-strong); }
.org-mock__node { position: relative; display: grid; gap: 2px; min-width: 150px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); text-align: center; }
.org-mock__node b { font-weight: 600; color: var(--ink); }
.org-mock__node span { color: var(--ink-muted); }
.org-mock__node--parent { margin-bottom: 14px; }
.org-mock__node--parent::after { content: ""; position: absolute; left: 50%; bottom: -15px; height: 14px; border-left: 1px solid var(--line-strong); }
.org-mock__node--vacant { border-style: dashed; background: transparent; }
/* На телефоне схема — списком с отступами, как в самой системе */
@media (max-width: 640px) {
  .org-mock { justify-items: stretch; padding: 16px; }
  .org-mock__row { flex-direction: column; margin-left: 12px; }
  .org-mock__branch { justify-items: stretch; padding: 8px 0 0 16px; }
  .org-mock__branch::before { top: 0; bottom: 0; left: 0; right: auto; border-top: 0; border-left: 1px solid var(--line-strong); }
  .org-mock__branch:first-child::before { left: 0; }
  .org-mock__branch:last-child::before { right: auto; bottom: auto; height: 30px; }
  .org-mock__branch:only-child::before { display: block; }
  .org-mock__branch::after { top: 30px; left: 0; width: 16px; height: 0; border-left: 0; border-top: 1px solid var(--line-strong); }
  .org-mock__node { min-width: 0; text-align: left; }
  .org-mock__node--parent { margin-bottom: 0; }
  .org-mock__node--parent::after { display: none; }
}
.tile__shot { margin-top: 16px; border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden; }

.mini-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; font-size: 12px; text-align: center; }
.mini-calendar span { padding: 6px 0; border-radius: 6px; background: var(--paper); color: var(--ink-muted); }
.mini-calendar .is-pay { background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.mini-calendar .is-paid { background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.mini-calendar .is-today { outline: 1.5px solid var(--ink); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* Разработка под заказ на главной */
.custom-block { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.custom-block > *, .final__grid > *, .bento > * { min-width: 0; }
.custom-block .lead-text { margin-top: 18px; }
.custom-points { display: grid; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--on-dark-muted); }
.custom-points li::before { content: '—  '; color: var(--on-dark); }
/* ИИ-ассистент (Максим, 3454) */
.ai-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ai-block > * { min-width: 0; }
.ai-block .lead-text { margin-top: 18px; }
.ai-points { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--ink-2); }
.ai-points b { color: var(--ink); font-weight: 600; }
.ai-chat { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--white); overflow: hidden; }
.ai-chat__head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.ai-chat__icon svg { width: 18px; height: 18px; color: var(--blue); display: block; }
.ai-chat__log { display: grid; gap: 12px; padding: 18px; font-size: 15px; line-height: 1.45; }
.ai-chat__me { justify-self: end; max-width: 85%; margin: 0; padding: 10px 14px; border-radius: 16px; background: var(--paper-2); }
.ai-chat__me--voice { display: flex; gap: 8px; align-items: flex-start; }
.ai-chat__me--voice svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: 3px; color: var(--ink-muted); }
.ai-chat__bot { display: grid; gap: 8px; }
.ai-chat__bot p { margin: 0; }
.ai-chat__bot u { color: var(--blue); text-underline-offset: 2px; }
.ai-chat__card { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
.ai-chat__muted { font-size: 13px; color: var(--ink-muted); }
.ai-chat--play [data-ai-step] { opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.ai-chat--play [data-ai-step].is-shown { opacity: 1; transform: none; }
.ai-chat__bot { position: relative; }
.ai-chat__bot.is-typing > * { visibility: hidden; }
.ai-chat__bot.is-typing::before { content: '•••'; position: absolute; top: 0; left: 0; padding: 6px 14px; border-radius: 16px; background: var(--paper-2); color: var(--ink-muted); font-size: 18px; line-height: 22px; letter-spacing: 3px; animation: ai-typing 1s ease-in-out infinite; }
@keyframes ai-typing { 50% { opacity: .35; } }
.ai-chat__button { justify-self: start; margin-top: 6px; padding: 6px 14px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; }
@media (max-width: 900px) { .ai-block { grid-template-columns: 1fr; gap: 32px; } }
.chat-teaser { padding: 20px; border-radius: var(--r-lg); background: #17171A; border: 1px solid var(--line-dark); }
.chat-teaser__head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line-dark); font-size: 14px; }
.chat-teaser__avatar { width: 30px; height: 30px; border-radius: 50%; border: 6px solid var(--on-dark); animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); } }
.chat-teaser__status { color: var(--on-dark-muted); font-size: 12px; }
.chat-teaser__log { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; height: 260px; padding: 16px 0; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 48px); mask-image: linear-gradient(to bottom, transparent, #000 48px); }
.chat-teaser__log > * { flex-shrink: 0; }
@media (max-width: 640px) { .chat-teaser__log { height: 300px; } }
.teaser-bubble { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; }
.teaser-bubble--ai { align-self: flex-start; background: #232327; border-top-left-radius: 4px; }
.teaser-bubble--me { align-self: flex-end; background: var(--on-dark); color: var(--ink); border-top-right-radius: 4px; }
.chat-teaser__form { display: flex; gap: 8px; }
.chat-teaser__form input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--line-dark); border-radius: 999px; background: #232327; color: var(--on-dark); font: inherit; font-size: 16px; }
.chat-teaser__form input::placeholder { color: var(--on-dark-muted); }
.chat-teaser__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { padding: 7px 12px; border: 1px solid var(--line-dark); border-radius: 999px; background: transparent; color: var(--on-dark); font: inherit; font-size: 13px; cursor: pointer; transition: background-color .2s; }
.chip:hover { background: #232327; }

/* Как это работает */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; counter-reset: flow; }
.flow__step { padding: 24px; border-radius: var(--r-lg); background: var(--paper-2); }
.flow__step::before { counter-increment: flow; content: counter(flow); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 14px; font-weight: 600; }
.flow__step h3 { margin-top: 20px; font-size: 19px; letter-spacing: -.01em; }
.flow__step p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }

/* Сравнение */
.compare { margin-top: 48px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.compare__row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; padding: 18px 24px; border-top: 1px solid var(--line); font-size: 16px; align-items: center; }
.compare__row:first-child { border-top: 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.compare__old { color: var(--ink-muted); }
.compare__new { display: flex; align-items: center; gap: 10px; font-weight: 550; }
.check { width: 20px; height: 20px; flex-shrink: 0; }
.check path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .6s var(--ease-out); }
.is-visible .check path { stroke-dashoffset: 0; }

/* Тарифы */
/* Тарифы каруселью (Максим, 4159): три широкие карточки на экране, остальные — стрелками или прокруткой */
.plans-carousel { position: relative; margin-top: 32px; padding: 0 64px; }
.plans { display: flex; gap: 16px; padding: 4px 2px 12px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.plans::-webkit-scrollbar { display: none; }
.plans-arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--ink); box-shadow: 0 6px 20px rgba(18,18,18,.12); cursor: pointer; transform: translateY(-50%); transition: opacity .2s; }
.plans-arrow--prev { left: 0; }
.plans-arrow--next { right: 0; }
.plans-arrow:disabled { opacity: 0; pointer-events: none; }
.plan { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; padding: 32px 28px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.plan .button { margin-top: auto; }
.plan ul { flex: 1; margin-bottom: 12px; }
.plan__title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan__title .plan__badge { align-self: center; }
/* Блоки карточек одной высоты — цифры и списки стоят на одной линии во всех тарифах (Максим, 4246) */
.plan__for { min-height: 48px; }
.plan__total { min-height: 42px; margin: -4px 0 0; font-size: 14px; color: var(--ink-muted); }
.plan--main .plan__total { color: var(--on-dark-muted); }
.pricing-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px; margin-top: 40px; }
.period-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper-2); }
.period-tabs__tab { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-size: 15px; cursor: pointer; }
.period-tabs__tab[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(18,18,18,.12); }
.period-tabs__save { font-size: 12px; font-weight: 600; color: var(--ok); }
@media (max-width: 480px) {
  .period-tabs { display: flex; width: 100%; }
  .period-tabs__tab { flex: 1; flex-direction: column; justify-content: center; gap: 0; min-height: 48px; padding: 4px 6px; font-size: 14px; line-height: 1.25; white-space: nowrap; }
}
.users-picker { display: inline-flex; align-items: center; gap: 8px; }
.users-picker__label { font-size: 15px; color: var(--ink-2); }
.users-picker__step { width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); font: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.users-picker__input { width: 64px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--white); font: inherit; font-size: 16px; text-align: center; -moz-appearance: textfield; }
.users-picker__input::-webkit-inner-spin-button, .users-picker__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.plan-free { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 16px; padding: 24px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.plan-free h3 { font-size: 18px; }
.plan-free p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.plan h3 { font-size: 20px; }
.plan__price { white-space: nowrap; font-size: 34px; font-weight: 650; letter-spacing: -.03em; line-height: 1; }
.plan__price small { font-size: 16px; font-weight: 450; color: var(--ink-muted); letter-spacing: 0; }
.plan__for { color: var(--ink-muted); font-size: 15px; }
.plan ul { display: grid; gap: 10px; align-content: start; margin: 8px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--ink); }
.plan--main { position: relative; background: var(--ink); color: var(--on-dark); border: 0; }
.plan--main .plan__for, .plan--main ul, .plan--main .plan__price small { color: var(--on-dark-muted); }
.plan--main li::before { background: var(--on-dark); }
.plan--main::after { content: ''; position: absolute; inset: -1.5px; border-radius: calc(var(--r-lg) + 1.5px); padding: 1.5px; background: conic-gradient(from var(--angle, 0deg), transparent 60%, rgba(18,18,18,.55), transparent 90%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 6s linear infinite; pointer-events: none; }
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --angle: 360deg; } }
.plan__badge { align-self: flex-start; justify-self: start; padding: 3px 10px; border-radius: 999px; background: var(--on-dark); color: var(--ink); font-size: 12px; font-weight: 600; }
.plans__note { margin-top: 20px; font-size: 14px; color: var(--ink-muted); text-align: center; }

/* Вопросы и ответы */
.faq { max-width: 860px; margin: 48px auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 19px; font-weight: 550; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex-shrink: 0; font-size: 26px; font-weight: 300; transition: transform .25s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__answer { margin: 0; padding: 0 0 22px; color: var(--ink-2); max-width: 720px; }
.faq details.is-closing summary::after { transform: none; }
.faq__answer a { text-decoration: underline; }

/* Финальная форма на тёмном */
.final { position: relative; overflow: hidden; margin-bottom: 0; }
.final__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; position: relative; }
.final__bg { position: absolute; right: -6%; bottom: -10%; width: 70%; color: var(--white); opacity: .04; pointer-events: none; }
.final__next { display: grid; gap: 18px; margin: 32px 0 0; padding: 0; list-style: none; counter-reset: next; }
.final__next li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; color: var(--on-dark-muted); }
.final__next li::before { counter-increment: next; content: counter(next); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-dark); color: var(--on-dark); font-size: 14px; }
.final__next strong { display: block; color: var(--on-dark); font-weight: 550; }

.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#lead { scroll-margin-top: 96px; }
.field { display: grid; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 550; }
.field__optional { color: var(--ink-muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--white); font: inherit; font-size: 16px; color: var(--ink); resize: vertical; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18,18,18,.10); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field__error { font-size: 13px; color: var(--err); }
.field__error:empty { display: none; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 400; color: var(--ink-2); cursor: pointer; }
.consent input { appearance: none; -webkit-appearance: none; display: grid; place-items: center; width: 20px; height: 20px; min-height: 0; padding: 0; margin: 1px 0 0; flex-shrink: 0; border: 1.5px solid var(--line-strong); border-radius: 5px; background: var(--white); cursor: pointer; transition: background-color .15s, border-color .15s; }
.consent input::after { content: ''; width: 10px; height: 6px; margin-top: -2px; border-left: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(-45deg) scale(0); transition: transform .15s; }
.consent input:checked { background: var(--ink); border-color: var(--ink); }
.consent input:checked::after { transform: rotate(-45deg) scale(1); }
.field .consent input:focus { box-shadow: none; }
.consent input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.consent input[aria-invalid="true"] { border-color: var(--err); }
.consent a, .policy a { text-decoration: underline; }
.lead__plan { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; padding: 10px 14px; border-radius: var(--r-md); background: var(--paper-2); font-size: 15px; }
.lead__plan[hidden] { display: none; }
.lead__plan-clear { margin-left: auto; padding: 4px 8px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink-muted); text-decoration: underline; cursor: pointer; }
.lead__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead__footer { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lead__status { font-size: 14px; color: var(--ink-2); }
.lead--sent .lead__status { color: var(--ok); font-weight: 550; }
.dark .lead { padding: 28px; border-radius: var(--r-lg); background: var(--paper); color: var(--ink); }
.lead--contact { grid-template-columns: 1fr; align-content: start; gap: 12px; }
.lead__label { margin: 0; font-size: 15px; color: var(--ink-muted); }
.lead__phone { font-size: clamp(28px, 3vw, 36px); font-weight: 600; color: var(--ink); text-decoration: none; }
.lead--contact .button { justify-self: start; }
.brief-page .lead--contact { margin-top: 32px; }

/* Полоса «Разработка под заказ» */
.custom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); transition: border-color .2s; }
.custom:hover { border-color: var(--ink); }
.custom__text { display: grid; gap: 6px; }
.custom__text strong { font-size: 20px; }
.custom__text span { color: var(--ink-2); }

/* Подвал */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px 48px; font-size: 15px; color: var(--ink-2); }
.footer__brand { display: grid; gap: 14px; align-content: start; color: var(--ink); }
.footer__brand .logo { height: 26px; }
.footer__brand p { color: var(--ink-2); max-width: 360px; }
.footer__links { display: grid; gap: 10px; align-content: start; }
.footer__links a:hover { color: var(--ink); }
.footer__muted { grid-column: 1 / -1; color: var(--ink-muted); font-size: 14px; }

/* Страница политики */
.policy { max-width: 760px; padding-top: 48px; padding-bottom: 80px; }
.policy h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; letter-spacing: -.02em; }
.policy h2 { margin-top: 36px; font-size: 21px; }
.policy p, .policy li { margin-top: 12px; color: var(--ink-2); }
.policy ul { padding-left: 20px; }

/* Плашка согласия на Метрику */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 16px; max-width: 680px; margin: 0 auto; padding: 16px 18px; border-radius: var(--r-md); background: var(--ink); color: var(--on-dark); box-shadow: 0 20px 40px -12px rgba(0,0,0,.4); font-size: 14px; }
.cookie p { flex: 1; color: var(--on-dark-muted); }
.cookie a { color: var(--on-dark); text-decoration: underline; }
.cookie__actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie .button { min-height: 40px; padding: 0 16px; font-size: 14px; }
.cookie .button--light:hover { background: var(--paper-2); }
.cookie .button--outline { color: var(--on-dark); border-color: var(--line-dark); }
.cookie .button--outline:hover { background: transparent; border-color: var(--on-dark); }

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

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--wide, .tile--tall, .tile--third, .tile--half, .tile--full { grid-column: span 2; grid-row: auto; }
  .tile--split { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .plans { gap: 12px; margin-left: -16px; margin-right: -16px; padding: 4px 16px 12px; scroll-padding: 0 16px; }
  .plan { flex: 0 0 min(82%, 380px); }
  .plans-arrow { display: none; }
  .plans-carousel { padding: 0; }
  .plan--main { order: -1; }
  .custom-block, .final__grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .pains, .flow { grid-template-columns: 1fr; }
  .pain h3 { margin-top: 20px; }
  .tile { padding: 22px; }
  .compare__row { grid-template-columns: 1fr; gap: 6px; padding: 16px 18px; }
  .compare__row:first-child { display: none; }
  .compare__row > :first-child { font-weight: 600; }
  .compare__old::before { content: 'Сейчас: '; }
  .lead { grid-template-columns: 1fr; }
  .dark .lead { padding: 20px; }
  .hero__actions .button { width: 100%; }
  .lead .button { width: 100%; }
  .custom { flex-direction: column; align-items: stretch; padding: 20px; }
  .footer__inner { grid-template-columns: 1fr; }
  .cookie { flex-direction: column; align-items: stretch; }
  .cookie__actions .button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .plan--main::after, .chat-teaser__avatar, .mobile-menu__nav a { animation: none; }
  .scrub-words .word { opacity: 1; }
  .check path { stroke-dashoffset: 0; transition: none; }
  .tile, .button, .topbar { transition: none; }
}

/* Настоящие скриншоты системы вкладками (Максим: «скриншоты системы зачем убрал?») */
.screens { margin-top: 48px; }
.demo-video { margin: 24px 0 40px; padding: 12px; border-radius: var(--r-lg); background: var(--paper-2); border: 1px solid var(--line); }
.demo-video video { display: block; width: 100%; height: auto; border-radius: var(--r-md); }
@media (max-width: 640px) { .demo-video { padding: 6px; } }
.screens__tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.screens__tab { min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-size: 15px; cursor: pointer; transition: background-color .2s, color .2s; }
.screens__tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.screens__frame { margin-top: 24px; padding: 12px; border-radius: var(--r-lg); background: var(--paper-2); border: 1px solid var(--line); }
.screens__panel { margin: 0; }
.screens__panel img { width: 100%; border-radius: var(--r-md); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.screens__panel--phones { display: flex; justify-content: center; gap: clamp(12px, 4vw, 48px); margin: 0; padding: clamp(8px, 2vw, 24px) 0; }
.screens__panel--phones img { width: min(300px, 44%); border: 6px solid var(--ink); border-radius: clamp(20px, 4vw, 36px); box-shadow: 0 24px 48px -20px rgba(18,18,18,.35); }
.screens__caption { margin-top: 14px; text-align: center; font-size: 15px; color: var(--ink-muted); }
@media (max-width: 640px) { .screens__frame { padding: 6px; } .screens__tab { font-size: 14px; padding: 0 12px; } }

/* Справка (база знаний 4165), постранично как у Яндекса (4371) */
.help-page { padding-top: 40px; padding-bottom: 96px; }
.help-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.help-nav { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 16px; border-right: 1px solid var(--line); }
.help-nav__toggle { display: none; }
.help-tree { display: grid; gap: 2px; font-size: 14px; }
.help-tree__home { display: block; padding: 6px 8px; margin-bottom: 6px; border-radius: var(--r-md); color: var(--ink-2); font-weight: 600; }
.help-tree__group summary { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 8px; border-radius: var(--r-md); font-weight: 600; cursor: pointer; list-style: none; }
.help-tree__group summary::-webkit-details-marker { display: none; }
.help-tree__group summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .2s; flex-shrink: 0; }
.help-tree__group[open] summary::before { transform: rotate(45deg); }
.help-tree__group summary:hover, .help-tree__home:hover { background: var(--paper-2); }
.help-tree ul { display: grid; gap: 2px; margin: 2px 0 8px 10px; padding: 0 0 0 14px; border-left: 1px solid var(--line); list-style: none; }
.help-tree ul a { display: block; padding: 6px 10px; border-radius: var(--r-md); color: var(--ink-2); line-height: 1.35; }
.help-tree ul a:hover { background: var(--paper-2); color: var(--ink); }
/* Без жирного: жирный текст шире, строки переносятся иначе и дерево прыгает при переходе (Миша, 4381) */
.help-tree a[aria-current] { background: var(--paper-2); color: var(--ink); }
.help-content { min-width: 0; max-width: 760px; }
.help-content h1 { margin-top: 8px; font-size: clamp(32px, 5vw, 44px); line-height: 1.12; letter-spacing: -.03em; }
.help-card h2, .help-related h2 { line-height: 1.3; }
.help-page__lead { max-width: 640px; margin-top: 12px; color: var(--ink-2); font-size: 17px; }
.help-search-box { position: relative; max-width: 560px; margin-top: 24px; }
article.help-content .help-search-box { margin: 0 0 28px; }
.help-search { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--white); font: inherit; font-size: 16px; color: var(--ink); }
.help-search:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18,18,18,.10); }
.help-results { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; display: grid; max-height: 360px; overflow-y: auto; margin: 0; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); box-shadow: 0 12px 32px rgba(18,18,18,.12); list-style: none; }
.help-results[hidden] { display: none; }
.help-results a { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-md); }
.help-results a:hover, .help-results a:focus { background: var(--paper-2); outline: none; }
.help-results small { color: var(--ink-muted); font-size: 13px; }
.help-empty { margin-top: 12px; color: var(--ink-2); }
.help-empty a, .help-contact a { text-decoration: underline; }
.help-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.help-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.help-card h2 { font-size: 18px; letter-spacing: -.01em; }
.help-card ul { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 15px; }
.help-card a, .help-related a { color: var(--ink-2); line-height: 1.4; }
.help-card a:hover, .help-related a:hover { color: var(--ink); text-decoration: underline; }
.help-crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--ink-muted); font-size: 14px; }
.help-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.help-content__title { margin-top: 12px; }
.help-steps { display: grid; gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: step; }
.help-steps li { position: relative; padding-left: 44px; color: var(--ink-2); font-size: 17px; line-height: 1.55; counter-increment: step; }
.help-steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--paper-2); color: var(--ink); font-size: 14px; font-weight: 600; }
.help-steps b { color: var(--ink); font-weight: 600; }
.help-ui { white-space: nowrap; }
.help-ui svg { display: inline-block; width: 16px; height: 16px; margin: 0 4px 0 1px; vertical-align: -2px; }
.help-related { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.help-related h2 { font-size: 18px; letter-spacing: -.01em; }
.help-related ul { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 15px; }
.help-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.help-pager a { display: grid; gap: 4px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); font-weight: 600; line-height: 1.35; }
.help-pager a:hover { border-color: var(--line-strong); }
.help-pager span { color: var(--ink-muted); font-size: 13px; font-weight: 400; }
.help-pager__next { text-align: right; }
.help-contact { margin-top: 40px; padding: 20px 24px; border-radius: var(--r-lg); background: var(--paper-2); color: var(--ink-2); font-size: 15px; line-height: 1.5; }
@media (max-width: 900px) {
  .help-page { padding-top: 24px; }
  .help-layout { grid-template-columns: 1fr; gap: 24px; }
  .help-nav { position: static; max-height: none; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
  .help-nav__toggle { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; font-weight: 600; cursor: pointer; list-style: none; }
  .help-nav__toggle::-webkit-details-marker { display: none; }
  .help-nav__toggle::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
  .help-nav[open] .help-nav__toggle::after { transform: rotate(-135deg); }
  .help-tree { padding: 0 8px 8px; }
  .help-nav--home { display: none; }
  .help-cards { grid-template-columns: 1fr; margin-top: 28px; }
  .help-card { padding: 20px; }
  .help-pager { grid-template-columns: 1fr; }
  .help-pager__next { text-align: left; }
}

/* Сайт компании (Миша, 5475): карточки продуктов на главной, тарифы TMS без переключателя */
.product { gap: 14px; }
.product .eyebrow { margin: 0; }
.product h3 { font-size: 32px; letter-spacing: -.025em; }
.product__points { display: grid; gap: 8px; margin: 4px 0 8px; padding: 0; list-style: none; color: var(--ink-2); }
.product__points li::before { content: '-  '; color: var(--ink-muted); }
.product__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.product__note { margin: 0; color: var(--ink-2); }
.contacts { display: flex; justify-content: center; margin-top: 40px; }
.contacts__card { width: min(100%, 420px); padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); justify-items: center; text-align: center; }
.contacts__card .button { justify-self: center; }
.plans--static { margin-top: 48px; overflow: visible; }
@media (max-width: 1024px) {
  .plans--static { flex-direction: column; margin: 40px 0 0; padding: 0; }
  .plans--static .plan { flex: 0 0 auto; }
}
@media (max-width: 640px) {
  .product__actions .button { flex: 1; }
}
#contacts { padding-bottom: var(--section-gap); }

/* Страница «не найдено» (Миша, 5482) */
.not-found { padding-top: clamp(48px, 9vw, 112px); padding-bottom: var(--section-gap); text-align: center; }
.not-found__code { margin: 0; font-size: clamp(96px, 18vw, 200px); font-weight: 650; line-height: .9; letter-spacing: -.06em; color: var(--line); }
.not-found h1 { margin-top: 8px; font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -.03em; }
.not-found__lead { max-width: 560px; margin: 18px auto 0; font-size: 18px; color: var(--ink-2); }
.not-found__links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 960px; margin: 48px auto 0; text-align: left; }
.not-found__link { display: grid; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.not-found__link:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.not-found__link b { font-size: 18px; color: var(--ink); }
.not-found__link span { font-size: 15px; color: var(--ink-muted); }
@media (max-width: 900px) { .not-found__links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .not-found__links { grid-template-columns: 1fr; } }
.hero--company h1 { max-width: 1200px; }

/* TMS: сумма за выбранное число пользователей - так же, как счёт в кабинете (аудит P1-14) */
.plan__sum { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 550; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan--main .plan__sum { border-top-color: var(--line-dark); color: var(--on-dark); }
.pricing-note { margin: 24px 0 0; text-align: center; font-size: 15px; color: var(--ink-muted); }
.pricing-note a, .page-text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* TMS: «Оплата и документы» и «Вывоз мусора» */
.page-hero { padding-top: clamp(40px, 7vw, 88px); }
.page-hero h1 { max-width: 880px; font-size: clamp(36px, 5vw, 64px); letter-spacing: -.035em; line-height: 1.05; }
.page-hero .hero__lead { margin: 20px 0 0; max-width: 720px; }
.page-hero .hero__actions { justify-content: flex-start; margin-top: 32px; }
.page-text { max-width: 760px; }
.page-text h2 { margin-top: 48px; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.02em; }
.page-text p, .page-text li { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.page-text ul { padding-left: 20px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.facts__item { padding: 24px; border-radius: var(--r-lg); background: var(--paper-2); }
.facts__item b { display: block; font-size: 24px; letter-spacing: -.02em; color: var(--ink); }
.facts__item span { display: block; margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.example-note { display: inline-block; margin-top: 16px; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); font-size: 14px; color: var(--ink-muted); }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr; } }
.flow--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .flow--three { grid-template-columns: 1fr; } }
