:root {
  --bg: #f4f1eb;
  --card: #fffdf8;
  --ink: #211f1b;
  --muted: #706a61;
  --line: #e4dccf;
  --line-strong: #d0c6b7;
  --accent: #165f7a;
  --accent-dark: #104d64;
  --accent-soft: #e8f3f6;
  --telegram: #1c78a4;
  --container: 1120px;
  --radius: 22px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(22, 95, 122, .10), transparent 32rem),
    linear-gradient(180deg, #fffcf6 0, var(--bg) 28rem);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  width: calc(100vw - clamp(24px, 5vw, 64px));
  max-width: var(--container);
  margin-inline: auto;
  padding-top: 18px;
}

.site-nav {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 0 2px 14px;
}

.site-nav > *,
.hero > *,
.summary > *,
.summary-card > *,
.document-layout > *,
.mobile-toc > *,
.legal-section > *,
.callout > * {
  min-width: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 790;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--accent);
  font-size: 10px;
  letter-spacing: .04em;
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.site-links a {
  border-radius: 10px;
  padding: 9px 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.site-links a:hover,
.site-links a[aria-current="page"] {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.page {
  width: calc(100vw - clamp(24px, 5vw, 64px));
  max-width: var(--container);
  margin-inline: auto;
  padding-block: 20px 40px;
}

.page:focus { outline: none; }

.back-link {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 10px 14px;
  color: var(--ink);
  background: #fffaf0;
  font-size: 14px;
  font-weight: 740;
  text-decoration: none;
}

.back-link:hover { border-color: var(--line-strong); background: #fff6e6; }

.hero {
  display: grid;
  justify-items: start;
  row-gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0 clamp(28px, 5vw, 48px);
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.25;
  letter-spacing: .015em;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 790;
  line-height: 1.02;
  letter-spacing: -.052em;
  text-wrap: balance;
}

.lead {
  max-width: 730px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.document-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(255, 253, 248, .72);
  font-size: 13px;
  line-height: 1.2;
}

.summary {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(24px, 4vw, 40px);
  background: rgba(255, 253, 248, .94);
  box-shadow: 0 12px 34px rgba(53, 42, 31, .05);
}

.summary-heading {
  display: grid;
  gap: 8px;
}

.summary h2,
.legal-section h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 770;
  line-height: 1.1;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.summary-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  column-gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #fffaf0;
}

.summary-number {
  grid-row: 1 / span 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 800;
}

.summary-card h3,
.legal-section h3,
.data-grid h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 760;
  line-height: 1.3;
  letter-spacing: -.015em;
}

.summary-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.summary-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.document-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  margin-top: 24px;
}

.sidebar {
  position: sticky;
  top: 20px;
}

.toc {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  background: rgba(255, 253, 248, .88);
}

.toc-title {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 780;
}

.toc ol,
.mobile-toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li,
.mobile-toc li { counter-increment: toc; }

.toc a,
.mobile-toc a {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 4px;
  border-radius: 9px;
  padding: 6px 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.toc a::before,
.mobile-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: #9a9185;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.8;
}

.toc a:hover,
.mobile-toc a:hover {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.toc a:focus-visible,
.back-link:focus-visible,
.mobile-toc a:focus-visible,
.button:focus-visible,
.footer a:focus-visible,
.mobile-toc summary:focus-visible,
.site-nav a:focus-visible {
  outline: 3px solid #2c7188;
  outline-offset: 2px;
}

.mobile-toc { display: none; }

.legal-document {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.legal-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  background: rgba(255, 253, 248, .94);
  box-shadow: 0 12px 34px rgba(53, 42, 31, .045);
}

.legal-section .section-label { margin-bottom: 8px; }

.legal-section h2 { margin-bottom: 20px; }

.legal-section h3 { margin: 26px 0 8px; }

.legal-section p,
.legal-section li {
  color: #5f5a52;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.legal-section p { margin: 0 0 14px; }
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
  display: grid;
  gap: 7px;
  margin: 12px 0 16px;
  padding-left: 22px;
}

.legal-section li::marker { color: var(--accent); }

.privacy {
  border-color: #bfd8de;
  background: linear-gradient(180deg, rgba(245, 252, 253, .96), rgba(255, 253, 248, .96) 240px);
}

.legal-section .data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.legal-section .data-grid > li {
  border: 1px solid #d1e2e6;
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, .66);
}

.data-grid > li p {
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.55;
}

.callout {
  margin: 22px 0;
  border: 1px solid #a9ced7;
  border-radius: 18px;
  padding: 18px;
  color: #174455;
  background: var(--accent-soft);
}

.callout strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.callout p {
  margin: 0;
  color: inherit;
  font-size: 15px;
  line-height: 1.6;
}

.contact-section {
  background:
    radial-gradient(circle at right bottom, rgba(22, 95, 122, .10), transparent 19rem),
    var(--card);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }

.button.telegram {
  color: #fff;
  background: var(--telegram);
  box-shadow: 0 10px 22px rgba(36, 143, 195, .16);
}

.button.telegram:hover { background: #155f83; }

.button.primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 22px rgba(22, 95, 122, .16);
}

.button.primary:hover { background: var(--accent-dark); }

.button.secondary {
  border-color: var(--line);
  color: var(--ink);
  background: #fffaf0;
}

.button.secondary:hover {
  border-color: var(--line-strong);
  background: #fff6e6;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 4px 0;
  color: var(--muted);
  font-size: 13px;
}

.footer p { margin: 0; }

.footer a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.footer a:hover { text-decoration: underline; }

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

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

  .document-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sidebar { display: none; }

  .mobile-toc {
    display: block;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 253, 248, .9);
  }

  .mobile-toc summary {
    padding: 17px 20px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 760;
    cursor: pointer;
  }

  .mobile-toc nav { padding: 0 12px 16px; }

  .mobile-toc a {
    grid-template-columns: 24px 1fr;
    padding: 7px 8px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover { transform: none; }
}

@media print {
  :root {
    --bg: #fff;
    --card: #fff;
    --ink: #000;
    --muted: #333;
    --line: #ccc;
  }

  body { background: #fff; }

  .page {
    width: 100%;
    padding: 0;
  }

  .hero { padding-top: 0; }

  .summary,
  .legal-section { box-shadow: none; }

  .summary-card,
  h2,
  h3 { break-inside: avoid; }

  .sidebar,
  .mobile-toc,
  .actions,
  .footer { display: none; }

  .document-layout { display: block; }
  .legal-document { gap: 10px; }

  a { text-decoration: none; }
}

@media screen and (max-width: 680px) {
  html { scroll-padding-top: 12px; }

  body {
    background:
      radial-gradient(circle at top left, rgba(22, 95, 122, .08), transparent 22rem),
      var(--bg);
  }

  .page {
    width: auto;
    max-width: var(--container);
    margin-inline: 12px;
    padding-block: 12px 28px;
  }

  .site-header {
    width: auto;
    max-width: var(--container);
    margin-inline: 12px;
    padding-top: 10px;
  }

  .site-nav {
    display: grid;
    gap: 9px;
    padding-bottom: 10px;
  }

  .site-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 4px;
  }

  .site-links a {
    min-width: 0;
    padding: 8px 5px;
    font-size: 11px;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .site-links a:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .hero {
    row-gap: 10px;
    padding: 4px 2px 24px;
  }

  .back-link { width: 100%; justify-content: center; }

  .eyebrow,
  .section-label {
    font-size: 12px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(31px, 8.7vw, 34px);
    line-height: 1.04;
    letter-spacing: -.045em;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .lead {
    font-size: 16px;
    line-height: 1.5;
  }

  .document-meta {
    width: 100%;
    gap: 7px;
    margin-top: 6px;
  }

  .document-meta span {
    width: 100%;
    border-radius: 12px;
    padding: 9px 11px;
    font-size: 12px;
  }

  .summary {
    margin-top: 18px;
    border: 0;
    border-radius: 0;
    padding: 0 2px;
    background: transparent;
    box-shadow: none;
  }

  .summary h2,
  .legal-section h2 {
    font-size: clamp(25px, 7.4vw, 29px);
    line-height: 1.12;
    letter-spacing: -.035em;
    overflow-wrap: normal;
    hyphens: none;
  }

  .summary-grid {
    gap: 8px;
    margin-top: 16px;
  }

  .summary-card,
  .summary-card:last-child {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 11px;
    border-radius: 15px;
    padding: 14px;
    background: rgba(255, 253, 248, .94);
  }

  .summary-number {
    grid-row: 1 / span 2;
    width: 32px;
    height: 32px;
    margin: 0;
    border-radius: 10px;
  }

  .summary-card h3 {
    font-size: 17px;
    line-height: 1.25;
  }

  .summary-card p {
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.5;
  }

  .summary-note {
    margin: 12px 2px 0;
    font-size: 12px;
  }

  .document-layout {
    gap: 10px;
    margin-top: 18px;
  }

  .mobile-toc {
    border-radius: 15px;
  }

  .mobile-toc summary {
    min-height: 48px;
    padding: 14px 16px;
  }

  .mobile-toc nav { padding: 0 8px 12px; }

  .legal-document { gap: 10px; }

  .legal-section {
    min-width: 0;
    border-radius: 16px;
    padding: 18px 16px;
  }

  .legal-section h2 { margin-bottom: 14px; }

  .legal-section h3 {
    margin: 20px 0 7px;
    font-size: 17px;
  }

  .legal-section p,
  .legal-section li {
    font-size: 16px;
    line-height: 1.6;
    overflow-wrap: break-word;
  }

  .legal-section p { margin-bottom: 11px; }

  .legal-section ul {
    gap: 6px;
    margin-block: 10px 13px;
    padding-left: 19px;
  }

  .legal-section .data-grid {
    gap: 8px;
    margin-block: 16px;
    padding: 0;
  }

  .legal-section .data-grid > li {
    border-radius: 14px;
    padding: 14px;
  }

  .callout {
    margin-block: 16px;
    border-radius: 14px;
    padding: 15px;
  }

  .actions {
    display: grid;
    gap: 8px;
    margin-top: 16px;
  }

  .button {
    width: 100%;
    min-height: 48px;
    border-radius: 13px;
  }

  .footer {
    gap: 10px;
    padding: 22px 2px 0;
  }

  .footer nav { gap: 9px; }
}

@media screen and (max-width: 350px) {
  .page,
  .site-header { width: auto; margin-inline: 12px; }

  h1 { font-size: 30px; }

  .summary h2,
  .legal-section h2 { font-size: 24px; }

  .legal-section { padding-inline: 14px; }

  .summary-card {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    padding: 13px;
  }

  .summary-number {
    width: 30px;
    height: 30px;
  }
}
