/* Подстраницы сайта verdict-app.ru: документы, контакты, дела.
   2026-09-23 (финальный аудит сайта, п.1–3). Шрифты и палитра — как на главной
   (landing.html), разметка — packages/shared/src/site-shell.ts. */

@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/onest-var-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/onest-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/geist-var-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/geist-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #1A1917; --surface: #242320; --raise: #2D2C29;
  --fg: #F5F3EF; --dim: rgba(245,243,239,0.74); --faint: rgba(245,243,239,0.56);
  --line: rgba(245,243,239,0.11); --brand: #E8D8BE; --a: #FF6B6B; --b: #4ECDC4;
  --ease: cubic-bezier(0.16, 1, 0.3, 1); --r-sm: 12px; --r-lg: 20px;
  --font-display: "Onest", "Geist", -apple-system, "Segoe UI", sans-serif;
  --font-text: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* Имена переменных из компонентов приложения (документы рендерятся ими) */
  --text-primary: var(--fg); --text-secondary: var(--dim); --text-ghost: var(--faint);
  --accent-gold: var(--brand); --bg-base: var(--bg);
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #45433F var(--bg); color-scheme: dark; }
body { margin: 0; color: var(--fg); font-family: var(--font-text); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-wrap: pretty;
  background: radial-gradient(70% 40% at 50% -6%, rgba(232,216,190,0.10), transparent 70%) no-repeat, var(--bg); }
::selection { background: rgba(78,205,196,0.32); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #45433F; border-radius: 99px; border: 2px solid var(--bg); }
:focus-visible { outline: 2px solid var(--b); outline-offset: 3px; border-radius: 6px; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }
img { max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 12px 16px; border-radius: var(--r-sm);
  background: var(--fg); color: var(--bg); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.2s var(--ease); }
.skip:focus-visible { transform: none; }

/* ─── Шапка ─── */
.top { box-shadow: inset 0 -1px 0 var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; min-height: 44px; }
.brand img { width: 26px; height: 26px; }
.brand span { font-size: 13px; font-weight: 600; letter-spacing: 0.26em; color: var(--brand); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px;
  padding: 0 22px; border-radius: 99px; font-weight: 600; font-size: 15px; text-decoration: none;
  transition: background-color 0.2s var(--ease), transform 0.14s var(--ease); }
.btn:active { transform: scale(0.96); }
.btn-main { background: var(--brand); color: #1A1917;
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 10px 30px rgba(232,216,190,0.18); }
.btn-main:hover { background: #F1E4CC; }
.btn-ghost { color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); min-height: 44px; padding: 0 15px; font-size: 14px; }
.btn-ghost:hover { background: rgba(243,241,237,0.06); }

.page { padding-top: 28px; padding-bottom: 48px; }

/* ─── Документы (соглашение, политика, согласие, контакты) ─── */
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(28px, 6vw, 38px) !important; line-height: 1.12 !important;
  letter-spacing: -0.03em; color: var(--fg) !important; }
/* Политика набрана под экран приложения (13 px) — на сайте крупнее */
.doc [style*="font-size:13px"] { font-size: 15px !important; line-height: 1.65 !important; }
.doc [style*="font-size:11px"] { font-size: 13px !important; }
.doc .neon-amber-muted { color: inherit; }
.doc table { width: 100%; }
.doc td, .doc th { vertical-align: top; }

/* ─── Хлебные крошки ─── */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; padding: 0; list-style: none;
  font-size: 14px; color: var(--faint); }
.crumbs li + li::before { content: "›"; margin-right: 4px; }
.crumbs a { color: var(--dim); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.crumbs a:hover { color: var(--fg); }
.crumbs [aria-current] { display: inline-flex; min-height: 44px; align-items: center; }

/* ─── Страница дела ─── */
.case { max-width: 760px; }
.case h1 { font-size: clamp(28px, 6.4vw, 42px); line-height: 1.1; letter-spacing: -0.035em; margin: 0 0 18px; }
/* Фото дел вертикальные (896×1200). Целиком оно заняло бы весь экран телефона
   раньше истории — показываем горизонтальный кадр 4:3 из верхней части */
.case__img { display: block; width: 100%; max-width: 560px; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  object-position: center 30%; border-radius: var(--r-lg);
  outline: 1px solid rgba(255,255,255,0.1); outline-offset: -1px; margin: 0 0 22px; background: var(--surface); }
.case__story { font-size: 18px; line-height: 1.65; color: var(--fg); margin: 0 0 28px; white-space: pre-line; }
.sides { display: grid; gap: 12px; margin: 0 0 28px; }
.side { padding: 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.side h2 { font-size: 19px; margin: 0 0 6px; letter-spacing: -0.02em; }
.side--a h2 { color: var(--a); }
.side--b h2 { color: var(--b); }
.side p { margin: 0; color: var(--dim); }
.verdict { padding: 18px; border-radius: var(--r-lg); background: var(--raise); margin: 0 0 28px; }
.verdict h2 { font-size: 20px; margin: 0 0 12px; }
.bar { display: flex; gap: 3px; height: 8px; margin: 0 0 8px; }
.bar i { display: block; height: 100%; border-radius: 99px; }
.bar .ra { background: var(--a); } .bar .rb { background: var(--b); }
.bar-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--dim);
  font-variant-numeric: tabular-nums; }
.verdict p { margin: 12px 0 0; }
.cta { text-align: center; padding: 32px 20px; border-radius: var(--r-lg); margin: 0 0 32px;
  background: radial-gradient(60% 80% at 50% 0%, rgba(232,216,190,0.12), transparent 70%), var(--surface);
  box-shadow: inset 0 0 0 1px var(--line); }
.cta h2 { font-size: 24px; margin: 0 0 6px; }
.cta p { color: var(--dim); margin: 0 0 18px; }

/* ─── Список дел ─── */
.lead { font-size: 18px; color: var(--dim); max-width: 38em; margin: 0 0 26px; }
.cases { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; }
.cases a { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 12px;
  border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg); text-decoration: none; transition: background-color 0.2s var(--ease); }
.cases a:hover { background: var(--raise); }
.cases img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--r-sm);
  outline: 1px solid rgba(255,255,255,0.1); outline-offset: -1px; }
.cases b { display: block; font-family: var(--font-display); font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; }
.cases span { display: block; font-size: 14px; color: var(--dim); margin-top: 3px; }
.more h2 { font-size: 22px; margin: 0 0 14px; }

/* ─── Подвал (как на главной) ─── */
footer { padding: 26px 0 40px; box-shadow: inset 0 1px 0 var(--line); }
.foot { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.flinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.flinks a { color: var(--dim); text-decoration: none; font-size: 14px; padding: 8px 10px; border-radius: 10px;
  min-height: 44px; display: inline-flex; align-items: center; transition: color 0.18s ease; }
.flinks a:hover, .flinks a[aria-current] { color: var(--fg); }
.legal { font-size: 13px; color: var(--faint); line-height: 1.5; max-width: 62ch; margin: 0; }
.legal a { color: var(--faint); display: inline-block; padding: 13px 6px; margin: -13px -6px; }

@media (min-width: 720px) {
  .wrap { padding: 0 24px; }
  .page { padding-top: 40px; }
  .sides { grid-template-columns: 1fr 1fr; }
  .foot { flex-direction: row; justify-content: space-between; text-align: left; }
  .flinks { justify-content: flex-start; }
}
@media (min-width: 1000px) {
  .top__in { height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
