/* HetmanInvest Blog — shared styles for static article pages.
   Brand tokens mirror tailwind.config.js (primary green #2DD35E, accent blue #2563EB). */

:root {
  --c-primary: #2DD35E;
  --c-primary-600: #24A94A;
  --c-primary-700: #1B7F37;
  --c-accent: #2563EB;
  --c-accent-700: #1D4ED8;
  --c-text: #111827;
  --c-text-soft: #374151;
  --c-muted: #6B7280;
  --c-muted-2: #9CA3AF;
  --c-border: #E5E7EB;
  --c-bg: #ffffff;
  --c-bg-soft: #F9FAFB;
  --c-bg-mint: #E8FBF0;
  --c-amber: #FBBF24;
  --c-red: #DC2626;
  --c-hero: #060e08;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', 'TT Norms', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text-soft);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--c-accent-700); text-decoration: underline; }

/* ───── Layout ───── */
.container { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container-article { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Article + sidebar grid (desktop). On mobile, TOC stacks above article body. */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 56px;
  align-items: start;
  margin-top: 8px;
}
.article-layout > article { min-width: 0; }
.toc-sidebar {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 4px;
}
.toc-sidebar::-webkit-scrollbar { width: 4px; }
.toc-sidebar::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }
.toc-sidebar .toc {
  margin: 0;
  padding: 16px 18px;
  font-size: 14px;
}
.toc-sidebar .toc ol { font-size: 14px; }
.toc-sidebar .toc ol li { padding: 4px 0; }
.toc-sidebar .toc-title { font-size: 11px; }

/* На мобильном TOC прячется в collapsible-блок ПОД заголовком (см. .mobile-toc
   ниже + initMobileToc в blog.js). Боковая sidebar скрывается полностью. */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .toc-sidebar { display: none !important; }
}

/* ───── Mobile TOC (collapsible, JS-injected after .article-head) ───── */
.mobile-toc {
  display: none; /* shown only on ≤1024px */
  margin: 10px 0 28px;
  padding: 4px 18px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: 14px;
}
.mobile-toc summary {
  cursor: pointer;
  list-style: none;
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--c-text);
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  -webkit-tap-highlight-color: transparent;
}
.mobile-toc summary::-webkit-details-marker { display: none; }
.mobile-toc summary::before {
  content: "";
  width: 18px; height: 18px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232DD35E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E") center/contain no-repeat;
}
.mobile-toc summary::after {
  content: "▾";
  margin-left: auto;
  color: var(--c-text-soft);
  font-size: 12px;
  transition: transform .2s;
}
.mobile-toc[open] summary::after { transform: rotate(180deg); }
.mobile-toc .toc-title { display: none; }
.mobile-toc .toc ol,
.mobile-toc ol {
  margin: 0 0 12px;
  padding: 0 0 0 22px;
  font-size: 14px;
  color: var(--c-text-soft);
}
.mobile-toc ol li { padding: 4px 0; }
.mobile-toc ol a {
  color: var(--c-text-soft);
  text-decoration: none;
}
.mobile-toc ol a:hover,
.mobile-toc ol a.active {
  color: var(--c-primary-700);
  font-weight: 600;
}
@media (max-width: 1024px) {
  .mobile-toc { display: block; }
}

/* ───── Header (matches CompoundCalculator/PLDeposit dark sticky header) ───── */
.site-header {
  background: var(--c-hero);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: sticky; top: 0; z-index: 50;
  height: 56px;
}
@media (min-width: 768px) { .site-header { height: 64px; } }
.site-header-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
  padding: 0 16px;
  gap: 16px;
}
@media (min-width: 768px) { .site-header-inner { padding: 0 40px; } }
.brand {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.9);
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand img { height: 28px; width: auto; }
@media (min-width: 768px) { .brand img { height: 32px; } }
.brand-name {
  font-family: 'Rubik', sans-serif; font-weight: 700;
  font-size: 16px; letter-spacing: -0.01em;
  color: rgba(255,255,255,0.9);
}
@media (min-width: 768px) { .brand-name { font-size: 18px; } }
.brand-name .green { color: #75E7A3; }

/* Desktop nav with hover dropdowns */
.site-nav { display: none; align-items: center; gap: 4px; }
@media (min-width: 768px) { .site-nav { display: inline-flex; } }
.site-nav > a,
.nav-group > .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  font-family: Inter, sans-serif;
  font-size: 14px; font-weight: 500;
  color: #d1d5db;
  background: none; border: 0; cursor: pointer;
  transition: color .15s;
  text-decoration: none;
}
.site-nav > a:hover,
.nav-group:hover > .nav-trigger,
.nav-group:focus-within > .nav-trigger { color: #fff; text-decoration: none; }
.nav-trigger .chev {
  width: 14px; height: 14px;
  transition: transform .2s, color .2s;
  color: #6b7280;
}
.nav-group:hover .nav-trigger .chev,
.nav-group:focus-within .nav-trigger .chev { color: #75E7A3; transform: rotate(180deg); }

/* Active group (current section). Persists even when not hovered. */
.nav-group.active > .nav-trigger { color: #fff; }
.nav-group.active > .nav-trigger .chev { color: #75E7A3; }
.nav-group.active > .nav-trigger { position: relative; }
.nav-group.active > .nav-trigger::after {
  content: '';
  position: absolute;
  left: 12px; right: 24px;
  bottom: 4px;
  height: 2px;
  background: #75E7A3;
  border-radius: 1px;
}
.nav-group { position: relative; }
.nav-dropdown {
  position: absolute; right: 0; top: 100%;
  min-width: 224px;
  background: var(--c-hero);
  box-shadow: 0 18px 30px -15px rgba(0,0,0,0.7);
  padding: 8px 0;
  opacity: 0; pointer-events: none; transform: translateY(-4px);
  transition: opacity .15s, transform .15s;
}
.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-dropdown a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px;
  font-family: 'Rubik', sans-serif; font-size: 14px; font-weight: 500;
  color: #d1d5db;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-dropdown a::before {
  content: ''; width: 12px; height: 1px; background: rgba(255,255,255,0.2);
  transition: width .2s, background .2s;
}
.nav-dropdown a:hover { background: rgba(255,255,255,0.03); color: #fff; text-decoration: none; }
.nav-dropdown a.active { color: #75E7A3; }
.nav-dropdown a.active::before { width: 24px; background: #75E7A3; }

/* Mobile hamburger */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: transparent; border: 0;
  color: #d1d5db; cursor: pointer;
  margin-right: -8px;
}
@media (min-width: 768px) { .nav-toggle { display: none; } }
.nav-toggle:hover { color: #fff; }
.nav-toggle svg { width: 20px; height: 20px; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  display: none;
}
.mobile-menu.open { display: block; }
.mobile-menu-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.mobile-menu-panel {
  position: absolute; right: 0; top: 0; height: 100%;
  width: 88%; max-width: 380px;
  background: var(--c-hero);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
}
.mobile-menu-head {
  height: 56px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.mobile-menu-body { flex: 1; overflow-y: auto; padding: 16px 8px; }
.mobile-menu-group { margin-bottom: 16px; }
.mobile-menu-label {
  padding: 0 16px 6px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: #6b7280;
}
.mobile-menu-body a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  font-family: 'Rubik', sans-serif; font-size: 16px; font-weight: 500;
  color: #e5e7eb;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.mobile-menu-body a::before {
  content: ''; width: 12px; height: 1px; background: rgba(255,255,255,0.2);
  transition: width .2s, background .2s;
}
.mobile-menu-body a:hover { background: rgba(255,255,255,0.04); color: #fff; }
.mobile-menu-body a.active { color: #75E7A3; }
.mobile-menu-body a.active::before { width: 24px; background: #75E7A3; }

/* ───── Breadcrumbs ───── */
.breadcrumbs {
  font-size: 13px; color: var(--c-muted);
  padding: 14px 0 0; line-height: 1.4;
}
.breadcrumbs a { color: var(--c-muted); }
.breadcrumbs a:hover { color: var(--c-primary-700); text-decoration: none; }
.breadcrumbs span[aria-current] { color: var(--c-text); }
.breadcrumbs .sep { margin: 0 6px; color: var(--c-muted-2); }

/* ───── Hero illustration ───── */
.hero-illustration {
  margin: 24px 0 32px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(6, 14, 8, 0.16);
  background: linear-gradient(135deg, #060e08 0%, #0c2418 100%);
}
.hero-illustration img,
.hero-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}
.hero-illustration figcaption {
  padding: 10px 18px;
  font-size: 13px;
  color: var(--c-muted);
  background: var(--c-bg-soft);
  border-top: 1px solid var(--c-border);
}

/* ───── Inline figure (between sections) ───── */
.inline-figure {
  margin: 30px 0;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.inline-figure img,
.inline-figure svg {
  width: 100%;
  height: auto;
  display: block;
}
.inline-figure figcaption {
  padding: 10px 18px;
  font-size: 13px;
  color: var(--c-muted);
  background: var(--c-bg-soft);
  border-top: 1px solid var(--c-border);
}

/* ───── Stat grid (key numbers) ───── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 26px 0;
}
.stat-grid .stat {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.stat-grid .stat .num {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: var(--c-primary-700);
  line-height: 1.1;
  margin-bottom: 4px;
}
.stat-grid .stat .label {
  font-size: 13px;
  color: var(--c-muted);
}
.stat-grid .stat.accent .num { color: var(--c-accent); }

/* TOC active state (highlighted via JS scrollspy) */
.toc a.active {
  color: var(--c-primary-700);
  font-weight: 600;
}
.toc-sidebar .toc ol li:has(a.active)::before {
  color: var(--c-primary);
}

/* ───── Article ───── */
.article-head { padding: 16px 0 0 0; }
.article-meta {
  font-size: 13px; color: var(--c-muted);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  margin-top: 18px;
}
.article-meta .pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--c-bg-mint); color: var(--c-primary-700);
  border-radius: 999px; padding: 4px 12px;
  font-size: 12px; font-weight: 600;
}
h1 {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.18;
  color: var(--c-text);
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}
h2 {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.25;
  color: var(--c-text);
  margin: 44px 0 14px;
  letter-spacing: -0.01em;
  scroll-margin-top: 70px;
}
h3 {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--c-text);
  margin: 28px 0 10px;
  scroll-margin-top: 70px;
}
p { margin: 0 0 16px; }
.lead {
  font-size: 19px; line-height: 1.55;
  color: var(--c-text);
  border-left: 3px solid var(--c-primary);
  padding: 4px 0 4px 18px;
  margin: 18px 0 24px;
}

ul, ol { padding-left: 22px; margin: 0 0 18px; }
li { margin-bottom: 6px; }
ul li::marker { color: var(--c-primary-600); }
ol li::marker { color: var(--c-accent); font-weight: 600; }

blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  background: var(--c-bg-soft);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--c-text-soft);
  font-style: italic;
}

code {
  background: var(--c-bg-soft); padding: 2px 6px; border-radius: 4px;
  font-size: 0.92em; color: var(--c-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

table {
  width: 100%; border-collapse: collapse;
  margin: 18px 0; font-size: 15px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius); overflow: hidden;
}
th, td {
  text-align: left; padding: 10px 12px;
  border-bottom: 1px solid var(--c-border);
}
th { background: var(--c-bg-soft); font-weight: 600; color: var(--c-text); }
tr:last-child td { border-bottom: 0; }

hr { border: 0; border-top: 1px solid var(--c-border); margin: 36px 0; }

strong { color: var(--c-text); }

/* ───── TOC ───── */
.toc {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 28px 0 32px;
}
.toc-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 10px;
}
.toc ol {
  list-style: none; padding: 0; margin: 0;
  counter-reset: toc;
  font-size: 15px;
}
.toc ol li {
  counter-increment: toc;
  padding: 5px 0;
  display: flex; gap: 10px; align-items: baseline;
}
.toc ol li::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--c-primary-600);
  font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: 13px;
  min-width: 22px;
}
.toc a { color: var(--c-text-soft); }
.toc a:hover { color: var(--c-primary-700); text-decoration: none; }

/* ───── Callout ───── */
.callout {
  margin: 22px 0;
  padding: 16px 18px 0 16px;
  background: var(--c-bg-mint);
  border: 1px solid #BFE9CC;
  border-radius: var(--radius);
  color: var(--c-text-soft);
}
.callout-title {
  font-family: 'Rubik', sans-serif; font-weight: 600;
  color: var(--c-primary-700);
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.callout.warn { background: #FFFBE8; border-color: #FDE68A; }
.callout.warn .callout-title { color: #92400E; }
.callout.info { background: #EFF6FF; border-color: #BFDBFE; }
.callout.info .callout-title { color: var(--c-accent-700); }

/* ───── Glossary tooltips (термины в статьях + popover) ───── */
.hi-term {
  position: relative;
  cursor: help;
  border-bottom: 1px dashed var(--c-primary-600);
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.hi-term:hover,
.hi-term:focus-visible {
  color: var(--c-primary-700);
  border-bottom-color: var(--c-primary-700);
  outline: none;
}
.hi-term[aria-expanded="true"] {
  color: var(--c-primary-700);
  background: var(--c-bg-mint);
  border-radius: 3px;
}

.hi-tooltip {
  position: absolute;
  z-index: 100;
  max-width: 340px;
  width: max-content;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-text-soft);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .15s, transform .15s;
  pointer-events: none;
}
.hi-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hi-tooltip-name {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  color: var(--c-text);
  font-size: 15px;
  margin: 0 0 4px;
}
.hi-tooltip-full {
  font-size: 12px;
  color: var(--c-muted);
  margin: 0 0 8px;
  text-transform: none;
  letter-spacing: 0;
}
.hi-tooltip-short {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.55;
}
.hi-tooltip-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-primary-700);
  text-decoration: none;
}
.hi-tooltip-link::after {
  content: "→";
  transition: transform .15s;
}
.hi-tooltip-link:hover { color: var(--c-primary-700); text-decoration: underline; }
.hi-tooltip-link:hover::after { transform: translateX(2px); }

@media (max-width: 540px) {
  .hi-tooltip { max-width: calc(100vw - 32px); }
}

/* ───── Notice (компактная нейтральная пометка — «иллюстративный пример» и т.п.) ───── */
.notice-illustrative {
  margin: 16px 0;
  padding: 10px 14px;
  background: var(--c-bg-soft);
  border-left: 3px solid var(--c-muted-2);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--c-muted);
}
.notice-illustrative strong { color: var(--c-text-soft); font-weight: 600; }
.notice-illustrative p { margin: 0; }

/* ───── Disclosure card (autor/metodyka/konflikty — MAR-compliance, art. 3 Rozp. 2016/958) ───── */
.disclosure-card {
  margin: 32px 0 24px;
  padding: 20px 22px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-text-soft);
}
.disclosure-card .disclosure-title {
  font-family: 'Rubik', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-muted);
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.disclosure-card .disclosure-title::before {
  content: ""; width: 14px; height: 14px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E") center/contain no-repeat;
}
.disclosure-card dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 18px;
  margin: 0;
}
.disclosure-card dt {
  font-weight: 600;
  color: var(--c-text);
}
.disclosure-card dd {
  margin: 0;
  color: var(--c-text-soft);
}
.disclosure-card .disclosure-foot {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--c-muted);
  font-style: italic;
  line-height: 1.55;
}
@media (max-width: 540px) {
  .disclosure-card dl { grid-template-columns: 1fr; gap: 0; }
  .disclosure-card dt { margin-top: 10px; }
  .disclosure-card dt:first-child { margin-top: 0; }
}

/* ───── FAQ ───── */
.faq { margin: 36px 0; }
.faq h2 { margin-bottom: 20px; }
.faq details {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
  background: #fff;
  transition: border-color .15s;
}
.faq details[open] { border-color: #BFE9CC; background: var(--c-bg-soft); }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: 'Rubik', sans-serif; font-weight: 600;
  color: var(--c-text); font-size: 16px;
  display: flex; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; color: var(--c-primary-600); font-size: 22px; line-height: 1; flex-shrink: 0;
  transition: transform .2s;
}
.faq details[open] summary::after { content: '−'; }
.faq details > p, .faq details > div { margin-top: 10px; }

/* ───── CTA ───── */
.cta-box {
  margin: 40px 0;
  background: linear-gradient(135deg, #060e08 0%, #0f1f15 100%);
  color: #fff;
  border-radius: 18px;
  padding: 32px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; inset: -50%;
  background: radial-gradient(closest-side, rgba(45,211,94,0.18), transparent 70%);
  pointer-events: none;
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box h3 {
  color: #fff; font-size: clamp(20px, 3vw, 26px);
  margin: 0 0 10px;
}
.cta-box p { color: #cbd5e1; margin-bottom: 22px; max-width: 540px; margin-inline: auto; }
.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--c-primary);
  color: #060e08;
  font-weight: 700;
  font-family: 'Rubik', sans-serif;
  border-radius: 999px;
  font-size: 16px;
  border: 0;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
}
.btn:hover {
  background: var(--c-primary-600); color: #060e08;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(45,211,94,0.35);
  text-decoration: none;
}
.btn-secondary {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); color: #fff; box-shadow: none; }

/* ───── Author card (bottom of article — dark hero gradient) ───── */
.author-card {
  display: flex; gap: 32px; align-items: center;
  background: linear-gradient(135deg, #060e08 0%, #0a2018 55%, #062014 100%);
  border: 1px solid rgba(45, 211, 94, 0.22);
  border-radius: 24px;
  padding: 36px 40px;
  margin: 48px 0 36px;
  position: relative;
  overflow: hidden;
}
.author-card::before {
  /* soft green glow behind photo */
  content: ""; position: absolute;
  left: -60px; top: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(45, 211, 94, 0.20) 0%, transparent 65%);
  pointer-events: none;
}
.author-card::after {
  /* subtle dot pattern */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(45, 211, 94, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.author-card .author-photo {
  position: relative; z-index: 1;
  width: 168px; height: 168px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--c-bg-mint); flex-shrink: 0;
  border: 4px solid #2DD35E;
  box-shadow:
    0 0 0 4px rgba(45, 211, 94, 0.16),
    0 18px 44px rgba(45, 211, 94, 0.28);
}
.author-card .author-photo img {
  width: 100%; height: 100%;
  display: block;
  object-fit: fill;
  object-position: center 18%;
  transform: scale(1.1);
  transform-origin: center center;
}
.author-card > div { position: relative; z-index: 1; }
.author-card .author-name {
  font-family: 'Rubik', sans-serif; font-weight: 700;
  color: #fff; font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: 0.005em;
}
.author-card .author-role {
  font-size: 14px; color: #9CA3AF;
  margin: 0 0 12px; font-weight: 500;
}
.author-card .author-bio {
  font-size: 15px; color: #D1FAE5;
  margin: 0; line-height: 1.6;
}
@media (max-width: 640px) {
  .author-card { flex-direction: column; text-align: center; gap: 20px; padding: 28px; }
  .author-card img { width: 140px; height: 140px; }
}

/* ───── Meta author chip (inline inside .article-meta) ───── */
.article-meta .meta-author {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--c-text-soft);
  font-weight: 500;
}
.article-meta .meta-author-label {
  color: var(--c-muted);
  font-weight: 500;
  margin-right: 2px;
}
.article-meta .meta-author img {
  width: 30px; height: 30px;
  border-radius: 50%; object-fit: cover;
  object-position: center 18%;
  background: var(--c-bg-mint);
  border: 1.5px solid var(--c-bg-mint);
  flex-shrink: 0;
}

/* ───── Blog index — filter (left, wraps internally) + sort + search-pill ───── */
.blog-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  margin: 28px 0 8px;
}
.blog-filter {
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center;
  min-width: 0;
}
@media (max-width: 720px) {
  .blog-controls { grid-template-columns: 1fr auto; }
  .blog-filter { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .blog-controls { grid-template-columns: 1fr; }
  .blog-filter, .blog-sort, .blog-search-pill { grid-column: 1 / -1; }
}

/* ───── Sort dropdown ───── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.blog-sort { flex-shrink: 0; }
.blog-sort select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>")
    no-repeat right 10px center / 14px;
  border: 1.5px solid var(--c-border);
  border-radius: 999px;
  height: 36px;
  padding: 0 32px 0 14px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--c-text-soft);
  cursor: pointer;
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.blog-sort select:hover { border-color: var(--c-primary-600); color: var(--c-primary-700); }
.blog-sort select:focus {
  outline: none;
  border-color: var(--c-primary-600);
  box-shadow: 0 0 0 4px rgba(45, 211, 94, 0.12);
}

/* ───── Post-card meta row: tag (left) + publication date (right) ─────
   Both elements are injected by the blogIndexEnrich Vite plugin into a
   shared .post-meta flex container so they share a baseline. */
.post-card .post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.post-card .post-meta .tag {
  align-self: auto;
  margin-bottom: 0;
}
.post-card .post-date {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-muted);
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.blog-filter button[data-filter] {
  background: #fff; border: 1.5px solid var(--c-border);
  padding: 7px 14px; border-radius: 999px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--c-text-soft); cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.blog-filter button[data-filter]:hover {
  border-color: var(--c-primary-600);
  color: var(--c-primary-700);
}
.blog-filter button[data-filter].active {
  background: var(--c-primary-600);
  border-color: var(--c-primary-600);
  color: #fff;
}
/* ───── Search-pill (collapsed icon → expands on click) ───── */
.blog-search-pill {
  display: inline-flex; align-items: center;
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: 999px;
  height: 36px;
  width: 36px;
  flex-shrink: 0;
  overflow: hidden;
  transition: width .28s cubic-bezier(.4,0,.2,1), border-color .15s, box-shadow .15s;
  position: relative;
}
.blog-search-pill .search-trigger {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  color: var(--c-text-soft);
}
.blog-search-pill .search-trigger svg { width: 18px; height: 18px; display: block; }
.blog-search-pill input {
  flex: 1; min-width: 0;
  border: none; outline: none;
  padding: 0 14px 0 4px;
  font-family: 'Inter', sans-serif; font-size: 14px;
  background: transparent; color: var(--c-text);
  width: 0; opacity: 0;
  transition: opacity .18s ease .08s;
}
.blog-search-pill .search-clear {
  display: none;
  width: 28px; height: 28px;
  margin-right: 4px;
  align-items: center; justify-content: center;
  background: var(--c-bg-soft); border: none; border-radius: 50%;
  color: var(--c-text-soft); cursor: pointer;
  flex-shrink: 0; padding: 0;
}
.blog-search-pill .search-clear:hover { background: var(--c-bg-mint); color: var(--c-primary-700); }
.blog-search-pill.expanded {
  width: clamp(240px, 28vw, 380px);
  border-color: var(--c-primary-600);
  box-shadow: 0 0 0 4px rgba(45, 211, 94, 0.12);
}
.blog-search-pill.expanded input { width: auto; opacity: 1; }
.blog-search-pill.expanded .search-clear { display: inline-flex; }
.blog-search-pill.expanded .search-trigger { color: var(--c-primary-700); }

@media (max-width: 540px) {
  .blog-search-pill.expanded { width: calc(100vw - 80px); max-width: none; }
}

.blog-empty {
  display: none;
  padding: 48px 24px; text-align: center;
  color: var(--c-muted);
  border: 1.5px dashed var(--c-border);
  border-radius: var(--radius);
  margin: 16px 0;
}
.blog-empty.visible { display: block; }
.post-card.hidden { display: none; }

/* ───── Article star rating (JS-injected after FAQ) ───── */
.article-rating {
  margin: 36px 0;
  padding: 28px 32px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid rgba(251, 191, 36, 0.4);
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.article-rating::before {
  content: "";
  position: absolute;
  top: -40px; left: -30px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.article-rating-title {
  margin: 0 0 8px;
  font-family: 'Rubik', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0a2018;
  position: relative;
}
.article-rating-sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--c-text-soft);
  position: relative;
}
.rating-stars {
  display: inline-flex;
  gap: 6px;
  position: relative;
}
.rating-star {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
  color: #d1d5db;
  padding: 4px;
  transition: color 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.rating-star:hover,
.rating-star.hover,
.rating-star.selected {
  color: #fbbf24;
}
.rating-star:hover,
.rating-star.hover {
  transform: scale(1.18);
}
.rating-star:focus-visible {
  outline: 2px solid var(--c-primary-600);
  outline-offset: 2px;
  border-radius: 4px;
}
.rating-thanks {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--c-primary-700);
  font-weight: 600;
  position: relative;
  animation: ratingFadeIn 0.3s ease;
}
@keyframes ratingFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.article-rating.voted .rating-star { cursor: default; }
.article-rating.voted .rating-star:hover { transform: none; }
@media (max-width: 540px) {
  .article-rating { padding: 22px 20px; }
  .rating-star { font-size: 30px; padding: 6px; gap: 4px; }
  .rating-stars { gap: 2px; }
}

/* ───── CTA variants (shared across all articles) ───── */
.cta-picker { position: sticky; top: 8px; z-index: 50; background: #fff; border: 2px solid #2DD35E; border-radius: 14px; padding: 14px 18px; margin: 36px auto 12px; max-width: 760px; box-shadow: 0 6px 20px rgba(45, 211, 94, 0.18); font-family: 'Inter', sans-serif; }
.cta-picker-label { display: block; font-size: 12px; color: #6B7280; margin-bottom: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.cta-picker-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.cta-picker-buttons button { flex: 1 1 130px; background: #f5f5f5; border: 1.5px solid transparent; padding: 10px 12px; border-radius: 10px; font-family: inherit; font-size: 13px; cursor: pointer; transition: all 0.15s; color: #0a2018; font-weight: 500; }
.cta-picker-buttons button:hover { background: #e8fbf0; border-color: #2DD35E; }
.cta-picker-buttons button.active { background: #2DD35E; color: #fff; border-color: #2DD35E; font-weight: 700; box-shadow: 0 4px 10px rgba(45, 211, 94, 0.3); }

.cta-variant { margin: 24px 0 36px; font-family: 'Inter', sans-serif; }
.cta-variant[hidden] { display: none; }

@keyframes ctaPulseGlow { 0%, 100% { box-shadow: 0 10px 18px -3px rgba(45, 211, 94, 0.30), 0 4px 6px -2px rgba(45, 211, 94, 0.15); } 50% { box-shadow: 0 16px 30px -3px rgba(45, 211, 94, 0.55), 0 8px 14px -4px rgba(45, 211, 94, 0.32); } }
@keyframes ctaShine { 0% { left: -120%; } 60%, 100% { left: 120%; } }
.cta-variant .v-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(90deg, #3DDB6E 0%, #2DD35E 100%); color: #fff; padding: 16px 28px; border-radius: 12px; font-weight: 600; font-size: 16px; text-decoration: none; font-family: 'Rubik', sans-serif; box-shadow: 0 10px 18px -3px rgba(45, 211, 94, 0.30), 0 4px 6px -2px rgba(45, 211, 94, 0.15); transition: transform 0.2s ease, background 0.2s ease; animation: ctaPulseGlow 2.6s ease-in-out infinite; }
.cta-variant .v-btn:hover { background: linear-gradient(90deg, #2DD35E 0%, #1FB349 100%); transform: translateY(-2px) scale(1.02); text-decoration: none; animation-play-state: paused; }
.cta-variant .v-btn::before { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.32) 50%, transparent 100%); pointer-events: none; transform: skewX(-18deg); }
.cta-variant .v-btn:hover::before { animation: ctaShine 0.85s ease-out; }
.cta-variant .v-btn::after { content: ""; width: 16px; height: 16px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; background-position: center; transition: transform 0.2s ease; flex-shrink: 0; position: relative; z-index: 1; }
.cta-variant .v-btn:hover::after { transform: translateX(5px); }
@media (prefers-reduced-motion: reduce) { .cta-variant .v-btn { animation: none; } .cta-variant .v-btn:hover::before { animation: none; } }

/* V1 — Книга: тёмный Hero фон, текст слева, фото на скамейке справа */
.cta-v1 { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: center; background: linear-gradient(135deg, #060e08 0%, #0a2018 55%, #062014 100%); border: 1px solid rgba(45, 211, 94, 0.22); border-radius: 24px; padding: 12px 40px 0; position: relative; overflow: hidden; }
.cta-v1::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(45, 211, 94, 0.06) 1.5px, transparent 1.5px); background-size: 28px 28px; pointer-events: none; }
.cta-v1::after { content: ""; position: absolute; top: -60px; right: -60px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(45, 211, 94, 0.20) 0%, transparent 65%); pointer-events: none; }
.cta-v1 .v-photo-wrap { position: relative; align-self: end; padding-bottom: 0; }
.cta-v1 .v-pedestal { position: absolute; bottom: 51px; left: 50%; transform: translateX(calc(-50% + 48px)); width: 80%; height: 84px; z-index: 1; pointer-events: none; }
.cta-v1 .v-pedestal-seat { position: absolute; top: 0; left: 0; right: 0; height: 18px; background: linear-gradient(180deg, #3DDB6E 0%, #2DD35E 60%, #1FB349 100%); border-radius: 8px 8px 4px 4px; box-shadow: 0 8px 22px rgba(45, 211, 94, 0.30), inset 0 1px 0 rgba(255,255,255,0.3); }
.cta-v1 .v-pedestal-seat::after { content: ""; position: absolute; top: 3px; left: 8px; right: 8px; height: 1.5px; background: rgba(255, 255, 255, 0.4); border-radius: 2px; }
.cta-v1 .v-pedestal-leg { position: absolute; top: 16px; width: 11px; height: 68px; background: linear-gradient(180deg, #1FB349 0%, #157a30 100%); border-radius: 1px 1px 3px 3px; box-shadow: 1px 0 3px rgba(0,0,0,0.25); }
.cta-v1 .v-pedestal-leg-left { left: 16%; transform: rotate(-2deg); transform-origin: top center; }
.cta-v1 .v-pedestal-leg-right { right: 16%; transform: rotate(2deg); transform-origin: top center; }
.cta-v1 img { width: 100%; height: auto; display: block; position: relative; z-index: 2; transform: scale(1.18); transform-origin: bottom center; -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.35) 10%, #000 28%); mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.35) 10%, #000 28%); }
.cta-v1 .v-text { padding: 12px 0 16px; position: relative; z-index: 3; }
.cta-v1 h3 { font-family: 'Rubik', sans-serif; font-size: 28px; margin: 0 0 14px; color: #fff; line-height: 1.2; }
.cta-v1 p { color: #D1FAE5; margin: 0 0 24px; line-height: 1.55; font-size: 15px; }
.cta-v1 .v-author { font-size: 12px; color: #9CA3AF; margin-top: 14px; }

/* V2 — Деловой: padding только на тексте, фото впритык к низу */
.cta-v2 { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: stretch; background: linear-gradient(135deg, #0a2018 0%, #062014 100%); color: #fff; border-radius: 24px; padding: 0; border: 1.5px solid #2DD35E; overflow: hidden; position: relative; min-height: 400px; }
.cta-v2::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(45, 211, 94, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(45, 211, 94, 0.04) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; }
.cta-v2 .v-text { position: relative; z-index: 2; align-self: center; padding: 40px 0 40px 44px; }
.cta-v2 .v-photo-wrap { position: relative; overflow: hidden; background: transparent; align-self: stretch; }
.cta-v2 .v-photo-wrap::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, rgba(45, 211, 94, 0.04) 0%, transparent 65%); pointer-events: none; }
.cta-v2 .v-photo-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: -19px top; transform: translateX(-50px) translateY(-100px) scale(1.95); transform-origin: center top; display: block; }
.cta-v2 h3 { font-family: 'Rubik', sans-serif; font-size: 32px; margin: 0 0 18px; color: #fff; line-height: 1.2; }
.cta-v2 ul { list-style: none; padding: 0; margin: 0 0 24px; }
.cta-v2 li { padding: 7px 0 7px 30px; position: relative; color: #E5E7EB; font-size: 15px; line-height: 1.45; }
.cta-v2 li::before { content: "✓"; position: absolute; left: 0; top: 7px; color: #2DD35E; font-weight: 800; font-size: 16px; }

/* V3 — Семья: side layout (фото справа), социальное доказательство */
.cta-v3 { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: center; background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); border: 1.5px solid #fbbf24; border-radius: 24px; padding: 40px; position: relative; overflow: hidden; }
.cta-v3::before { content: ""; position: absolute; top: -40px; left: -30px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(251, 191, 36, 0.25) 0%, transparent 70%); pointer-events: none; }
.cta-v3 .v-text { position: relative; padding-top: 26px; }
.cta-v3 .v-text::before { content: "\201C"; position: absolute; left: -16px; top: -50px; font-family: Georgia, serif; font-size: 130px; color: rgba(251, 191, 36, 0.42); line-height: 1; pointer-events: none; }
.cta-v3 .v-quote { font-family: 'Rubik', sans-serif; font-size: 26px; font-weight: 700; color: #0a2018; line-height: 1.3; margin: 0 0 14px; position: relative; }
.cta-v3 .v-sub { color: #4B5563; font-size: 15px; line-height: 1.55; margin: 0 0 24px; }
.cta-v3 .v-photo { border-radius: 18px; overflow: hidden; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18); aspect-ratio: 1; position: relative; }
.cta-v3 .v-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* V5 — В кафе: фон сдвинут, левая часть затемнена */
.cta-v5 { position: relative; border-radius: 20px; overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; }
.cta-v5::before { content: ""; position: absolute; inset: 0; background-image: url('/people/andey-with-laptop-on-a-desk-at-cafe.jpg'); background-size: cover; background-position: 266px 32%; }
.cta-v5::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 32, 24, 0.96) 0px, rgba(10, 32, 24, 0.94) 200px, rgba(10, 32, 24, 0.55) 240px, rgba(10, 32, 24, 0.10) 290px, transparent 360px), linear-gradient(180deg, rgba(10, 32, 24, 0.15) 0%, rgba(10, 32, 24, 0.55) 55%, rgba(10, 32, 24, 0.94) 95%); }
.cta-v5 .v-content { position: relative; z-index: 2; padding: 44px; color: #fff; max-width: 640px; }
.cta-v5 h3 { font-family: 'Rubik', sans-serif; font-size: 32px; margin: 0 0 14px; color: #fff; line-height: 1.2; }
.cta-v5 p { color: #D1FAE5; margin: 0 0 22px; font-size: 16px; line-height: 1.5; }

@media (max-width: 720px) {
  .cta-v1 { grid-template-columns: 1fr; gap: 0; padding: 28px 28px 0; }
  .cta-v1 .v-text { padding-bottom: 28px; }
  .cta-v1 img { transform: scale(1.1); }
  .cta-v2 { grid-template-columns: 1fr; gap: 24px; padding: 28px; min-height: 0; }
  .cta-v2 .v-text { padding: 0; }
  .cta-v2 .v-photo-wrap { min-height: 320px; border-radius: 16px; }
  .cta-v3 { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
  .cta-v3 .v-photo { max-width: 320px; margin: 0 auto; }
  .cta-v3 .v-quote { font-size: 22px; }
  .cta-v5 { min-height: 360px; }
  .cta-v5 h3 { font-size: 26px; }
  .cta-v5 .v-content { padding: 28px; }
}

/* ───── Blog index ───── */
.posts-grid {
  display: grid; gap: 28px;
  grid-template-columns: 1fr; /* mobile: 1 col → image edge-to-edge */
  margin: 32px 0;
}
@media (min-width: 720px) {
  /* tablet + desktop (any width): max 2 cols */
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.post-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  text-decoration: none;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
  border-color: #BFE9CC;
  text-decoration: none;
}
.post-card .cover {
  display: block;
  width: 100%;
  aspect-ratio: 12 / 5;
  object-fit: cover;
  background: var(--c-hero);
  border-bottom: 1px solid var(--c-border);
  transition: transform .35s ease;
}
.post-card:hover .cover { transform: scale(1.02); }
.post-card .body {
  padding: 20px 22px 22px;
  display: flex; flex-direction: column;
  flex-grow: 1;
}
.post-card .tag {
  display: inline-block;
  background: var(--c-bg-mint); color: var(--c-primary-700);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 10px; border-radius: 999px; align-self: flex-start;
  margin-bottom: 12px;
}
.post-card h2 {
  font-family: 'Rubik', sans-serif; font-weight: 700;
  font-size: 19px; line-height: 1.3;
  color: var(--c-text); margin: 0 0 8px;
}
.post-card p {
  font-size: 14px; color: var(--c-muted); margin: 0 0 14px;
  flex-grow: 1;
}
.post-card .read-more {
  font-size: 14px; font-weight: 600; color: var(--c-primary-700);
}

/* ───── Footer (matches src/components/Footer.jsx) ───── */
.site-footer {
  background: #030712; /* tailwind gray-950 */
  color: #9CA3AF;
  padding: 40px 0 40px;
  margin-top: 56px;
  font-size: 14px;
}
@media (max-width: 768px) { .site-footer { padding-bottom: 112px; } } /* room for mobile floating CTA */
.site-footer-inner { max-width: 1024px; margin: 0 auto; padding: 0 24px; }

/* Top brand + contacts row */
.footer-top {
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; gap: 24px;
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    column-gap: 24px;
  }
  .footer-top .footer-contact { display: contents; }
  .footer-top .footer-contact-line { flex: 1; justify-content: center; }
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand img { height: 24px; width: auto; filter: brightness(0) invert(1); }
.footer-brand span {
  font-family: 'Rubik', sans-serif; font-weight: 700; color: #fff;
  font-size: 15px; letter-spacing: 0.01em;
}
.footer-brand-block { display: flex; flex-direction: column; align-items: center; gap: 8px; }
@media (min-width: 768px) { .footer-brand-block { align-items: flex-start; } }
.footer-contact { display: flex; flex-direction: column; align-items: center; gap: 12px; }
@media (min-width: 768px) { .footer-contact { align-items: flex-end; } }
.footer-contact-line {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 4px 12px;
  font-size: 14px;
}
@media (min-width: 768px) { .footer-contact-line { justify-content: flex-start; } }
.footer-contact-line span { color: #9CA3AF; }
.footer-contact-line .sep { color: #4b5563; }
.footer-contact-line a { color: #3B82F6; }
.footer-contact-line a:hover { text-decoration: underline; }
.footer-socials { display: flex; align-items: center; gap: 8px; }
.footer-trustpilot { margin-top: 20px; width: 100%; max-width: 240px; }
.footer-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.04);
  color: #9CA3AF;
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.footer-socials a:hover { background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }
.footer-socials svg { width: 16px; height: 16px; fill: currentColor; }

/* 3-column sitemap */
.footer-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid #1f2937;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-grid h4 {
  color: #fff;
  font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  margin: 0 0 12px;
  font-family: 'Rubik', sans-serif;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #9CA3AF; font-size: 14px; transition: color .15s; }
.footer-grid a:hover { color: #fff; text-decoration: none; }

/* Disclaimer block */
.footer-legal { border-top: 1px solid #1f2937; padding-top: 24px; }
.footer-legal-head {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: #9CA3AF; margin: 0 0 16px;
}
.footer-legal-pl,
.footer-legal-ru {
  font-size: 12px; line-height: 1.625;
  margin: 0 0 16px;
}
.footer-legal-pl { color: #9CA3AF; }
.footer-legal-pl b { color: #d1d5db; font-weight: 700; }
.footer-legal-ru { color: #6B7280; }
.footer-legal-ru b { color: #9CA3AF; font-weight: 700; }
.footer-links {
  display: flex; flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 12px;
  font-size: 12px;
}
.footer-links a, .footer-links button {
  color: #9CA3AF; background: none; border: 0; padding: 0; cursor: pointer;
  font-family: inherit; font-size: inherit;
  transition: color .15s;
}
.footer-links a:hover, .footer-links button:hover {
  color: #fff; text-decoration: underline; text-underline-offset: 2px;
}
.footer-links .copy { color: #4B5563; }

/* ───── Misc ───── */
.intro-block { padding: 0 0 8px; }
.section-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--c-muted); font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin: 28px 0 12px;
}
.section-divider::before, .section-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--c-border);
}

.kbd {
  display: inline-block; padding: 1px 7px;
  background: #fff; border: 1px solid var(--c-border);
  border-bottom-width: 2px; border-radius: 4px;
  font-family: ui-monospace, monospace; font-size: 0.85em;
  color: var(--c-text);
}
