/* SmartDriver — юридические страницы. Стиль наследует сайт reactivephone.ru (css/style.css):
   те же переменные цвета, скругления, шрифт Inter (без подгрузки с Google Fonts — только системный,
   чтобы страницы не делали внешних запросов). Без JavaScript и трекеров. */

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

:root {
  --bg: #f6f5f7;
  --bg-dark: #150826;
  --text: #150826;
  --text-muted: #575859;
  --text-light: #ffffff;
  --accent: #fa5732;
  --accent-secondary: #6b39bd;
  --card: #ffffff;
  --line: rgba(21, 8, 38, 0.08);
  --note-bg: rgba(250, 87, 50, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  color-scheme: light;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 860px; margin: 0 auto; padding: 0 16px; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 245, 247, 0.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 15px; }
.logo:hover { text-decoration: none; }
.logo img { width: 40px; height: 40px; border-radius: 10px; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; }
.lang a, .lang span { padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.lang span { background: var(--text); color: #fff; }
.lang a:hover { text-decoration: none; color: var(--text); }

/* ===== Document ===== */
.doc { padding: 36px 0 64px; }
.breadcrumbs { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--text-muted); }
.doc h1 { font-size: clamp(30px, 6vw, 44px); font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin-bottom: 12px; }
.doc-meta { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.doc-meta span { display: inline-block; margin-right: 16px; }
.app-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; margin-bottom: 20px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--note-bg); border-radius: 100px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.card + .card { margin-top: 20px; }

.toc { margin-bottom: 20px; }
.toc h2 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 12px; }
.toc ol { padding-left: 22px; columns: 2; column-gap: 32px; }
.toc li { font-size: 15px; margin: 4px 0; break-inside: avoid; }
.toc a { color: var(--text); }

.doc h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; margin: 40px 0 14px; scroll-margin-top: 76px; }
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { font-size: 18px; font-weight: 700; margin: 24px 0 10px; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 24px; }
.doc li { margin: 6px 0; }
.doc li > ul { margin: 6px 0 0; }
.lead { font-size: 18px; color: var(--text-muted); }
.caps { text-transform: none; font-weight: 600; }

.note {
  background: var(--note-bg);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-xs);
  padding: 14px 16px; margin: 16px 0;
  font-size: 15px;
}
.summary {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 24px;
}
.summary div {
  background: var(--bg); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 15px;
}
.summary strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 4px; }

table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 20px; }
th, td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); }
th { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); }
tr:last-child td { border-bottom: none; }

dl.req { display: grid; gap: 8px; margin: 12px 0 0; }
dl.req div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
dl.req div:last-child { border-bottom: none; }
dl.req dt { font-size: 14px; color: var(--text-muted); }
dl.req dd { font-size: 15px; font-weight: 500; }

.contact-box {
  margin-top: 24px; padding: 20px 22px;
  background: var(--bg); border-radius: var(--radius-sm);
}
.contact-box .label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 6px; }
.contact-box a { font-size: 18px; font-weight: 600; }

/* ===== Footer ===== */
.footer { padding: 28px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--text); }
.footer-logo img { width: 32px; height: 32px; border-radius: 8px; }
.footer-meta { text-align: right; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.footer-meta a { color: var(--text-muted); }

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .doc { padding: 24px 0 48px; }
  .card { padding: 22px 18px; border-radius: 16px; }
  .toc ol { columns: 1; }
  .summary { grid-template-columns: 1fr; }
  .doc h2 { font-size: 21px; margin-top: 32px; }
  dl.req div { grid-template-columns: 1fr; gap: 2px; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  td { border: none; padding: 3px 0; }
  td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-meta { text-align: center; }
  .nav-links a.hide-sm { display: none; }
}

@media print {
  .header, .footer, .lang, .toc { display: none; }
  body { background: #fff; }
  .card { padding: 0; }
}
