/* Lokalne pliki Manrope */
@font-face {
  font-family: "Manrope"; src: url("/assets/fonts/manrope-cyrillic-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Manrope Local"; src: url("/assets/fonts/manrope-cyrillic-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Manrope"; src: url("/assets/fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope Local"; src: url("/assets/fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope"; src: url("/assets/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope Local"; src: url("/assets/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope"; src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope Local"; src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --bg-2: #111821;
  --surface: #151e28;
  --surface-hover: #1b2734;
  --text: #f1f5f9;
  --muted: #a8b6c7;
  --border: #344454;
  --accent: #fbac12;
  --on-accent: #0b0f14;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Manrope Local", "Manrope", system-ui, sans-serif;
  font-size: 16px; line-height: 1.55;
}
button, input { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px;
  background: var(--accent); color: var(--on-accent); transform: translateY(-150%);
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

/* Logo crop (the source PNG has a black margin) */
.logo-full { position: relative; display: block; overflow: hidden; width: 140px; height: 46px; }
.logo-full img { position: absolute; max-width: none; width: 187.5px; left: -24.7px; top: -34.9px; mix-blend-mode: lighten; }
.logo-symbol { position: relative; display: block; overflow: hidden; width: 40px; height: 40px; }
.logo-symbol img { position: absolute; max-width: none; width: 155.7px; left: -20.5px; top: -29px; mix-blend-mode: lighten; }

.rail { display: none; }
.site { min-height: 100vh; }

.header { position: relative; z-index: 20; border-bottom: 1px solid var(--border); background: var(--bg); }
.header-inner, .container { width: min(100% - 32px, 1200px); margin-inline: auto; }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }

.header-nav { display: none; align-items: center; gap: 24px; }
.header-nav a, .mobile-nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px; }
.header-nav a:hover, .mobile-nav a:hover { color: var(--text); }
.header-nav a[aria-current="page"] { color: var(--text); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.icon-button, .button {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  min-height: 44px; border: 1px solid var(--border); border-radius: var(--radius);
  background: transparent; color: var(--text); cursor: pointer; text-decoration: none; font-weight: 700;
}
.icon-button { width: 44px; font-size: 20px; }
.button { padding: 10px 16px; }
.button:hover, .icon-button:hover { border-color: var(--accent); }
.button-primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.button-primary:hover { background: #ffc247; }
.button:disabled { cursor: not-allowed; opacity: 0.55; }
.header-subscribe { display: none; }

/* Language popup */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: var(--radius); background: transparent;
  color: var(--text); cursor: pointer; font-weight: 800; font-size: 13px; letter-spacing: 0.06em;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--accent); }
.lang-btn svg { flex: none; }
.lang-btn .chev { transition: transform 160ms; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 220px;
  margin: 0; padding: 4px; list-style: none; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.lang-menu[hidden] { display: none; }
.lang-item {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 12px;
  border: 0; border-radius: var(--radius); background: transparent; color: var(--text);
  cursor: pointer; text-align: left; font-weight: 600; text-decoration: none;
}
.lang-item:hover, .lang-item:focus-visible { background: var(--surface-hover); outline-offset: -3px; }
.lang-item .code { width: 28px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; }
.lang-item .name { flex: 1; }
.lang-item .tick { color: var(--accent); visibility: hidden; }
.lang-item[aria-checked="true"] .tick { visibility: visible; }
.lang-item[aria-checked="true"] .code { color: var(--accent); }

.mobile-nav { display: none; padding: 0 16px 16px; border-top: 1px solid var(--border); }
.mobile-nav.is-open { display: grid; gap: 4px; }
.mobile-nav a { display: flex; align-items: center; min-height: 44px; }

main { min-height: 60vh; }
.page-intro { padding: 46px 0 28px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(36px, 6vw, 58px); letter-spacing: -0.045em; }
.intro-copy { max-width: 720px; margin: 14px 0 0; color: var(--muted); font-size: clamp(16px, 2vw, 19px); }

.search-form { display: flex; gap: 8px; max-width: 520px; margin-top: 24px; }
.search-form input, .newsletter input {
  min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg); color: var(--text);
}
.search-form input { flex: 1; }

.filter-row { display: flex; flex-wrap: wrap; padding: 0 1px 28px 0; }
.filter {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  min-height: 44px; padding: 8px 16px; margin: 0 -1px -1px 0; border: 1px solid var(--border);
  border-radius: 0; background: transparent; color: var(--muted); cursor: pointer; font-weight: 700; font-size: 13px;
}
.filter:hover { color: var(--text); border-color: var(--muted); position: relative; }
.filter[aria-pressed="true"], .filter.is-active { position: relative; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.featured {
  position: relative; overflow: hidden; display: grid; gap: 24px; min-height: 310px; padding: 28px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2);
}
.featured::after {
  content: ""; position: absolute; right: -70px; top: -95px; width: 300px; aspect-ratio: 1;
  border: 1px solid rgba(251, 172, 18, 0.25); transform: rotate(45deg); pointer-events: none;
}
.featured-content { position: relative; z-index: 1; max-width: 720px; }
.featured h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.035em; }
.featured p:not(.eyebrow) { max-width: 640px; color: var(--muted); text-wrap: pretty; }
.featured-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 800; text-underline-offset: 4px; }

.meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: 13px; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 44px 0 20px; }
.section-heading h2 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.result-count { margin: 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

.content-layout { display: grid; gap: 32px; }
.card-grid { display: grid; gap: 16px; }
.card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); transition: border-color 160ms, background 160ms;
}
.card:hover, .card:focus-within { border-color: var(--accent); background: var(--surface-hover); }
.card-art {
  position: relative; overflow: hidden; display: flex; align-items: end; min-height: 126px; padding: 18px;
  background: #202b37; color: #f5bd4b; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.card-art::after {
  content: ""; position: absolute; right: 25px; top: 12px; width: 100px; height: 100px;
  border: 1px solid rgba(251, 172, 18, 0.4); transform: rotate(45deg);
}
.card-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.card h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.02em; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.card-description { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.card .meta { margin-top: auto; }

.sidebar { display: grid; gap: 16px; align-content: start; }
.panel { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2); }
.panel h2 { margin: 0 0 12px; font-size: 19px; }
.panel p { color: var(--muted); font-size: 14px; }
.side-list { margin: 0; padding: 0; list-style: none; }
.side-list li + li { border-top: 1px solid var(--border); }
.side-list a { display: block; padding: 13px 0; text-decoration: none; font-size: 14px; font-weight: 700; }
.side-list a:hover { color: var(--accent); }
.newsletter form { display: grid; gap: 10px; margin-top: 16px; }
.newsletter-note { margin-bottom: 0; font-size: 12px !important; }
.empty-state { grid-column: 1 / -1; padding: 28px; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); }

.article { padding: 34px 0 70px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { text-underline-offset: 3px; text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }
.article-header { max-width: 860px; }
.article-header h1 { font-size: clamp(34px, 5.5vw, 56px); }
.article-lead { max-width: 760px; margin: 18px 0 22px; color: var(--muted); font-size: clamp(18px, 2vw, 21px); line-height: 1.6; text-wrap: pretty; }
.article-cover {
  position: relative; overflow: hidden; display: flex; align-items: end; min-height: 200px; margin: 32px 0; padding: 24px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2);
  color: var(--accent); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.article-cover::after { content: ""; position: absolute; right: 40px; top: 24px; width: 140px; height: 140px; border: 1px solid rgba(251, 172, 18, 0.4); transform: rotate(45deg); }
.article-body { max-width: 720px; color: #e5ebf2; font-size: 18px; line-height: 1.7; }
.article-body h2 { margin-top: 36px; font-size: 28px; }
.article-body p { margin: 0 0 1.1em; text-wrap: pretty; }
.article-body blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.article-body ul { margin: 0 0 1.1em; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); }
.share-message { color: var(--accent); font-size: 14px; }
.related { margin-top: 52px; }

.footer { margin-top: 70px; border-top: 1px solid var(--border); }
.footer-inner { display: grid; gap: 20px; padding: 32px 0; }
.footer p { max-width: 450px; margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.footer a.back { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.footer a.back:hover { color: var(--text); }

.feedback-msg { padding: 10px 14px; border-radius: var(--radius); font-size: 14px; margin-top: 8px; }
.feedback-msg.success { background: #133a20; border: 1px solid #238636; color: #7ee787; }
.feedback-msg.error { background: #3b1219; border: 1px solid #da3633; color: #f85149; }

@media (min-width: 768px) {
  .header-inner, .container { width: min(100% - 56px, 1200px); }
  .header-nav, .header-subscribe { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav.is-open { display: none; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured { padding: 42px; }
  .footer-inner { grid-template-columns: 1fr auto; }
}
@media (min-width: 1024px) {
  .rail {
    position: fixed; z-index: 10; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column;
    align-items: center; gap: 12px; width: 72px; padding: 16px 0; border-right: 1px solid var(--border); background: var(--bg);
  }
  .rail-logo { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; }
  .rail-link {
    display: flex; justify-content: center; align-items: center; width: 44px; height: 44px;
    border-radius: var(--radius); color: var(--muted); text-decoration: none; font-size: 21px;
  }
  .rail-link:hover { background: var(--surface); color: var(--accent); }
  .site { margin-left: 72px; }
  .content-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Legal footer navigation (CMP-03) */
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  padding: 0 0 24px; margin-top: 8px; font-size: 13px; color: var(--muted);
}
.footer-legal a, .footer-legal-link {
  color: var(--muted); text-decoration: none; background: none; border: 0;
  padding: 4px 0; cursor: pointer; font-size: 13px;
}
.footer-legal-label {
  color: var(--text); font-weight: 600; padding: 4px 0;
}
.footer-legal a:hover, .footer-legal-link:hover { color: var(--accent); text-decoration: underline; }

/* First-party cookie consent banner and preference center (CMP-04) */
.cmp-banner {
  position: fixed; inset: auto 0 0 0; z-index: 90;
  background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgb(0 0 0 / 35%);
}
.cmp-banner[hidden] { display: none; }
.cmp-banner-inner {
  width: min(100% - 32px, 1200px); margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  padding: 18px 0;
}
.cmp-text { flex: 1 1 320px; }
.cmp-text h2 { margin: 0 0 6px; font-size: 17px; }
.cmp-text p { margin: 0; font-size: 14px; color: var(--muted); }
.cmp-text a { color: var(--accent); }
.cmp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cmp-link {
  min-height: 44px; padding: 10px 8px; background: none; border: 0;
  color: var(--muted); text-decoration: underline; cursor: pointer;
}
.cmp-link:hover { color: var(--accent); }

.cmp-modal {
  position: fixed; inset: 0; z-index: 95;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgb(0 0 0 / 60%);
}
.cmp-modal[hidden] { display: none; }
.cmp-dialog {
  width: min(100%, 560px); max-height: 90vh; overflow-y: auto;
  padding: 24px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-2); box-shadow: 0 24px 64px rgb(0 0 0 / 55%);
}
.cmp-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cmp-dialog-head h2 { margin: 0; font-size: 20px; }
.cmp-close {
  min-width: 44px; min-height: 44px; border: 1px solid var(--border);
  border-radius: var(--radius); background: transparent; color: var(--text);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.cmp-close:hover { border-color: var(--accent); }
.cmp-categories { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.cmp-categories li {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 14px; border: 1px solid var(--border); border-radius: var(--radius);
}
.cmp-categories label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.cmp-categories input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }
.cmp-categories span { display: grid; gap: 4px; }
.cmp-categories small { color: var(--muted); font-size: 13px; }
.cmp-categories em { color: var(--muted); font-size: 12px; font-style: normal; white-space: nowrap; }
body:has(.cmp-modal:not([hidden])) { overflow: hidden; }

/* CMP-05: newsletter affirmative consent */
.consent-label {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 12px 0; font-size: 13px; color: var(--muted); cursor: pointer;
}
.consent-label input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; }
.consent-label span { line-height: 1.45; }
