/* ==========================================================================
   trustflat — дизайн-система
   --------------------------------------------------------------------------
   Один файл на всю платформу: токены, типографика, компоненты анкет
   и страниц результатов, печатные стили.

   Цвета: фирменные синий и зелёный на светлом фоне. Отдельно вынесена
   шкала степеней риска — она никогда не работает в одиночку: у каждой
   степени есть иконка и текстовая подпись, поэтому смысл читается
   и без различения цвета.

   Шрифты: Golos Text во всём интерфейсе (полноценная кириллица),
   PT Serif — только в печатных документах, где серифная форма уместна.
   ========================================================================== */

/* ------------------------------------------------------------------ токены */

:root {
  color-scheme: light;

  /* Та же палитра, что и на основном trustflat.ru (assets/style.css) —
     единый бренд на всех страницах: фирменный зелёный, тёмно-синий текст. */
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --surface-3: #eef1f6;
  --ink: #0e1b32;
  --ink-soft: #5b6b85;
  --ink-muted: #6f7d8f;
  --border: #e1e8f5;
  --border-strong: #c6d0de;

  --brand: #0fa37a;
  --brand-deep: #0b7a5c;
  --brand-ink: #ffffff;
  --brand-tint: #e1f6ee;

  --green: #0fa37a;
  --green-tint: #e1f6ee;

  --sev-critical: #c0271f;
  --sev-critical-tint: #fbeae8;
  --sev-major: #b45309;
  --sev-major-tint: #fdf1e2;
  --sev-minor: #42607a;
  --sev-minor-tint: #ecf1f6;
  --ok: #0fa37a;
  --ok-tint: #e1f6ee;

  --shadow-sm: 0 1px 2px rgba(16, 24, 35, 0.05);
  --shadow-md: 0 1px 2px rgba(16, 24, 35, 0.04), 0 8px 24px rgba(16, 24, 35, 0.07);
  --shadow-lg: 0 2px 4px rgba(16, 24, 35, 0.05), 0 18px 48px rgba(16, 24, 35, 0.11);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;

  --maxw: 1080px;
  --maxw-narrow: 760px;

  --font-ui: 'Golos Text', 'PT Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-doc: 'PT Serif', Georgia, 'Times New Roman', serif;
}

/* Сайт всегда светлый — как и основной трастflat: единый вид на любых
   системных настройках, без переключения темы. */

/* --------------------------------------------------------------- основа */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
}
h3 {
  font-size: 1.12rem;
}

p {
  margin: 0 0 1rem;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--brand);
  text-underline-offset: 0.18em;
}

img {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--brand-tint);
  color: var(--ink);
}

.muted {
  color: var(--ink-muted);
}
.soft {
  color: var(--ink-soft);
}
.nums {
  font-variant-numeric: tabular-nums;
}
.nowrap {
  white-space: nowrap;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------------- раскладка */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: var(--maxw-narrow);
}

.stack {
  display: flex;
  flex-direction: column;
}
.stack-2 {
  gap: 8px;
}
.stack-3 {
  gap: 12px;
}
.stack-4 {
  gap: 16px;
}
.stack-6 {
  gap: 24px;
}
.stack-8 {
  gap: 32px;
}
.stack-12 {
  gap: 48px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.row--between {
  justify-content: space-between;
}
.row--tight {
  gap: 8px;
}

.section {
  padding: 56px 0;
}
.section--tight {
  padding: 36px 0;
}

/* ---------------------------------------------------------------- шапка */
/* То же меню, что и на основном trustflat.ru (index.html) — единая шапка
   для всех разделов сайта. Разметка и поведение (открытие/закрытие
   раскрывающихся пунктов) — в assets/js/ui.js, TF.mountHeader(). */

.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.logo-seal {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-seal svg {
  width: 28px;
  height: 28px;
}

.logo-text {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 19px;
}
.logo-text .b {
  color: var(--ink);
}
.logo-text .g {
  color: var(--brand-deep);
}

.main-nav {
  display: flex;
  gap: 4px;
  position: relative;
  z-index: 30;
}
.nav-item {
  position: relative;
}
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-trigger:hover {
  background: var(--surface-3);
}
.nav-item.open .nav-trigger,
.nav-trigger.active {
  color: var(--brand);
  background: var(--brand-tint);
}
.nav-trigger .chev {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  margin-top: -3px;
}
.nav-item.open .nav-trigger .chev {
  transform: rotate(-135deg);
  margin-top: 3px;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 30;
  display: none;
}
.nav-item.open .nav-dropdown {
  display: block;
}
.nav-dropdown button,
.nav-dropdown a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 9px;
  transition: background 0.15s ease;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}
.nav-dropdown button:hover,
.nav-dropdown a:hover {
  background: var(--surface-3);
}
.nav-dropdown .nd-title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.nav-dropdown .nd-desc {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: transparent;
  display: none;
}
.nav-overlay.active {
  display: block;
}

@media (max-width: 720px) {
  .main-nav {
    width: 100%;
    flex-direction: column;
    gap: 2px;
  }
  .nav-item {
    width: 100%;
  }
  .nav-trigger {
    width: 100%;
    justify-content: space-between;
  }
  .nav-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    padding: 2px 0 2px 14px;
    margin-top: 2px;
  }
  .nav-overlay.active {
    display: none;
  }
}

/* --------------------------------------------------------------- кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.06s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background: var(--brand);
  color: var(--brand-ink);
}
.btn--primary:hover:not(:disabled) {
  background: var(--brand-deep);
}

.btn--outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn--outline:hover:not(:disabled) {
  background: var(--surface-3);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-soft);
}
.btn--ghost:hover:not(:disabled) {
  background: var(--surface-3);
  color: var(--ink);
}

.btn--lg {
  padding: 14px 26px;
  font-size: 1.02rem;
}

.btn--sm {
  padding: 7px 12px;
  font-size: 0.86rem;
}

.btn--block {
  width: 100%;
}

/* --------------------------------------------------------------- карточки */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card--pad {
  padding: 24px;
}

.card--flat {
  box-shadow: none;
}

@media (max-width: 560px) {
  .card--pad {
    padding: 18px;
  }
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ------------------------------------------------------------------ герой */

.hero {
  padding: 68px 0 44px;
}

.hero__title {
  max-width: 18ch;
}

.hero__lede {
  margin-top: 18px;
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 58ch;
}

.hero__actions {
  margin-top: 28px;
}

.hero__note {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* --------------------------------------------------- сетка продуктов */

.grid {
  display: grid;
  gap: 16px;
}
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.product-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-card__audience {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.product-card__title {
  font-size: 1.15rem;
  font-weight: 600;
}

.product-card__text {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
}

.product-card__cta {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brand);
}

/* ------------------------------------------------------------ статистика */

.stat-tile {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-tile__value {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-tile__label {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.stat-tile__note {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* ------------------------------------------------------------ анкета */

.wizard {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
}

.wizard__progress {
  position: sticky;
  top: 62px;
  z-index: 20;
  padding: 14px 0 12px;
  background: var(--bg);
}

.progress-steps {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.progress-steps__item {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.progress-steps__item[data-state='done'] {
  background: var(--green);
}
.progress-steps__item[data-state='current'] {
  background: var(--brand);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.step-head {
  margin-bottom: 20px;
}

.step-head__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.step-head__hint {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 60ch;
}

.question {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.question:last-child {
  border-bottom: none;
}

.question__label {
  display: block;
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.question__hint {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-bottom: 12px;
  max-width: 62ch;
}

.question__error {
  margin-top: 8px;
  font-size: 0.86rem;
  color: var(--sev-critical);
  font-weight: 500;
}

.question[data-invalid='true'] .option {
  border-color: color-mix(in srgb, var(--sev-critical) 40%, var(--border));
}

.question__required {
  color: var(--ink-muted);
  font-weight: 400;
}

/* Варианты ответа: крупные кликабельные карточки, удобные на телефоне. */
.options {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.options--cols {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.option:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option__box {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.option__box--square {
  border-radius: 5px;
}

.option__box::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: inherit;
  background: var(--brand-ink);
  transform: scale(0);
  transition: transform 0.12s ease;
}

.option__box--square::after {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: none;
  box-shadow: inset 0 0 0 10px var(--brand-ink);
  clip-path: polygon(14% 46%, 0 60%, 39% 100%, 100% 22%, 86% 8%, 39% 72%);
}

.option input:checked + .option__box {
  border-color: var(--brand);
  background: var(--brand);
}

.option input:checked + .option__box::after {
  transform: scale(1);
}

.option:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-tint);
}

.option input:focus-visible + .option__box {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.option__text {
  font-size: 0.96rem;
  line-height: 1.45;
}

.option__note {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* Поля ввода */
.field {
  display: block;
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

.field::placeholder {
  color: var(--ink-muted);
  opacity: 0.75;
}

.field:focus {
  outline: 2px solid var(--brand);
  outline-offset: 0;
  border-color: var(--brand);
}

textarea.field {
  min-height: 110px;
  resize: vertical;
}

.field--money {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.field-suffix {
  display: flex;
  align-items: center;
  gap: 10px;
}

.field-suffix__unit {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Подсказки адреса (DaData) — та же вёрстка, что и на основном trustflat.ru. */
.address-autocomplete {
  position: relative;
}

.address-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 20;
  max-height: 260px;
  overflow-y: auto;
  display: none;
}
.address-suggestions.open {
  display: block;
}
.address-suggestion {
  padding: 11px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  border-top: 1px solid var(--border);
}
.address-suggestion:first-child {
  border-top: none;
}
.address-suggestion:hover {
  background: var(--surface-3);
}

/* Да / нет */
.toggle-pair {
  display: inline-flex;
  gap: 8px;
  margin-top: 12px;
}

.toggle-pair .option {
  min-width: 108px;
  justify-content: center;
  align-items: center;
}

/* Оценка звёздами */
.rating {
  display: inline-flex;
  gap: 6px;
  margin-top: 12px;
}

.rating__btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-muted);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.rating__btn[aria-pressed='true'] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}

.wizard__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}

/* --------------------------------------------- чек-лист приёмки */

.check-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.check-item:last-child {
  border-bottom: none;
}

.check-item__title {
  font-weight: 600;
  font-size: 0.99rem;
}

.check-item__hint {
  margin-top: 4px;
  font-size: 0.87rem;
  color: var(--ink-muted);
  max-width: 68ch;
}

.segmented {
  display: inline-flex;
  margin-top: 11px;
  padding: 3px;
  gap: 3px;
  background: var(--surface-3);
  border-radius: var(--radius-sm);
}

.segmented__btn {
  padding: 7px 14px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.segmented__btn[aria-pressed='true'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.segmented__btn[data-value='defect'][aria-pressed='true'] {
  background: var(--sev-critical-tint);
  color: var(--sev-critical);
}

.segmented__btn[data-value='ok'][aria-pressed='true'] {
  background: var(--ok-tint);
  color: var(--ok);
}

.defect-detail {
  margin-top: 12px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 11px;
}

.photo-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.photo-thumb {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-thumb__remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.photo-add {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 1.5px dashed var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 22px;
  cursor: pointer;
}

.zone-block {
  margin-bottom: 12px;
}

.zone-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 15px 20px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.zone-block__count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.zone-block__body {
  padding: 0 20px 8px;
}

.zone-block[data-open='false'] .zone-block__body {
  display: none;
}

.chev {
  transition: transform 0.15s ease;
}

.zone-block[data-open='true'] .chev {
  transform: rotate(180deg);
}

/* ------------------------------------------------- степени риска */

/* Цвет никогда не работает один: рядом всегда иконка и подпись. */
.sev {
  --sev-color: var(--sev-minor);
  --sev-bg: var(--sev-minor-tint);
}
.sev[data-sev='critical'] {
  --sev-color: var(--sev-critical);
  --sev-bg: var(--sev-critical-tint);
}
.sev[data-sev='high'],
.sev[data-sev='major'] {
  --sev-color: var(--sev-major);
  --sev-bg: var(--sev-major-tint);
}
.sev[data-sev='medium'] {
  --sev-color: var(--sev-major);
  --sev-bg: var(--sev-major-tint);
}
.sev[data-sev='low'],
.sev[data-sev='minor'] {
  --sev-color: var(--sev-minor);
  --sev-bg: var(--sev-minor-tint);
}
.sev[data-sev='ok'] {
  --sev-color: var(--ok);
  --sev-bg: var(--ok-tint);
}

.sev-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: var(--sev-bg);
  color: var(--sev-color);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.sev-chip svg {
  flex: none;
}

.flag {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--sev-color);
  border-radius: var(--radius-sm);
}

.flag__icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sev-bg);
  color: var(--sev-color);
}

.flag__title {
  font-weight: 600;
  font-size: 1.01rem;
  margin-bottom: 2px;
}

.flag__why {
  color: var(--ink-soft);
  font-size: 0.93rem;
  margin-top: 6px;
}

.flag__action {
  margin-top: 10px;
  padding: 11px 13px;
  background: var(--surface-2);
  border-radius: 7px;
  font-size: 0.91rem;
}

.flag__action strong {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 3px;
}

/* --------------------------------------------------- шкала риска */

.score-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 720px) {
  .score-panel {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 30px;
    align-items: center;
  }
}

.score-figure {
  text-align: center;
}

.score-figure__value {
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--sev-color);
}

.score-figure__scale {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 4px;
}

.score-figure__label {
  margin-top: 10px;
  display: inline-flex;
}

/* Полоса со шкалой: видно не только балл, но и куда он попал. */
.score-meter {
  margin-top: 6px;
}

.score-meter__track {
  position: relative;
  display: flex;
  gap: 2px;
  height: 10px;
}

.score-meter__zone {
  flex: var(--w, 1);
  background: var(--zone, var(--surface-3));
  border-radius: 2px;
}

.score-meter__marker {
  position: absolute;
  top: -5px;
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--surface);
  transform: translateX(-50%);
}

.score-meter__legend {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 0.74rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.group-bars {
  display: grid;
  gap: 11px;
}

.group-bar__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.group-bar__track {
  height: 7px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
}

.group-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--sev-color);
}

/* Компоненты балла в профиле аренды */
.component {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.component:last-child {
  border-bottom: none;
}

.component__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 7px;
}

.component__title {
  font-weight: 600;
  font-size: 0.97rem;
}

.component__value {
  font-size: 0.88rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.component__track {
  height: 7px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
}

.component__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--brand);
}

.component__notes {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.component__notes li {
  margin-bottom: 4px;
}

/* ------------------------------------------------------------- прочее */

.checklist {
  counter-reset: cl;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.checklist li {
  counter-increment: cl;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
}

.checklist li::before {
  content: counter(cl);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--surface-3);
  border-radius: 999px;
  font-size: 0.85rem;
}

.pill--ok {
  background: var(--ok-tint);
  color: var(--ok);
  font-weight: 500;
}

.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 15px 17px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.notice--brand {
  background: var(--brand-tint);
  border-color: color-mix(in srgb, var(--brand) 25%, transparent);
  color: var(--ink);
}

.notice--warn {
  background: var(--sev-major-tint);
  border-color: color-mix(in srgb, var(--sev-major) 30%, transparent);
  color: var(--ink);
}

.notice--danger {
  background: var(--sev-critical-tint);
  border-color: color-mix(in srgb, var(--sev-critical) 30%, transparent);
  color: var(--ink);
}

.notice__icon {
  color: var(--ink-muted);
}
.notice--brand .notice__icon {
  color: var(--brand);
}
.notice--warn .notice__icon {
  color: var(--sev-major);
}
.notice--danger .notice__icon {
  color: var(--sev-critical);
}

.share-box {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 8px 8px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.share-box input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.88rem;
  padding: 4px 0;
}

.share-box input:focus {
  outline: none;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

table.data {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

table.data th,
table.data td {
  text-align: left;
  padding: 11px 15px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table.data th {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  background: var(--surface-2);
}

table.data tr:last-child td {
  border-bottom: none;
}

table.data td.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.faq details {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.faq details:last-child {
  border-bottom: none;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: '+';
  display: inline-block;
  width: 18px;
  color: var(--brand);
  font-weight: 700;
}

.faq details[open] summary::before {
  content: '−';
}

.faq details p {
  margin: 10px 0 0 18px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.steps-how {
  display: grid;
  gap: 18px;
  counter-reset: how;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps-how li {
  counter-increment: how;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 15px;
  align-items: start;
}

.steps-how li::before {
  content: counter(how);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 0.94rem;
}

.steps-how strong {
  display: block;
  margin-bottom: 3px;
}

.steps-how span {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* ---------------------------------------------------------------- подвал */

.site-footer {
  margin-top: 60px;
  padding: 34px 0 44px;
  border-top: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-cols {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 26px;
}

.footer-cols h4 {
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.footer-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.disclaimer {
  font-size: 0.82rem;
  color: var(--ink-muted);
  max-width: 78ch;
  line-height: 1.55;
}

/* ------------------------------------------------------- служебное */

.loading {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 70px 20px;
  color: var(--ink-muted);
}

.spinner {
  width: 26px;
  height: 26px;
  border: 2.5px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(12px);
  z-index: 100;
  padding: 11px 20px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast[data-show='true'] {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------- печать */

.doc {
  font-family: var(--font-doc);
}

.doc pre {
  font-family: var(--font-doc);
  white-space: pre-wrap;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

@media print {
  :root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #ffffff;
    --surface-3: #f2f2f2;
    --ink: #000000;
    --ink-soft: #222222;
    --ink-muted: #555555;
    --border: #bbbbbb;
    --border-strong: #999999;
  }

  body {
    background: #fff;
    font-size: 11pt;
  }

  .site-header,
  .site-footer,
  .no-print,
  .btn,
  .share-box {
    display: none !important;
  }

  .card,
  .flag,
  .checklist li,
  .score-panel {
    box-shadow: none;
    break-inside: avoid;
  }

  .section {
    padding: 0;
  }

  a[href]::after {
    content: '';
  }

  .zone-block[data-open='false'] .zone-block__body {
    display: block;
  }
}
