/* Константа Лабс — новые страницы (этап 1 роста, 18.11.2026): тестировщики, обратная связь, инвесторы, «Что нового», контакты, шапка.
   Подключать после tokens.css и site.css. Язык — V1 «суперапп-каталог» живого сайта: светлое поле, белые карточки r28,
   пастельные плитки продуктов с объёмными предметами, Onest 800, один акцент (кобальт) — только главная кнопка и фокус.
   Выбор в формах — чернилами (как текущая страница в шапке), ошибка/успех — два новых смысловых цвета ниже.
   Никаких внешних ресурсов, инлайн-стилей и скриптов (CSP 'self'). Состояния форм — классами .is-error / .is-sending / .is-success. */

:root {
  /* Новые смысловые токены (только для состояний форм). Контраст на белом: --danger 5.9:1, --ok 5.0:1 */
  --danger: #C4231C;
  --danger-soft: #FDECEB;
  --ok: #1D7A45;
  --ok-soft: #DDF2E4;
  --field: #F2F3F5;          /* = --bg: поле ввода на белой карточке */
  --field-hover: #EAECF0;
  --box-line: #8A8F98;       /* рамка чекбокса, 3.3:1 на белом */
  --shadow-pop: 0 18px 44px -18px rgba(22, 23, 27, 0.38), 0 0 0 1px rgba(22, 23, 27, 0.06);
}

.c-delay { background: var(--t-delay); } .c-split { background: var(--t-split); } .c-kids { background: var(--t-kids); }
.c-sp { background: var(--t-sp); } .c-pr { background: var(--t-pr); } .c-site { background: var(--fill); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────── Шапка: на широком — пилюли, на узком — <details> «Меню» без JS ───────── */
.site-bar { position: relative; z-index: 20; }
.bar .nav-full { display: flex; gap: var(--sp-2); }
.bar .nav-menu { display: none; position: static; }
.nav-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 14px; border-radius: var(--r-pill); background: var(--card); font-size: 15px; font-weight: 600; cursor: pointer; user-select: none; transition: background var(--t-fast) var(--ease-out); }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary:hover { background: var(--fill); }
.burger { position: relative; width: 18px; height: 12px; flex: none; }
.burger::before, .burger::after, .burger i { content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--t-fast) var(--ease-out), opacity var(--t-fast) var(--ease-out); }
.burger::before { top: 0; } .burger i { top: 5px; } .burger::after { bottom: 0; }
.nav-menu[open] summary { background: var(--ink); color: #fff; }
.nav-menu[open] .burger::before { transform: translateY(5px) rotate(45deg); }
.nav-menu[open] .burger::after { transform: translateY(-5px) rotate(-45deg); }
.nav-menu[open] .burger i { opacity: 0; }
.nav-menu .when-open { display: none; }
.nav-menu[open] .when-open { display: inline; }
.nav-menu[open] .when-closed { display: none; }
.bar .nav-menu nav { position: absolute; left: 0; right: 0; top: calc(100% - 4px); display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow-pop); }
.bar .nav-menu nav a { min-height: 52px; padding: 0 16px; border-radius: 16px; font-size: 17px; font-weight: 600; background: transparent; justify-content: space-between; }
.bar .nav-menu nav a::after { content: "→"; color: var(--muted); font-weight: 500; }
.bar .nav-menu nav a:hover { background: var(--fill); }
.bar .nav-menu nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.bar .nav-menu nav a[aria-current="page"]::after { content: ""; }
.bar .nav-menu nav .menu-sep { height: 1px; margin: 6px 16px; background: var(--fill); }
.bar .nav-menu nav a.menu-minor { min-height: 46px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  @keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
  .nav-menu[open] nav { animation: menu-in 200ms var(--ease-out); }
}
@media (max-width: 1079px) {
  .bar .nav-full { display: none; }
  .bar .nav-menu { display: block; }
}

/* ───────── Заголовок страницы: H1 слева, вводная справа (как /beta) ───────── */
.page-head { padding-block: clamp(20px, 3.6vw, 52px) clamp(20px, 2.6vw, 36px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 12px 48px; align-items: end; }
.page-head h1 { font-size: clamp(38px, 4.4vw, 64px); line-height: var(--lh-tight); letter-spacing: var(--track-display); font-weight: 800; text-wrap: balance; }
.page-head .lead { color: var(--ink-2); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.45; max-width: 31em; text-wrap: pretty; }
.page-head .lead + .lead { margin-top: 8px; }

.sec-h { font-size: var(--fs-h2); line-height: var(--lh-head); letter-spacing: var(--track-head); font-weight: 800; text-wrap: balance; }
.sec-sub { margin-top: 8px; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }

/* ───────── Форма: белая карточка, поля-заливки, выбор плитками ───────── */
.form-card { position: relative; background: var(--card); border-radius: var(--r-card); padding: clamp(20px, 3vw, 40px); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.form > .full, .form > fieldset, .form > .form-alert, .form > .form-foot { grid-column: 1 / -1; }
.form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.label, .form legend { display: block; padding: 0; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.label .opt-mark, .form legend .opt-mark { font-weight: 500; color: var(--muted); }
.form legend { margin-bottom: 12px; }
.hint { font-size: 14px; line-height: 1.4; color: var(--muted); text-wrap: pretty; }
.form legend + .hint { margin: -6px 0 12px; }

.input, .textarea { width: 100%; min-height: 56px; padding: 15px 18px; border: 0; border-radius: var(--r-btn); background: var(--field); color: var(--ink); font: 500 17px/1.4 var(--font); box-shadow: inset 0 0 0 1.5px transparent; transition: background var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out); -webkit-appearance: none; appearance: none; }
.input::placeholder, .textarea::placeholder { color: #8A8F98; opacity: 1; }
.input:hover, .textarea:hover { background: var(--field-hover); }
.input:focus, .textarea:focus { outline: none; background: var(--card); box-shadow: inset 0 0 0 2px var(--accent); }
.textarea { min-height: 168px; resize: vertical; }
.counter { align-self: flex-end; margin-top: -2px; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.counter.is-near { color: var(--ink); }
.counter.is-over { color: var(--danger); }

/* Выбор продукта: плитка цвета продукта с предметом. Сам input скрыт визуально, но фокусируется и читается */
.choice { position: relative; display: block; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.opts.prod { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.opts.prod.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.opt { position: relative; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px 14px 16px; border-radius: 22px; background: var(--field); box-shadow: inset 0 0 0 2px transparent; transition: background var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.opt .sq { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; flex: none; }
.opt .sq img { width: 50px; height: 50px; object-fit: contain; }
.opt .sq.c-site { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--fill-hover); }
.opt .sq.c-site svg { width: 30px; height: 30px; }
.opt .nm { display: block; font-size: 16px; font-weight: 700; line-height: 1.2; }
.opt .role { display: block; margin-top: 3px; font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--muted); }
.opt .tick { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 2px #C3C7CE; background: var(--card); display: grid; place-items: center; transition: background var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out); }
.opt .tick svg { width: 14px; height: 14px; opacity: 0; }
.choice:hover .opt { background: var(--field-hover); }
.choice input:active + .opt { transform: scale(0.98); }
.choice input:checked + .opt { background: var(--card); box-shadow: inset 0 0 0 2.5px var(--ink); }
.choice input:checked + .opt .tick { background: var(--ink); box-shadow: none; }
.choice input:checked + .opt .tick svg { opacity: 1; }
.choice input:focus-visible + .opt { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Пилюли: платформа, интерес */
.opts.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-opt { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-pill); background: var(--field); font-size: 16px; font-weight: 600; white-space: nowrap; transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.choice:hover .pill-opt { background: var(--field-hover); }
.choice input:active + .pill-opt { transform: scale(0.97); }
.choice input:checked + .pill-opt { background: var(--ink); color: #fff; }
.choice input:focus-visible + .pill-opt { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Согласие: отдельный чекбокс 28 px, текст рядом, вся строка — зона касания */
.consent { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--field); cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 28px; height: 28px; margin: 0; top: 14px; left: 16px; cursor: pointer; }
.consent .box { flex: none; width: 28px; height: 28px; border-radius: 9px; background: var(--card); box-shadow: inset 0 0 0 2px var(--box-line); display: grid; place-items: center; transition: background var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out); }
.consent .box svg { width: 16px; height: 16px; opacity: 0; }
.consent input:checked + .box { background: var(--ink); box-shadow: none; }
.consent input:checked + .box svg { opacity: 1; }
.consent input:focus-visible + .box { outline: 3px solid var(--accent); outline-offset: 3px; }
.consent .ct { font-size: 15px; line-height: 1.45; color: var(--ink); padding-top: 2px; text-wrap: pretty; }
/* Обратная связь: согласие показывается, только когда контакт заполнен (CSS :has; кодер дублирует правило на сервере и ставит required) */
.form:has(.js-contact:placeholder-shown) .if-contact { display: none; }

/* Подвал формы: кнопка + строка о данных */
.form-foot { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.form-foot .btn-main { border: 0; cursor: pointer; font-family: var(--font); }
.form-foot .btn-main:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.form-foot .note { flex: 1 1 260px; max-width: 34em; font-size: 14px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.form-foot .note a { color: var(--ink-2); font-weight: 600; }

/* Ловушка для ботов: вне экрана, недоступна с клавиатуры (tabindex=-1) и скринридеру (aria-hidden) */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ───────── Состояния ───────── */
/* Ошибка: сводка сверху + сообщение у поля */
.form-alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: var(--danger-soft); color: var(--ink); font-size: 15px; line-height: 1.45; }
.form-alert .ic { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--danger); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; line-height: 1; }
.form-alert b { display: block; font-size: 16px; }
.form-alert a { color: var(--danger); font-weight: 700; }
.form-alert ul { margin: 4px 0 0; padding-left: 18px; }
.form-alert[hidden] { display: none; }
.err { display: none; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--danger); }
.err::before { content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--danger); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; line-height: 1; }
.is-error > .err, .is-error .err { display: flex; }
.field.is-error .input, .field.is-error .textarea { background: var(--danger-soft); box-shadow: inset 0 0 0 2px var(--danger); }
fieldset.is-error .opt, fieldset.is-error .pill-opt { box-shadow: inset 0 0 0 2px rgba(196, 35, 28, 0.55); }
fieldset.is-error .err { margin-top: 10px; }
.consent.is-error { background: var(--danger-soft); box-shadow: inset 0 0 0 2px var(--danger); }
.consent.is-error .box { box-shadow: inset 0 0 0 2px var(--danger); }
.consent-wrap .err { margin-top: 8px; }

/* Отправка: кнопка неактивна, крутилка, поля приглушены */
.form.is-sending .field, .form.is-sending fieldset, .form.is-sending .consent-wrap { opacity: 0.55; pointer-events: none; }
.btn-main .spin { display: none; width: 20px; height: 20px; margin-right: 10px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; }
.form.is-sending .btn-main { background: var(--accent-press); cursor: progress; }
.form.is-sending .btn-main .spin { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes spin { to { transform: rotate(360deg); } }
  .form.is-sending .btn-main .spin { animation: spin 800ms linear infinite; }
}
/* Сбой сети/сервера — та же сводка, другой текст */
.form-alert.is-fail { background: var(--fill); }
.form-alert.is-fail .ic { background: var(--ink); }

/* Успех: форма заменяется карточкой автоответа */
.result { display: none; }
.form-card.is-success .form { display: none; }
.form-card.is-success .result { display: grid; }
.result { grid-template-columns: auto minmax(0, 1fr); gap: 16px 24px; align-items: start; }
.result .ok { width: 72px; height: 72px; border-radius: 24px; background: var(--ok-soft); display: grid; place-items: center; }
.result .ok svg { width: 34px; height: 34px; }
.result h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; letter-spacing: var(--track-head); font-weight: 800; text-wrap: balance; }
.result .r-txt { margin-top: 10px; color: var(--ink-2); font-size: clamp(16px, 1.25vw, 18px); max-width: 34em; text-wrap: pretty; }
.result .r-body { min-width: 0; }
.result .r-next { grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; counter-reset: rn; }
.result .r-next li { counter-increment: rn; background: var(--field); border-radius: 22px; padding: 20px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.result .r-next li::before { content: counter(rn); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 10px; border-radius: 11px; background: var(--ink); color: #fff; font-weight: 800; font-size: 15px; }
.result .r-next b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
.result .r-act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* ───────── «Что будет дальше»: три шага ───────── */
.next { margin-top: clamp(48px, 6vw, 80px); }
.next-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.next-list li { counter-increment: step; background: var(--fill); border-radius: var(--r-tile); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.next-list li::before { content: counter(step); width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; margin-bottom: 8px; }
.next-list h3 { font-size: 21px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
.next-list p { color: var(--ink-2); font-size: 16px; text-wrap: pretty; }

/* ───────── Инвесторам: три тезиса ───────── */
.theses { list-style: none; margin: 0 0 clamp(28px, 3vw, 40px); padding: 0; display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 12px; }
.thesis { border-radius: var(--r-tile); padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 236px; }
.thesis h2 { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.12; letter-spacing: var(--track-head); font-weight: 800; text-wrap: balance; }
.thesis p { font-size: 16px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.thesis.white { background: var(--card); }
.thesis .row { list-style: none; margin: auto 0 0; padding: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.thesis .row li { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: var(--r-pill); background: var(--field); font-size: 14px; font-weight: 700; }
.thesis .row .sq { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; }
.thesis .row .sq img { width: 26px; height: 26px; object-fit: contain; }
.thesis .obj { margin-top: auto; align-self: flex-end; width: 92px; height: 92px; object-fit: contain; }
.form-title { grid-column: 1 / -1; }
.form-title h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; letter-spacing: var(--track-head); font-weight: 800; }
.form-title p { margin-top: 6px; color: var(--ink-2); font-size: 16px; }

/* ───────── «Что нового»: плитка продукта = три колонки данных ───────── */
.news { display: grid; gap: 12px; }
.news-tile { border-radius: var(--r-tile); padding: 28px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr) minmax(0, 0.95fr); gap: 20px 36px; scroll-margin-top: 16px; }
.nt-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.nt-id { display: flex; gap: 14px; align-items: center; }
.nt-id .sq { flex: none; width: 64px; height: 64px; border-radius: 20px; background: rgba(255, 255, 255, 0.62); display: grid; place-items: center; }
.nt-id .sq img { width: 52px; height: 52px; object-fit: contain; }
.nt-id h2 { font-size: clamp(24px, 2vw, 30px); line-height: 1.08; letter-spacing: var(--track-head); font-weight: 800; }
.nt-id .who { margin-top: 3px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.status { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 14px 0 12px; border-radius: var(--r-pill); background: var(--card); font-size: 14px; font-weight: 700; line-height: 1.2; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.live::before { background: var(--ok); }
.status.test::before { background: var(--accent); }
.status.wait::before { background: #B26A00; }
.kv { margin: 0; display: grid; gap: 2px; }
.kv dt { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.kv dd { margin: 0; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tbd { display: inline-block; padding: 1px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.55); color: var(--ink-2); font-weight: 600; font-style: normal; }
.nt-col h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-2); }
.changes { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.changes li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.42; text-wrap: pretty; }
.changes li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.changes li.is-tbd { padding-left: 0; color: var(--ink-2); }
.changes li.is-tbd::before { display: none; }
.install { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.install .chan { margin-top: 10px; font-size: 17px; font-weight: 700; line-height: 1.3; }
.install .btn-tile { min-height: 52px; max-width: 100%; padding: 12px 26px; font-size: 17px; font-weight: 700; line-height: 1.25; white-space: normal; text-align: center; }
.install .act-note { font-size: 14px; line-height: 1.4; color: var(--ink-2); max-width: 26em; text-wrap: pretty; }
.install .act-note a { font-weight: 600; color: var(--ink); }
.news-meta { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ───────── Контакты: блок для главной и подвала новых страниц ───────── */
.contacts { margin-top: clamp(64px, 8vw, 112px); scroll-margin-top: 16px; }
.contacts-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 32px; align-items: end; }
.contacts-head p { color: var(--ink-2); font-size: clamp(16px, 1.25vw, 18px); max-width: 30em; text-wrap: pretty; }
.contact-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact { height: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ic k go" "ic v go" "ic n go"; column-gap: 20px; align-items: center; padding: 24px 28px; border-radius: var(--r-tile); background: var(--card); text-decoration: none; transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out); }
.contact:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(22, 23, 27, 0.4); }
.contact:active { transform: scale(0.985); }
.contact .ic { grid-area: ic; width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; }
.contact .ic svg { width: 34px; height: 34px; }
.contact .k { grid-area: k; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.contact .v { grid-area: v; font-size: clamp(19px, 1.7vw, 24px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; overflow-wrap: anywhere; }
.contact .n { grid-area: n; margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--muted); text-wrap: pretty; }
.contact .go { grid-area: go; width: 44px; height: 44px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; font-size: 18px; font-weight: 700; transition: background var(--t-fast) var(--ease-out); }
.contact:hover .go { background: var(--ink); color: #fff; }
/* Соцсети: строка ссылок-пилюль. Пустой пункт-образец скрыт; если видимых пунктов нет — скрыт весь ряд */
.social { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.social::before { content: "Мы в соцсетях"; margin-right: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); background: var(--card); font-size: 15px; font-weight: 600; text-decoration: none; transition: background var(--t-fast) var(--ease-out); }
.social a:hover { background: var(--fill); }
.social--empty { display: none; }
.social:not(:has(> li:not(.social--empty))) { display: none; }

/* ───────── Подвал новых страниц ───────── */
.foot-new { margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--fill-hover); }
.foot-new .foot-links a { text-decoration: none; }
.foot-new .foot-links a:hover { color: var(--ink); text-decoration: underline; }

/* ───────── Макет: блок состояний для разработчика (на сайт не переносить) ───────── */

/* ───────── Адаптив ───────── */
@media (max-width: 1100px) {
  .news-tile { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .news-tile .install { grid-column: 2; }
  .theses { grid-template-columns: 1fr 1fr; }
  .theses .thesis:first-child { grid-column: 1 / -1; min-height: 0; }
}
@media (max-width: 960px) {
  .opts.prod, .opts.prod.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .next-list, .result .r-next { grid-template-columns: 1fr; }
  .page-head, .contacts-head { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-head { padding-block: 16px 20px; gap: 10px; }
  .page-head h1 { font-size: 38px; }
  .page-head .lead { font-size: 17px; }
  .form-card { border-radius: 24px; padding: 20px 16px 20px; margin-inline: -4px; }
  .form { grid-template-columns: 1fr; gap: 22px; }
  .form legend { margin-bottom: 10px; }
  /* Продукт на телефоне: белые чипы 2 колонки «предмет + название», как ряд сервисов на главной */
  .opts.prod, .opts.prod.six { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .opt { flex-direction: row; align-items: center; gap: 10px; padding: 7px 8px 7px 7px; border-radius: 18px; min-height: 62px; }
  .opt .sq { width: 46px; height: 46px; border-radius: 15px; }
  .opt .sq img { width: 38px; height: 38px; }
  .opt .sq.c-site svg { width: 24px; height: 24px; }
  .opt .t { min-width: 0; }
  .opt .nm { font-size: 14.5px; }
  .opt .role { font-size: 12.5px; margin-top: 1px; }
  /* Отметка — значком на углу предмета, как бейдж на иконке: тексту остаётся вся ширина */
  .opt .tick { top: 3px; left: 39px; right: auto; width: 20px; height: 20px; box-shadow: inset 0 0 0 2px #C3C7CE, 0 0 0 2px var(--field); }
  .choice input:checked + .opt .tick { box-shadow: 0 0 0 2px var(--card); }
  .opt .tick svg { width: 11px; height: 11px; }
  .pill-opt { min-height: 46px; padding: 0 18px; font-size: 15px; }
  .consent { padding: 12px 14px; }
  .consent input { top: 12px; left: 14px; }
  .form-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .form-foot .note { flex: none; text-align: center; font-size: 13px; }
  .result { grid-template-columns: 1fr; gap: 14px; }
  .result .ok { width: 60px; height: 60px; border-radius: 20px; }
  .result .r-next li { padding: 16px 16px 16px 60px; position: relative; min-height: 64px; }
  .result .r-next li::before { position: absolute; left: 16px; top: 16px; margin: 0; }
  .result .r-act .btn-main, .result .r-act .link-btn { width: 100%; justify-content: center; }
  .next { margin-top: 48px; }
  .next-list { margin-top: 16px; gap: 8px; }
  .next-list li { padding: 20px 20px 20px 76px; position: relative; border-radius: 24px; gap: 4px; min-height: 84px; }
  .next-list li::before { position: absolute; left: 20px; top: 20px; margin: 0; }
  .next-list h3 { font-size: 18px; }
  .next-list p { font-size: 15px; }
  /* Тезисы на телефоне компактно: первый во всю ширину, два других рядом — чтобы форма начиналась раньше */
  .theses { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
  .theses .thesis:first-child { grid-column: 1 / -1; }
  .thesis { min-height: 0; padding: 18px 16px; border-radius: 22px; gap: 6px; }
  .thesis h2 { font-size: 19px; }
  .thesis p { font-size: 14.5px; line-height: 1.4; }
  .thesis .row { padding-top: 6px; gap: 6px; }
  .thesis .row li { font-size: 13px; padding: 4px 10px 4px 4px; }
  .thesis .row .sq { width: 26px; height: 26px; border-radius: 9px; }
  .thesis .row .sq img { width: 22px; height: 22px; }
  .thesis .obj { display: none; }
  .form-card.inv .form-title p { display: none; }
  .form-card.inv .textarea { min-height: 128px; }
  .install .chan { margin-top: 4px; }
  .news { gap: 8px; }
  .news-tile { grid-template-columns: 1fr; gap: 18px; padding: 22px 20px; border-radius: 24px; }
  .news-tile .install { grid-column: auto; }
  .nt-head { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
  .nt-id .sq { width: 56px; height: 56px; border-radius: 18px; }
  .nt-id .sq img { width: 44px; height: 44px; }
  .nt-head .kv { flex-basis: 100%; display: flex; gap: 8px; align-items: baseline; }
  .install .btn-tile { width: 100%; }
  .install .act-note { max-width: none; }
  .contact-list { grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
  .contact { padding: 18px 16px 18px 18px; column-gap: 14px; border-radius: 24px; }
  .contact .ic { width: 56px; height: 56px; border-radius: 18px; }
  .contact .ic svg { width: 28px; height: 28px; }
  .contact .v { font-size: 18px; }
  .contact { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ic k" "ic v" "ic n"; }
  .contact .go { display: none; }
  .foot-new { margin-top: 40px; }
}
@media (max-width: 359px) {
  .opts.prod, .opts.prod.six { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 34px; }
}

/* Макет шапки: открытое меню в рамке, чтобы выпадающий список попал в кадр */
.nav-demo { position: relative; min-height: 560px; border-radius: var(--r-card); background: var(--bg); box-shadow: inset 0 0 0 1px var(--fill-hover); }
.nav-demo .bar .nav-menu { display: block; }
.nav-demo .bar .nav-full { display: none; }

/* <noscript> над формой */
.noscript { margin-bottom: 20px; }

/* Tester flow reuses V1 tiles and controls. */
.tester-page .public-choice { margin-bottom: 28px; }
.tester-page .public-choice fieldset { border: 0; padding: 0; min-width: 0; }
.tester-page .public-choice legend { font-weight: 700; }
.tester-page .selection-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 8px 0; }
.tester-page .selection-actions button { border: 0; cursor: pointer; font: inherit; }
.tester-page .public-choice .prod { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tester-page #selection-status, .tester-page .public-help { margin: 12px 0; }
.tester-page #public-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tester-page .public-link-card { background: var(--card); border-radius: var(--r-card, 28px); padding: 20px; }
.tester-page .public-link-card h2 { font-size: 22px; }
.tester-page .public-link-card p { margin: 6px 0 14px; }
.tester-page #invitation > summary { cursor: pointer; min-height: 44px; }
.tester-page #invitation .sec-sub { margin: 12px 0 20px; }
.tester-page :focus-visible { outline: 3px solid var(--accent, #2455ee); outline-offset: 4px; }
.tester-page *, .tester-page *::before, .tester-page *::after { animation: none !important; transition: none !important; }
@media (max-width: 600px) {
  .tester-page .page-head { padding-block: 18px; }
  .tester-page .page-head h1 { font-size: 32px; }
  .tester-page .public-choice .prod { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tester-page .public-choice .opt { padding: 10px; gap: 8px; min-height: 72px; }
  .tester-page .public-choice .sq { width: 32px; height: 32px; }
  .tester-page .public-choice .nm { font-size: 14px; }
  .tester-page .public-choice .role { font-size: 12px; }
  .tester-page .public-choice .tick { left: 30px; top: 4px; width: 16px; height: 16px; }
  .tester-page .public-choice .sq img { width: 30px; height: 30px; }
  .tester-page #public-links { grid-template-columns: minmax(0, 1fr); }
}
