/* Техосмотр интернет-магазина. Стиль взят из ABM CRM (crm/static/style.css, гибрид с китом 2026):
   Manrope для заголовков, Inter Tight для текста, сиреневый акцент, сине-мятный градиент, Lucide. */
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap;
  src: url(fonts/manrope-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap;
  src: url(fonts/manrope-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 100 900; font-display: swap;
  src: url(fonts/inter-tight-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter Tight"; font-weight: 100 900; font-display: swap;
  src: url(fonts/inter-tight-latin-wght-normal.woff2) format("woff2"); }

:root {
  --bg: #f8f8f4;
  --card: #ffffff;
  --ink: #0e0e14;
  --ink-2: #4a4a55;
  --muted: #6b6b78;
  --line: #e8e8e8;
  --accent: #9699ea;
  --accent-text: #6a6ee0;
  --accent-soft: #eeeffc;
  --alert: #fd6666;
  --alert-text: #c93a4c;
  --alert-soft: #fdecef;
  --blue: #5b8cff;
  --mint: #93ebe7;
  --steel: #96a8bd;
  --dark: #2c2d3d;
  --ok: #1f7a4d; --ok-bg: #eaf5ee;
  --wait: #a2570a; --wait-bg: #fff4e6;
  --check: #5b6472; --check-bg: #f1f4f7;
  --grad: linear-gradient(90deg, var(--blue), var(--mint));
  --r: 16px;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.5 "Inter Tight", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .num { font-family: "Manrope", system-ui, sans-serif; letter-spacing: -0.02em; }
h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; font-weight: 600; margin: 0 0 12px; }
h2 { font-size: 26px; line-height: 1.2; font-weight: 600; margin: 0 0 6px; }
h3 { font-size: 17px; font-weight: 700; margin: 0 0 12px; }
p { margin: 0 0 12px; }
a { color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.acc { color: var(--accent-text); }
.in { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* шапка */
.top {
  position: sticky; top: 0; z-index: 5; background: rgba(248, 248, 244, .92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.top .in { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo img { height: 18px; width: auto; display: block; }
.badge { font: 600 12px/1 "Manrope"; padding: 6px 10px; border-radius: 99px; background: var(--dark); color: #fff; white-space: nowrap; }
.top .date { margin-left: auto; color: var(--muted); font-size: 14px; white-space: nowrap; }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font: 600 15px/1 "Manrope"; border: 0; border-radius: 99px; cursor: pointer;
  padding: 14px 24px; background: var(--alert); color: #fff;
}
.btn:hover { filter: brightness(.95); }
.btn svg { width: 18px; height: 18px; }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px #fff; filter: none; }

/* блоки */
section { padding: 40px 0 0; }
.kicker { font: 600 13px/1 "Manrope"; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); margin-bottom: 12px; }
.card { background: var(--card); border-radius: var(--r); padding: 24px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.lead { font-size: 19px; line-height: 1.55; max-width: 760px; color: var(--ink-2); }
.ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); }
.ic svg { width: 20px; height: 20px; }

/* метки */
.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 "Manrope"; padding: 6px 10px; border-radius: 99px; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.chip.ok { color: var(--ok); background: var(--ok-bg); }
.chip.high { color: var(--alert-text); background: var(--alert-soft); }
.chip.mid { color: var(--wait); background: var(--wait-bg); }
.chip.low, .chip.na { color: var(--check); background: var(--check-bg); }
.pill { font: 600 12px/1 "Manrope"; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--accent); color: var(--accent-text); background: #fff; white-space: nowrap; }

/* карточка: вердикт */
.hero { padding-top: 40px; }
.site { font-size: 18px; color: var(--muted); margin: 0 0 24px; word-break: break-all; }
.site .d { display: none; }
.verdict { display: flex; gap: 20px; align-items: center; }
.light { display: flex; gap: 8px; flex: none; background: var(--dark); padding: 10px 12px; border-radius: 99px; }
.light i { width: 18px; height: 18px; border-radius: 50%; background: #474859; display: block; }
.light .on.red { background: var(--alert); box-shadow: 0 0 12px rgba(253, 102, 102, .7); }
.light .on.yellow { background: #f2b632; box-shadow: 0 0 12px rgba(242, 182, 50, .7); }
.light .on.green { background: #46c27a; box-shadow: 0 0 12px rgba(70, 194, 122, .7); }
.vtext b { font: 600 22px/1.25 "Manrope"; letter-spacing: -0.01em; display: block; margin-bottom: 2px; }
.vtext span { color: var(--ink-2); }
.verdict-card { position: relative; overflow: hidden; }
.verdict-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.stats { margin-top: 16px; }
.num { font-size: 34px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.tile .lbl { font-size: 14px; color: var(--ink-2); }
.tile.bad .num { color: var(--alert); }

/* замечания */
.head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.issues { display: grid; gap: 12px; }
.issue { box-shadow: inset 4px 0 0 var(--alert); }
.issue.mid { box-shadow: inset 4px 0 0 #f2b632; }
.issue.low { box-shadow: inset 4px 0 0 var(--steel); }
.issue .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.issue .what { font: 600 17px/1.35 "Manrope"; letter-spacing: -0.01em; margin: 0 0 14px; }
.issue .rf { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.issue .rf div { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.issue .rf b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.issue .rf svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent-text); }

/* пройдено по группам: две колонки без пустот под короткой группой */
.groups { columns: 2; column-gap: 16px; }
.groups .card { break-inside: avoid; margin-bottom: 16px; }
.group .gh { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.group .gh h3 { margin: 0; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.checks li:first-child { border-top: 0; }
/* длинные пояснения в метке (na_label) переносятся, а не растягивают страницу */
.checks li > span:first-child { flex: 1 1 0; min-width: 0; }
.checks .chip { white-space: normal; flex: none; max-width: 52%; line-height: 1.25; }
.checks .chip::before { flex: none; }

/* призыв */
.cta { background: var(--dark); color: #fff; border-radius: var(--r); padding: 32px; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: var(--grad); opacity: .35; filter: blur(30px); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { color: #c9cad6; max-width: 640px; }
.cta .acts { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 16px; position: relative; z-index: 1; }
.cta .who { font-size: 14px; color: #c9cad6; margin: 0; }

.note { font-size: 13px; color: var(--muted); margin: 24px 0 0; }
.note a { color: var(--accent-text); }
.foot { padding: 40px 0; margin-top: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot img { height: 14px; width: auto; display: block; }
.foot a { color: var(--accent-text); }

/* стартовая страница */
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rules li { padding-left: 22px; position: relative; color: var(--ink-2); }
.rules li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.feat .ic { margin-bottom: 14px; }
.feat b { display: block; font: 700 15px/1.3 "Manrope"; margin-bottom: 6px; }
.feat > span:not(.ic) { font-size: 13px; color: var(--muted); line-height: 1.45; display: block; }
.mt16 { margin-top: 16px; }

@media (max-width: 800px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g2 { grid-template-columns: 1fr; }
  .groups { columns: 1; }
}
@media (max-width: 640px) {
  .in { padding: 0 16px; }
  .top .in { gap: 10px; height: 56px; }
  .top .date { display: none; }
  .site .d { display: inline; word-break: normal; }
  .logo img { height: 15px; }
  h2 { font-size: 22px; }
  .lead { font-size: 17px; }
  .card { padding: 20px; }
  .verdict { flex-direction: column; align-items: flex-start; gap: 14px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stats .tile { padding: 14px 12px; }
  .num { font-size: 26px; }
  .tile .lbl { font-size: 12px; line-height: 1.3; display: block; }
  .issue .rf { grid-template-columns: 1fr; gap: 12px; }
  .cta { padding: 24px 20px; }
  .cta .btn { width: 100%; justify-content: center; }
  .g3, .g4 { grid-template-columns: 1fr; }
  .stats.g3 { grid-template-columns: repeat(3, 1fr); }
}

/* форма заявки на разбор */
.rform { max-width: 560px; display: grid; gap: 6px; }
.rform label { font: 600 14px/1.3 "Manrope"; margin-top: 10px; }
.rform input:not([type=checkbox]), .rform textarea {
  width: 100%; font: 400 15px/1.4 "Inter Tight", system-ui, sans-serif; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.rform input:focus, .rform textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.rform .req { color: var(--alert-text); }
.rform .chk { display: flex; gap: 10px; align-items: flex-start; font: 400 13px/1.45 "Inter Tight", system-ui, sans-serif; color: var(--ink-2); margin: 14px 0 10px; }
.rform .chk input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--accent-text); }
.rform .chk a { color: var(--accent-text); }
.rform .btn { justify-self: start; }
.rform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ferr { background: var(--alert-soft); color: var(--alert-text); border-radius: 12px; padding: 12px 14px; margin: 0 0 4px; font-size: 14px; }
.note a { color: var(--accent-text); }
@media (max-width: 640px) { .rform .btn { width: 100%; justify-content: center; } }
