:root {
  --bg: #e7eaef;
  --paper: #f3f4f6;
  --ink: #161a20;
  --mute: rgba(22, 26, 32, 0.62);
  --line: rgba(22, 26, 32, 0.14);
  --accent: #163a63;
  --accent-ink: #f3f6f9;
  --font-d: "PT Serif", "Times New Roman", serif;
  --font-t: "PT Sans", "Segoe UI", sans-serif;
  --max: 1080px;
  --pad: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; max-width: 100%; overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-t);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, p, li, dd, dt, span, strong, em {
  overflow-wrap: break-word;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 40;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.7rem;
}

.mast {
  margin: 0;
  padding: 0.4rem var(--pad);
  background: var(--accent);
  color: rgba(243, 246, 249, 0.82);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

.head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f7f8fa;
  border-bottom: 2px solid var(--accent);
}
.head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  width: 100%;
  max-width: min(100%, calc(var(--max) + 2 * var(--pad)));
  margin-inline: auto;
  padding: 0.7rem var(--pad) 0.45rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 12rem;
}
.brand img {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}
.brand-text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.brand-text strong {
  font-family: var(--font-d);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.15;
}
.brand-text em {
  font-style: normal;
  color: var(--mute);
  font-size: 0.72rem;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 0.2rem 1rem;
  color: var(--mute);
  font-size: 0.9rem;
  font-weight: 700;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
}
.nav a:hover { color: var(--ink); }

.hero,
.trust,
.block,
.close {
  width: 100%;
  max-width: min(100%, calc(var(--max) + 2 * var(--pad)));
  margin-inline: auto;
  padding-inline: var(--pad);
}
.hero {
  padding-top: 1.5rem;
}
.hero-copy { min-width: 0; max-width: 100%; }
.eyebrow {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero h1 {
  margin-top: 0.65rem;
  max-width: 100%;
  font-family: var(--font-d);
  font-size: clamp(1.65rem, 7.4vw, 3.15rem);
  font-weight: 700;
  line-height: 1.2;
}
.lead {
  margin-top: 0.85rem;
  max-width: 42ch;
  color: var(--mute);
  font-size: 1rem;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  margin-top: 1.15rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.1rem;
  padding: 0 1.25rem;
  border-radius: 2px;
  font-family: var(--font-t);
  font-weight: 700;
  background: var(--accent);
  color: var(--accent-ink);
}
.btn:hover { filter: brightness(1.08); }
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.trust {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 1.6rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  border-block: 1px solid var(--line);
}
.trust > * { min-width: 0; }
.trust div {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.trust div:last-child { border-bottom: 0; }
.trust strong {
  display: block;
  font-family: var(--font-d);
  font-size: 1rem;
}
.trust span {
  display: block;
  margin-top: 0.28rem;
  color: var(--mute);
  font-size: 0.88rem;
  line-height: 1.4;
}

.block { padding-top: 2.2rem; }
.block h2,
.close h2 {
  font-family: var(--font-d);
  font-size: clamp(1.45rem, 5vw, 2.25rem);
}
.modes,
.faq,
.site-foot-inner,
.req-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  min-width: 0;
}
.modes { margin-top: 1.15rem; }
.modes li {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.modes strong,
.steps strong,
.faq dt {
  font-family: var(--font-d);
  font-size: 1.1rem;
}
.modes p,
.steps p,
.faq dd,
.close p {
  margin-top: 0.45rem;
  color: var(--mute);
  line-height: 1.55;
}

.steps { display: grid; gap: 1.1rem; margin-top: 1.25rem; }
.steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  min-width: 0;
}
.steps span {
  color: var(--accent);
  font-family: var(--font-d);
  font-size: 0.92rem;
}

.faq { margin-top: 1.15rem; }
.faq > * { min-width: 0; }

.close {
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  padding-bottom: 2.2rem;
  border-top: 1px solid var(--line);
}

.site-foot {
  background: #14181e;
  color: #eef2f6;
  margin-top: 0;
  padding: 1.8rem var(--pad) 1.2rem;
}
.site-foot-inner,
.req-grid,
.site-foot-bottom,
.site-foot-requisites,
.site-foot-dev {
  width: 100%;
  max-width: min(100%, var(--max));
  margin-inline: auto;
}
.site-foot-inner { gap: 1.35rem; }
.brand-name {
  font-family: var(--font-d);
  font-size: 1.2rem;
}
.brand-tag,
.site-foot a,
.req-grid span {
  color: rgba(238, 242, 246, 0.62);
}
.brand-tag { max-width: 36ch; line-height: 1.5; margin-top: 0.45rem; }
.foot-mail { display: inline-block; margin-top: 0.85rem; }
.foot-col h3 {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(238, 242, 246, 0.42);
}
.foot-col ul { display: grid; gap: 0.45rem; }
.foot-col a:hover { color: #fff; }
.site-foot-requisites,
.site-foot-dev {
  margin-top: 1.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.site-foot-requisites { margin-top: 2rem; }
.req-label {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(238, 242, 246, 0.42);
}
.req-grid {
  gap: 1rem;
  font-size: 0.82rem;
  line-height: 1.55;
}
.req-grid > * { min-width: 0; }
.req-grid strong { display: block; margin-bottom: 0.25rem; }
.req-grid span { display: block; }
.site-foot-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(238, 242, 246, 0.42);
  font-size: 0.8rem;
}
.foot-legal-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.doc {
  width: 100%;
  max-width: min(100%, 44rem);
  margin: 0 auto;
  padding: 1.5rem var(--pad) 2.2rem;
}
.doc h1 {
  font-family: var(--font-d);
  font-size: clamp(1.6rem, 6vw, 2.4rem);
}
.doc-meta { margin-top: 0.55rem; color: var(--mute); }
.doc-body { margin-top: 1.4rem; }
.doc-body h2 {
  margin: 1.4rem 0 0.5rem;
  font-family: var(--font-d);
  font-size: 1.15rem;
}
.doc-body p, .doc-body li { color: rgba(20,24,30,0.78); line-height: 1.65; }
.doc-body ul { list-style: disc; padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.doc-body a { text-decoration: underline; text-underline-offset: 3px; }
.doc-body code {
  font-size: 0.9em;
  background: #e4e8ee;
  padding: 0.05em 0.35em;
  border-radius: 0.3rem;
  overflow-wrap: anywhere;
}

.cookie-overlay {
  position: fixed;
  inset: auto 0 0;
  z-index: 50;
  padding: 0.7rem;
  padding-bottom: max(0.7rem, env(safe-area-inset-bottom));
}
.cookie-card {
  max-width: min(100%, 40rem);
  margin-inline: auto;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: #fff;
  box-shadow: 0 18px 50px rgba(20, 24, 30, 0.18);
}
.cookie-card h2 {
  font-family: var(--font-d);
  font-size: 1.15rem;
}
.cookie-card p {
  margin-top: 0.4rem;
  color: var(--mute);
  line-height: 1.5;
  font-size: 0.92rem;
}
.cookie-card a { text-decoration: underline; }
.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.9rem;
}
.btn-necessary,
.btn-accept {
  width: 100%;
  min-height: 3rem;
  padding: 0 0.95rem;
  border-radius: 2px;
  border: 0;
  font-family: var(--font-t);
  font-weight: 700;
  cursor: pointer;
}
.btn-necessary { background: #e8ecf1; color: var(--ink); }
.btn-accept { background: var(--accent); color: #fff; }

@media (min-width: 720px) {
  .mast { font-size: 0.72rem; letter-spacing: 0.08em; }
  .brand img { width: 2.5rem; height: 2.5rem; }
  .brand-text strong { font-size: 1.08rem; }
  .brand-text em { font-size: 0.78rem; }
  .hero { padding-top: clamp(2rem, 5vh, 3.2rem); }
  .lead { font-size: 1.08rem; }
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .btn { width: auto; min-height: 3rem; }
  .text-link { justify-content: flex-start; }
  .trust,
  .modes,
  .faq,
  .req-grid {
    grid-template-columns: 1fr 1fr;
  }
  .trust {
    margin-top: 2.2rem;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
  }
  .block { padding-top: 3.2rem; }
  .close {
    margin-top: 3.4rem;
    padding-top: 2.4rem;
    padding-bottom: 3.2rem;
  }
  .site-foot { padding: 2.4rem var(--pad) 1.4rem; }
  .site-foot-inner { grid-template-columns: 1fr 1fr; }
  .site-foot-bottom { flex-direction: row; justify-content: space-between; }
  .cookie-overlay { padding: 1rem; }
  .cookie-card { padding: 1.15rem 1.2rem 1.05rem; }
  .cookie-actions { flex-direction: row; }
  .btn-necessary,
  .btn-accept { width: auto; min-height: 2.75rem; }
  .doc { padding: 2.2rem var(--pad) 3rem; }
}

@media (min-width: 1020px) {
  .head-inner {
    flex-wrap: nowrap;
    padding: 0.85rem var(--pad);
  }
  .nav {
    width: auto;
    flex-wrap: nowrap;
    gap: 1.35rem;
  }
  .trust {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .trust div {
    padding: 0.2rem 1rem;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .trust div:first-child { padding-left: 0; }
  .trust div:last-child { border-right: 0; padding-right: 0; }
  .site-foot-inner { grid-template-columns: 1.4fr 0.8fr 0.9fr; }
  .req-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
