:root {
  --accent: #ff2d55;
  --accent-hi: #ff4768;
  --bg: #0a0a0b;
  --surface: #141416;
  --surface-hi: #1a1a1d;
  --ink: #f7f7f3;
  --body: #c9c9c2;
  --dim: #96968f;
  --line: rgba(244, 244, 240, 0.14);
  --line-strong: rgba(244, 244, 240, 0.25);
  --sans: "Golos Text", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --max: 1240px;
  --reading: 760px;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { color: #fff; background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--bg);
  background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.reading-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 80;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 11, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  max-width: var(--max);
  padding: 0 var(--pad);
  margin: 0 auto;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 26px; height: 26px; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-name { font-weight: 600; letter-spacing: -0.02em; }
.brand-section {
  margin-top: 5px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.header-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.header-nav a { color: var(--body); font-size: 14px; transition: color 0.2s ease; }
.header-nav a:hover { color: var(--ink); }
.header-nav .header-cta { color: var(--accent); font-weight: 600; }

.shell { max-width: var(--max); padding-inline: var(--pad); margin-inline: auto; }
.eyebrow {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
  gap: clamp(36px, 8vw, 120px);
  align-items: end;
  min-height: 62vh;
  padding-top: clamp(96px, 14vh, 180px);
  padding-bottom: clamp(72px, 10vh, 128px);
}
.blog-hero h1,
.article-hero h1 {
  margin: 24px 0 0;
  max-width: 15ch;
  font-size: clamp(46px, 7.2vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.blog-hero h1 em { color: var(--accent); font-style: normal; }
.hero-note { max-width: 34ch; margin: 0; color: var(--body); font-size: clamp(17px, 1.5vw, 21px); }
.hero-note strong { display: block; margin-bottom: 16px; color: var(--ink); font-size: 15px; }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  padding: 0 0 30px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 { margin: 8px 0 0; font-size: clamp(28px, 4vw, 48px); line-height: 1; letter-spacing: -0.035em; }
.section-head p { max-width: 45ch; margin: 0; color: var(--dim); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  padding: 34px 0 clamp(96px, 12vh, 160px);
}
.article-card {
  grid-column: span 4;
  display: flex;
  min-height: 460px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  transition: transform 0.28s var(--ease), border-color 0.28s ease;
}
.article-card:hover { border-color: var(--line-strong); transform: translateY(-6px); }
.card-cover {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 30%, color-mix(in srgb, var(--card-color) 86%, white 14%) 0 4%, transparent 5%),
    linear-gradient(135deg, color-mix(in srgb, var(--card-color) 48%, #0a0a0b 52%), #0a0a0b 72%);
}
.card-cover::before,
.card-cover::after { position: absolute; content: ""; border: 1px solid rgba(255,255,255,.28); }
.card-cover::before { width: 44%; aspect-ratio: 1; top: 22%; left: 12%; border-radius: 50%; }
.card-cover::after { width: 55%; height: 35%; right: -4%; bottom: 12%; transform: rotate(-12deg); }
.cover-index {
  position: absolute;
  top: 20px;
  right: 22px;
  color: rgba(255,255,255,.8);
  font-family: var(--mono);
  font-size: 12px;
}
.card-body { display: flex; flex: 1; flex-direction: column; padding: 26px; }
.card-meta { color: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.article-card h3 { margin: 18px 0 14px; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.08; letter-spacing: -0.03em; }
.article-card p { margin: 0; color: var(--body); }
.card-link { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 30px; color: var(--ink); font-weight: 600; }
.card-link span { color: var(--accent); transition: transform 0.2s ease; }
.article-card:hover .card-link span { transform: translateX(5px); }

.process {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 8vw, 120px);
  padding-bottom: clamp(96px, 12vh, 160px);
}
.process h2 { margin: 12px 0 0; max-width: 12ch; font-size: clamp(34px, 5vw, 68px); line-height: 1; letter-spacing: -0.04em; }
.process-list { border-top: 1px solid var(--line); }
.process-item { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.process-item span { color: var(--accent); font-family: var(--mono); font-size: 12px; }
.process-item h3 { margin: 0 0 8px; font-size: 20px; }
.process-item p { margin: 0; color: var(--dim); }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; padding-block: 34px; color: var(--dim); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a:hover { color: var(--ink); }

.article-hero { padding-top: clamp(86px, 12vh, 148px); padding-bottom: clamp(56px, 8vh, 100px); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--dim); font-size: 13px; }
.breadcrumbs a:hover { color: var(--ink); }
.article-hero h1 { max-width: 16ch; font-size: clamp(42px, 6.5vw, 88px); }
.article-lede { max-width: 780px; margin: 30px 0 0; color: var(--body); font-size: clamp(19px, 2vw, 25px); line-height: 1.45; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; color: var(--dim); font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }

.article-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, var(--reading)) 180px;
  justify-content: center;
  max-width: 1480px;
  gap: clamp(28px, 3vw, 48px);
  align-items: start;
  padding-bottom: clamp(100px, 14vh, 180px);
}
.article-toc { position: sticky; top: 104px; padding-top: 8px; }
.article-toc strong { color: var(--dim); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.article-toc ol { display: grid; gap: 12px; padding: 0; margin: 18px 0 0; list-style: none; counter-reset: toc; }
.article-toc li { counter-increment: toc; }
.article-toc a { display: grid; grid-template-columns: 22px 1fr; color: var(--dim); font-size: 13px; line-height: 1.35; }
.article-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--accent); font-family: var(--mono); font-size: 10px; }
.article-toc a:hover { color: var(--ink); }

.article-body { min-width: 0; color: var(--body); font-size: clamp(17px, 1.35vw, 19px); line-height: 1.75; }
.article-body > :first-child { margin-top: 0; }
.article-body h2 { margin: 76px 0 22px; color: var(--ink); font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.035em; }
.article-body h3 { margin: 42px 0 14px; color: var(--ink); font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
.article-body p { margin: 0 0 24px; }
.article-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.article-body ul,
.article-body ol { padding-left: 1.2em; margin: 0 0 28px; }
.article-body li { padding-left: 0.35em; margin-bottom: 12px; }
.article-body li::marker { color: var(--accent); }
.answer-box,
.note-box,
.source-box {
  padding: clamp(22px, 4vw, 34px);
  margin: 0 0 38px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.answer-box { border-color: color-mix(in srgb, var(--accent) 48%, transparent); }
.answer-box strong,
.note-box strong { display: block; margin-bottom: 10px; color: var(--ink); font-size: 15px; }
.answer-box p:last-child,
.note-box p:last-child,
.source-box p:last-child { margin-bottom: 0; }
.step-list { list-style: none; padding: 0 !important; counter-reset: steps; }
.step-list > li { position: relative; padding: 0 0 28px 58px; margin: 0; counter-increment: steps; }
.step-list > li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  content: counter(steps, decimal-leading-zero);
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 10px;
}
.step-list h3 { margin: 2px 0 8px; }
.step-list p { margin-bottom: 0; }
.comparison { width: 100%; margin: 28px 0 38px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.comparison th,
.comparison td { padding: 16px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison th { color: var(--ink); font-size: 13px; }
.comparison td { color: var(--body); }
.faq { margin-top: 70px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; color: var(--ink); cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--mono); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 22px; margin: 0; }
.article-aside { position: sticky; top: 104px; }
.aside-card { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.aside-card p { margin: 0 0 16px; color: var(--dim); font-size: 13px; }
.aside-card a { display: inline-flex; color: var(--accent); font-size: 13px; font-weight: 600; }
.article-cta { padding: clamp(30px, 5vw, 54px); margin-top: 72px; border-radius: 24px; color: var(--ink); background: linear-gradient(135deg, #30111a, #151519 72%); }
.article-cta h2 { margin-top: 0; max-width: 14ch; }
.article-cta p { max-width: 46ch; }
.button { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; margin-top: 10px; border-radius: 999px; color: white !important; background: var(--accent); text-decoration: none !important; font-weight: 600; }
.button:hover { background: var(--accent-hi); }

@media (max-width: 1320px) {
  .article-layout { grid-template-columns: minmax(160px, 200px) minmax(0, var(--reading)); }
  .article-aside { display: none; }
}

@media (max-width: 980px) {
  .blog-hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-note { max-width: 56ch; }
  .article-card,
  .article-card:first-child,
  .article-card:nth-child(2) { grid-column: span 6; }
  .article-card:last-child { grid-column: span 12; }
  .article-layout { grid-template-columns: minmax(0, var(--reading)); justify-content: center; }
  .article-toc,
  .article-aside { position: static; }
  .article-toc { padding: 20px; border: 1px solid var(--line); border-radius: 18px; }
  .article-aside { display: none; }
}

@media (max-width: 700px) {
  .header-inner { min-height: 64px; }
  .brand-name { font-size: 14px; }
  .header-nav a:not(.header-cta) { display: none; }
  .header-nav .header-cta { font-size: 13px; }
  .blog-hero { padding-top: 82px; }
  .blog-hero h1 { font-size: clamp(40px, 12vw, 60px); }
  .article-hero h1 { font-size: clamp(34px, 10.7vw, 60px); }
  .section-head,
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .card-grid { display: grid; grid-template-columns: 1fr; }
  .article-card,
  .article-card:first-child,
  .article-card:nth-child(2),
  .article-card:last-child { grid-column: auto; min-height: 420px; }
  .process { grid-template-columns: 1fr; }
  .article-layout { display: block; }
  .article-toc { margin-bottom: 46px; }
  .comparison { display: block; overflow-x: auto; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
