:root {
  --bg: #eef3f6;
  --ink: #13161c;
  --muted: #526176;
  --pri: #1762ba;
  --surf: #e1e9ef;
  --shadow: 0 3px 16px #13161c14;
  --logo-ink: var(--ink);
  --logo-accent: var(--pri);
  --header-height: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 500 16px/1.4 Manrope, Arial, sans-serif;
}

a { color: inherit; text-underline-offset: .2em; }
button { color: inherit; font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--logo-accent); outline-offset: 4px; }
img, svg { display: block; max-width: 100%; }
.sprite { position: absolute; }
.l-ink { color: var(--logo-ink); }
.l-acc { color: var(--logo-accent); }
.ic {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

.hdr { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-height); pointer-events: none; }
.hdr-in {
  display: flex; align-items: center; gap: 8px;
  width: min(100%, 1920px); height: 100%; margin-inline: auto; padding: 16px;
}
.hdr-in > * { pointer-events: auto; }
.hdr .logo, .hdr-cont, .burger, .nav {
  border-radius: 32px; background: #fff; box-shadow: var(--shadow);
}
.hdr .logo { display: flex; flex: none; align-items: center; height: 44px; padding: 0 18px; }
.hdr .logo svg { width: auto; height: 20px; }
.burger {
  display: flex; align-items: center; gap: 10px;
  height: 44px; margin-left: auto; padding: 0 18px;
  border: 0; font-size: 14px; font-weight: 600;
}
.burger::before { content: "Меню"; }
.burger:hover { background: var(--surf); }
.burger span, .burger span::before {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
}
.burger span { transform: translateY(-3px); }
.burger span::before { content: ""; transform: translateY(6px); }
.hdr.is-open .burger span { transform: rotate(45deg); }
.hdr.is-open .burger span::before { transform: rotate(-90deg); }
.hdr.is-open::before { content: ""; position: fixed; inset: 0; z-index: -1; background: #13161c5c; pointer-events: auto; }
.nav {
  position: absolute; top: calc(var(--header-height) - 8px); left: 16px; right: 16px;
  display: none; max-height: calc(100dvh - var(--header-height)); overflow: auto;
  padding: 8px 24px 24px; box-shadow: 0 32px 80px #13161c38;
}
.hdr.is-open .nav { display: block; }
.nav ul, .ftr ul { margin: 0; padding: 0; list-style: none; }
.nav li a {
  display: block; padding: 15px 0; border-bottom: 1px solid var(--surf);
  font-size: 20px; font-weight: 600; text-decoration: none;
}
.nav li a:hover, .hdr-cont a:hover { color: var(--pri); }
.nav-foot { display: grid; gap: 8px; margin: 20px 0 0; }
.hdr-cont, .hdr-btns { display: none; }
.hdr-cont a { display: flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none; }
.hdr-cont .ic { width: 16px; height: 16px; color: var(--pri); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 4px 24px; border-radius: 9999px;
  background: var(--pri); color: #fff; font-weight: 600; text-decoration: none;
}
.btn:hover { background: #1a71d5; }
.btn-line { background: #fff; color: var(--ink); }
.nav-foot .btn-line { background: var(--bg); }
.btn-line:hover, .nav-foot .btn-line:hover { background: var(--surf); }

.legal-wrap {
  width: min(100% - 32px, 960px); margin-inline: auto; flex: 1;
  padding-block: calc(var(--header-height) + clamp(12px, 4vw, 56px)) clamp(32px, 6vw, 88px);
}
.legal-card {
  padding: clamp(24px, 5vw, 56px); border-radius: clamp(24px, 4vw, 40px);
  background: #fff; overflow-wrap: anywhere; line-height: 1.6;
}
.legal-card h1 { margin: 0 0 16px; font-size: clamp(1.85rem, 5vw, 3.4rem); font-weight: 600; line-height: 1.12; }
.legal-card h2 { margin: 1.8rem 0 .55rem; font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; line-height: 1.3; }
.legal-card p, .legal-card ul { margin: 0 0 .8rem; }
.legal-card > :last-child { margin-bottom: 0; }
.legal-card ul { padding-inline-start: 1.25rem; }
.legal-card li + li { margin-top: .3rem; }
.legal-card a { color: var(--pri); }
.legal-date { color: var(--muted); }

.ftr {
  --logo-ink: #fff; --logo-accent: #609eee;
  padding: clamp(48px, 7vw, 112px) 0 32px;
  border-radius: clamp(32px, 5vw, 50px) clamp(32px, 5vw, 50px) 0 0;
  background: linear-gradient(168deg, #171a20 24%, #070707 104%); color: #fff;
}
.wrap { width: min(100% - 32px, 1440px); margin-inline: auto; }
.ftr-grid { display: grid; gap: 32px 24px; }
.ftr-grid > div:first-child { display: grid; gap: 10px; justify-items: start; align-content: start; }
.ftr .logo svg { width: auto; height: 40px; }
.ftr-d { max-width: 290px; margin: 8px 0 6px; color: #a6b4c5; }
.ftr h3 { margin: 0 0 18px; color: #a6b4c5; font-size: 14px; font-weight: 600; }
.ftr ul { display: grid; gap: 12px; }
.ftr a { text-decoration: none; }
.ftr li a { font-size: clamp(16px, 1.3vw, 18px); font-weight: 600; line-height: 1.25; }
.ftr li a:hover, .ftr [aria-current="page"] { color: var(--logo-accent); }
.ci { display: flex; align-items: center; gap: 10px; margin: 0; }
.ci .ic, .ftr p.ci { color: #a6b4c5; }
.ftr-legal {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 32px;
  margin-top: clamp(40px, 6vw, 96px); padding-top: 24px;
  border-top: 1px solid #cdd4de1f; color: #a6b4c5; font-size: 14px;
}
.ftr-legal p { margin: 0; }
.dev { width: min(200px, 100%); margin-top: 12px; opacity: .85; }
.dev img { width: 100%; height: auto; }

@media (min-width: 520px) {
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .dev { margin: 0 0 0 auto; }
}
@media (min-width: 1100px) {
  .ftr-grid { grid-template-columns: 1.3fr .8fr 1fr 1fr; gap: 32px; }
}
@media (min-width: 1280px) {
  :root { --header-height: 96px; }
  .burger, .nav-foot, .hdr.is-open::before { display: none; }
  .hdr .logo { height: 56px; padding: 0 20px 0 24px; border-radius: 32px 0 0 32px; clip-path: inset(-24px 0 -24px -24px); }
  .hdr .logo svg { height: 24px; }
  .nav, .hdr.is-open .nav {
    position: static; display: flex; align-items: center; height: 56px; max-height: none; overflow: visible;
    margin: 0 auto 0 -9px; padding: 0 28px 0 13px; border-radius: 0 32px 32px 0;
    box-shadow: var(--shadow); clip-path: inset(-24px -24px -24px 0);
  }
  .nav ul { display: flex; gap: 18px; }
  .nav li a { padding: 6px 0; border-bottom: 0; font-size: 15px; white-space: nowrap; }
  .hdr-btns { display: flex; gap: 8px; }
  .hdr-btns .btn { min-height: 56px; box-shadow: var(--shadow); font-size: 15px; white-space: nowrap; }
  .hdr-btns .ic { display: none; }
}
@media (min-width: 1560px) {
  .hdr-cont { display: grid; align-content: center; height: 56px; padding: 0 24px; font-size: 14px; font-weight: 600; }
  .nav ul { gap: 24px; }
  .nav li a, .hdr-btns .btn { font-size: 16px; }
  .hdr-btns .ic { display: block; }
}
