:root{
  --font-body: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --color-bg: #ffffff;
  --color-surface: #f6f7f9;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-primary: #0b5cff;
  --color-border: #e5e7eb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --container: 1100px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family:var(--font-body);
  background:var(--color-bg);
  color:var(--color-text);
  line-height:1.5;
}
a{ color:var(--color-primary); text-decoration:none; }
a:hover{ text-decoration:underline; }
a:focus-visible, button:focus-visible, summary:focus-visible{
  outline:2px solid var(--color-primary);
  outline-offset:2px;
}
code{ font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.skip{
  position:absolute; left:-9999px; top:10px;
  background:var(--color-bg); color:var(--color-text);
  padding:10px 12px; border:1px solid var(--color-border); border-radius:10px;
}
.skip:focus{ left:10px; z-index:10; }

.container{ max-width:var(--container); margin:0 auto; padding:0 16px; }
.header{
  position:sticky; top:0; z-index:5;
  background:rgba(255,255,255,.9);
  backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--color-border);
}
.header__inner{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0; }
.brand{ display:flex; align-items:center; gap:12px; min-width:0; text-decoration:none; color:inherit; }
.brand__mark{
  width:44px; height:44px; border-radius:12px;
  display:grid; place-items:center;
  background:var(--color-primary); color:white; font-weight:800;
}
.brand__text{ display:flex; flex-direction:column; min-width:0; }
.brand__name{ font-weight:800; line-height:1.1; }
.brand__tag{ color:var(--color-muted); font-size:12px; }

.nav{ display:flex; gap:14px; align-items:center; justify-content:flex-end; }
.nav__panel{ display:flex; gap:14px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.nav__toggle{
  display:none;
  align-items:center; justify-content:center;
  height:38px; padding:0 12px;
  border-radius:10px;
  border:1px solid var(--color-border);
  background:var(--color-bg);
  font-weight:800;
}
.nav__toggle:hover{ background:var(--color-surface); }
.nav__right{ display:flex; align-items:center; gap:10px; }
.nav__list{ list-style:none; margin:0; padding:0; display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.nav__item{ position:relative; }
.nav__link, .nav__sublink, .nav__summary{
  display:inline-flex; align-items:center;
  padding:8px 10px; border-radius:10px;
  color:inherit; text-decoration:none;
  border:1px solid transparent;
  background:transparent;
}
.nav__link:hover, .nav__sublink:hover, .nav__summary:hover{ background:var(--color-surface); text-decoration:none; }
.nav__link.is-active, .nav__sublink.is-active{ border-color:var(--color-border); background:var(--color-surface); }
.nav__group{ position:relative; }
.nav__summary{ cursor:pointer; list-style:none; }
.nav__summary::after{ content:"▾"; color:var(--color-muted); font-size:12px; margin-left:8px; }
.nav__group[open] .nav__summary::after{ content:"▴"; }
.nav__summary::-webkit-details-marker{ display:none; }
.nav__dropdown{
  position:absolute; right:0; top:calc(100% + 6px);
  min-width:220px;
  background:var(--color-bg);
  border:1px solid var(--color-border);
  border-radius:12px;
  box-shadow:var(--shadow);
  padding:8px;
  display:flex; flex-direction:column; gap:4px;
}
@media (max-width: 860px){
  .header__inner{ align-items:flex-start; flex-wrap:wrap; }
  .nav{ width:100%; justify-content:space-between; }
  .nav__toggle{ display:inline-flex; }
  .nav__panel{ width:100%; flex-direction:column; align-items:stretch; gap:10px; }
  .nav__list{ flex-direction:column; align-items:stretch; }
  .nav__link, .nav__sublink, .nav__summary{ width:100%; justify-content:space-between; }
  .nav__dropdown{ position:static; box-shadow:none; border-radius:10px; }
}
.lang{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:38px;
  border-radius:10px;
  border:1px solid var(--color-border);
  background:var(--color-bg);
  font-weight:800;
  text-decoration:none;
  color:inherit;
}
.lang:hover{ background:var(--color-surface); }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; border-radius:12px;
  border:1px solid transparent;
  background:var(--color-primary); color:white;
  font-weight:800; text-decoration:none;
  min-height:44px;
}
.btn:hover{ text-decoration:none; filter:saturate(1.05); }
.btn--ghost{ background:transparent; color:var(--color-text); border-color:var(--color-border); }
.btn--ghost:hover{ background:var(--color-surface); }
.lang-chooser{ display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }

.main{ padding:26px 0 40px; }

.prose{ max-width:80ch; }
.prose:has(.news-grid){ max-width:none; }
.prose a{ overflow-wrap:anywhere; }
.prose :where(h2,h3,h4,h5,h6){ scroll-margin-top:90px; }
.prose h1{ margin:0 0 14px; font-size:clamp(26px, 4vw, 40px); letter-spacing:-0.02em; line-height:1.15; }
.prose h2{ margin:30px 0 12px; font-size:clamp(20px, 2.6vw, 28px); letter-spacing:-0.01em; line-height:1.2; }
.prose h3{ margin:24px 0 10px; font-size:clamp(18px, 2.1vw, 22px); line-height:1.25; }
.prose h4{ margin:20px 0 8px; font-size:17px; line-height:1.3; }
.prose p{ margin:12px 0; }
.prose :where(ul,ol){ margin:12px 0; padding-left:1.3em; }
.prose :where(li){ margin:6px 0; }
.prose :where(li > :first-child){ margin-top:0; }
.prose :where(li > :last-child){ margin-bottom:0; }
.prose hr{ border:0; border-top:1px solid var(--color-border); margin:26px 0; }
.prose blockquote{
  margin:16px 0;
  padding:12px 16px;
  border-left:4px solid var(--color-primary);
  background:var(--color-surface);
  border-radius:12px;
}
.prose blockquote :first-child{ margin-top:0; }
.prose blockquote :last-child{ margin-bottom:0; }
.prose table{
  width:100%;
  border-collapse:collapse;
  border:1px solid var(--color-border);
  border-radius:12px;
  overflow:hidden;
  margin:16px 0;
}
.prose th, .prose td{ padding:10px 12px; border-bottom:1px solid var(--color-border); vertical-align:top; }
.prose th{ text-align:left; background:var(--color-surface); }
.prose tr:last-child td{ border-bottom:0; }
.prose pre{
  overflow:auto;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--color-border);
  background:var(--color-surface);
}
.prose :where(img,video){ max-width:100%; height:auto; }
.prose img{
  display:block;
  margin:16px auto;
  border-radius:12px;
  border:1px solid var(--color-border);
}
.prose figure{ margin:18px 0; }
.prose figcaption{ margin:8px 0 0; color:var(--color-muted); font-size:13px; text-align:center; }
.lead{ color:var(--color-muted); font-size:clamp(16px, 2vw, 18px); }

.callout{
  margin:14px 0;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--color-border);
  background:var(--color-surface);
}
.callout--info{
  border-left:4px solid var(--color-primary);
}

.quick-links{ display:flex; flex-wrap:wrap; gap:10px; margin:14px 0 6px; }
.home-news{ margin-top:26px; }
.home-news__more{ margin:12px 0 0; }

.news-grid{ display:grid; gap:14px; margin-top:16px; grid-template-columns:1fr; }
@media (min-width: 860px){
  .news-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
.news-filter{ margin-top:10px; }
.news-filter__inner{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  display:inline-flex; align-items:center; justify-content:center;
  padding:6px 10px; border-radius:999px;
  border:1px solid var(--color-border);
  background:var(--color-bg);
  color:inherit;
  font-weight:700;
  font-size:13px;
  text-decoration:none;
}
.chip:hover{ background:var(--color-surface); text-decoration:none; }
.chip.is-active{ border-color:var(--color-primary); }
.news-cat{ text-decoration:none; }
.news-cat:hover{ text-decoration:underline; }
.news-card{
  background:var(--color-surface);
  border:1px solid var(--color-border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
}
.news-card__meta{ display:flex; gap:10px; color:var(--color-muted); font-size:13px; }
.news-card__title{ margin:8px 0 0; font-size:18px; }
.news-card__teaser{ margin:8px 0 0; color:var(--color-muted); }
.news-head__meta{ color:var(--color-muted); margin:0 0 10px; }
.hero-img{ margin:18px 0; }
.news-back{ margin:0 0 14px; }
.news-back__link{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid var(--color-border);
  background:var(--color-bg);
  text-decoration:none; color:inherit;
}
.news-back__link:hover{ background:var(--color-surface); text-decoration:none; }

.pager{ margin-top:18px; }
.pager__inner{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.pager__link{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px; border-radius:12px;
  border:1px solid var(--color-border);
  background:var(--color-bg);
  font-weight:800;
  text-decoration:none; color:inherit;
}
.pager__link:hover{ background:var(--color-surface); }
.pager__disabled{ color:var(--color-muted); padding:10px 12px; }
.pager__current{ color:var(--color-muted); }

.footer{ border-top:1px solid var(--color-border); padding:18px 0; }
.footer__inner{ display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.footer__title{ font-weight:800; }
.footer__text{ color:var(--color-muted); font-size:13px; }
.footer__links{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.footer__links a{ color:inherit; }
