:root {
  --bg: #07101d;
  --bg-soft: #0d1728;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --card: #121d31;
  --text: #eef4ff;
  --text-soft: #bcc8db;
  --muted: #8f9db4;
  --line: rgba(255, 255, 255, 0.1);
  --primary: #68c7ff;
  --primary-strong: #2aa7ff;
  --accent: #f2c66c;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  --radius: 24px;
  --radius-sm: 18px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background:
    radial-gradient(circle at top left, rgba(42, 167, 255, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(242, 198, 108, 0.09), transparent 22%),
    linear-gradient(180deg, #07101d 0%, #0a1425 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

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

.narrow {
  width: min(100% - 32px, 920px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(7, 16, 29, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
}

.menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.menu a {
  color: var(--text-soft);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--primary);
}

.hero {
  padding: 68px 0 38px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 30px;
  align-items: center;
}

.hero-content {
  max-width: 700px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(104, 199, 255, 0.2);
  background: rgba(104, 199, 255, 0.08);
  color: #d2efff;
  font-size: 0.86rem;
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.95rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(1.65rem, 2.9vw, 2.5rem);
}

h3 {
  font-size: 1.08rem;
}

.lead {
  max-width: 62ch;
  color: var(--text-soft);
  font-size: 1.06rem;
}

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

.btn {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: #04101d;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 12px 26px rgba(42, 167, 255, 0.25);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.hero-image-wrap {
  display: flex;
  justify-content: flex-end;
}

.hero-image-card,
.media-block {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  box-shadow: var(--shadow);
}

.hero-image-card {
  width: 100%;
  max-width: 430px;
  padding: 12px;
}

.media-block {
  width: 100%;
  max-width: 390px;
  padding: 10px;
}

.hero-image-card img,
.media-block img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.section {
  padding: 40px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.section-toc {
  padding-top: 16px;
}

.toc-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.toc-card h2 {
  font-size: 1.18rem;
  margin-bottom: 14px;
}

.toc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toc-links a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-soft);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.toc-links a:hover,
.toc-links a:focus-visible {
  color: var(--text);
  border-color: rgba(104, 199, 255, 0.3);
  transform: translateY(-1px);
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 34px;
  align-items: start;
}

.article-grid.reverse {
  grid-template-columns: minmax(0, 1.22fr) minmax(260px, 0.78fr);
}

.visual-side {
  display: flex;
  justify-content: center;
}

.content-block {
  max-width: 700px;
}

.content-block p,
.narrow p {
  color: var(--text-soft);
}

.feature-grid,
.cards-3 {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card,
.info-card,
.bonus-item,
.highlight-box {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.bonus-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

th {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-weight: 700;
}

td {
  color: var(--text-soft);
}

.steps {
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--text-soft);
}

.steps li + li {
  margin-top: 14px;
}

.highlight-box {
  margin-top: 24px;
  border-left: 4px solid var(--accent);
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

details {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  margin: 12px 0 0;
  color: var(--text-soft);
}

.site-footer {
  padding: 28px 0 40px;
}

.footer-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-note {
  margin: 0;
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-image-wrap {
    justify-content: center;
  }

  .hero-image-card {
    max-width: 420px;
  }
}

@media (max-width: 980px) {
  .article-grid,
  .article-grid.reverse,
  .feature-grid,
  .cards-3 {
    grid-template-columns: 1fr;
  }

  .visual-side {
    justify-content: center;
  }

  .media-block {
    max-width: 420px;
  }

  h1 {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .menu {
    gap: 12px;
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .toc-links {
    flex-direction: column;
  }

  .toc-links a {
    width: 100%;
  }

  .toc-card,
  .feature-card,
  .info-card,
  .bonus-item,
  .highlight-box,
  details {
    padding: 18px;
  }

  th,
  td {
    padding: 14px;
  }

  .hero-image-card {
    max-width: 360px;
  }

  .media-block {
    max-width: 340px;
  }
}

@media (max-width: 480px) {
  body {
    line-height: 1.6;
  }

  .container,
  .narrow {
    width: min(100% - 20px, var(--max));
  }

  .section {
    padding: 30px 0;
  }

  .eyebrow {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .lead {
    font-size: 1rem;
  }

  .hero-image-card,
  .media-block {
    max-width: 100%;
  }
}
