:root {
  --bg: #f4f1eb;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-soft: #faf7f2;
  --text: #16161b;
  --muted: #64626f;
  --line: rgba(20, 22, 30, 0.08);
  --line-strong: rgba(20, 22, 30, 0.13);
  --accent: #5a6df4;
  --accent-soft: rgba(90, 109, 244, 0.1);
  --shadow: 0 18px 42px rgba(16, 18, 28, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f8f5ef 0%, #f3efe8 100%);
  color: var(--text);
}

a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 14px 0;
}

.topbar-inner,
.footer-inner,
.page {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 32px rgba(16, 22, 31, 0.04);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.brand-logo {
  display: block;
  height: 34px;
  width: auto;
}

.topnav,
.footer-links,
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.topnav a,
.footer-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #42495a;
}

.lang-switch button {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

body[data-lang="en"] .lang-switch button[data-lang-choice="en"],
body[data-lang="ru"] .lang-switch button[data-lang-choice="ru"] {
  background: var(--accent-soft);
  border-color: rgba(79, 123, 255, 0.3);
}

.page {
  padding: 46px 0 76px;
}

.hero {
  padding: 22px 4px 44px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.section {
  margin-top: 56px;
}

.doc {
  padding: 34px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  max-width: 9ch;
}

h2 {
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 13ch;
}

h3 {
  font-size: 19px;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.lead,
.card p,
.list-row p,
.faq-item p,
.doc p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}

.lead {
  margin-top: 18px;
  max-width: 48ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 14px;
  font-weight: 720;
}

.btn-primary {
  background: var(--text);
  color: white;
  border-color: transparent;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.54);
}

.section-head {
  margin-bottom: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card,
.faq-item,
.support-block {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-strong);
  box-shadow: 0 10px 24px rgba(18, 20, 30, 0.03);
}

.card h3,
.faq-item h3,
.support-label,
.doc h2 {
  margin-bottom: 10px;
}

.list {
  display: grid;
  gap: 16px;
}

.list-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-strong);
  box-shadow: 0 10px 24px rgba(18, 20, 30, 0.03);
}

.list-index {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}

.faq {
  display: grid;
  gap: 14px;
}

.doc h2 + p {
  margin-bottom: 22px;
}

.doc-updated {
  margin-top: 12px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.doc-list {
  margin: 0 0 22px;
  padding-left: 20px;
  color: var(--muted);
}

.doc-list li {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.62;
}

.support-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.support-link {
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.footer {
  padding: 0 16px 24px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 4px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar-inner,
  .footer-inner,
  .page {
    width: min(100% - 24px, 960px);
  }

  .topbar-inner,
  .footer-inner {
    flex-wrap: wrap;
  }

  .topbar-inner {
    padding: 14px 14px 12px;
    gap: 12px;
  }

  .brand {
    max-width: 122px;
  }

  .brand-logo {
    height: 30px;
  }

  .lang-switch {
    margin-left: auto;
  }

  .topnav {
    order: 3;
    width: 100%;
    gap: 16px;
    padding-top: 12px;
    margin-top: 2px;
    overflow-x: auto;
    white-space: nowrap;
    border-top: 1px solid var(--line);
    scrollbar-width: none;
  }

  .topnav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    padding: 18px 0 34px;
  }

  .doc {
    padding: 24px;
    border-radius: 24px;
  }

  .list-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .list-index {
    width: 40px;
    height: 40px;
  }

  h1 {
    font-size: clamp(36px, 13vw, 52px);
    max-width: 8ch;
  }

  h2 {
    font-size: clamp(26px, 9vw, 36px);
    max-width: 11ch;
  }

  .lead,
  .card p,
  .list-row p,
  .faq-item p,
  .doc p,
  .doc-list li {
    font-size: 15px;
    line-height: 1.58;
  }

  .cta-row {
    margin-top: 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
