:root {
  --paper: #f6f5f1;
  --white: #ffffff;
  --ink: #111318;
  --graphite: #252930;
  --muted: #626872;
  --line: #d9dbde;
  --soft: #ececea;
  --red: #d71920;
  --red-dark: #a90f15;
  --green: #087a58;
  --shadow: 0 24px 70px rgba(18, 23, 31, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 4px; }
img { max-width: 100%; }
::selection { color: #fff; background: var(--red); }
:focus-visible { outline: 3px solid rgba(215, 25, 32, .35); outline-offset: 3px; }

.shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; padding: 12px 18px; color: #fff; background: var(--ink); }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(17, 19, 24, .12); background: rgba(246, 245, 241, .94); backdrop-filter: blur(16px); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand img { display: block; width: 168px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 800; }
.nav a { text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); }
.nav-cta { padding: 12px 18px; border-radius: 9px; color: #fff !important; background: var(--ink); }
.nav-cta:hover { background: var(--red); }

.blog-hero { padding: 88px 0 72px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 84% 12%, rgba(215, 25, 32, .12), transparent 26%), var(--paper); }
.eyebrow { margin: 0 0 14px; color: var(--red); font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.blog-hero h1, .article-hero h1 { margin: 0; max-width: 920px; font-family: "Barlow Condensed", sans-serif; font-size: clamp(3.5rem, 7vw, 6.4rem); line-height: .92; letter-spacing: -.025em; text-wrap: balance; }
.blog-hero .lede, .article-hero .lede { max-width: 760px; margin: 24px 0 0; color: var(--graphite); font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 9px; color: #fff; background: var(--red); font-weight: 800; text-decoration: none; }
.button:hover { background: var(--red-dark); }
.button.secondary { color: var(--ink); background: var(--white); border: 1px solid var(--line); }

.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 64px 0 92px; }
.topic-card { display: flex; min-height: 330px; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: 0 15px 40px rgba(17, 19, 24, .07); }
.topic-card .number { color: var(--red); font-family: "Barlow Condensed", sans-serif; font-size: 40px; font-weight: 800; line-height: 1; }
.topic-card h2 { margin: 28px 0 12px; font-family: "Barlow Condensed", sans-serif; font-size: 33px; line-height: 1; }
.topic-card p { margin: 0; color: var(--muted); font-size: 15px; }
.topic-card a { margin-top: auto; padding-top: 28px; color: var(--red); font-weight: 900; text-decoration: none; }
.topic-card a:hover { color: var(--red-dark); }

.editorial-rule { padding: 66px 0; color: #fff; background: var(--ink); }
.editorial-rule .shell { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.editorial-rule h2 { margin: 0; font-family: "Barlow Condensed", sans-serif; font-size: clamp(2.7rem, 5vw, 4.6rem); line-height: .95; }
.editorial-rule ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid #41454c; }
.editorial-rule li { padding: 18px 0; border-bottom: 1px solid #41454c; color: #d1d4d9; }
.editorial-rule strong { color: #fff; }

.article-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.breadcrumbs { margin: 0 0 34px; color: var(--muted); font-size: 14px; }
.breadcrumbs a { color: var(--red); font-weight: 800; text-decoration: none; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--muted); font-size: 14px; }
.article-meta strong { color: var(--ink); }

.article-layout { display: grid; grid-template-columns: 230px minmax(0, 760px); gap: 66px; justify-content: center; padding: 58px 0 96px; }
.toc { position: sticky; top: 104px; align-self: start; padding: 22px 20px; border-left: 3px solid var(--red); background: #fff; }
.toc strong { display: block; margin-bottom: 12px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.toc a { display: block; padding: 6px 0; color: var(--muted); font-size: 13px; line-height: 1.35; text-decoration: none; }
.toc a:hover { color: var(--red); }

.article-body { min-width: 0; }
.article-body > :first-child { margin-top: 0; }
.article-body h2 { scroll-margin-top: 104px; margin: 58px 0 18px; font-family: "Barlow Condensed", sans-serif; font-size: clamp(2.3rem, 5vw, 3.3rem); line-height: 1; }
.article-body h3 { margin: 34px 0 10px; font-size: 1.25rem; line-height: 1.25; }
.article-body p { margin: 0 0 20px; color: #30343b; }
.article-body ul, .article-body ol { margin: 0 0 26px; padding-left: 24px; }
.article-body li { margin: 10px 0; padding-left: 5px; }
.article-body a { color: var(--red-dark); font-weight: 750; }
.answer-box, .warning-box, .source-box, .cta-box { margin: 30px 0; padding: 24px 26px; border-radius: 13px; }
.answer-box { border-left: 5px solid var(--red); background: #fff; box-shadow: 0 12px 32px rgba(17, 19, 24, .06); }
.answer-box strong { display: block; margin-bottom: 7px; font-size: 18px; }
.warning-box { border: 1px solid #e5c471; background: #fff9e8; }
.warning-box strong { color: #7a4a00; }
.source-box { border: 1px solid var(--line); background: #fff; }
.source-box h2 { margin-top: 0; font-size: 2rem; }
.source-box li { font-size: 14px; }
.cta-box { color: #fff; background: var(--ink); }
.cta-box h2 { margin-top: 0; color: #fff; }
.cta-box p { color: #d0d3d8; }
.cta-box .button { color: #fff; }

.formula { margin: 28px 0; padding: 24px; border-radius: 12px; color: #fff; background: var(--ink); font-family: "Barlow Condensed", sans-serif; font-size: clamp(1.55rem, 4vw, 2.15rem); line-height: 1.25; text-align: center; }
.formula span { color: #ff4a50; }
.data-table { width: 100%; margin: 28px 0 34px; border-collapse: collapse; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgba(17, 19, 24, .05); }
.data-table th, .data-table td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { color: #fff; background: var(--ink); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.data-table td { font-size: 15px; }
.data-table tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.status.ok { color: #075c44; background: #dff6ed; }
.status.review { color: #7a4a00; background: #fff0c2; }
.status.blocked { color: #981b20; background: #fee5e6; }

.faq { margin-top: 58px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 850; }
.faq details p { padding: 0 0 20px; }

footer { padding: 30px 0; color: #b6bac1; background: var(--ink); }
.footer-inner { display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 34px; font-size: 13px; }
.footer-inner img { width: 160px; filter: brightness(0) invert(1); }
.footer-inner p { margin: 0; text-align: center; }

@media (max-width: 900px) {
  .topic-grid { grid-template-columns: 1fr; }
  .topic-card { min-height: 260px; }
  .editorial-rule .shell { grid-template-columns: 1fr; gap: 36px; }
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .shell { width: min(100% - 32px, 1160px); }
  .header-inner { min-height: 68px; }
  .brand img { width: 146px; }
  .nav a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 10px 12px; font-size: 13px; }
  .blog-hero, .article-hero { padding: 54px 0 44px; }
  .blog-hero h1, .article-hero h1 { font-size: clamp(3.3rem, 16vw, 4.8rem); }
  .topic-grid { padding: 38px 0 64px; }
  .article-layout { padding: 34px 0 70px; }
  .data-table { display: block; overflow-x: auto; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-inner img { margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
