:root {
  --bg: #050914;
  --panel: #08142a;
  --panel-2: #0d1f40;
  --text: #f7fbff;
  --muted: #b8c4d8;
  --gold: #f4b529;
  --gold-2: #ffda74;
  --line: rgba(255, 218, 116, .24);
  --blue: #123f8b;
  --red: #e3422f;
  --shadow: 0 22px 70px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(circle at 20% 0%, rgba(18, 63, 139, .38), transparent 32%), var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

a { color: inherit; }

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 9, 20, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo-link {
  flex: 0 0 auto;
  width: 154px;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.burger span,
.burger::before,
.burger::after {
  content: "";
  width: 22px;
  height: 2px;
  display: block;
  background: var(--gold-2);
  position: absolute;
  transition: transform .2s ease, opacity .2s ease;
}

.burger::before { transform: translateY(-7px); }
.burger::after { transform: translateY(7px); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.site-nav a,
.auth-actions a,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(255, 218, 116, .09);
}

.auth-actions {
  display: flex;
  gap: 10px;
  margin-left: 10px;
}

.button-primary,
.auth-actions a:last-child {
  color: #120b00;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 10px 24px rgba(244, 181, 41, .2);
}

.button-ghost,
.auth-actions a:first-child {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, .04);
}

.breadcrumbs {
  border-bottom: 1px solid rgba(255, 218, 116, .14);
  background: rgba(6, 20, 47, .68);
}

.breadcrumbs ol {
  min-height: 46px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--gold);
}

.breadcrumbs a {
  color: var(--gold-2);
  text-decoration: none;
}

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

.hero {
  padding: 34px 0 28px;
}

.hero-frame {
  position: relative;
  min-height: clamp(430px, 58vw, 620px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 9, 20, .82) 0%, rgba(5, 9, 20, .42) 46%, rgba(5, 9, 20, .12) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 32px));
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
}

h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-content p {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 24px 0 58px;
}

.toc {
  position: sticky;
  top: 104px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 20, 42, .86);
  overflow: hidden;
}

.toc summary {
  cursor: pointer;
  padding: 15px 16px;
  color: var(--gold-2);
  font-weight: 900;
}

.toc nav {
  display: grid;
  gap: 2px;
  padding: 0 10px 12px;
}

.toc a {
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.toc a:hover { background: rgba(255, 255, 255, .06); color: var(--text); }

.content {
  display: grid;
  gap: 20px;
}

.section-card {
  border: 1px solid rgba(255, 218, 116, .18);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 34px);
  background: linear-gradient(180deg, rgba(13, 31, 64, .82), rgba(8, 20, 42, .82));
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.18;
}

h3 {
  margin: 22px 0 10px;
  color: var(--gold-2);
  font-size: 21px;
}

p { margin: 0 0 14px; }

ul, ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.linkline {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.linkline a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 13px;
  border-radius: 8px;
  color: #140e00;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  text-decoration: none;
  font-weight: 900;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 18px;
  overflow: hidden;
  border-radius: 8px;
}

th, td {
  padding: 11px 12px;
  text-align: left;
  border: 1px solid rgba(255, 218, 116, .18);
}

th {
  color: var(--gold-2);
  background: rgba(255, 218, 116, .08);
}

.faq details {
  border-top: 1px solid rgba(255, 218, 116, .18);
  padding: 12px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #030711;
  padding: 34px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}

.footer-logo { width: 138px; margin-bottom: 12px; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

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

.footer-nav a:hover { color: var(--gold-2); }

.muted { color: var(--muted); }

.redirect-page main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px 0;
}

.redirect-card {
  max-width: 720px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 44px);
  background: var(--panel);
}

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

.cta-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  color: #120b00;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  text-decoration: none;
  font-weight: 900;
}

@media (max-width: 880px) {
  .header-inner { min-height: 72px; flex-wrap: wrap; }
  .logo-link { order: 1; }
  .auth-actions {
    order: 2;
    display: flex;
    width: auto;
    margin-left: auto;
    gap: 8px;
  }
  .burger {
    order: 3;
    display: inline-flex;
    position: relative;
    margin-left: 0;
  }
  .site-nav {
    order: 4;
    display: none;
    width: 100%;
    margin: 0;
  }
  .site-nav { flex-direction: column; align-items: stretch; padding: 8px 0 14px; }
  .site-nav a { justify-content: flex-start; }
  .nav-toggle:checked ~ .burger span { opacity: 0; }
  .nav-toggle:checked ~ .burger::before { transform: rotate(45deg); }
  .nav-toggle:checked ~ .burger::after { transform: rotate(-45deg); }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .hero-frame { min-height: 520px; }
  .hero-frame img { object-position: 34% center; }
  .hero-frame::after { background: linear-gradient(180deg, rgba(5, 9, 20, .68), rgba(5, 9, 20, .88)); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 22px, 1180px); }
  .header-inner { gap: 8px; }
  .logo-link { width: 104px; }
  .auth-actions { gap: 6px; }
  .auth-actions a {
    min-height: 38px;
    padding: 7px 9px;
    font-size: 12px;
  }
  .burger {
    width: 40px;
    height: 40px;
  }
  .hero { padding-top: 18px; }
  .hero-content { padding: 40px 0; }
  .hero-content p { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .section-card { padding: 18px; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
}
