/* =================================================================
   Rynkowo — edukacja finansowa (Polska)
   Design: ultra-nowoczesny portal informacyjny / broadcast (styl TVP World).
   Granat + czerwień + biel (barwy Polski). Pasek tematów, karty, bento.
   Krój: Big Shoulders Display / Schibsted Grotesk / Spline Sans Mono.
   ================================================================= */

:root {
  --navy:    #07142B;
  --navy-1:  #0A1B38;
  --navy-2:  #0F2649;
  --navy-3:  #16335E;
  --navy-4:  #1E4274;
  --line:    rgba(255,255,255,0.09);
  --line-2:  rgba(255,255,255,0.17);

  --white:   #EEF3FB;
  --soft:    #C3D1E8;
  --muted:   #8DA1C3;
  --faint:   #5E7299;

  --red:     #E11D2A;
  --red-2:   #FF3340;
  --red-deep:#B5121D;
  --red-wash: rgba(225,29,42,0.14);
  --red-line: rgba(225,29,42,0.40);
  --blue:    #2C6BEA;
  --blue-wash: rgba(44,107,234,0.15);

  --shadow-md: 0 18px 44px -22px rgba(0,0,0,0.65);
  --shadow-lg: 0 40px 80px -30px rgba(0,0,0,0.8);
  --glow-red: 0 10px 40px -10px rgba(225,29,42,0.5);

  --r-xs: 3px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;

  --maxw: 1280px;
  --pad: clamp(1rem, 3.5vw, 2.4rem);

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy-1);
  color: var(--white);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 500px at 88% -8%, rgba(225,29,42,0.12), transparent 60%),
    radial-gradient(800px 520px at -6% 6%, rgba(44,107,234,0.12), transparent 58%),
    var(--navy-1);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--white);
  text-transform: uppercase;
}
h1 { font-size: clamp(2.8rem, 7vw, 6rem); font-weight: 800; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.3vw, 1.9rem); font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 600; font-family: var(--font-body); text-transform: none; letter-spacing: -0.01em; }
p { color: var(--soft); }
strong { color: var(--white); font-weight: 700; }

.kicker, .eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-2);
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.kicker::before, .eyebrow::before { content: ""; width: 18px; height: 3px; background: var(--red); display: inline-block; }
.sec-num { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--muted); line-height: 1.55; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(3rem, 6.5vw, 6rem); }
.section--tight { padding-block: clamp(2.2rem, 4vw, 3.5rem); }
.section--alt { background: var(--navy); }
.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.5rem); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.maxw-prose { max-width: 720px; }
.maxw-mid { max-width: 880px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--red); --fg: #fff;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem; background: var(--bg); color: var(--fg);
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-family: var(--font-body); font-weight: 700; font-size: 0.92rem; letter-spacing: 0.01em;
  cursor: pointer; transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--glow-red); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; }
.btn--primary { --bg: var(--red); --fg: #fff; }
.btn--primary:hover { --bg: var(--red-2); }
.btn--ghost { --bg: transparent; --fg: var(--white); border-color: var(--line-2); }
.btn--ghost:hover { --bg: var(--navy-3); border-color: var(--line-2); box-shadow: none; }
.btn--light { --bg: var(--white); --fg: var(--navy); }
.btn--light:hover { --bg: #fff; box-shadow: var(--shadow-md); }
.btn--lg { padding: 1rem 1.85rem; font-size: 1rem; }
.btn--block { width: 100%; justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; color: var(--red-2);
  font-family: var(--font-body); font-size: 0.9rem; transition: gap 0.2s var(--ease);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.link-arrow:hover { gap: 0.7rem; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Topbar with flag accent ---------- */
.flagbar { display: flex; height: 4px; }
.flagbar i:first-child { flex: 1; background: var(--white); }
.flagbar i:last-child { flex: 1; background: var(--red); }

/* ---------- Ticker ---------- */
.ticker { background: var(--navy); border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker__inner { display: flex; align-items: center; height: 42px; gap: 0; }
.ticker__label {
  flex: none; display: inline-flex; align-items: center; gap: 0.5rem; height: 100%;
  background: var(--red); color: #fff; padding: 0 1rem 0 var(--pad);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.ticker__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }
.ticker__track { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker__move { display: inline-flex; gap: 2.6rem; white-space: nowrap; padding-left: 1.4rem; animation: marquee 38s linear infinite; }
.ticker__move span { font-family: var(--font-mono); font-size: 0.78rem; color: var(--soft); letter-spacing: 0.02em; }
.ticker__move span::before { content: "▸"; color: var(--red-2); margin-right: 0.7rem; }
.ticker:hover .ticker__move { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(10, 27, 56, 0.82);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, background 0.3s;
}
.site-header.is-scrolled { border-color: var(--line); background: rgba(8,20,43,0.92); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; letter-spacing: 0.01em; text-transform: uppercase; line-height: 1; }
.brand__name b { color: var(--red-2); }

.nav__links { display: flex; align-items: center; gap: 0.1rem; }
.nav__links a {
  font-family: var(--font-body); padding: 0.5rem 0.8rem; font-size: 0.88rem; font-weight: 600;
  color: var(--soft); position: relative; transition: color 0.2s;
}
.nav__links a::after { content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: -2px; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--white); }
.nav__cta { margin-left: 0.5rem; }
.nav .nav__cta a.btn { color: var(--fg); }
.nav .nav__cta a.btn::after { display: none; }

.nav__toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--navy-2); cursor: pointer; align-items: center; justify-content: center; color: var(--white); }
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
body.menu-open .nav__toggle .icon-open { display: none; }
body.menu-open .nav__toggle .icon-close { display: block; }

@media (max-width: 980px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 0.6rem var(--pad) 1.5rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  body.menu-open .nav__links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 0.95rem 0.3rem; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__cta { margin: 1rem 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Hero portal (lead + rail) ---------- */
.hero { padding-top: clamp(1.5rem, 3vw, 2.6rem); }
.hero__grid { display: grid; grid-template-columns: 1.62fr 1fr; gap: clamp(1.2rem, 2.5vw, 1.8rem); }
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }

.lead-card { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: clamp(360px, 52vw, 560px); display: flex; align-items: flex-end; border: 1px solid var(--line); }
.lead-card__img { position: absolute; inset: 0; }
.lead-card__img img { width: 100%; height: 100%; object-fit: cover; }
.lead-card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,20,43,0.15) 0%, rgba(7,20,43,0.55) 45%, rgba(7,20,43,0.96) 100%); }
.lead-card__body { position: relative; padding: clamp(1.5rem, 3vw, 2.8rem); max-width: 680px; }
.lead-card h1 { margin: 0.9rem 0 0.9rem; }
.lead-card p { color: var(--soft); font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 56ch; }
.lead-card .btn { margin-top: 1.5rem; }
.lead-card__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin-top: 1.2rem; font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); letter-spacing: 0.04em; }
.lead-card__meta span { display: inline-flex; align-items: center; gap: 0.4rem; }

.cat-pill { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; color: #fff; background: var(--red); padding: 0.35rem 0.7rem; border-radius: var(--r-xs); }
.cat-pill--blue { background: var(--blue); }

.rail { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--navy-2); overflow: hidden; }
.rail__head { padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 0.6rem; }
.rail__head h2 { font-size: 1.25rem; }
.rail__list { display: flex; flex-direction: column; flex: 1; }
.rail-item { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; padding: 1rem 1.3rem; border-top: 1px solid var(--line); transition: background 0.2s; }
.rail-item:first-child { border-top: 0; }
.rail-item:hover { background: var(--navy-3); }
.rail-item__n { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--red-2); line-height: 1; }
.rail-item h3 { font-family: var(--font-body); text-transform: none; font-size: 1rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.rail-item__meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--faint); margin-top: 0.3rem; letter-spacing: 0.03em; }

/* ---------- Category tabs ---------- */
.cat-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); background: var(--navy-2); border: 1px solid var(--line); padding: 0.5rem 0.95rem; border-radius: 100px; transition: background 0.2s, color 0.2s, border-color 0.2s; cursor: default; }
.chip:hover, .chip--active { background: var(--red); color: #fff; border-color: var(--red); }

/* ---------- Section head ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--red); padding-bottom: 0.9rem; margin-bottom: clamp(1.8rem, 3vw, 2.6rem); flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.sec-head.center { justify-content: center; text-align: center; border: 0; flex-direction: column; align-items: center; }
.sec-head.center::after { content: ""; width: 60px; height: 3px; background: var(--red); margin-top: 1rem; }

/* ---------- News grid (bento) ---------- */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.4rem); }
.news-card { display: flex; flex-direction: column; background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s; position: relative; }
.news-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); z-index: 2; }
.news-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-md); }
.news-card:hover::before { transform: scaleX(1); }
.news-card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--navy-3); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.06); }
.news-card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; gap: 0.55rem; }
.news-card h3 { font-family: var(--font-body); text-transform: none; font-size: 1.12rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.news-card p { font-size: 0.92rem; color: var(--muted); flex: 1; }
.news-card__meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--faint); letter-spacing: 0.04em; display: flex; gap: 0.8rem; }
.news-card--feature { grid-column: span 2; grid-row: span 2; }
.news-card--feature .news-card__media { aspect-ratio: auto; flex: 1; min-height: 240px; }
.news-card--feature h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.news-card--wide { grid-column: span 2; }
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } .news-card--feature { grid-column: span 2; grid-row: auto; } }
@media (max-width: 560px) { .news-grid { grid-template-columns: 1fr; } .news-card--feature, .news-card--wide { grid-column: auto; } }

/* ---------- Generic card (interior pages) ---------- */
.card { background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(1.4rem, 2.5vw, 2rem); height: 100%; transition: transform 0.3s var(--ease), border-color 0.3s; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.card:hover::before { transform: scaleX(1); }
.card__icon { width: 48px; height: 48px; border-radius: var(--r-sm); display: grid; place-items: center; margin-bottom: 1.1rem; background: var(--red-wash); color: var(--red-2); border: 1px solid var(--red-line); }
.card__icon svg { width: 24px; height: 24px; }
.card--blue .card__icon { background: var(--blue-wash); color: #6da3ff; border-color: rgba(44,107,234,0.4); }
.card h3 { font-family: var(--font-body); text-transform: none; font-size: 1.2rem; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.card p { font-size: 0.96rem; color: var(--muted); }
.card__foot { margin-top: 1.1rem; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: center; }
.split img { width: 100%; object-fit: cover; aspect-ratio: 4/3; border-radius: var(--r-md); border: 1px solid var(--line); }
.split__media { position: relative; }
.split__tag { position: absolute; left: 1rem; top: 1rem; }
.split--reverse .split__media { order: 2; }
@media (max-width: 820px) { .split, .split--reverse { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

.checklist { display: grid; gap: 0.85rem; margin-top: 1.4rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.99rem; color: var(--soft); }
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--red-2); margin-top: 1px; }

/* ---------- Stat band (Polish white/red) ---------- */
.statband { background: var(--red); border-radius: var(--r-lg); overflow: hidden; position: relative; }
.statband::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent, rgba(255,255,255,0.08)); pointer-events: none; }
.statband__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.statband__grid > div { padding: clamp(1.6rem, 3vw, 2.4rem); border-right: 1px solid rgba(255,255,255,0.22); }
.statband__grid > div:last-child { border-right: 0; }
.statband__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); color: #fff; line-height: 1; }
.statband__lbl { color: rgba(255,255,255,0.92); font-size: 0.92rem; margin-top: 0.5rem; }
@media (max-width: 640px) { .statband__grid { grid-template-columns: 1fr; } .statband__grid > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.22); } .statband__grid > div:last-child { border-bottom: 0; } }

/* ---------- Facts (interior) ---------- */
.facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.facts > div { background: var(--navy-2); padding: 1.7rem 1.5rem; }
.facts .fact__num { display: block; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1; color: var(--red-2); margin-bottom: 0.5rem; }
.facts .fact__lbl { display: block; font-size: 0.9rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 0; counter-reset: s; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; padding: 1.3rem 0; border-top: 1px solid var(--line); align-items: start; }
.step:first-child { border-top: 0; }
.step__n { counter-increment: s; font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: var(--red-2); line-height: 1; }
.step__n::before { content: counter(s, decimal-leading-zero); }
.step h4 { margin-bottom: 0.3rem; }
.step p { font-size: 0.96rem; color: var(--muted); }

/* ---------- Band ---------- */
.band-dark { background: var(--navy); border: 1px solid var(--line); border-radius: var(--r-lg); position: relative; overflow: hidden; }
.band-dark::after { content: ""; position: absolute; top: -40%; right: -10%; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(225,29,42,0.2), transparent 65%); pointer-events: none; }

/* ---------- Prose ---------- */
.prose { max-width: 760px; font-size: 1.05rem; }
.prose > * + * { margin-top: 1.2rem; }
.prose h2 { margin-top: 2.6rem; font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.prose h3 { margin-top: 2rem; font-size: clamp(1.3rem, 2vw, 1.6rem); font-family: var(--font-body); text-transform: none; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--soft); }
.prose ul { list-style: none; padding-left: 0; display: grid; gap: 0.5rem; }
.prose ul li { position: relative; padding-left: 1.5rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 3px; background: var(--red); }
.prose ol { padding-left: 1.4rem; display: grid; gap: 0.5rem; }
.prose ol li::marker { color: var(--red-2); font-weight: 700; font-family: var(--font-mono); }
.prose a { color: var(--red-2); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--white); }
.prose blockquote { border-left: 3px solid var(--red); padding: 0.3rem 0 0.3rem 1.3rem; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: 1.6rem; line-height: 1.05; color: var(--white); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin-top: 0.6rem; }
.prose table th, .prose table td { text-align: left; padding: 0.72rem 0.9rem; border: 1px solid var(--line); vertical-align: top; color: var(--soft); }
.prose table th { background: var(--navy-3); color: var(--white); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Page hero ---------- */
.page-hero { padding-block: clamp(2.4rem, 5vw, 4.2rem) clamp(1.5rem, 3vw, 2.2rem); border-bottom: 1px solid var(--line); position: relative; }
.page-hero h1 { margin: 1rem 0 1rem; max-width: 18ch; }
.page-hero .lead { max-width: 60ch; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); display: flex; gap: 0.5rem; align-items: center; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red-2); }

/* ---------- Blog (post-card alias) ---------- */
.post-card { display: flex; flex-direction: column; background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: transform 0.3s var(--ease), border-color 0.3s; position: relative; }
.post-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); z-index: 2; }
.post-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.post-card:hover::before { transform: scaleX(1); }
.post-card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--navy-3); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; gap: 0.5rem; }
.tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-2); font-weight: 500; }
.post-card h3 { font-family: var(--font-body); text-transform: none; font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.25; }
.post-card p { font-size: 0.94rem; color: var(--muted); flex: 1; }
.post-card .link-arrow { margin-top: 0.8rem; font-size: 0.86rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--white); }
.field .req { color: var(--red-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.82rem 0.95rem; background: var(--navy); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); font-family: var(--font-body); font-size: 0.98rem; color: var(--white); transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 142px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238DA1C3' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.4rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-wash); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-wash); }
.field__error { font-family: var(--font-mono); font-size: 0.72rem; color: var(--red-2); display: none; }
.field.invalid .field__error { display: block; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }

.check { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); flex: none; }
.check label { font-size: 0.9rem; font-weight: 400; color: var(--muted); line-height: 1.5; }
.check.invalid label { color: var(--red-2); }
.check a { color: var(--red-2); text-decoration: underline; text-underline-offset: 2px; }

.form-note { font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); }
.form-success { display: none; align-items: flex-start; gap: 0.8rem; background: var(--red-wash); border: 1px solid var(--red-line); border-radius: var(--r-sm); padding: 1.1rem 1.2rem; }
.form-success.show { display: flex; }
.form-success svg { width: 24px; height: 24px; flex: none; color: var(--red-2); margin-top: 2px; }
.form-success b { color: var(--white); display: block; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.3rem; }
.form-success span { color: var(--soft); }
.form-card { background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(1.4rem, 3vw, 2.2rem); }

/* ---------- Callouts ---------- */
.callout { display: flex; gap: 0.9rem; align-items: flex-start; background: var(--navy-2); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--r-sm); padding: 1.15rem 1.3rem; }
.callout svg { width: 22px; height: 22px; flex: none; color: var(--red-2); margin-top: 2px; }
.callout p { font-size: 0.95rem; color: var(--soft); margin: 0; }
.callout b { color: var(--white); }
.callout--info { border-left-color: var(--blue); }
.callout--info svg { color: #6da3ff; }
.callout--risk { background: var(--red-wash); border-left-color: var(--red); }

/* ---------- Contact list ---------- */
.contact-list { display: grid; gap: 1.1rem; margin-top: 1.7rem; }
.contact-list li { display: flex; gap: 0.95rem; align-items: flex-start; }
.contact-list__ic { width: 44px; height: 44px; flex: none; border-radius: var(--r-sm); background: var(--red-wash); color: var(--red-2); border: 1px solid var(--red-line); display: grid; place-items: center; }
.contact-list__ic svg { width: 20px; height: 20px; }
.contact-list__txt { padding-top: 1px; }
.contact-list b { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.contact-list__txt a { color: var(--red-2); text-decoration: underline; text-underline-offset: 2px; }
.contact-list__txt > span { font-size: 0.98rem; color: var(--soft); }

/* ---------- TOC / pill ---------- */
.toc { background: var(--navy-2); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--r-sm); padding: 1.3rem 1.5rem; }
.toc h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.8rem; font-weight: 500; }
.toc ul { display: grid; gap: 0.5rem; }
.toc a { font-size: 0.96rem; color: var(--soft); }
.toc a:hover { color: var(--red-2); }
.pill { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-2); background: var(--red-wash); border: 1px solid var(--red-line); padding: 0.35rem 0.75rem; border-radius: 100px; font-weight: 500; }

/* ---------- CTA panel ---------- */
.cta-panel { padding: clamp(2.4rem, 5vw, 4rem); text-align: center; }
.cta-panel .btn { margin-top: 1.6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); border-top: 3px solid var(--red); color: var(--muted); padding-block: clamp(3rem, 6vw, 4.2rem) 2rem; }
.site-footer a { color: var(--soft); transition: color 0.2s; }
.site-footer a:hover { color: var(--red-2); }
.footer__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; padding-bottom: 2.6rem; border-bottom: 1px solid var(--line); }
.footer__brand .brand__name { color: var(--white); }
.footer__brand p { color: var(--muted); font-size: 0.93rem; margin-top: 1.1rem; max-width: 36ch; }
.footer__col h4 { color: var(--white); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; margin-bottom: 1rem; }
.footer__col ul { display: grid; gap: 0.55rem; }
.footer__col a { font-size: 0.93rem; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 1.8rem; font-family: var(--font-mono); font-size: 0.74rem; color: var(--faint); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.footer__disclaimer { font-size: 0.86rem; color: var(--faint); line-height: 1.6; margin-top: 1.6rem; max-width: 90ch; }
@media (max-width: 820px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; left: 50%; bottom: clamp(0.8rem, 2vw, 1.4rem); transform: translateX(-50%) translateY(160%); z-index: 80; width: min(680px, calc(100% - 1.6rem)); background: var(--navy-2); border: 1px solid var(--line-2); border-top: 3px solid var(--red); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 1.4rem 1.5rem; transition: transform 0.45s var(--ease); }
.cookie.show { transform: translateX(-50%) translateY(0); }
.cookie__head { display: flex; gap: 0.7rem; align-items: center; margin-bottom: 0.55rem; }
.cookie__head svg { width: 22px; height: 22px; color: var(--red-2); }
.cookie__head h4 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.4rem; }
.cookie p { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.cookie p a { color: var(--red-2); text-decoration: underline; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie__actions .btn { padding: 0.7rem 1.1rem; font-size: 0.82rem; }
.cookie__actions .btn--ghost { flex: 1; min-width: 150px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: none; }
.modal.show { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(4,12,28,0.7); backdrop-filter: blur(4px); }
.modal__panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(560px, calc(100% - 1.6rem)); max-height: 90vh; overflow-y: auto; background: var(--navy-2); border: 1px solid var(--line-2); border-top: 3px solid var(--red); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 1.7rem; }
.modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.modal__head h3 { font-weight: 700; }
.modal__close { width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--navy); cursor: pointer; display: grid; place-items: center; color: var(--white); }
.modal__close svg { width: 18px; height: 18px; }
.modal__sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.2rem; }
.pref { display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 1rem; padding: 1rem 0; border-top: 1px solid var(--line); align-items: center; }
.pref h4 { font-family: var(--font-body); font-size: 1rem; }
.pref p { grid-column: 1 / -1; font-size: 0.86rem; color: var(--muted); margin: 0; }
.pref__locked { font-family: var(--font-mono); font-size: 0.7rem; color: var(--red-2); letter-spacing: 0.05em; text-transform: uppercase; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; background: var(--navy-4); border-radius: 100px; transition: background 0.2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform 0.2s var(--ease); }
.switch input:checked + span { background: var(--red); }
.switch input:checked + span::after { transform: translateX(20px); }
.modal__actions { display: flex; gap: 0.6rem; margin-top: 1.5rem; flex-wrap: wrap; }
.modal__actions .btn { flex: 1; min-width: 140px; }

/* ---------- Toast ---------- */
.kw-toast { position: fixed; left: 50%; bottom: clamp(0.8rem,2vw,1.4rem); transform: translateX(-50%) translateY(170%); z-index: 95; display: flex; align-items: center; gap: 0.6rem; background: var(--navy-3); color: var(--white); border: 1px solid var(--red-line); border-radius: var(--r-sm); padding: 0.8rem 1.2rem; box-shadow: var(--shadow-lg); font-size: 0.88rem; max-width: calc(100% - 1.6rem); transition: transform 0.4s var(--ease), opacity 0.4s var(--ease); opacity: 0; }
.kw-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.kw-toast svg { width: 20px; height: 20px; color: var(--red-2); flex: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, .ticker__move { animation: none !important; transition: none !important; scroll-behavior: auto; } .reveal { opacity: 1; transform: none; } }

/* ---------- Utilities ---------- */
.mt-0{margin-top:0}.mt-1{margin-top:0.6rem}.mt-2{margin-top:1.2rem}.mt-3{margin-top:2rem}.mt-4{margin-top:3rem}
.mb-2{margin-bottom:1.2rem}
.text-muted{color:var(--muted)}
.divider{height:1px;background:var(--line);border:0;margin-block:clamp(2rem,5vw,3.5rem)}
.skip-link{position:absolute;left:-999px;top:0;background:var(--red);color:#fff;padding:0.6rem 1rem;border-radius:0 0 4px 0;z-index:200;font-weight:700}
.skip-link:focus{left:0}
:focus-visible{outline:2px solid var(--red-2);outline-offset:2px;border-radius:3px}
