/* =========================================================
   CoverSage - main stylesheet
   ========================================================= */
:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --brand: #0e7c86;
  --brand-2: #14a3a8;
  --accent: #f4a261;
  --ink: #1b2430;
  --ink-2: #4a5565;
  --muted: #6b7686;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
  --shadow-lg: 0 10px 40px rgba(11, 37, 69, .14);
  --maxw: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--navy); margin: 0 0 .6em; }
p { margin: 0 0 1.1em; }
button { font: inherit; cursor: pointer; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.small { font-size: .9rem; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }

/* ---------- Buttons / chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--brand); color: #fff; border: 0; border-radius: 10px;
  padding: 11px 20px; font-weight: 600; font-size: .95rem; transition: background .2s, transform .2s;
}
.btn:hover { background: #0a6870; text-decoration: none; }
.btn-outline { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.pill {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--cat, var(--brand)); background: color-mix(in srgb, var(--cat, var(--brand)) 12%, #fff);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.pill:hover { text-decoration: none; filter: brightness(.95); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff;
  color: var(--ink); border-radius: 999px; padding: 7px 14px; font-size: .9rem; font-weight: 500;
}
.chip:hover, .chip.active { border-color: var(--brand); color: var(--brand); text-decoration: none; background: #eef8f8; }
.icon { flex-shrink: 0; vertical-align: middle; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-size: 1.35rem; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--brand), var(--navy)); color: #fff; }
.logo-text { font-weight: 500; }
.logo-text b { font-weight: 800; color: var(--brand); }
.logo-light { color: #fff; }
.logo-light .logo-text b { color: var(--brand-2); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav > ul > li > a, .drop-toggle {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 9px;
  color: var(--ink); font-weight: 600; font-size: .95rem; background: none; border: 0;
}
.main-nav > ul > li > a:hover, .drop-toggle:hover, .main-nav a.active { background: var(--bg-soft); color: var(--brand); text-decoration: none; }
.has-drop { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px !important; display: none !important; flex-direction: column; align-items: stretch !important;
}
.has-drop.open .dropdown, .has-drop:hover .dropdown { display: flex !important; }
.has-drop::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-weight: 500; }
.dropdown a:hover { background: var(--bg-soft); color: var(--brand); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 0; background: transparent; color: var(--ink); font-size: 1.6rem; }
.icon-btn:hover { background: var(--bg-soft); }
.nav-toggle { display: none; gap: 4px; align-content: center; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.progress { height: 3px; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-2), var(--accent)); }

/* ---------- Search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(11, 37, 69, .75); padding: 12vh 20px 20px; backdrop-filter: blur(4px); }
.search-overlay[hidden] { display: none; }
.search-box { max-width: 720px; margin: 0 auto; display: flex; gap: 8px; background: #fff; padding: 10px; border-radius: 14px; box-shadow: var(--shadow-lg); }
.search-box input { flex: 1; border: 0; font-size: 1.1rem; padding: 10px 12px; outline: none; min-width: 0; }
.search-suggest { max-width: 720px; margin: 10px auto 0; background: #fff; border-radius: 14px; overflow: hidden; }
.search-suggest:empty { display: none; }
.search-suggest a { display: block; padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--ink); }
.search-suggest a:hover { background: var(--bg-soft); text-decoration: none; }
.search-suggest small { display: block; color: var(--muted); }

/* ---------- Ads ---------- */
.ad-slot { display: block; height: 0; margin: 0; overflow: hidden; text-align: center; clear: both; }
.ad-slot.ad-filled { height: auto; overflow: visible; margin: 28px auto; }
.ad-slot.ad-filled::before {
  content: "Advertisement"; display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #9aa4b2; margin-bottom: 6px;
}
.ad-slot.ad-test { display: grid; place-items: center; min-height: 120px; border: 2px dashed #c9d3df; background: repeating-linear-gradient(45deg, #fafcff, #fafcff 10px, #f2f6fb 10px, #f2f6fb 20px); color: #7b8796; font-size: .85rem; border-radius: 10px; }
.ad-slot.ad-test::before { margin: 0; }
.ad-top .ad-slot.ad-filled, .ad-bottom .ad-slot.ad-filled { margin: 18px auto; }
.in-article.ad-filled { margin: 32px 0; }
.sidebar .ad-slot.ad-filled { margin: 0 0 24px; }
.sticky-ad { position: sticky; top: 92px; }
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.ad-slot.ad-filled.ad-empty { height: 0; min-height: 0 !important; margin: 0; overflow: hidden; }
.ad-slot iframe { max-width: 100%; }
/* Diagnostic mode: add ?adsdebug=1 to any page URL */
.ads-debug .ad-slot { height: auto !important; min-height: 40px; overflow: visible; margin: 16px auto; outline: 2px dashed #e8590c; position: relative; }
.ads-debug .ad-slot::after { content: attr(data-ad) " \2192  " attr(data-ad-status); display: block; font: 600 12px/1.4 monospace; color: #b42318; background: #fff7ed; padding: 4px 6px; text-align: left; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(20,163,168,.35), transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #0e4a6b 100%); color: #dce7f3; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.eyebrow { color: var(--brand-2); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.3rem); letter-spacing: -.02em; }
.hero h1 span { display: block; color: var(--accent); }
.hero-lead { font-size: 1.15rem; max-width: 620px; color: #c3d3e4; }
.hero-search { display: flex; gap: 8px; background: #fff; padding: 8px; border-radius: 14px; max-width: 560px; margin: 26px 0 22px; box-shadow: var(--shadow-lg); }
.hero-search input { flex: 1; border: 0; outline: 0; padding: 10px 12px; font-size: 1rem; min-width: 0; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px; font-size: .92rem; }
.hero-trust li { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .icon { color: var(--brand-2); }
.hero-art { position: relative; height: 340px; }
.hero-shield { position: absolute; inset: 0; margin: auto; width: 230px; height: 230px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.2), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.15); box-shadow: 0 0 80px rgba(20,163,168,.35) inset; }
.float { position: absolute; width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; background: #fff; color: var(--navy); box-shadow: var(--shadow-lg); animation: bob 6s ease-in-out infinite; }
.f1 { top: 10px; left: 12%; color: #2563eb; } .f2 { top: 30px; right: 8%; color: #7c3aed; animation-delay: -1.5s; }
.f3 { bottom: 20px; left: 6%; color: #d97706; animation-delay: -3s; } .f4 { bottom: 0; right: 16%; color: #059669; animation-delay: -4.5s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Sections / grids ---------- */
.section { padding: 48px 0 8px; }
.section-title { font-size: 1.6rem; letter-spacing: -.01em; position: relative; padding-bottom: 10px; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 4px; border-radius: 3px; background: var(--brand-2); }
.section-sub { color: var(--ink-2); max-width: 720px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 24px; }
.cat-card { display: flex; flex-direction: column; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; border-top: 4px solid var(--cat); }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.cat-card h3 { font-size: 1.1rem; margin: 14px 0 6px; }
.cat-card p { font-size: .92rem; color: var(--ink-2); flex: 1; }
.cat-count { font-weight: 700; color: var(--cat); font-size: .9rem; }
.cat-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: var(--cat); background: color-mix(in srgb, var(--cat) 12%, #fff); }
.cat-icon.big { width: 68px; height: 68px; background: rgba(255,255,255,.16); color: #fff; }

/* ---------- Cards ---------- */
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; height: 100%; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 7; color: #fff;
  background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.25), transparent 45%), linear-gradient(135deg, var(--cat), color-mix(in srgb, var(--cat) 55%, var(--navy))); }
.card-thumb:hover { text-decoration: none; }
.thumb-icon { opacity: .95; }
.thumb-kw { position: absolute; left: 14px; bottom: 10px; right: 14px; font-size: .75rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card h3 a { color: var(--navy); }
.card h3 a:hover { color: var(--brand); text-decoration: none; }
.card p { font-size: .93rem; color: var(--ink-2); flex: 1; margin-bottom: 12px; }
.card-lg h3 { font-size: 1.25rem; }
.meta { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); }
.meta span + span::before { content: "\2022"; margin-right: 14px; color: #c0c8d2; }

/* ---------- Layout with sidebar ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; padding-top: 28px; padding-bottom: 40px; }
.home-layout { padding-top: 0; }
.sidebar { position: relative; }
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.widget-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--navy); margin-bottom: 14px; }
.widget-list, .widget-cats { list-style: none; margin: 0; padding: 0; }
.widget-list li { border-bottom: 1px solid var(--line); }
.widget-list li:last-child { border: 0; }
.widget-list a { display: flex; gap: 10px; padding: 10px 0; color: var(--ink); font-size: .93rem; line-height: 1.45; font-weight: 500; }
.widget-list a:hover { color: var(--brand); text-decoration: none; }
.mini-dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; }
.widget-cats a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: .95rem; }
.widget-cats a:hover { background: var(--bg-soft); color: var(--brand); text-decoration: none; }
.widget-cats span { flex: 1; }
.widget-cats em { font-style: normal; font-size: .8rem; background: var(--bg-soft); border-radius: 999px; padding: 1px 9px; color: var(--muted); }
.widget-search { display: flex; gap: 6px; }
.widget-search input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: .95rem; }

/* ---------- Category blocks (home) ---------- */
.cat-blocks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cat-block { border: 1px solid var(--line); border-left: 4px solid var(--cat); border-radius: var(--radius); padding: 18px 20px; }
.cat-block h3 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; color: var(--cat); }
.cat-block h3 a { color: var(--navy); }
.cat-block ul { list-style: none; padding: 0; margin: 0 0 10px; }
.cat-block li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; line-height: 1.45; }
.cat-block li span { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.cat-block li a { color: var(--ink); }
.more { font-weight: 600; font-size: .9rem; }

/* ---------- Trust band ---------- */
.trust-band { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 56px 0; margin-top: 20px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.trust-grid h3 { font-size: 1.15rem; }
.trust-grid p { color: var(--ink-2); font-size: .97rem; }

/* ---------- Category / page heads ---------- */
.cat-hero { background: linear-gradient(135deg, var(--cat), color-mix(in srgb, var(--cat) 40%, var(--navy))); color: #eef3f9; padding: 26px 0 40px; }
.cat-hero h1 { color: #fff; margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cat-hero-head { display: flex; align-items: center; gap: 16px; margin: 14px 0 18px; }
.cat-intro { max-width: 880px; font-size: 1.05rem; }
.cat-hero .breadcrumbs a, .cat-hero .breadcrumbs li { color: rgba(255,255,255,.85); }
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 24px 0 30px; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 10px 0 8px; }
.lead { font-size: 1.15rem; color: var(--ink-2); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumbs a { color: var(--ink-2); }

/* ---------- Article ---------- */
.post { min-width: 0; }
.post-header { margin: 16px 0 20px; }
.post-header h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); letter-spacing: -.02em; margin-bottom: 14px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; color: var(--muted); }
.post-meta span + span::before { content: "\2022"; margin-right: 18px; color: #c0c8d2; }
.post-hero { display: flex; align-items: center; gap: 22px; padding: 34px 36px; border-radius: var(--radius); color: #fff; margin-bottom: 26px;
  background: radial-gradient(circle at 90% 0%, rgba(255,255,255,.28), transparent 40%), linear-gradient(135deg, var(--cat), color-mix(in srgb, var(--cat) 45%, var(--navy))); }
.post-hero span { font-size: clamp(1.1rem, 2.6vw, 1.6rem); font-weight: 700; text-transform: capitalize; line-height: 1.3; }
.hero-icon { flex-shrink: 0; padding: 14px; width: 92px; height: 92px; background: rgba(255,255,255,.16); border-radius: 22px; }
.takeaways { background: #f0faf9; border: 1px solid #c8ece9; border-radius: var(--radius); padding: 20px 24px 8px; margin-bottom: 24px; }
.tk-title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); margin-bottom: 8px; }
.takeaways ul { padding-left: 20px; margin: 0 0 12px; }
.takeaways li { margin-bottom: 6px; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 22px; margin-bottom: 30px; background: var(--bg-soft); }
.toc summary { font-weight: 700; color: var(--navy); cursor: pointer; }
.toc ol { margin: 12px 0 4px; padding-left: 22px; columns: 2; column-gap: 30px; font-size: .93rem; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.toc a { color: var(--ink-2); }
.toc a.active { color: var(--brand); font-weight: 600; }
.post-body, .prose { font-size: 1.06rem; }
.post-body h2, .prose h2 { font-size: 1.6rem; margin: 2em 0 .6em; scroll-margin-top: 90px; }
.post-body h3, .prose h3 { font-size: 1.22rem; margin: 1.6em 0 .5em; }
.post-body ul, .post-body ol, .prose ul, .prose ol { padding-left: 24px; margin: 0 0 1.2em; }
.post-body li, .prose li { margin-bottom: .45em; }
.post-body a, .prose a { text-decoration: underline; text-decoration-color: rgba(14,124,134,.35); text-underline-offset: 3px; }
.post-body a:hover, .prose a:hover { text-decoration-color: var(--brand); }
.post-body strong { color: var(--navy); }
blockquote { margin: 1.5em 0; padding: 14px 22px; border-left: 4px solid var(--brand-2); background: var(--bg-soft); border-radius: 0 10px 10px 0; font-family: var(--serif); font-size: 1.1rem; color: var(--ink-2); }
.callout { border-radius: 12px; padding: 16px 20px; margin: 1.5em 0; border: 1px solid; }
.callout p:last-child { margin: 0; }
.callout strong:first-child { display: block; margin-bottom: 4px; }
.callout.tip { background: #effaf3; border-color: #bfe8cf; }
.callout.warn { background: #fff7ed; border-color: #fed7aa; }
.callout.info { background: #eff6ff; border-color: #bfdbfe; }
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 520px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--navy); color: #fff; font-weight: 600; }
tr:nth-child(even) td { background: var(--bg-soft); }
tr:last-child td { border-bottom: 0; }
.faq { margin-top: 40px; }
.faq h2 { font-size: 1.6rem; }
.faq details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.faq summary { padding: 15px 44px 15px 18px; font-weight: 600; cursor: pointer; position: relative; list-style: none; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--brand); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 18px 6px; color: var(--ink-2); }
.sources { margin-top: 30px; font-size: .93rem; }
.sources h2 { font-size: 1.2rem; }
.sources ul { padding-left: 20px; }
.disclaimer-box { margin: 30px 0 20px; padding: 16px 20px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; font-size: .9rem; color: #6b5a1e; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0; font-size: .9rem; }
.share span { font-weight: 700; color: var(--navy); }
.share a, .share button { border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; color: var(--ink-2); background: #fff; font-size: .85rem; }
.share a:hover, .share button:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.author-box { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); margin: 24px 0; }
.author-box p { margin: 4px 0 0; font-size: .93rem; color: var(--ink-2); }
.author-avatar { flex-shrink: 0; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--brand), var(--navy)); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.post-nav a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--navy); font-weight: 600; line-height: 1.4; }
.post-nav a:hover { border-color: var(--brand); text-decoration: none; }
.post-nav small { display: block; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.post-nav .next { text-align: right; }
.related { padding-bottom: 50px; }

/* ---------- Static pages ---------- */
.static-page { padding: 34px 0 50px; }
.static-page h2 { font-size: 1.4rem; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; color: var(--navy); }
.form-row input, .form-row textarea, .form-row select { width: 100%; border: 1px solid #cfd8e3; border-radius: 10px; padding: 11px 14px; font: inherit; font-size: 1rem; background: #fff; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,124,134,.15); }
.form-row .err { color: #b42318; font-size: .85rem; display: none; margin-top: 4px; }
.form-row.invalid .err { display: block; }
.form-row.invalid input, .form-row.invalid textarea { border-color: #b42318; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.form-row .form-check input { width: auto; margin-top: 6px; flex-shrink: 0; }
.form-check { font-weight: 400 !important; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 14px; padding: 12px 16px; border-radius: 10px; display: none; }
.form-status.ok { display: block; background: #effaf3; color: #14532d; border: 1px solid #bfe8cf; }
.form-status.bad { display: block; background: #fef2f2; color: #7f1d1d; border: 1px solid #fecaca; }
.info-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.info-card h3 { font-size: 1.1rem; }
.search-results .card { margin-bottom: 18px; }
.search-page-form { display: flex; gap: 8px; margin-bottom: 24px; }
.search-page-form input { flex: 1; border: 1px solid #cfd8e3; border-radius: 10px; padding: 11px 14px; font-size: 1rem; min-width: 0; }
.result { padding: 18px 0; border-bottom: 1px solid var(--line); }
.result h3 { margin-bottom: 4px; font-size: 1.15rem; }
.result p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.result small { color: var(--brand); font-weight: 600; text-transform: uppercase; font-size: .72rem; letter-spacing: .05em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b8c7d9; padding: 54px 0 20px; margin-top: 20px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #b8c7d9; }
.site-footer a:hover { color: #fff; }
.footer-about p { margin-top: 14px; }
.footer-note { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: .84rem; color: #8ea2ba; }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; font-size: 1.2rem; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 90; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; max-width: 880px; margin: 0 auto; background: var(--navy); color: #dce7f3; border-radius: 14px; padding: 18px 22px; display: flex; gap: 18px; align-items: center; box-shadow: var(--shadow-lg); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: .9rem; }
.cookie-banner a { color: var(--brand-2); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 30px; }
}
@media (max-width: 900px) {
  html, body { overflow-x: clip; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sticky-ad { position: static; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; }
  .hero-art { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; gap: 10px; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: grid; }
  .main-nav { position: fixed; top: 71px; left: 0; right: 0; bottom: 0; background: #fff; padding: 16px 20px; transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s; overflow-y: auto; }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav > ul > li > a, .drop-toggle { width: 100%; padding: 14px; font-size: 1.05rem; justify-content: space-between; }
  .dropdown { position: static; box-shadow: none; border: 0; display: flex !important; padding: 0 0 0 10px !important; }
  .has-drop::after { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .cat-blocks { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-card { padding: 16px; }
  .toc ol { columns: 1; }
  .post-hero { padding: 22px; gap: 14px; }
  .hero-icon { width: 64px; height: 64px; padding: 10px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .hero-search, .search-box { flex-wrap: wrap; }
  .hero-search .btn, .search-box .btn { width: 100%; }
  .search-close { position: absolute; top: 14px; right: 14px; color: #fff; }
}
@media print {
  .site-header, .sidebar, .site-footer, .ad-slot, .share, .post-nav, .related, .cookie-banner, .to-top { display: none !important; }
  .layout { display: block; }
}
