:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(15, 23, 42, .08);
  --max: 1180px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.narrow { max-width: 820px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 250, 252, .9); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.12rem; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--text); color: #fff; font-weight: 900; }
.main-nav { display: flex; align-items: center; gap: 20px; font-size: .95rem; color: var(--muted); }
.main-nav a:hover { color: var(--text); }
.menu-toggle { display: none; border: 0; background: var(--surface); border-radius: 12px; padding: 8px 11px; font-size: 1.25rem; box-shadow: 0 1px 0 var(--border); }
.hero-section { padding: 34px 0 28px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(300px, .8fr); gap: 24px; }
.hero-card { display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; border-radius: 30px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--border); }
.hero-image img { width: 100%; height: 100%; min-height: 450px; object-fit: cover; }
.hero-content { padding: 42px; align-self: end; }
.hero-content h1 { margin: 14px 0; font-size: clamp(2rem, 4vw, 4rem); line-height: .98; letter-spacing: -.07em; }
.hero-content p, .page-hero p { color: var(--muted); font-size: 1.08rem; }
.category-pill { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: 6px 11px; background: var(--accent-soft); color: var(--accent); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.meta-line, .article-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: .9rem; }
.side-list, .sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.side-list h2, .sidebar-card h2 { margin-top: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.side-item { display: block; padding: 17px 0; border-top: 1px solid var(--border); }
.side-item span, .eyebrow { color: var(--accent); font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.side-item strong { display: block; margin: 5px 0; line-height: 1.25; }
.side-item small { color: var(--muted); }
.section-block { padding: 36px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2, .category-band h2, .page-hero h1 { margin: 4px 0 0; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.02; letter-spacing: -.055em; }
.text-link { color: var(--accent); font-weight: 800; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.news-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 36px rgba(15, 23, 42, .05); }
.card-image img { width: 100%; height: 220px; object-fit: cover; transition: transform .25s ease; }
.news-card:hover .card-image img { transform: scale(1.035); }
.card-body { padding: 20px; }
.card-body h2 { margin: 12px 0 8px; font-size: 1.22rem; line-height: 1.2; letter-spacing: -.035em; }
.card-body p { color: var(--muted); margin: 0 0 16px; }
.category-band { display: grid; grid-template-columns: .55fr 1fr; gap: 24px; align-items: start; margin-block: 34px 54px; padding: 30px; background: var(--text); color: #fff; border-radius: 30px; }
.category-list { display: flex; flex-wrap: wrap; gap: 10px; }
.category-list a { display: inline-flex; gap: 8px; align-items: center; border-radius: 999px; background: rgba(255,255,255,.09); padding: 10px 14px; }
.category-list span { color: #bfdbfe; }
.page-hero { padding: 54px 0 28px; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; padding-bottom: 60px; }
.list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sidebar-card { height: fit-content; position: sticky; top: 100px; }
.sidebar-card a { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--border); color: var(--muted); }
.sidebar-card a:hover span { color: var(--text); }
.pagination { display: flex; gap: 8px; margin-top: 28px; }
.pagination a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.pagination a.active { background: var(--text); color: #fff; }
.article-header { padding: 54px 0 22px; text-align: center; }
.article-header .category-pill { margin-inline: auto; }
.article-header h1 { font-size: clamp(2.2rem, 5vw, 5rem); line-height: .96; letter-spacing: -.075em; margin: 18px 0; }
.article-header p { color: var(--muted); font-size: 1.2rem; }
.article-meta { justify-content: center; }
.article-image-wrap img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 32px; box-shadow: var(--shadow); }
.article-content { padding: 36px 0; font-size: 1.1rem; }
.article-content p { margin: 0 0 1.35rem; }
.article-content h2 { margin-top: 2.1rem; font-size: 1.8rem; letter-spacing: -.04em; }
.content-page { padding-bottom: 60px; font-size: 1.07rem; }
.content-page code { background: var(--border); padding: 2px 6px; border-radius: 8px; }
.empty-state, .error-page { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.button { display: inline-flex; margin-top: 18px; background: var(--text); color: #fff; border-radius: 14px; padding: 12px 18px; font-weight: 800; }
.site-footer { margin-top: 30px; background: #0f172a; color: #cbd5e1; padding: 44px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .5fr .7fr; gap: 30px; }
.footer-brand { color: #fff; }
.site-footer h3 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { display: block; color: #cbd5e1; margin: 7px 0; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding-top: 18px; font-size: .88rem; }
@media (max-width: 950px) {
  .hero-grid, .hero-card, .layout-with-sidebar, .category-band, .footer-grid { grid-template-columns: 1fr; }
  .news-grid, .list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-image img { min-height: 300px; }
  .sidebar-card { position: static; }
}
@media (max-width: 700px) {
  .main-nav { display: none; position: absolute; left: 16px; right: 16px; top: 76px; flex-direction: column; align-items: stretch; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hero-content { padding: 26px; }
  .news-grid, .list-grid { grid-template-columns: 1fr; }
  .section-heading, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .article-header { text-align: left; }
  .article-header .category-pill { margin-inline: 0; }
  .article-meta { justify-content: flex-start; }
}
