:root {
  --bg: #ffffff;
  --surface: #f3f5f4;
  --text: #16201b;
  --muted: #5b6862;
  --accent: #15894f;
  --accent-soft: #e3f4ea;
  --border: #e2e7e4;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1410;
    --surface: #16201b;
    --text: #e8efea;
    --muted: #9aa8a0;
    --accent: #3fcf85;
    --accent-soft: #163525;
    --border: #23302a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-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(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

.brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }

nav.site a {
  color: var(--muted);
  margin-left: 18px;
  font-size: 15px;
}
nav.site a:first-child { margin-left: 0; }

main { padding: 48px 0 64px; }

.hero h1 {
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 19px;
  color: var(--muted);
  margin: 0;
  max-width: 34em;
}

section { margin-top: 56px; }

h2 {
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h3 { font-size: 19px; margin: 28px 0 8px; }

.app-card {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--surface);
  border-radius: 20px;
  padding: 24px;
}

.app-card img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  flex-shrink: 0;
}

.app-card h3 { margin: 0 0 4px; font-size: 22px; }

.app-card .tagline { color: var(--muted); margin: 0 0 12px; }

.app-card ul { margin: 0 0 14px; padding-left: 20px; }

.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 12px;
}

.links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: 15px; }

.contact dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin: 0;
}
.contact dt { color: var(--muted); }
.contact dd { margin: 0; }

footer.site {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  padding: 24px 0 40px;
}

footer.site .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Юридические страницы */
.doc h1 { font-size: clamp(28px, 5vw, 38px); line-height: 1.2; margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 24px; }
.doc .lang-switch { font-size: 15px; margin-bottom: 32px; }
.doc .lang-switch a { margin-right: 14px; }
.doc hr { border: 0; border-top: 1px solid var(--border); margin: 56px 0; }
.doc li { margin-bottom: 6px; }

@media (max-width: 520px) {
  .app-card { flex-direction: column; }
  .contact dl { grid-template-columns: 1fr; gap: 2px; }
  .contact dd { margin-bottom: 10px; }
}
