:root {
  color-scheme: dark;
  --bg: #07111f;
  --surface: rgba(15, 29, 51, 0.82);
  --surface-strong: #10213a;
  --text: #eef5ff;
  --muted: #a9b9d1;
  --line: rgba(193, 216, 255, 0.14);
  --blue: #71a9ff;
  --blue-strong: #367ee8;
  --cyan: #58d5e8;
  --green: #68d7a2;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 4%, rgba(54, 126, 232, 0.22), transparent 32rem),
    radial-gradient(circle at 88% 10%, rgba(88, 213, 232, 0.12), transparent 28rem),
    linear-gradient(180deg, #081423 0%, var(--bg) 38rem, #08111d 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a { color: #9fc3ff; text-underline-offset: 0.18em; }
a:hover { color: #c6dcff; }
img { max-width: 100%; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: #081423;
}
.skip-link:focus { top: 16px; }

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

.header-inner,
.footer-inner,
.page-shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.brand span { color: var(--blue); }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}
.site-nav a { color: #c5d2e5; text-decoration: none; }
.site-nav a[aria-current="page"] { color: #fff; }

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.64rem 1rem;
  border: 1px solid rgba(137, 181, 255, 0.34);
  border-radius: 12px;
  background: linear-gradient(180deg, #4a91f2, #2f71d2);
  box-shadow: 0 10px 30px rgba(21, 83, 173, 0.2);
  color: #fff !important;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}
.button.secondary { background: rgba(255,255,255,0.05); box-shadow: none; }

.page-shell { padding-block: 54px 72px; }
.breadcrumbs { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.breadcrumbs a { color: #b6c8e1; text-decoration: none; }

.hero { max-width: 880px; margin-bottom: 42px; }
.hero h1 {
  margin: 0 0 18px;
  max-width: 18ch;
  font-size: clamp(38px, 7vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero .dek { margin: 0; max-width: 760px; color: #c5d3e7; font-size: clamp(19px, 2.3vw, 24px); line-height: 1.5; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: #8fa2bd; font-size: 14px; }
.article-meta span + span::before { content: "·"; margin-right: 18px; color: #58708f; }

.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(220px, 1fr); gap: 58px; align-items: start; }
.article-body { min-width: 0; }
.article-body h2 { margin: 3.2rem 0 1rem; font-size: clamp(28px, 4vw, 40px); line-height: 1.16; letter-spacing: -0.025em; }
.article-body h3 { margin: 2rem 0 0.55rem; font-size: 23px; line-height: 1.28; }
.article-body p { margin: 0 0 1.2rem; color: #c3d0e2; }
.article-body strong { color: #f5f8ff; }
.article-body ul, .article-body ol { margin: 0 0 1.4rem; padding-left: 1.25rem; color: #c3d0e2; }
.article-body li { margin-bottom: 0.55rem; padding-left: 0.25rem; }

.verdict,
.note {
  margin: 1.6rem 0 2.2rem;
  padding: 20px 22px;
  border: 1px solid rgba(113, 169, 255, 0.28);
  border-left: 4px solid var(--blue);
  border-radius: 14px;
  background: rgba(40, 89, 158, 0.14);
  color: #dce9fb;
}
.verdict strong, .note strong { display: block; margin-bottom: 0.25rem; color: #fff; }

.table-wrap { margin: 1.6rem 0 2.2rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; }
table { width: 100%; min-width: 620px; border-collapse: collapse; background: rgba(8, 21, 38, 0.7); font-size: 15px; line-height: 1.45; }
th, td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: rgba(64, 113, 184, 0.15); color: #f4f7fc; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td:first-child { color: #fff; font-weight: 700; }

.article-aside { position: sticky; top: 96px; }
.aside-card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.aside-card h2 { margin: 0 0 12px; font-size: 17px; line-height: 1.35; }
.aside-card p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.aside-card .button { width: 100%; margin-top: 8px; font-size: 14px; }
.aside-card .button.secondary { margin-top: 10px; }

.faq { margin-top: 3.6rem; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; color: #f3f7ff; font-weight: 700; }
.faq details p { margin: 12px 0 2px; }

.sources { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.sources h2 { margin-top: 0; font-size: 24px; }
.sources li { font-size: 15px; }

.related { margin-top: 4rem; }
.related h2 { font-size: 26px; }
.related-grid,
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.guide-card { display: flex; min-height: 210px; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: inherit; text-decoration: none; transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.guide-card:hover { transform: translateY(-2px); border-color: rgba(113, 169, 255, 0.38); background: rgba(20, 42, 72, 0.9); color: inherit; }
.guide-card .card-label { color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.guide-card h2, .guide-card h3 { margin: 10px 0; color: #fff; font-size: 23px; line-height: 1.24; letter-spacing: -0.02em; }
.guide-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.guide-card .read-more { margin-top: auto; padding-top: 22px; color: #aecdff; font-size: 14px; font-weight: 700; }

.index-hero { max-width: 900px; margin-bottom: 45px; }
.index-hero h1 { margin: 0 0 18px; font-size: clamp(42px, 7vw, 76px); line-height: 1; letter-spacing: -0.05em; }
.index-hero p { max-width: 760px; color: #c5d3e7; font-size: 22px; line-height: 1.55; }
.section-title { margin: 52px 0 18px; font-size: 26px; }

.app-cta { margin: 4rem 0 1rem; display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 28px; align-items: center; overflow: hidden; padding: 28px 30px; border: 1px solid rgba(113, 169, 255, 0.25); border-radius: 20px; background: linear-gradient(135deg, rgba(54,126,232,.23), rgba(15,29,51,.75)); }
.app-cta h2 { margin: 0 0 10px; font-size: 30px; }
.app-cta p { margin: 0 0 18px; color: #c7d7ea; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.app-cta img { width: 170px; justify-self: center; filter: drop-shadow(0 18px 26px rgba(0,0,0,.3)); }

.site-footer { border-top: 1px solid var(--line); color: #889ab3; font-size: 14px; }
.footer-inner { min-height: 90px; display: flex; align-items: center; gap: 18px; }
.footer-inner nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 16px; }
.footer-inner a { color: #a9b9d1; text-decoration: none; }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: 30px; }
  .article-aside { position: static; }
  .aside-card { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; }
  .aside-card h2, .aside-card p { grid-column: 1 / -1; }
  .aside-card .button { margin: 0; }
  .app-cta { grid-template-columns: 1fr; }
  .app-cta img { display: none; }
}

@media (max-width: 650px) {
  body { font-size: 16px; }
  .header-inner, .footer-inner, .page-shell { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 62px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .nav-cta { min-height: 40px; padding-inline: 0.8rem; }
  .page-shell { padding-block: 38px 56px; }
  .hero h1 { max-width: none; }
  .article-meta span + span::before { display: none; }
  .related-grid, .guide-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 0; }
  .aside-card { grid-template-columns: 1fr; }
  .aside-card h2, .aside-card p { grid-column: auto; }
  .app-cta { padding: 24px 20px; }
  .cta-buttons { flex-direction: column; }
  .button { width: 100%; }
  .footer-inner { padding-block: 24px; align-items: flex-start; flex-direction: column; }
  .footer-inner nav { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .guide-card { transition: none; }
}
