@import url(/fonts/fonts.css);

:root {
  --ink: #23262b;
  --ink-2: #4a4f57;
  --muted: #737574;
  --line: #e4ded6;
  --paper: #fbf8f4;
  --white: #fff;
  --accent: #9b1b30;
  --accent-2: #c2264b;
  --accent-soft: #f6e9ec;
  --teal: #1f8fa3;
  --green: #0f7f68;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --max: 1180px;
  --r: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.18; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 99; }

/* glava */
.topbar { background: var(--ink); color: #d9dbe0; font-size: 13px; }
.topbar .wrap { display: flex; gap: 18px; justify-content: space-between; align-items: center; min-height: 36px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar .hcp { opacity: .85; }
header.site { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.logo img { height: 34px; width: auto; }
nav.main ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
nav.main a { display: block; padding: 8px 11px; color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; border-radius: 6px; }
nav.main a:hover, nav.main a[aria-current] { color: var(--accent); background: var(--accent-soft); }
nav.main a.cta { background: var(--accent); color: #fff; margin-left: 6px; }
nav.main a.cta:hover { background: var(--accent-2); color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: 600 14px var(--sans); color: var(--ink); }
@media (max-width: 980px) {
  .menu-btn { display: block; }
  nav.main { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  nav.main a.cta { margin: 6px 0 0; text-align: center; }
}

/* hero */
.hero { padding: 56px 0 48px; background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); }
.hero .grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .grid { grid-template-columns: 1.25fr .75fr; } }
.eyebrow { font: 600 12.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: 1.16rem; color: var(--ink-2); max-width: 46ch; }
.hero .cover { justify-self: center; position: relative; }
.hero .cover img { width: min(320px, 72vw); border-radius: 4px; box-shadow: 0 30px 60px -20px rgba(60, 20, 30, .35), 0 2px 8px rgba(0,0,0,.08); transform: rotate(2deg); }
.hero .cover .badge { position: absolute; left: -14px; bottom: 26px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 13px; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 8px; font: 600 15px var(--sans); text-decoration: none; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); color: var(--accent); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* razdelki */
section { padding: 64px 0; }
section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head p { color: var(--ink-2); max-width: 60ch; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { background: #fff; padding: 22px 20px; }
.stats b { display: block; font: 600 2rem/1.1 var(--serif); color: var(--accent); }
.stats span { font-size: 14px; color: var(--ink-2); }

.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; transition: border-color .2s, transform .2s; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
.card h3 { margin: 0; font-size: 1.15rem; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card .meta { font-size: 13px; color: var(--muted); margin-top: auto; padding-top: 8px; }

.issues { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.issue { text-decoration: none; color: inherit; }
.issue img { border-radius: 3px; box-shadow: 0 12px 28px -12px rgba(0,0,0,.35); aspect-ratio: 220/285; object-fit: cover; width: 100%; background: #eee; }
.issue b { display: block; margin-top: 12px; font: 600 1.05rem var(--serif); }
.issue span { font-size: 14px; color: var(--muted); }
.issue:hover b { color: var(--accent); }

/* kazalo */
.toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.toc li { display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.toc .sec { grid-column: 1 / -1; font: 600 11.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.toc .t { font: 600 1.12rem/1.35 var(--serif); }
.toc .pg { font-size: 14px; color: var(--muted); white-space: nowrap; align-self: start; }
.toc .au { grid-column: 1 / -1; font-size: 14.5px; color: var(--ink-2); }
.toc .au a { color: var(--ink-2); }
.toc .src { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.toc .src a { color: var(--muted); }

.layout { display: grid; gap: 40px; }
@media (min-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr) 340px; } }
aside .box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; position: sticky; top: 96px; }
aside .box img { width: 100%; border-radius: 3px; margin-bottom: 16px; box-shadow: 0 10px 24px -12px rgba(0,0,0,.35); }
dl.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14.5px; margin: 0 0 18px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }

.teaser { border-left: 3px solid var(--teal); background: #fff; padding: 14px 18px; border-radius: 0 var(--r) var(--r) 0; margin: 0 0 14px; }
.teaser:nth-child(2n) { border-color: var(--green); }
.teaser b { display: block; font: 600 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px; }
.teaser:nth-child(2n) b { color: var(--green); }
.teaser p { margin: 0; font-family: var(--serif); font-size: 1.08rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); background: #fff; border-radius: 999px; font-size: 14px; color: var(--ink); text-decoration: none; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }

.people { display: grid; gap: 0; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); border-top: 1px solid var(--line); }
.people li { list-style: none; padding: 14px 0; border-bottom: 1px solid var(--line); }
.people { padding: 0; margin: 0; }
.people b { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; }
.people span { display: block; font-size: 14px; color: var(--muted); }

.notice { background: var(--accent-soft); border: 1px solid #ecd2d8; border-radius: var(--r); padding: 18px 20px; font-size: 15px; }
.notice b { color: var(--accent); }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.page-head { padding: 44px 0 34px; background: #fff; border-bottom: 1px solid var(--line); }
.page-head .lead { max-width: 64ch; }

/* obrazci */
form.f { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.f .row { display: grid; gap: 14px; }
@media (min-width: 640px) { .f .row.two { grid-template-columns: 1fr 1fr; } }
.f label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.f label small { font-weight: 400; color: var(--muted); }
.f input, .f select, .f textarea { font: 400 16px var(--sans); padding: 11px 12px; border: 1px solid #cfc8bf; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
.f textarea { min-height: 140px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.f .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14.5px; }
.f .check input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto; }
.f .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.f .msg { font-size: 15px; margin: 0; }
.f .msg.ok { color: var(--green); font-weight: 600; }
.f .msg.err { color: #b42318; font-weight: 600; }
.dl-list { display: grid; gap: 10px; }
.dl-list a { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; color: var(--ink); }
.dl-list a:hover { border-color: var(--accent); color: var(--accent); }
.has-access .need-access { display: none; }
.no-access .when-access { display: none; }

/* noga */
footer.site { background: var(--ink); color: #c9ccd2; padding: 52px 0 24px; font-size: 14.5px; margin-top: 0; }
footer.site a { color: #fff; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site .cols { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
footer.site h4 { color: #fff; font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
footer.site .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #9aa0a8; }
footer.site .brand img { height: 30px; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 12px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
