:root {
  --bg: #07101f;
  --bg-soft: #0d1830;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --text: #eaf1ff;
  --muted: #a7b5d1;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #f6c95d;
  --accent-2: #7dd3fc;
  --success: #8ff0bf;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  --radius: 22px;
  --radius-sm: 16px;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(123, 97, 255, 0.18), transparent 28%),
    radial-gradient(circle at top left, rgba(0, 214, 201, 0.12), transparent 25%),
    linear-gradient(180deg, #08111f 0%, #091426 100%);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
  border-radius: calc(var(--radius) - 6px);
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(7, 16, 31, 0.72);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__star {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(246, 201, 93, 0.14);
  border: 1px solid rgba(246, 201, 93, 0.22);
}

.brand__text {
  font-size: 0.98rem;
  color: #f7fbff;
}

.badge {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

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

.hero__grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 28px;
  align-items: center;
}

.hero__content {
  padding: 18px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0 0 14px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.55rem);
  max-width: 14ch;
}

h1 span {
  color: var(--accent-2);
}

.lead {
  margin: 0 0 18px;
  font-size: 1.06rem;
  color: #d6e2f7;
  max-width: 62ch;
}

.hero__media img,
.media-block img {
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.summary-card__item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  box-shadow: var(--shadow);
}

.summary-card__label {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 6px;
}

.section {
  padding: 18px 0 60px;
}

.content {
  position: relative;
}

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

.toc {
  position: sticky;
  top: 88px;
}

.toc nav {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.toc__title {
  margin: 0 0 12px;
  font-weight: 700;
  color: #fff;
}

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

.toc li + li {
  margin-top: 10px;
}

.toc a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--text);
  transform: translateX(2px);
}

.article-body {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  box-shadow: var(--shadow);
}

.article-body p {
  margin: 0 0 18px;
  color: #d7e2f6;
  font-size: 1.02rem;
}

.article-body strong {
  color: #ffffff;
}

.article-body h2 {
  margin-top: 34px;
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  color: #ffffff;
}

.article-body h3 {
  font-size: 1.2rem;
}

.media-block {
  margin: 26px 0;
}

.media-block figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

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

th {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
}

td {
  color: #d7e2f6;
}

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

.pros-cons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.card {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.card h3 {
  margin-bottom: 12px;
}

.card ul {
  margin: 0;
  padding-left: 18px;
}

.card li + li {
  margin-top: 8px;
}

.conclusion {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(246, 201, 93, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(246, 201, 93, 0.08), rgba(255, 255, 255, 0.02));
}

.faq {
  margin-top: 34px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 16px 18px;
}

.faq details + details {
  margin-top: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 800;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin-top: 12px;
  margin-bottom: 0;
}

.note {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 980px) {
  .hero__grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    order: -1;
  }

  .toc nav {
    padding: 16px;
  }

  .summary-card {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 100%;
  }
}

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

  .topbar__inner {
    min-height: 58px;
  }

  .brand__text {
    font-size: 0.92rem;
  }

  .badge {
    display: none;
  }

  .hero {
    padding-top: 18px;
  }

  .article-body {
    padding: 18px 14px;
    border-radius: 22px;
  }

  .article-body p {
    font-size: 0.98rem;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  th, td {
    padding: 12px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}
