/* Статические страницы: сравнения и лендинги. Поверх app/src/ui/styles.css, по DIRECTION.md (Signal). */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* полоса с заголовком */
.site-band { background: var(--cobalt); color: #fff; padding-bottom: 64px; }
.site-band.has-hero { padding-bottom: 0; }
.site-band-in { max-width: 1320px; margin: 0 auto; padding: 8px var(--pad) 0; display: flex; flex-direction: column; gap: 20px; }
.site-band h1 { margin: 0; max-width: 22ch; font-family: var(--display); font-size: clamp(34px, 4.6vw, 64px); line-height: 1; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.is-landing .site-band h1 { max-width: 18ch; font-size: clamp(40px, 6.4vw, 88px); line-height: 0.97; letter-spacing: -0.035em; }
.site-answer { margin: 0; max-width: 64ch; font-size: 20px; line-height: 1.45; color: var(--on-cobalt); text-wrap: pretty; }
.site-meta { margin: 0; max-width: 72ch; font-size: 15px; color: var(--on-cobalt); opacity: 0.86; }
.site-band .actions { margin-top: 4px; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--on-cobalt); }
.crumbs li + li::before { content: '/'; margin: 0 10px; opacity: 0.6; }
.crumbs a { color: inherit; text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.crumbs li { display: inline-flex; align-items: center; min-height: 32px; }
.crumbs [aria-current] { color: #fff; font-weight: 600; }

/* снимок продукта на первом экране */
.site-shot { position: relative; max-width: 1320px; margin: 44px auto 0; padding: 0 var(--pad); }
.site-shot a { display: block; max-width: 1100px; margin-left: auto; border-radius: var(--r-card) var(--r-card) 0 0; overflow: hidden; background: #fff; box-shadow: var(--shadow-sheet); }
.site-shot img { display: block; width: 100%; height: auto; }
.site-shot figcaption { max-width: 1100px; margin: 0 0 0 auto; padding: 14px 0 0; font-size: 14px; color: var(--text-2); }
.site-band.has-hero + .site-main { padding-top: 24px; }
.site-band.has-hero { position: relative; background: var(--paper); }
.site-band.has-hero::before { content: ''; position: absolute; inset: 0 0 120px; background: var(--cobalt); }
.site-band.has-hero > * { position: relative; }

/* текст */
/* круг 11: левый край текста совпадает с левым краем заголовка в полосе; ширина чтения — у детей */
.site-main { max-width: 1320px; margin: 0 auto; padding: 48px var(--pad) 80px; display: flex; flex-direction: column; gap: 48px; }
.site-main > * { width: 100%; max-width: 900px; }
.site-sec { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.site-sec > .list-h { margin-bottom: 0; }
.site-sec > p { margin: 0; max-width: 68ch; font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.site-main a:not(.btn):not(.row-card) { color: var(--cobalt); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.bul { margin: 0; padding: 0 0 0 1.2em; display: flex; flex-direction: column; gap: 8px; max-width: 68ch; font-size: 17px; line-height: 1.55; }
.bul li::marker { color: var(--cobalt); }

.pairs { margin: 0; display: flex; flex-direction: column; background: #fff; border-radius: 20px; box-shadow: var(--shadow-card); overflow: hidden; }
.pairs > div { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); gap: 8px 24px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.pairs > div:last-child { border-bottom: 0; }
.pairs dt { font-weight: 600; }
.pairs dd { margin: 0; color: var(--text-2); }

.faq { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.faq dt { font-weight: 600; font-size: 17px; }
.faq dd { margin: 4px 0 0; max-width: 68ch; color: var(--text-2); }

.src { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.src span { color: var(--text-3); overflow-wrap: anywhere; }

.site-end { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.site-updated { margin: 0; font-size: 15px; color: var(--text-2); }

/* таблицы сравнения */
.cmp-wrap { display: flex; flex-direction: column; gap: 10px; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 20px; box-shadow: var(--shadow-card); overflow: hidden; font-size: 15px; line-height: 1.45; }
.cmp th, .cmp td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp thead th { background: var(--paper); font-size: 14px; font-weight: 600; color: var(--text-2); }
.cmp thead th:last-child { color: var(--cobalt); }
.cmp tbody th { width: 22%; font-weight: 600; }
.cmp td.is-us { background: #f6f8ff; }
.cmp.ov tbody th { width: 18%; }
.cmp-none { color: var(--text-3); font-style: normal; }
.cmp-note { margin: 0; font-size: 14px; color: var(--text-2); }

/* заявка */
.req { gap: 16px; }
.req-field { display: flex; flex-direction: column; gap: 6px; }
.req-label { font-size: 15px; font-weight: 600; color: var(--ink); padding: 0; }
.req-input { height: 52px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-ctl); background: #fff; font: inherit; color: var(--ink); }
.req-input:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 1px; border-color: var(--cobalt); }
.req-checks { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.req-checks legend { margin-bottom: 8px; }
.req-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-ctl); cursor: pointer; }
.req-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--cobalt); }
.req-check:has(input:checked) { border-color: var(--cobalt); background: #f6f8ff; }
.req-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.req-status { margin: 0; font-size: 15px; font-weight: 600; color: var(--cobalt); }
.req-status:empty { display: none; }
.req { position: relative; }
.req-status { display: inline-flex; align-items: baseline; gap: 8px; max-width: 100%; text-wrap: pretty; }
.req-status::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 50%; transform: translateY(-1px); background: currentColor; opacity: 0.9; }
.req-status.is-ok { color: var(--cobalt); }
.req-status.is-err { color: var(--rust); }
.req-status.is-local { color: var(--text-2); }
.req-note { margin: 0; font-size: 14px; color: var(--text-2); text-wrap: pretty; }
.req-note a { color: var(--cobalt); }
.req-field.is-bad .req-input { border-color: var(--rust); box-shadow: 0 0 0 3px rgba(194, 51, 10, 0.15); }
.req-checks.is-bad .req-check { border-color: var(--rust); }
/* ловушка для ботов: человек это поле не видит и не доходит до него с клавиатуры */
.req-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.site .top-nav a.nav-extra { display: inline-flex; }


/* статьи: мини-лист, строка формулы, шаги — тот же язык, что у сетки приложения (styles.css .grid) */
.ex { margin: 4px 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ex-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ex-tab { font-size: 13px; font-weight: 600; color: var(--text-2); padding: 4px 10px; background: #fff; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-2); }
.ex-fx { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; padding: 8px 14px; background: #fff; border-radius: var(--r-ctl); box-shadow: inset 0 0 0 1.5px var(--line-2); font-family: var(--mono); font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.ex-addr { flex: none; white-space: nowrap; color: var(--text-3); font-size: 13px; }
.ex-fx > span:last-child { min-width: 0; }
.ex-f { flex: none; color: var(--cobalt); font-style: normal; font-weight: 700; font-size: 13px; }
.ex-scroll { overflow-x: auto; max-width: 100%; background: #fff; border-radius: var(--r-tile); box-shadow: var(--shadow-card); scrollbar-width: thin; }
.ex-grid { border-collapse: collapse; min-width: 100%; font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.ex-grid thead th, .ex-grid .ex-corner { background: #edf0f9; color: var(--text-3); font-size: 12px; font-weight: 500; height: 26px; padding: 0 12px; text-align: left; }
.ex-grid tbody th { width: 36px; padding: 0 8px; color: var(--text-3); font-size: 12px; font-weight: 500; text-align: center; box-shadow: 1px 0 0 var(--line); }
.ex-grid td { height: 36px; padding: 0 12px; white-space: nowrap; border-bottom: 1px solid rgba(16, 20, 38, 0.06); }
.ex-grid tbody tr:first-child td { font-family: var(--ui); font-weight: 600; color: var(--text-2); }
.ex-grid tbody tr:last-child td, .ex-grid tbody tr:last-child th { border-bottom: 0; }
.ex-grid td.num { text-align: right; }
.ex-grid td.is-new { background: var(--blue-bg); }
.ex-grid td.is-bad { background: var(--rust-bg); color: var(--rust); font-weight: 700; box-shadow: inset 0 0 0 2px var(--rust); }
.ex-grid td.is-ok { color: var(--ink); font-weight: 700; box-shadow: inset 0 0 0 2px var(--ink); }
.ex figcaption { font-size: 14px; line-height: 1.5; color: var(--text-2); max-width: 68ch; }
.ex-code { margin: 0; padding: 14px 18px; max-width: 100%; overflow-x: auto; background: #fff; border-radius: var(--r-ctl); box-shadow: inset 0 0 0 1.5px var(--line-2); font-family: var(--mono); font-size: 15px; line-height: 1.5; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.steps { padding-left: 1.4em; }
.steps li::marker { font-weight: 700; }
.site-answer code { font-family: var(--mono); font-size: 0.9em; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.14); color: #fff; overflow-wrap: anywhere; }
.site-sec > p code, .bul code, .faq code, .pairs code, .cmp code, .ex figcaption code { font-family: var(--mono); font-size: 0.92em; padding: 1px 5px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); overflow-wrap: anywhere; }
.cmp.facts tbody th { width: 26%; }


/* формы: обязательные поля и многострочное поле */
.req-need { font-weight: 400; color: var(--text-3); }
.req-area { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }

/* рекламный лендинг: без навигации, подвал из одной строки */
.is-bare .top { justify-content: flex-start; }
.foot-bare .foot-base { border-top: 0; padding-top: 0; }

/* внутренняя карта */
.map-kicker { margin: 0; font-size: 14px; font-weight: 600; color: var(--on-cobalt); opacity: 0.86; }
.is-map .site-main > * { max-width: none; }
.map-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; max-width: 900px; margin-top: 8px; }
.map-stat { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: rgba(255, 255, 255, 0.1); border-radius: var(--r-tile); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.map-stat b { font-family: var(--display); font-size: 36px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.map-stat span { font-size: 14px; color: var(--on-cobalt); }
.map-warn .bul { max-width: none; }
.map-warn { padding: 22px 24px; background: var(--rust-bg); border-radius: 20px; box-shadow: inset 0 0 0 1.5px var(--rust-tag); }
.map-warn .list-h { color: var(--rust); }
.map-t { font-size: 14px; }
.map-t th, .map-t td { padding: 12px 14px; }
.cmp.map-t tbody th { width: auto; min-width: 160px; }
.map-t a code, .map-t code { font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
.map-page { display: flex; flex-direction: column; gap: 4px; }
.map-page > span { font-weight: 400; color: var(--text-2); font-size: 13px; }
.map-q { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 2px; }
.map-group { display: flex; flex-direction: column; gap: 10px; }
.map-group + .map-group { margin-top: 18px; }
.map-ad { display: flex; flex-direction: column; gap: 12px; }
.map-ad + .map-ad { margin-top: 12px; }
.site-meta[hidden], .site-sec[hidden] { display: none; }

@media (max-width: 1040px) {
  .site-shot a { max-width: none; }
}
@media (max-width: 720px) {
  .site-band { padding-bottom: 44px; }
  .site-band-in { gap: 16px; padding-top: 4px; }
  .site-answer { font-size: 17px; }
  .site-meta { font-size: 14px; }
  .site-shot { margin-top: 28px; }
  .site-shot a { border-radius: 16px 16px 0 0; }
  .site-band.has-hero::before { bottom: 60px; }
  .site-main { padding: 32px var(--pad) 56px; gap: 40px; }
  .site-sec > p, .bul { font-size: 16px; }
  .site .top-nav a.nav-extra { display: none; }
  .pairs > div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 16px; }
  .site-end .actions { flex: 1 1 100%; }
  /* таблица на телефоне — карточки по строкам */
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto; }
  .cmp thead { display: none; }
  .cmp tbody tr { border-bottom: 1px solid var(--line-2); }
  .cmp tbody tr:last-child { border-bottom: 0; }
  .cmp tbody th { width: auto; padding: 14px 16px 4px; border: 0; }
  .cmp.ov tbody th { width: auto; font-size: 17px; }
  .cmp td { padding: 6px 16px; border: 0; }
  .cmp td:last-child { padding-bottom: 14px; }
  .cmp td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; color: var(--text-2); }
  .cmp td.is-us { background: transparent; }
  .cmp td.is-us::before { color: var(--cobalt); }
  .cmp.facts tbody th { width: auto; }
  .ex-fx { font-size: 14px; }
  .ex-code { font-size: 14px; padding: 12px 14px; }
  .req .btn { flex: 1 1 100%; }
  .site .btn { white-space: normal; height: auto; min-height: 52px; padding-top: 12px; padding-bottom: 12px; text-align: center; }
}

/* Круг 11: второй путь рядом с лаймовой — контурная группа «or» той же высоты (как OrGroup в приложении) */
.site-band-in .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

/* Круг 18: страница с живым заданием — заголовок 56–72px на компьютере (правило 11), лист выше на первом экране */
.has-live .site-band h1 { max-width: 20ch; font-size: clamp(38px, 5vw, 72px); line-height: 1; letter-spacing: -0.03em; }
.has-live .site-band-in { gap: 16px; }
.has-live .site-answer { max-width: 72ch; font-size: 19px; }
.has-live .site-band.has-hero::before { bottom: 180px; }
.has-live .site-band-in .or-group { min-height: 52px; }
.has-live .site-band-in .or-group > * { font-size: 16px; }
@media (max-width: 720px) {
  .has-live .site-answer { font-size: 16px; }
  .has-live .site-band.has-hero::before { bottom: 220px; }
  .has-live .site-band-in .or-group { flex-direction: column; width: 100%; }
  .has-live .site-band-in .or-group > * { min-height: 48px; }
  .has-live .site-band-in .or-group > * + * { border-left: 0; border-top: 2px solid rgba(255, 255, 255, 0.55); }
  .has-live .site-band-in .or-group > :first-child { border-radius: 14px 14px 0 0; }
  .has-live .site-band-in .or-group > :last-child { border-radius: 0 0 14px 14px; }
  .has-live .site-band-in .or-group > :only-child { border-radius: 14px; }
}
/* список тем */
.px { display: flex; flex-direction: column; gap: 32px; }
/* Круг 18: на 375px полужирное «Compare» на страницах сравнения выталкивало шапку на 8px вправо */
@media (max-width: 400px) {
  .site .top { gap: 8px; }
  .site .top-nav { gap: 4px 12px; font-size: 13px; }
  .site .brand { gap: 8px; font-size: 17px; }
}

/* Круг 20: шапка маркетинговых страниц — знак, Pricing, Sign in; продолжение ответа — первым абзацем под первым экраном */
.site .top-nav a.top-signin { padding: 0 16px; min-height: 40px; border-radius: 20px; color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6); }
@media (hover: hover) and (pointer: fine) { .site .top-nav a.top-signin:hover { box-shadow: inset 0 0 0 1.5px #fff; } }
.site-lead { margin: 0; max-width: 72ch; font-size: 19px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.site-lead a { color: var(--cobalt); }
.site-live-cap b { font-weight: 600; color: #fff; }
.has-live .site-band.has-hero::before { bottom: 170px; }
.has-live .site-live { margin-top: 24px; }
.has-live .site-band-in { gap: 12px; }
.has-live .site-band h1 { max-width: 24ch; }
/* статьи, сравнения, темы: заголовки длиннее (вопросы) — ступень 56px, строка под ним 17px, лист чуть ниже: лист целиком на 1440×900 */
.has-live:not(.is-landing) .site-band h1 { max-width: 30ch; font-size: clamp(34px, 3.9vw, 56px); }
.has-live:not(.is-landing) .site-answer { font-size: 17px; max-width: 80ch; }
.has-live:not(.is-landing) .crumbs { margin-bottom: -4px; }
.has-live:not(.is-landing) .live { --live-grid-h: 320px; }
/* Когда лист и панель встают столбиком, высота полосы заранее неизвестна: кобальт несут шапка, текст и верх места листа */
@media (max-width: 1040px) {
  .has-live .site-band.has-hero::before { display: none; }
  .has-live .site-band.has-hero > .top, .has-live .site-band-in { background: var(--cobalt); max-width: none; }
  .has-live .site-band.has-hero > .top { margin: 0; }
  .has-live .site-band-in { margin: 0; padding-bottom: 4px; }
  .has-live .site-live { margin-top: -1px; padding-top: 17px; max-width: none; background: linear-gradient(var(--cobalt) 0 150px, transparent 150px); }
}
@media (max-width: 720px) {
  .site-lead { font-size: 17px; }
}
