:root {
  --blue: #1f9bea;
  --blue-dark: #0b6fb3;
  --blue-soft: #e8f5fd;
  --ink: #16202b;
  --ink-2: #4a5663;
  --line: #e3e8ee;
  --bg: #f6f8fa;
  --card: #ffffff;
  --nav: #16202b;
  --eko: #0b6fb3;
  --duch: #c2410c;
  --skol: #15803d;
  --radius: 14px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 740px; margin: 0 auto; padding: 0 20px; }
.wrap-hero { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 8px 12px; }

/* ---------- header ---------- */
.site-header { background: #fff; border-top: 4px solid var(--blue); }
.header-inner { padding-top: 22px; padding-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid; place-items: center;
  width: 52px; height: 52px; flex: none;
  border-radius: 12px;
  background: var(--blue); color: #fff;
  font-weight: 800; font-size: 25px; letter-spacing: -1px;
}
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.brand-text small { color: var(--ink-2); font-size: 14px; margin-top: 3px; }

.site-nav { background: var(--nav); position: sticky; top: 0; z-index: 5; }
.nav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.site-nav a {
  color: #d7dee6; text-decoration: none; white-space: nowrap;
  font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  padding: 14px 14px; border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.site-nav a[aria-current] { color: #fff; border-bottom-color: var(--blue); }

/* ---------- shared bits ---------- */
main { padding: 36px 0 64px; }
.kicker {
  margin: 0 0 10px; color: var(--blue-dark);
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.section-title {
  font-size: 22px; font-weight: 800; letter-spacing: -0.01em;
  margin: 56px 0 20px; padding-left: 14px; border-left: 5px solid var(--blue);
}
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--ink-2); font-size: 13.5px; }
.meta > * + *::before { content: "·"; margin-right: 14px; color: #a6b0bb; }
.meta .tag + *::before { content: none; margin: 0; }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue-dark);
  font-weight: 700; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
}
a.tag:hover { background: var(--blue); color: #fff; }
.btn {
  display: inline-block; margin-top: 8px; padding: 12px 22px; border-radius: 10px;
  background: var(--blue); color: #fff; font-weight: 700; text-decoration: none;
  transition: background .15s;
}
.btn:hover { background: var(--blue-dark); color: #fff; }

/* ---------- lead story ---------- */
.lead {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 0;
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 2px rgba(22,32,43,.06), 0 8px 24px rgba(22,32,43,.06);
  padding: 0;
}
.lead-img { display: block; min-height: 100%; }
.lead-pic { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; }
.lead-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.lead-body h1 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -0.02em; margin: 6px 0 4px; }
.lead-body h1 a { color: var(--ink); text-decoration: none; }
.lead-body h1 a:hover { color: var(--blue-dark); }
.lead-body p { color: var(--ink-2); margin: 0; }
.lead-body .btn { align-self: flex-start; }

/* ---------- topics ---------- */
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.topic {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 24px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--line); border-top: 5px solid var(--c, var(--blue));
  text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s;
}
.topic:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22,32,43,.08); color: var(--ink); }
.topic strong { font-size: 20px; }
.topic span { color: var(--ink-2); font-size: 15px; }
.topic em { font-style: normal; font-weight: 700; font-size: 13px; color: var(--c, var(--blue)); margin-top: 4px; }
.cat-ekonomika { --c: var(--eko); }
.cat-duchody { --c: var(--duch); }
.cat-skolstvi { --c: var(--skol); }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  display: flex; flex-direction: column; background: var(--card);
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(22,32,43,.09); }
.card-link { display: block; }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.placeholder {
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.18), transparent 45%),
    linear-gradient(135deg, var(--c, var(--blue)), var(--blue));
}
.placeholder span { color: rgba(255,255,255,.9); font-weight: 800; font-size: 44px; letter-spacing: -2px; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { margin: 2px 0 0; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--blue-dark); }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- page heads ---------- */
.page-head { padding-top: 8px; padding-bottom: 12px; }
.page-head h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 10px; }
.page-head p { color: var(--ink-2); font-size: 18px; margin: 0 0 20px; }
.page-head.wrap { border-left: 0; }
.page-head[class*="cat-"] .kicker { color: var(--c); }

/* ---------- article ---------- */
.article-head h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.12; letter-spacing: -0.02em; margin: 14px 0 28px; }
.lede { font-size: 19px; color: var(--ink-2); margin: 0 0 28px; }
.hero { margin: 0 0 36px; }
.hero img { width: 100%; border-radius: var(--radius); }

.prose { font-family: var(--serif); font-size: 19px; line-height: 1.7; }
.prose > * { margin: 0 0 1.1em; }
.prose h2 { font-family: var(--sans); font-size: 25px; line-height: 1.25; letter-spacing: -0.01em; margin: 1.8em 0 .6em; }
.prose h2 strong { font-weight: inherit; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose blockquote {
  margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--blue);
  background: var(--blue-soft); border-radius: 0 10px 10px 0; font-style: italic;
}
.prose blockquote p { margin: 0 0 .6em; }
.prose blockquote p:last-child { margin: 0; }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: 10px; border: 1px solid var(--line); background: #fff; margin: 0 auto; }
.prose figcaption { font-family: var(--sans); font-size: 14px; color: var(--ink-2); text-align: center; margin-top: 8px; }
.prose .wp-block-table { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; line-height: 1.5; background: #fff; }
.prose td, .prose th { border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; }
.prose tr:first-child td { background: var(--blue-soft); font-weight: 600; }
.prose .has-background { background: none !important; }
.related .section-title { margin-top: 72px; }

/* ---------- footer ---------- */
.site-footer { background: var(--nav); color: #c3ccd6; padding: 44px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-inner p { max-width: 360px; margin: 14px 0 0; }
.brand-footer { color: #fff; gap: 12px; }
.brand-footer:hover { color: #fff; }
.brand-footer .brand-mark { width: 40px; height: 40px; font-size: 19px; border-radius: 10px; }
.brand-footer strong { font-size: 20px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 0 0 6px; }
.site-footer nav a { color: #c3ccd6; text-decoration: none; }
.site-footer nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 18px; font-size: 14px; color: #8d99a6; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .lead { grid-template-columns: 1fr; }
  .lead-body { padding: 26px 22px 30px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .topics { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap, .wrap-narrow, .wrap-hero { padding: 0 16px; }
  .lead.wrap { padding: 0; margin: 0 16px; }
  .grid { grid-template-columns: 1fr; }
  .brand-mark { width: 44px; height: 44px; font-size: 21px; }
  .brand-text strong { font-size: 23px; }
  .brand-text small { font-size: 12.5px; }
  .prose { font-size: 18px; }
  main { padding-top: 24px; }
}
