@font-face {
  font-family: "Inter Variable";
  src: url("/assets/inter-cyrillic-wght-normal.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

@font-face {
  font-family: "Inter Variable";
  src: url("/assets/inter-latin-wght-normal.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
  unicode-range: U+0000-00FF;
}

:root {
  color-scheme: dark;
  --ink: #03121d;
  --ink-soft: #061925;
  --surface: #0a2231;
  --surface-high: #102b3a;
  --line: #27485d;
  --line-bright: #3a5d71;
  --text: #f2f7f5;
  --text-soft: #c3d0d3;
  --muted: #9cb0b7;
  --muted-low: #789198;
  --mint: #67e6a4;
  --warning: #f3c279;
  font-family: "Inter Variable", Inter, "Segoe UI", system-ui, sans-serif;
  background: var(--ink);
  color: var(--text-soft);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--ink); }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(900px 500px at 80% -10%, rgb(103 230 164 / 8%), transparent 65%),
    var(--ink);
}

a { color: inherit; text-decoration: none; }

.legal-shell { width: min(1160px, calc(100% - clamp(40px, 7vw, 96px))); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--mint);
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.legal-header { position: sticky; z-index: 10; top: 0; border-bottom: 1px solid rgb(58 93 113 / 72%); background: rgb(3 18 29 / 93%); backdrop-filter: blur(16px); }
.legal-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 76px; }

.wordmark { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--text); font-size: 17px; font-weight: 700; letter-spacing: -0.035em; }
.wordmark img { width: 29px; height: 29px; }

.legal-nav { display: flex; align-items: center; justify-content: flex-end; gap: 4px 22px; flex-wrap: wrap; color: var(--muted); font-size: 13px; font-weight: 620; }
.legal-nav a { padding-block: 8px; transition: color 160ms ease; }
.legal-nav a:hover, .legal-nav a[aria-current="page"] { color: var(--mint); }
.legal-back { color: var(--muted); font-size: 14px; font-weight: 650; transition: color 160ms ease; }
.legal-back:hover { color: var(--mint); }

.legal-hero { padding: clamp(68px, 10vw, 128px) 0 52px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--mint); font-size: 13px; font-weight: 760; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow::before { width: 24px; height: 1px; background: currentColor; content: ""; }

h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 890px; margin-bottom: 22px; color: var(--text); font-size: clamp(42px, 6.1vw, 76px); font-weight: 690; line-height: 0.98; letter-spacing: -0.062em; }
h2 { margin: 0 0 18px; color: var(--text); font-size: clamp(26px, 3.1vw, 40px); font-weight: 670; line-height: 1.08; letter-spacing: -0.05em; }
h3 { margin-bottom: 8px; color: var(--text); font-size: 17px; line-height: 1.3; letter-spacing: -0.025em; }
.hero-lead { max-width: 690px; margin-bottom: 0; color: var(--text-soft); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; letter-spacing: -0.018em; }

.status-notice { display: grid; gap: 2px; max-width: 840px; margin-top: 34px; padding: 17px 19px; border: 1px solid rgb(243 194 121 / 28%); border-radius: 15px; background: rgb(243 194 121 / 7%); color: var(--text-soft); font-size: 14px; line-height: 1.55; }
.status-notice strong { display: block; margin-bottom: 2px; color: var(--warning); font-size: 13px; letter-spacing: 0.015em; }
.document-meta { margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.placeholder { color: var(--warning); font-weight: 650; }

.legal-main { padding-bottom: clamp(72px, 10vw, 130px); }
.legal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(36px, 7vw, 98px); align-items: start; }
.legal-prose { min-width: 0; }
.legal-prose section { padding: 0 0 42px; margin-bottom: 42px; border-bottom: 1px solid var(--line); }
.legal-prose section:last-child { margin-bottom: 0; }
.legal-prose p, .legal-prose li { color: var(--text-soft); font-size: 16px; line-height: 1.7; letter-spacing: -0.012em; }
.legal-prose p { max-width: 760px; margin-bottom: 16px; }
.legal-prose ul, .legal-prose ol { display: grid; gap: 10px; padding-left: 23px; margin: 0; }
.legal-prose li::marker { color: var(--mint); font-weight: 760; }
.legal-prose strong { color: var(--text); font-weight: 680; }

.legal-aside { position: sticky; top: 92px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgb(16 43 58 / 88%), rgb(6 25 37 / 88%)); }
.legal-aside h2 { margin-bottom: 15px; font-size: 20px; }
.legal-aside nav { display: grid; gap: 4px; }
.legal-aside a { padding: 8px 0; border-bottom: 1px solid rgb(39 72 93 / 72%); color: var(--muted); font-size: 14px; line-height: 1.35; transition: color 160ms ease; }
.legal-aside a:last-child { border-bottom: 0; }
.legal-aside a:hover { color: var(--mint); }

.license-card, .info-card { padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(140deg, rgb(16 43 58 / 90%), rgb(6 25 37 / 92%)); }
.license-card + .license-card, .info-card + .info-card { margin-top: 16px; }
.license-card p:last-child, .info-card p:last-child { margin-bottom: 0; }
.value-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin: 28px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.value-list div { padding: 20px; background: var(--surface); }
.value-list dt { margin-bottom: 7px; color: var(--mint); font-size: 12px; font-weight: 760; letter-spacing: 0.075em; text-transform: uppercase; }
.value-list dd { margin: 0; color: var(--text-soft); font-size: 15px; line-height: 1.52; }

.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin-top: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--line); }
.flow-step { min-height: 178px; padding: 24px 20px; background: var(--surface); }
.flow-number { display: block; margin-bottom: 35px; color: var(--mint); font-size: 12px; font-weight: 760; }
.flow-step p { margin-bottom: 0; color: var(--text-soft); font-size: 15px; line-height: 1.55; }

.product-proof { margin: 28px 0 0; overflow: hidden; border: 1px solid var(--line-bright); border-radius: 18px; background: #071c2b; }
.product-proof img { display: block; width: 100%; height: auto; }
.product-proof figcaption { padding: 13px 16px; color: var(--muted); font-size: 13px; line-height: 1.45; }

.requisites { display: grid; grid-template-columns: minmax(150px, 0.52fr) minmax(0, 1.48fr); gap: 0; margin: 26px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.requisites dt, .requisites dd { margin: 0; padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.48; }
.requisites dt { background: rgb(16 43 58 / 58%); color: var(--muted); font-weight: 620; }
.requisites dd { color: var(--text); }
.requisites dt:nth-last-of-type(1), .requisites dd:last-child { border-bottom: 0; }

.decision-list { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.decision-list li { position: relative; padding: 15px 16px 15px 37px; border: 1px solid rgb(243 194 121 / 25%); border-radius: 12px; background: rgb(243 194 121 / 5%); color: var(--text-soft); font-size: 15px; line-height: 1.5; }
.decision-list li::before { position: absolute; left: 16px; color: var(--warning); content: "—"; font-weight: 760; }

.legal-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; border: 1px solid var(--line-bright); border-radius: 11px; color: var(--muted); cursor: not-allowed; font-size: 14px; font-weight: 730; }
.legal-button[aria-disabled="true"] { pointer-events: none; }
.muted-note { color: var(--muted-low) !important; font-size: 14px !important; }

.legal-footer { border-top: 1px solid var(--line); background: var(--ink-soft); }
.legal-footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px; padding: 32px 0 40px; }
.legal-footer-copy { margin: 13px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.legal-footer-links { display: flex; align-items: flex-start; justify-content: flex-end; gap: 8px 18px; max-width: 550px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.legal-footer-links a:hover { color: var(--mint); }

a:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }

@media (max-width: 900px) {
  .legal-header-inner { padding-block: 15px; align-items: flex-start; }
  .legal-nav { justify-content: flex-start; padding-top: 1px; }
  .legal-grid { grid-template-columns: 1fr; }
  .legal-aside { position: static; order: -1; }
  .legal-aside nav { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .legal-shell { width: min(100% - 40px, 560px); }
  .legal-header-inner { display: block; min-height: 0; }
  .legal-nav { gap: 2px 16px; margin-top: 12px; font-size: 12px; }
  .legal-hero { padding-top: 54px; }
  h1 { font-size: clamp(40px, 12vw, 57px); }
  .hero-lead { font-size: 17px; }
  .legal-prose p, .legal-prose li { font-size: 16px; }
  .legal-prose section { padding-bottom: 33px; margin-bottom: 33px; }
  .value-list, .flow { grid-template-columns: 1fr; }
  .flow-step { min-height: 0; }
  .flow-number { margin-bottom: 18px; }
  .requisites { grid-template-columns: 1fr; }
  .requisites dt { padding-bottom: 5px; border-bottom: 0; }
  .requisites dd { padding-top: 4px; }
  .legal-aside nav { grid-template-columns: 1fr; }
  .legal-footer-inner { grid-template-columns: 1fr; }
  .legal-footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; } }
