:root {
  color-scheme: dark;
  --bg: #090812;
  --bg-soft: #141222;
  --panel: #211d31;
  --panel-2: #2b263c;
  --line: rgba(255, 255, 255, 0.11);
  --text: #f6f3ff;
  --muted: #b9b2cb;
  --pink: #ff279d;
  --pink-2: #ff55c7;
  --purple: #8e43ff;
  --cyan: #47e3ff;
  --gold: #ffcb61;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% -10%, rgba(255, 39, 157, 0.18), transparent 34rem),
    radial-gradient(circle at 8% 10%, rgba(142, 67, 255, 0.18), transparent 30rem),
    linear-gradient(180deg, #070610 0%, #11101d 46%, #080710 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: #ff75d2;
  text-decoration: none;
}

a:hover {
  color: #fff;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(20, 18, 34, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-shell,
.breadcrumbs,
.page-main,
.site-footer__inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.brand img {
  width: 180px;
  height: 56px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

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

.site-nav a {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 750;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 0 28px rgba(255, 39, 157, 0.34);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  content: "";
}

.burger span {
  position: relative;
}

.burger span::before {
  position: absolute;
  top: -7px;
}

.burger span::after {
  position: absolute;
  top: 7px;
}

.breadcrumbs {
  padding: 18px 0 0;
  font-size: 14px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.35);
}

.breadcrumbs [aria-current="page"] {
  color: #fff;
}

.page-main {
  padding: 18px 0 56px;
}

article {
  display: grid;
  gap: 22px;
}

.hero {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #090812;
  box-shadow: var(--shadow);
}

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

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 6, 16, 0.95) 0%, rgba(7, 6, 16, 0.78) 35%, rgba(7, 6, 16, 0.2) 72%),
    linear-gradient(180deg, transparent 48%, rgba(7, 6, 16, 0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(670px, 100%);
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 6vw, 64px);
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5.2vw, 64px);
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 34px);
}

h3 {
  margin: 22px 0 8px;
  font-size: 21px;
}

p {
  margin: 0 0 14px;
}

.toc {
  border: 1px solid rgba(255, 39, 157, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 39, 157, 0.12), rgba(142, 67, 255, 0.12));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.toc summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.toc summary::after {
  content: "+";
  color: var(--pink-2);
  font-size: 28px;
  line-height: 1;
}

.toc[open] summary::after {
  content: "-";
}

.toc ol {
  display: grid;
  gap: 8px;
  padding: 0 18px 18px 38px;
  margin: 0;
}

.toc a {
  color: #f7eaff;
}

article > section {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(33, 29, 49, 0.78);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
}

article > section:nth-of-type(even) {
  background: rgba(24, 22, 38, 0.84);
}

table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 7, 16, 0.45);
}

caption {
  padding: 14px 16px;
  color: #fff;
  text-align: left;
  font-weight: 900;
}

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

th {
  color: #fff;
}

td {
  color: #ddd6ec;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(7, 6, 16, 0.94);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
}

.footer-brand {
  color: #fff;
  font-weight: 900;
}

.footer-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.footer-nav a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .nav-shell {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }

  .brand img {
    width: 158px;
    height: 50px;
  }

  .burger {
    display: flex;
    grid-column: 3;
    grid-row: 1;
  }

  .site-nav {
    grid-column: 1 / -1;
    display: none;
  }

  .site-nav {
    flex-direction: column;
    padding: 8px 0 0;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: end;
    gap: 10px;
    padding: 0;
  }

  .nav-toggle:checked ~ .site-nav {
    display: grid;
  }

  .site-nav a {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
  }

  .hero,
  .hero-content {
    min-height: 560px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(7, 6, 16, 0.5) 0%, rgba(7, 6, 16, 0.96) 58%, rgba(7, 6, 16, 0.98) 100%),
      linear-gradient(90deg, rgba(7, 6, 16, 0.4), transparent);
  }

  .hero img {
    object-position: 62% center;
  }

  .hero-content {
    justify-content: flex-end;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nav-shell,
  .breadcrumbs,
  .page-main,
  .site-footer__inner {
    width: min(100% - 20px, var(--max));
  }

  .nav-shell {
    grid-template-columns: auto 1fr auto;
    min-height: 64px;
    gap: 6px;
  }

  .brand img {
    width: 96px;
    height: 38px;
  }

  .burger {
    width: 38px;
    height: 38px;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: end;
    gap: 4px;
  }

  .btn {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 9px;
  }

  .site-nav {
    grid-row: 2;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  article > section,
  .hero-content {
    padding: 22px;
  }

  th,
  td {
    padding: 11px;
    font-size: 14px;
  }
}
