:root {
  --bg: #07111f;
  --surface: #0d1b2d;
  --surface-light: #13243a;
  --text: #f5f7fb;
  --muted: #b7c2d1;
  --line: #29405d;
  --accent: #ffcc33;
  --accent-dark: #d99d00;
  --success: #47d18c;
  --danger: #ff7b7b;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

a {
  color: var(--accent);
}

a:hover {
  color: #ffe080;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 17, 31, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  position: relative;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 142px;
  height: auto;
}

.main-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.header-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.header-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-light);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-light);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #171100;
}

.btn-primary:hover {
  background: #ffda66;
  color: #171100;
}

.hero {
  padding: 82px 0 54px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 204, 51, 0.18), transparent 34%),
    linear-gradient(180deg, #0b192b 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 40px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  max-width: 850px;
  margin: 0 0 20px;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  letter-spacing: -0.045em;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  letter-spacing: -0.025em;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

p {
  margin: 0 0 18px;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-card,
.card,
.toc,
.notice,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 24px;
}

.fact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.fact-list li:last-child {
  border-bottom: 0;
}

.fact-list span {
  color: var(--muted);
}

.breadcrumbs {
  padding: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.section {
  padding: 62px 0;
}

.section-alt {
  border-block: 1px solid rgba(255, 255, 255, 0.06);
  background: #091728;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

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

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 24px;
}

.card p:last-child,
.notice p:last-child {
  margin-bottom: 0;
}

.card-link {
  color: var(--text);
  text-decoration: none;
}

.card-link:hover {
  border-color: var(--accent);
  color: var(--text);
}

.toc {
  margin: 34px 0 4px;
  padding: 24px;
}

.toc ul {
  columns: 2;
  margin: 0;
  padding-left: 20px;
}

.toc li {
  margin: 6px 0;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
  margin: 24px 0;
}

.step {
  position: relative;
  min-height: 78px;
  padding: 18px 20px 18px 78px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 17px;
  left: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #171100;
  font-weight: 900;
}

.step h3 {
  margin-bottom: 4px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-light);
  color: var(--accent);
}

tr:last-child td {
  border-bottom: 0;
}

.check-list {
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin: 10px 0;
  padding-left: 30px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 900;
}

.notice {
  padding: 22px;
  border-left: 4px solid var(--accent);
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.faq summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
}

.faq details p {
  padding: 0 20px 18px;
  color: var(--muted);
}

.cta {
  padding: 34px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent) 0%, #ffac1c 100%);
  color: #171100;
}

.cta h2 {
  color: #171100;
}

.cta p {
  max-width: 720px;
}

.cta .btn {
  border-color: #171100;
  background: #171100;
  color: white;
}

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

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

.footer-links a {
  color: var(--muted);
}

.site-footer .brand {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.site-footer .brand span {
  color: var(--accent);
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 64px;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 8px 0;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 30;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .menu-open .main-nav {
    display: grid;
  }

  .main-nav a {
    padding: 9px 10px;
    border-radius: 8px;
  }

  .main-nav a:hover {
    background: var(--surface-light);
  }

  .header-actions {
    margin-left: auto;
    gap: 7px;
  }

  .header-actions .btn {
    min-height: 40px;
    padding: 8px 13px;
    font-size: 0.88rem;
  }

  .menu-toggle {
    display: block;
  }

  .hero-grid,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
  }

  .toc ul {
    columns: 1;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .brand img {
    width: 94px;
  }

  .header-inner {
    gap: 6px;
  }

  .header-actions {
    gap: 5px;
  }

  .header-actions .btn {
    min-height: 36px;
    padding: 6px 9px;
    font-size: 0.73rem;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    padding: 7px;
  }

  .hero-card {
    padding: 19px;
  }

  .section {
    padding: 48px 0;
  }

  .footer-inner {
    flex-direction: column;
  }
}
