/* Forma — сайт поддержки и правовые страницы. Цвета — как в приложении (Theme.swift): графит + volt. */
:root {
  color-scheme: dark light;
  --bg: #08090c;
  --surface: #111318;
  --raised: #1a1d24;
  --text: #f4f5f7;
  --muted: #a3a9b6;
  --line: #262a33;
  --accent: #c6ff3d;
  --accent-ink: #08090c;
  --link: #c6ff3d;
  --aqua: #34f0c8;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7f4;
    --surface: #ffffff;
    --raised: #eef0ea;
    --text: #111318;
    --muted: #4a505c;
    --line: #dcdfd6;
    --accent: #c6ff3d;
    --accent-ink: #111318;
    --link: #2f6b00;
    --aqua: #0b7a63;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 10px;
  font-weight: 700;
  z-index: 10;
}
.skip:focus { top: 12px; }

.site-header,
main,
.site-footer { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  padding-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 900;
}

.site-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

main { padding-bottom: 48px; }

h1 { font-size: clamp(30px, 6vw, 42px); line-height: 1.15; margin: 18px 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 23px; line-height: 1.3; margin: 36px 0 10px; }
h3 { font-size: 18px; line-height: 1.35; margin: 24px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
li { margin: 4px 0; }
strong { font-weight: 700; }

.lede { color: var(--muted); font-size: 19px; }
.meta { color: var(--muted); font-size: 15px; }
.accent { color: var(--accent); }

.lang-switch {
  display: inline-flex;
  gap: 6px;
  margin: 6px 0 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
}
.lang-switch a {
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
}
.lang-switch a:hover { background: var(--raised); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  margin: 16px 0;
}
.card > :last-child { margin-bottom: 0; }

.summary { border-left: 4px solid var(--accent); }

.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}

details { border-top: 1px solid var(--line); padding: 12px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 650; }
details > p, details > ul, details > ol { margin-top: 8px; color: var(--muted); }

.lang-section { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 8px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  padding-bottom: 32px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
.site-footer a { color: var(--muted); }

@media (min-width: 720px) {
  body { font-size: 18px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
