@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
  --ink: #191f28;
  --ink-2: #252f3a;
  --gold: #ffd103;
  --gold-soft: #fff8cf;
  --violet: #7024a6;
  --violet-soft: #f5ecfb;
  --text: #212529;
  --muted: #687781;
  --line: #ebedf0;
  --wash: #f1f2f4;
  --white: #fff;
  --green: #2d8233;
  --radius: 8px;
  --shadow: 0 12px 34px rgba(25, 31, 40, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-top: 64px;
  color: var(--text);
  background: #fff;
  font: 300 15px/1.55 Archivo, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(255, 209, 3, .75); outline-offset: 3px; }
.container { width: min(1140px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(780px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow { margin: 0 0 10px; color: var(--violet); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.serif { font-family: 'Playfair Display', Georgia, serif; }
.muted { color: var(--muted); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--gold); color: var(--ink); font-weight: 800; }
.skip-link:focus { top: 8px; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: 64px; background: var(--ink); color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.header-inner { height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: block; flex: 0 0 230px; }
.brand img { width: 230px; height: 42px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: stretch; align-self: stretch; margin-left: auto; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link { display: flex; align-items: center; height: 64px; padding: 0 13px; color: #eef1f3; font-size: 13px; font-weight: 600; border-bottom: 3px solid transparent; }
.nav-link:hover, .nav-link[aria-current='page'] { color: var(--gold); border-bottom-color: var(--gold); }
.nav-dropdown { position: absolute; left: 0; top: 56px; width: 260px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s ease; }
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a { display: block; padding: 10px 12px; border-radius: 5px; font-size: 13px; font-weight: 600; }
.nav-dropdown a:hover { background: var(--gold-soft); }
.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 5px; background: transparent; color: #fff; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: block; width: 24px; height: 2px; margin: 5px auto; background: currentColor; content: ''; transition: .18s ease; }
.menu-toggle[aria-expanded='true'] span { opacity: 0; }
.menu-toggle[aria-expanded='true']::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded='true']::after { transform: translateY(-7px) rotate(-45deg); }

.hero { padding: 64px 0 42px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.22fr .78fr; gap: 56px; align-items: center; }
.hero h1, .page-hero h1 { margin: 0; font: 700 clamp(43px, 4vw, 58px)/1.06 'Playfair Display', Georgia, serif; letter-spacing: -.035em; }
.hero h1 span { color: var(--violet); }
.hero-dek { max-width: 720px; margin: 20px 0 0; color: #475865; font: 300 20px/1.5 Archivo, sans-serif; }
.hero-search { position: relative; display: flex; max-width: 680px; margin-top: 28px; }
.hero-search input { width: 100%; height: 50px; padding: 0 58px 0 16px; border: 1px solid #cdd6dd; border-radius: 5px; background: #fff; color: var(--text); }
.hero-search button { position: absolute; top: 4px; right: 4px; width: 43px; height: 42px; border: 0; border-radius: 4px; background: var(--ink); color: var(--gold); font-size: 18px; }
.search-results { position: absolute; inset: calc(100% + 6px) 0 auto; z-index: 20; max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: var(--shadow); }
.search-results:empty { display: none; }
.search-results a { display: block; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.search-results a:hover { background: var(--gold-soft); }
.hero-visual { position: relative; }
.hero-visual::before { position: absolute; inset: -18px 18px 18px -18px; z-index: -1; border-radius: 12px; background: var(--gold); content: ''; }
.hero-visual img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow); }
.hero-note { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; color: var(--muted); font-size: 12px; font-weight: 600; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 12px 0 56px; }
.stat-card { min-height: 142px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: .18s ease; }
.stat-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow); }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--violet-soft); color: var(--violet); font-size: 22px; font-weight: 800; }
.stat-count { color: var(--muted); font-size: 12px; font-weight: 700; }
.stat-card h2 { margin: 18px 0 5px; font: 700 21px/1.2 'Playfair Display', Georgia, serif; }
.stat-card p { margin: 0; color: var(--muted); font-size: 13px; }

.section { padding: 66px 0; }
.section.alt { background: var(--wash); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head h2 { max-width: 760px; margin: 0; font: 700 clamp(32px, 3vw, 42px)/1.12 'Playfair Display', Georgia, serif; letter-spacing: -.025em; }
.section-head p { max-width: 540px; margin: 8px 0 0; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--violet); font-weight: 800; white-space: nowrap; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.featured-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; }
.featured-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.article-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.article-card:hover, .article-card:focus-within { transform: translateY(-3px); border-color: #e6c200; box-shadow: var(--shadow); }
.article-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #dfe3e6; }
.card-body { padding: 19px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.card-category { color: var(--violet); }
.article-card h3 { margin: 0; font: 700 20px/1.25 'Playfair Display', Georgia, serif; letter-spacing: -.015em; }
.article-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.article-card p { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.article-card.lead h3 { font-size: 30px; }
.article-card.compact { display: grid; grid-template-columns: 118px 1fr; align-items: stretch; }
.article-card.compact img { height: 100%; aspect-ratio: auto; }
.article-card.compact .card-body { padding: 14px; }
.article-card.compact h3 { font-size: 16px; }
.article-card.compact p { display: none; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.scenario-card { padding: 28px; border-top: 4px solid var(--gold); background: #fff; box-shadow: 0 5px 20px rgba(25,31,40,.06); }
.scenario-card span { color: var(--violet); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.scenario-card h3 { margin: 12px 0 9px; font: 700 24px/1.2 'Playfair Display', Georgia, serif; }
.scenario-card p { margin: 0; color: var(--muted); }

.method-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; align-items: start; }
.method-list { display: grid; gap: 12px; }
.method-item { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.method-num { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--gold); font-weight: 800; }
.method-item h3 { margin: 1px 0 4px; font-size: 15px; }
.method-item p { margin: 0; color: var(--muted); font-size: 13px; }
.btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px; padding: 10px 18px; border: 1px solid var(--gold); border-radius: 4px; background: var(--gold); color: var(--ink); font-weight: 800; transition: .16s ease; }
.btn:hover { border-color: var(--ink); background: var(--ink); color: var(--gold); }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--gold); color: var(--ink); }

.page-hero { padding: 52px 0 42px; background: #fff; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; color: var(--muted); font-size: 12px; }
.breadcrumbs a:hover { color: var(--violet); text-decoration: underline; }
.page-hero p { max-width: 800px; margin: 18px 0 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.category-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 42px; align-items: start; padding: 30px; border: 1px solid var(--line); border-radius: 8px; }
.category-intro h2 { margin-top: 0; font: 700 30px/1.2 'Playfair Display', Georgia, serif; }
.mini-checklist { margin: 0; padding: 0; list-style: none; }
.mini-checklist li { position: relative; padding: 9px 0 9px 28px; border-bottom: 1px solid var(--line); }
.mini-checklist li::before { position: absolute; left: 0; color: var(--green); font-weight: 800; content: '✓'; }

.article-hero { padding-bottom: 32px; }
.article-hero h1 { max-width: 980px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 20px; color: var(--muted); font-size: 13px; font-weight: 500; }
.article-cover { width: min(1140px, calc(100% - 40px)); margin: 0 auto 34px; }
.article-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; background: var(--wash); }
.article-layout { display: grid; grid-template-columns: 230px minmax(0, 760px); justify-content: center; gap: 46px; width: min(1100px, calc(100% - 40px)); margin: 0 auto; }
.toc { position: sticky; top: 88px; align-self: start; padding: 18px; border: 1px solid var(--line); border-radius: 6px; }
.toc strong { display: block; margin-bottom: 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.toc a { display: block; padding: 7px 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.toc a:hover, .toc a.active { color: var(--violet); font-weight: 700; }
.article-body { min-width: 0; font-size: 17px; line-height: 1.78; }
.article-body > :first-child { margin-top: 0; }
.article-body h2 { scroll-margin-top: 90px; margin: 48px 0 15px; font: 700 31px/1.2 'Playfair Display', Georgia, serif; letter-spacing: -.02em; }
.article-body h3 { margin: 30px 0 10px; font-size: 21px; line-height: 1.3; }
.article-body p { margin: 0 0 20px; }
.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.disclosure { margin: 0 0 30px; padding: 17px 19px; border: 1px solid #ead061; border-left: 5px solid var(--gold); border-radius: 5px; background: var(--gold-soft); font-size: 14px; line-height: 1.55; }
.scenario-box { margin: 30px 0; padding: 24px 26px; border-left: 5px solid var(--violet); background: var(--violet-soft); }
.scenario-box h2 { margin-top: 0; }
.comparison-wrap { overflow-x: auto; margin: 22px 0 30px; }
.comparison { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.comparison th { padding: 13px; background: var(--ink); color: #fff; text-align: left; }
.comparison td { padding: 13px; border: 1px solid var(--line); vertical-align: top; }
.comparison tr:nth-child(even) td { background: #fafbfb; }
.checklist-box, .redflags-box, .recommendation-box { margin: 30px 0; padding: 24px 26px; border-radius: 6px; }
.checklist-box { border: 1px solid #cfd8cf; background: #f4f8f4; }
.redflags-box { border: 1px solid #e6caca; background: #fff7f7; }
.recommendation-box { border: 1px solid var(--gold); background: #fffdf0; }
.checklist-box h2, .redflags-box h2, .recommendation-box h2 { margin-top: 0; }
.faq-list details { padding: 16px 0; border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-weight: 700; }
.faq-list details p { margin: 12px 0 0; color: #475865; }
.sources { padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.sources li { overflow-wrap: anywhere; }

.prose { padding: 48px 0 72px; font-size: 16px; line-height: 1.75; }
.prose h2 { margin: 40px 0 12px; font: 700 30px/1.2 'Playfair Display', Georgia, serif; }
.prose h3 { margin: 28px 0 10px; font-size: 20px; }
.prose a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.prose .note { padding: 18px 20px; border-left: 4px solid var(--gold); background: var(--gold-soft); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; }
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 7px; font-weight: 700; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 12px 13px; border: 1px solid #cdd6dd; border-radius: 5px; background: #fff; }
.contact-form textarea { min-height: 180px; resize: vertical; }
.form-note { color: var(--muted); font-size: 12px; }

.responsible-strip { padding: 30px 0; border-top: 1px solid var(--line); background: #f8f9fa; }
.responsible-inner { display: grid; grid-template-columns: 54px 1fr auto; gap: 18px; align-items: center; }
.shield { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 23px; font-weight: 800; }
.responsible-inner h2 { margin: 0 0 4px; font-size: 16px; }
.responsible-inner p { margin: 0; color: var(--muted); font-size: 13px; }
.site-footer { padding: 50px 0 24px; background: var(--ink); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.footer-brand img { width: 230px; }
.footer-brand p { max-width: 360px; color: #bac0c3; font-size: 13px; }
.footer-col h2 { margin: 0 0 12px; color: var(--gold); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; }
.footer-col a { display: block; padding: 5px 0; color: #e7e9eb; font-size: 13px; }
.footer-col a:hover { color: var(--gold); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 38px; padding-top: 20px; border-top: 1px solid #37424f; color: #bac0c3; font-size: 11px; }

.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.not-found strong { display: block; color: var(--gold); font: 800 96px/1 'Playfair Display', serif; text-shadow: 2px 2px var(--violet); }

@media (max-width: 1040px) {
  .brand { flex-basis: 198px; }
  .brand img { width: 198px; }
  .nav-link { padding-inline: 8px; font-size: 12px; }
  .article-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 30px; }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: 64px 0 0; display: none; overflow: auto; padding: 16px 20px 40px; background: var(--ink); }
  .main-nav.open { display: block; }
  .nav-item, .nav-link { display: block; height: auto; }
  .nav-link { padding: 15px 5px; border-bottom: 1px solid #34404c; font-size: 15px; }
  .nav-dropdown { position: static; width: auto; margin: 0 0 8px 12px; padding: 0; border: 0; background: transparent; color: #fff; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav-dropdown a { padding: 9px 10px; color: #bac0c3; }
  .nav-dropdown a:hover { background: #252f3a; color: var(--gold); }
  .hero-grid, .method-grid, .category-intro, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 42px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .scenario-grid { grid-template-columns: 1fr; }
  .article-layout { display: block; }
  .toc { position: static; margin-bottom: 28px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .container, .narrow, .article-layout, .article-cover { width: min(100% - 32px, 1140px); }
  .brand, .brand img { width: 190px; flex-basis: 190px; }
  .hero { padding-top: 42px; }
  .hero h1, .page-hero h1 { font-size: 34px; line-height: 1.08; }
  .hero-dek { font-size: 17px; }
  .hero-visual::before { inset: -10px 10px 10px -10px; }
  .stats-grid { grid-template-columns: 1fr; margin-bottom: 40px; }
  .stat-card { min-height: 0; }
  .section { padding: 50px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .section-head h2 { font-size: 31px; }
  .featured-side, .article-grid { grid-template-columns: 1fr; }
  .article-card.compact { grid-template-columns: 108px 1fr; }
  .article-card.lead h3 { font-size: 25px; }
  .page-hero { padding-top: 36px; }
  .article-meta { display: grid; gap: 5px; }
  .article-body { font-size: 16px; line-height: 1.72; }
  .article-body h2 { margin-top: 40px; font-size: 28px; }
  .comparison thead { display: none; }
  .comparison, .comparison tbody, .comparison tr, .comparison td { display: block; width: 100%; }
  .comparison tr { margin-bottom: 14px; border: 1px solid var(--line); }
  .comparison td { border: 0; border-bottom: 1px solid var(--line); }
  .responsible-inner { grid-template-columns: 48px 1fr; }
  .responsible-inner .text-link { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .footer-bottom { flex-direction: column; }
}

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