@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-cyrillic-400-DH8vlB-A.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-cyrillic-500-DHyr8B2c.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-cyrillic-600-DiaWg2oX.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-cyrillic-700-CwpXuTGk.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-400.ttf") format("truetype");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --font-ui: "Onest", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Onest", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-brand: "Cormorant Garamond", Georgia, serif;
  --bg: #1b1b1b;
  --bg-soft: #232323;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-accent: rgba(236, 183, 76, 0.24);
  --text: #f4f1eb;
  --muted: rgba(244, 241, 235, 0.72);
  --muted-strong: rgba(244, 241, 235, 0.54);
  --accent: #ecb74c;
  --accent-soft: rgba(236, 183, 76, 0.12);
  --shadow: 0 28px 72px rgba(0, 0, 0, 0.26);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(236, 183, 76, 0.1), transparent 28%),
    radial-gradient(circle at left top, rgba(255, 255, 255, 0.04), transparent 24%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.site-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.site-back:hover {
  color: var(--text);
  border-color: var(--line-accent);
  background: rgba(236, 183, 76, 0.08);
}

.hero-card,
.content-card,
.doc-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.025) 100%);
  box-shadow: var(--shadow);
}

.hero-card {
  margin-top: 24px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -120px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 183, 76, 0.24) 0%, rgba(236, 183, 76, 0) 72%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.hero-title {
  margin: 0;
  max-width: 780px;
  font-family: Onest, system-ui, sans-serif;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  color: #fff;
}

.hero-copy {
  margin: 20px 0 0;
  max-width: 760px;
  font-size: 18px;
  line-height: 1.72;
  color: var(--muted);
}

.hero-meta,
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 15px;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: rgba(236, 183, 76, 0.5);
  border-color: rgba(236, 183, 76, 0.22);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--text);
}

.section-stack {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.content-card,
.doc-card {
  padding: 32px;
}

.section-title {
  margin: 0 0 20px;
  font-family: Onest, system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  color: #fff;
}

.section-copy {
  margin: 0;
  max-width: 860px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}

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

.legal-card {
  min-height: 240px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line-accent);
  background:
    radial-gradient(circle at top right, rgba(236, 183, 76, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.legal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(236, 183, 76, 0.4);
}

.legal-card__eyebrow {
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.legal-card__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.35;
  color: #fff;
}

.legal-card__desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.legal-card__footer {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--accent);
}

.legal-card__footer::after {
  content: "→";
}

.doc-head {
  margin-bottom: 28px;
}

.doc-title {
  margin: 0 0 12px;
  font-family: Onest, system-ui, sans-serif;
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.1;
  color: #fff;
}

.doc-intro {
  margin: 0;
  max-width: 820px;
  font-size: 17px;
  line-height: 1.72;
  color: var(--muted);
}

.doc-content {
  display: grid;
  gap: 24px;
}

.doc-section {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.doc-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.doc-section h2 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.4;
  color: #fff;
}

.doc-section p,
.doc-section li {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.doc-section p + p,
.doc-section p + ul,
.doc-section ul + p,
.doc-section ul + ul {
  margin-top: 14px;
}

.doc-section ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

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

.doc-fact {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.doc-fact strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.doc-fact span {
  display: block;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.notice {
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(236, 183, 76, 0.18);
  background: var(--accent-soft);
  font-size: 15px;
  line-height: 1.7;
  color: #f7e3b5;
}

.footer-note {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted-strong);
}

.footer-note a {
  color: var(--accent);
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent);
  font-size: 14px;
}

.doc-link::after {
  content: "→";
  margin-left: 8px;
}

.approval-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.approval-list li {
  display: grid;
  grid-template-columns: minmax(160px, 0.38fr) 1fr;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.approval-list strong {
  color: var(--text);
}

.approval-list span {
  color: var(--muted);
  line-height: 1.65;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: block;
}

.doc-table tbody,
.doc-table tr {
  display: block;
}

.doc-table tr + tr {
  border-top: 1px solid var(--line);
}

.doc-table th,
.doc-table td {
  display: block;
  padding: 14px 16px;
  text-align: left;
  line-height: 1.65;
}

.doc-table th {
  color: var(--text);
  background: var(--surface-strong);
  font-size: 14px;
}

.doc-table td {
  color: var(--muted);
  font-size: 15px;
}

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

  .approval-list li {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 24px, 1160px);
    padding: 20px 0 40px;
  }

  .hero-card,
  .content-card,
  .doc-card {
    border-radius: 22px;
  }

  .hero-card,
  .content-card,
  .doc-card {
    padding: 24px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .legal-card {
    min-height: auto;
    padding: 22px;
    border-radius: 20px;
  }
}
