/* aurav.ru: светлый фон, графитовый текст, один спокойный акцент, системный шрифт. Тёмная тема - по настройке устройства.
   Акцент подставляет build.py вместо метки ниже. */
:root {
  --accent: #6B4FD8; --accent-dark: #A391FF;
  --bg: #fbfbfd; --surface: #ffffff; --text: #1d1d1f; --muted: #6e6e73; --line: rgba(0, 0, 0, .1);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px rgba(0, 0, 0, .06);
  --shadow-up: 0 10px 40px rgba(0, 0, 0, .16);
  --link: var(--accent); --btn: var(--accent);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --surface: #1c1c1e; --text: #f5f5f7; --muted: #a1a1a6; --line: rgba(255, 255, 255, .14);
    --shadow: 0 0 0 1px rgba(255, 255, 255, .06); --shadow-up: 0 0 0 1px rgba(255, 255, 255, .1), 0 10px 40px rgba(0, 0, 0, .6);
    --link: var(--accent-dark);
    color-scheme: dark;
  }
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }

/* Шапка: полупрозрачная, прилипает к верху. */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 52px; }
.brand { color: var(--text); font-weight: 600; font-size: 17px; letter-spacing: .02em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
nav { display: flex; gap: 24px; font-size: 14px; }
nav a { color: var(--muted); }
nav a:hover, nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* Главная */
.hero { padding-top: 96px; padding-bottom: 24px; }
.eyebrow { color: var(--muted); font-size: 19px; font-weight: 600; margin: 0 0 12px; }
h1 { font-size: 64px; line-height: 1.05; letter-spacing: -.025em; font-weight: 700; margin: 0 0 20px; text-wrap: balance; }
.lead { font-size: 24px; line-height: 1.4; color: var(--muted); max-width: 640px; margin: 0; }
main > section > h2 { font-size: 40px; line-height: 1.1; letter-spacing: -.02em; font-weight: 700; margin: 88px 0 28px; }
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.app { background: var(--surface); border-radius: 28px; padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: flex-start; }
.app img { width: 128px; height: 128px; border-radius: 22.5%; box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgba(0, 0, 0, .12); margin-bottom: 24px; }
.app h3 { font-size: 24px; letter-spacing: -.01em; margin: 0 0 6px; }
.app p { color: var(--muted); margin: 0 0 18px; flex: 1; }
.app a { font-weight: 500; }
.app a::after { content: " \203A"; }
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: var(--surface); border-radius: 28px; padding: 32px; box-shadow: var(--shadow); }
.panel h3 { font-size: 21px; margin: 0 0 18px; }
dl.req { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; }
dl.req dt { color: var(--muted); }
dl.req dd { margin: 0; overflow-wrap: anywhere; }
.doclist { list-style: none; margin: 0; padding: 0; }
.doclist li + li { border-top: 1px solid var(--line); }
.doclist a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; color: var(--text); }
.doclist a::after { content: "\203A"; color: var(--muted); font-size: 22px; line-height: 1; }
.doclist a:hover { text-decoration: none; color: var(--link); }

/* Документы: колонка ~720 px, таблица листается вбок внутри своей рамки. */
.doc { max-width: calc(720px + 48px); padding-top: 56px; padding-bottom: 32px; }
.doc h1 { font-size: 44px; line-height: 1.1; margin-bottom: 16px; }
.doc h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.01em; margin: 48px 0 14px; scroll-margin-top: 72px; }
.doc h3 { font-size: 21px; margin: 32px 0 10px; scroll-margin-top: 72px; }
.doc p, .doc li { margin: 0 0 14px; }
.doc ul { padding-left: 22px; margin: 0 0 14px; }
.doc ul ul { margin: 10px 0 0; }
.doc .meta { color: var(--muted); font-size: 15px; margin: 0 0 4px; }
.doc .meta + p:not(.meta), .doc .meta + h2 { margin-top: 32px; }
.back { display: inline-block; font-size: 15px; margin-bottom: 20px; }
.back::before { content: "\2039  "; }
.table { overflow-x: auto; margin: 20px 0 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; min-width: 760px; font-size: 15px; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; background: color-mix(in srgb, var(--text) 4%, transparent); }
tr:last-child td { border-bottom: none; }
/* На широком экране таблица выходит за колонку текста и видна целиком. */
@media (min-width: 900px) {
  .doc .table { width: min(1032px, calc(100vw - 48px)); margin-left: calc((100% - min(1032px, calc(100vw - 48px))) / 2); }
  .doc table { width: 100%; }
}

/* Подвал */
footer { margin-top: 96px; border-top: 1px solid var(--line); padding-top: 32px; padding-bottom: calc(48px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--muted); }
footer p { margin: 0 0 12px; }
.f-name { color: var(--text); font-weight: 600; }
.f-docs { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.linkbtn { background: none; border: none; padding: 0; font: inherit; color: var(--link); cursor: pointer; }
.linkbtn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Баннер cookie */
.cookie { position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 20; max-width: 760px; margin: 0 auto; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-up); padding: 20px 24px; display: flex; gap: 20px; align-items: center; }
.cookie p { margin: 0; font-size: 15px; line-height: 1.45; flex: 1; }
.cookie-btns { display: flex; gap: 10px; flex: none; }
.btn { border: none; border-radius: 980px; padding: 10px 20px; font: inherit; font-size: 15px; font-weight: 600; background: var(--btn); color: #fff; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn2 { background: color-mix(in srgb, var(--btn) 12%, transparent); color: var(--link); }

@media (max-width: 860px) {
  .panels { grid-template-columns: 1fr; }
  .cookie { flex-direction: column; align-items: stretch; }
  .cookie-btns { flex-direction: column; }
  .btn { padding: 13px 20px; font-size: 17px; }
}
/* Телефон: приложения - горизонтальная лента, как в App Store. */
@media (max-width: 700px) {
  .wrap { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
  nav { gap: 16px; }
  .hero { padding-top: 56px; }
  h1 { font-size: 40px; }
  .lead { font-size: 20px; }
  main > section > h2 { font-size: 30px; margin: 64px 0 20px; }
  .apps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -20px; padding: 4px 20px 16px; scroll-padding: 0 20px; scrollbar-width: none; }
  .apps::-webkit-scrollbar { display: none; }
  .app { flex: 0 0 68%; scroll-snap-align: start; padding: 24px; border-radius: 24px; }
  .app img { width: 96px; height: 96px; margin-bottom: 18px; }
  .app h3 { font-size: 21px; }
  .panel { padding: 24px; border-radius: 24px; }
  dl.req { grid-template-columns: 1fr; gap: 0; }
  dl.req dd { margin-bottom: 12px; }
  .doc { padding-top: 32px; }
  .doc h1 { font-size: 32px; }
  .doc h2 { font-size: 23px; margin-top: 40px; }
  .doc h3 { font-size: 19px; }
}
/* Узкий телефон: «Политика» есть в «Компании» и в подвале - в шапке не помещается. */
@media (max-width: 480px) {
  nav a:nth-child(3) { display: none; }
}
