/* =========================================================
   Topbar — techniczny pasek danych
   ========================================================= */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 0.55rem 0;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar a { text-decoration: none; transition: color 150ms; }
.topbar a:hover { color: var(--red); }
.topbar-group { display: flex; align-items: center; gap: 1.1rem; }
.tb-sep { width: 1px; height: 12px; background: rgba(255, 255, 255, 0.25); }

/* Przełącznik języka */
.lang-switch { display: flex; align-items: center; gap: 0.1rem; }
.lang-switch button {
  appearance: none;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.4rem;
  cursor: pointer;
  transition: color 150ms;
}
.lang-switch button:hover { color: #fff; }
.lang-switch button.is-active {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.8rem 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; flex-shrink: 0; }
.brand-logo { height: 44px; width: auto; }

.nav { display: flex; gap: 1.5rem; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding: 0.3rem 0;
  transition: color 150ms;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--red);
  transition: width 220ms var(--ease);
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 0.8rem; }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: #fff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.menu-toggle span { width: 18px; height: 2px; background: var(--ink); transition: transform 200ms var(--ease), opacity 200ms; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO — ciemny, monumentalny
   ========================================================= */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero .img-slot--hero { position: absolute; inset: 0; background: none; }
.hero .img-slot--hero.img-missing {
  background:
    radial-gradient(ellipse at 15% 20%, rgba(251, 43, 20, 0.28), transparent 50%),
    radial-gradient(ellipse at 90% 85%, rgba(251, 43, 20, 0.1), transparent 45%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 14px),
    linear-gradient(160deg, #343a40, var(--ink) 65%);
}
.hero .img-slot--hero.img-missing::before,
.hero .img-slot--hero.img-missing::after { display: none; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(20, 20, 19, 0.92) 25%, rgba(20, 20, 19, 0.6) 65%, rgba(20, 20, 19, 0.35));
}

.hero-inner { position: relative; z-index: 2; padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 6vw, 5rem); }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: clamp(1.8rem, 3.5vw, 3rem);
}
.hero-meta .meta-index { color: var(--red); }
.meta-dot { width: 5px; height: 5px; background: var(--red); }

.hero h1 {
  color: #fff;
  font-size: clamp(2.7rem, 8vw, 6.2rem);
}
.hero h1 em { color: #fff; }
.hero h1 em span { color: var(--red); }

.hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: clamp(2rem, 4vw, 3.2rem);
}
.hero .lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  max-width: 52ch;
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* Pas statystyk — arkusz danych */
.hero-stats { position: relative; z-index: 2; border-top: 1px solid var(--line-dark); background: rgba(15, 15, 14, 0.55); backdrop-filter: blur(8px); }
.hero-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-stat { padding: 1.5rem 1.8rem; border-left: 1px solid var(--line-dark); }
.hero-stat:first-child { border-left: none; }
.stat-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.5rem;
}
.hero-stat strong {
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* =========================================================
   Ticker
   ========================================================= */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--paper); padding: 0.9rem 0; }
.ticker-track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: ticker 40s linear infinite;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticker-track i { font-style: normal; color: var(--red); font-size: 0.6rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* =========================================================
   Sekcje + nagłówki edytorskie
   ========================================================= */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--tint { background: var(--paper-2); border-block: 1px solid var(--line); }
.section--dark { background: var(--ink); }
.section--dark .sec-head h2 { color: #fff; }
.section--dark .kicker { color: rgba(255, 255, 255, 0.8); }
.section--dark .kicker::after { background: var(--line-dark); }
.section--dark .sec-intro { color: rgba(255, 255, 255, 0.62); }

.sec-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}
.sec-head h2 { font-size: clamp(2.1rem, 4.8vw, 3.9rem); }
.sec-intro { color: var(--muted); font-size: 1.03rem; line-height: 1.7; max-width: 46ch; justify-self: end; padding-bottom: 0.35rem; }
.sec-intro a { color: var(--red); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }

