/* =============================================================================
   JAGI Maszyny — main.css
   Replicates Next.js globals.css + all component styles
   ============================================================================= */

/* ── CSS Custom Properties (overridden by color-scheme.php via wp_head) ─────── */
:root {
  --color-navy:        #272D63;
  --color-navy-light:  #353d82;
  --color-navy-dark:   #1a1f45;
  --color-gold:        #F4A820;
  --color-gold-light:  #f7bc52;
  --color-gold-dark:   #d48f10;
  --color-gray-bg:     #F5F5F5;
  --color-gray-border: #E0E0E0;
  --color-gray-text:   #2C2C2C;
  --color-gray-muted:  #6B7280;

  --font-sans: "IBM Plex Sans", system-ui, sans-serif;

  --shadow-card:       0 2px 16px 0 rgba(26,43,74,0.08);
  --shadow-card-hover: 0 8px 32px 0 rgba(26,43,74,0.16);

  --radius-sm:  0.25rem;
  --radius-md:  0.25rem;
  --radius-xl:  0.25rem;
  --radius-2xl: 0.5rem;
  --radius-3xl: 0.5rem;
}

/* ── Reset & Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-gray-text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  background: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Layout ───────────────────────────────────────────────────────────────────── */
.container-main {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .container-main { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .container-main { padding-left: 2rem; padding-right: 2rem; }
}

.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
@media (min-width: 768px) {
  .section-padding { padding-top: 6rem; padding-bottom: 6rem; }
}

/* ── Typography helpers ───────────────────────────────────────────────────────── */
.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 1rem;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .section-title { font-size: 2.25rem; }
}

.section-subtitle {
  color: var(--color-gray-muted);
  font-size: 1.125rem;
  line-height: 1.75;
}

.section-badge {
  display: inline-block;
  border-left: 2px solid var(--color-gold);
  padding-left: 0.5rem;
  color: var(--color-gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.gold-bar {
  width: 2.5rem;
  height: 3px;
  background-color: var(--color-gold);
  border-radius: 0;
  margin-bottom: 1rem;
}

/* ── Buttons ──────────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-gold);
  color: var(--color-navy);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  transition: background-color 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary:hover { background-color: var(--color-gold-dark); color: var(--color-navy); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid white;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  transition: background-color 0.2s, color 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-secondary:hover { background-color: white; color: var(--color-navy); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid var(--color-navy);
  color: var(--color-navy);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  transition: background-color 0.2s, color 0.2s;
  cursor: pointer;
}
.btn-outline:hover { background-color: var(--color-navy); color: white; }

/* ── Cards ────────────────────────────────────────────────────────────────────── */
.card {
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s;
}
.card:hover { box-shadow: var(--shadow-card-hover); }

/* ── Forms ────────────────────────────────────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--color-gray-border);
  border-radius: var(--radius-md);
  color: var(--color-gray-text);
  background-color: var(--color-gray-bg);
  font-size: 0.875rem;
  font-family: var(--font-sans);
  transition: box-shadow 0.2s, border-color 0.2s, background-color 0.2s;
  outline: none;
  appearance: none;
}
.form-input:focus {
  border-color: var(--color-gold);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(244,168,32,0.12);
}
.form-input:hover:not(:focus) { border-color: rgba(26,43,74,0.25); }
.form-input::placeholder { color: rgba(107,114,128,0.55); }

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

/* ── Navbar ───────────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
  max-width: 240px;
}
.navbar__logo-img {
  display: block;
  width: auto;
  height: 36px;
  max-width: 100%;
  object-fit: contain;
}
.navbar__logo-img--mobile {
  height: 32px;
  max-width: 180px;
}
.navbar__logo-img--footer {
  height: 42px;
  max-width: 280px;
}
/* SVG logo mark — no separate .navbar__logo-mark needed, SVG is inline */
.navbar__logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.navbar__logo-name {
  font-weight: 700;
  font-size: 20px;
  color: white;
  letter-spacing: 0.12em;
  line-height: 1;
}
.navbar__logo-sub {
  font-size: 8px;
  color: var(--color-gold);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-top: 5px;
}

.navbar__nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 1024px) {
  .navbar__nav { display: flex; }
}

.navbar__link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  border-radius: var(--radius-md);
  transition: color 0.15s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.navbar__link:hover { color: rgba(255,255,255,0.9); }
.navbar__link--active { color: var(--color-gold); }

/* Dropdown */
.navbar__dropdown-trigger { position: relative; }
.navbar__dropdown-trigger > .navbar__link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.navbar__dropdown-trigger > .navbar__link svg { width: 14px; height: 14px; transition: transform 0.2s; }
.navbar__dropdown-trigger:hover > .navbar__link svg,
.navbar__dropdown-trigger.is-open > .navbar__link svg { transform: rotate(180deg); }

.navbar__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 540px;
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-gray-border);
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  z-index: 200;
}
.navbar__dropdown-trigger:hover .navbar__dropdown,
.navbar__dropdown-trigger.is-open .navbar__dropdown {
  display: block;
  animation: dropdownOpen 0.18s ease-out forwards;
}
@keyframes dropdownOpen {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px) scaleY(0.97); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scaleY(1); }
}
/* Transparent bridge fills the 8px gap between trigger and dropdown panel
   so hover is not lost when mouse moves through the gap */
.navbar__dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.navbar__dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.navbar__dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid var(--color-gray-border);
  transition: background-color 0.15s;
  text-decoration: none;
}
.navbar__dropdown-item:hover { background: var(--color-gray-bg); }
.navbar__dropdown-item:hover .navbar__dropdown-icon { background: rgba(244,168,32,0.15) !important; }

.navbar__dropdown-icon {
  width: 32px;
  height: 32px;
  background: rgba(26,43,74,0.06);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background-color 0.15s;
}
.navbar__dropdown-icon svg { width: 16px; height: 16px; color: var(--color-navy); }

.navbar__dropdown-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.3;
  margin-bottom: 1px;
}
.navbar__dropdown-sub {
  font-size: 0.75rem;
  color: var(--color-gray-muted);
  line-height: 1.4;
  margin-top: 2px;
}

/* Dropdown footer: "→ Wszystkie produkty" (left) | "Zapytaj nas" button (right) */
.navbar__dropdown-footer {
  border-top: 1px solid var(--color-gray-border);
  background: #fafbfc;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.navbar__dropdown-all {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: none;
  transition: opacity 0.15s;
}
.navbar__dropdown-all:hover { opacity: 0.75; }
.navbar__dropdown-ask {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: var(--color-navy);
  color: white;
  text-decoration: none;
  transition: opacity 0.15s;
}
.navbar__dropdown-ask:hover { opacity: 0.85; color: white; }

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Call button — gold background, navy text (1:1 with Next.js) */
.navbar__call-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-gold);
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-navy);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
@media (min-width: 1024px) { .navbar__call-btn { display: flex; } }
.navbar__call-btn:hover { background: var(--color-gold-dark, #d4901a); }
.navbar__call-btn svg { width: 16px; height: 16px; color: var(--color-navy); }

/* Language switcher — PL|EN pill, 1:1 with Next.js (rounded-md, white border, gold active) */
.navbar__lang-switcher {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0.375rem;
  overflow: hidden;
  line-height: 1;
}
.navbar__lang-switcher a, .navbar__lang-switcher span {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  padding: 0.375rem 0.75rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.navbar__lang-switcher a:hover { color: white; }
.navbar__lang-switcher .lang-current,
.navbar__lang-switcher .current-lang {
  background: var(--color-gold);
  color: var(--color-navy);
}
.navbar__lang-switcher .lang-sep { display: none; }

/* On mobile the language switcher already exists inside mobile menu.
   Hide it from the top bar to free horizontal space. */
@media (max-width: 1023px) {
  .navbar__actions .navbar__lang-switcher { display: none; }
  .navbar__mobile .navbar__lang-switcher {
    min-height: 40px;
  }
  .navbar__mobile .navbar__lang-switcher a,
  .navbar__mobile .navbar__lang-switcher span {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.95rem;
    font-size: 0.8125rem;
  }
}

/* Mobile hamburger */
.navbar__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  color: white;
}
@media (min-width: 1024px) { .navbar__hamburger { display: none; } }
.navbar__hamburger svg { width: 18px; height: 18px; }

/* Mobile menu */
.navbar__mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-navy-dark);
  padding: 1.25rem;
  overflow-y: auto;
  flex-direction: column;
}
.navbar__mobile.is-open { display: flex; }
.navbar__mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.navbar__mobile-close {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.navbar__mobile-close svg { width: 18px; height: 18px; }
.navbar__mobile-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.navbar__mobile-link {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius-md);
  transition: background-color 0.15s;
}
.navbar__mobile-link:hover { background: rgba(255,255,255,0.06); color: white; }
.navbar__mobile-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0.75rem 0;
}

/* Mobile language switcher — full-width, labeled, two big buttons */
.navbar__mobile-lang {
  padding: 0.75rem 1rem 0.25rem;
}
.navbar__mobile-lang__label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.625rem;
}
.navbar__mobile-lang__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.navbar__mobile-lang__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.15);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  background: rgba(255,255,255,0.05);
  cursor: pointer;
}
.navbar__mobile-lang__btn strong {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.75);
  line-height: 1;
}
.navbar__mobile-lang__btn small {
  font-size: 0.6875rem;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0;
}
.navbar__mobile-lang__btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}
.navbar__mobile-lang__btn.is-active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  cursor: default;
}
.navbar__mobile-lang__btn.is-active strong,
.navbar__mobile-lang__btn.is-active small {
  color: var(--color-navy);
}
.navbar__mobile-sub {
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.navbar__mobile-sub-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  border-radius: var(--radius-md);
  transition: color 0.15s;
}
.navbar__mobile-sub-link:hover { color: white; }

/* ── Hero ─────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--color-navy);
}
.hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(255,255,255,0.9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.9) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero__accent {
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--color-gold), transparent);
  opacity: 0.7;
}
.hero__content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}
@media (min-width: 768px) { .hero__content { padding: 6rem 0; } }
@media (min-width: 1024px) { .hero__content { padding: 7rem 0; } }
.hero__inner { max-width: 48rem; }
.hero__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  line-height: 1.25;
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .hero__title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .hero__title { font-size: 3rem; } }
.hero__subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 36rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .hero__subtitle { font-size: 1.0625rem; } }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero__actions .btn-primary { font-size: 0.875rem; }
@media (min-width: 768px) {
  .hero__actions .btn-primary,
  .hero__actions .btn-secondary { padding: 1rem 2rem; }
}

/* Hero stats strip */
.hero__stats {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero__stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem 0;
}
@media (min-width: 768px) {
  .hero__stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 1.5rem 0;
  }
}
.hero__stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .hero__stat {
    justify-content: center;
    border-right: 1px solid rgba(255,255,255,0.08);
  }
  .hero__stat:last-child { border-right: none; }
}
.hero__stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1;
}
@media (min-width: 768px) { .hero__stat-value { font-size: 1.5rem; } }
.hero__stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.35;
  max-width: 8rem;
}

/* ── Page Hero (inner pages) ──────────────────────────────────────────────────── */
.page-hero {
  background-color: var(--color-navy);
  padding: 2.5rem 0;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .page-hero { padding: 4rem 0; } }
@media (min-width: 1024px) { .page-hero { padding: 5rem 0; } }
.page-hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(255,255,255,1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,1) 1px, transparent 1px);
  background-size: 40px 40px;
}
.page-hero__accent {
  position: absolute;
  left: 0; top: 0;
  width: 4px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--color-gold), transparent);
  opacity: 0.6;
}
.page-hero__inner { position: relative; z-index: 10; }
.page-hero__breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.page-hero__breadcrumbs a { transition: color 0.2s; }
.page-hero__breadcrumbs a:hover { color: rgba(255,255,255,0.7); }
.page-hero__breadcrumbs span { color: rgba(255,255,255,0.6); }
.page-hero__breadcrumbs-sep { color: rgba(255,255,255,0.25); }
.page-hero__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
  max-width: 48rem;
  line-height: 1.25;
}
@media (min-width: 768px) { .page-hero__title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .page-hero__title { font-size: 3rem; } }
.page-hero__subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 40rem;
}
@media (min-width: 768px) { .page-hero__subtitle { font-size: 1.0625rem; } }

/* ── Categories Section — tab interface ───────────────────────────────────────── */

/* Layout: [260px tab list] [1fr content panel] on desktop, stacked on mobile */
.cat-tabs-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .cat-tabs-layout { grid-template-columns: 260px 1fr; gap: 2.5rem; }
}

/* Tab list */
.cat-tabs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
@media (max-width: 520px) {
  .cat-tabs-list { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) {
  .cat-tabs-list { display: flex; flex-direction: column; }
}

/* Individual tab button */
.cat-tab {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s, border-color 0.2s;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: inherit;
  font-family: inherit;
}
.cat-tab--active {
  background: rgba(244,168,32,0.12);
  border-color: rgba(244,168,32,0.35);
}
.cat-tab__icon {
  width: 36px; height: 36px;
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  transition: background 0.2s;
  color: rgba(255,255,255,0.4);
}
.cat-tab--active .cat-tab__icon {
  background: rgba(244,168,32,0.2);
  color: var(--color-gold, #f4a820);
}
.cat-tab__num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  line-height: 1;
}
.cat-tab--active .cat-tab__num { color: var(--color-gold, #f4a820); }
.cat-tab__label {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255,255,255,0.55);
}
.cat-tab--active .cat-tab__label { color: #fff; }

/* Content panel inner: image | text side by side */
.cat-panel-inner {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .cat-panel-inner { grid-template-columns: 1fr 1fr; }
}

/* Image stack */
.cat-images { position: relative; min-height: 240px; }
@media (min-width: 640px) { .cat-images { min-height: 420px; } }

.cat-img-slot {
  grid-area: 1/1;
  position: relative;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cat-img-slot--active {
  opacity: 1;
  pointer-events: auto;
}

/* Text stack */
.cat-text-slot {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s;
}
.cat-text-slot--active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* CTA button hover */
.cat-cta-btn:hover { opacity: 0.85; }

/* ── Why JAGI ─────────────────────────────────────────────────────────────────── */
.why-jagi { padding: 4rem 0; background: white; }
@media (min-width: 768px) { .why-jagi { padding: 6rem 0; } }
.why-jagi__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .why-jagi__grid { grid-template-columns: 1fr 2fr; gap: 5rem; align-items: start; }
}
.why-jagi__left {}
.why-jagi__stats {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
}
/* Each stat: number + label side by side (flex items-baseline) */
.why-jagi__stats > div {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.why-jagi__stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1;
  tabular-nums: true;
}
.why-jagi__stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-muted);
}

.why-jagi__reasons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .why-jagi__reasons { grid-template-columns: 1fr 1fr; } }

.why-jagi__reason {
  position: relative;
  background: var(--color-gray-bg);
  border: 1px solid var(--color-gray-border);
  border-radius: 1rem;
  padding: 1.5rem;
  overflow: hidden;
}
.why-jagi__reason-number {
  position: absolute;
  top: 0.5rem; right: 0.75rem;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(26,43,74,0.04);
  line-height: 1;
  user-select: none;
}
.why-jagi__reason-icon {
  width: 44px; height: 44px;
  background: rgba(26,43,74,0.07);
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  transition: background 0.2s;
}
.why-jagi__reason-icon svg { width: 20px; height: 20px; color: var(--color-navy); }
.why-jagi__reason-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
  padding-right: 2rem;
}
.why-jagi__reason-desc { font-size: 0.8125rem; color: var(--color-gray-muted); line-height: 1.6; }

/* ── Process Steps ────────────────────────────────────────────────────────────── */
.process { padding: 4rem 0; background: var(--color-navy); }
@media (min-width: 768px) { .process { padding: 6rem 0; } }
.process__header { text-align: center; max-width: 40rem; margin: 0 auto 3.5rem; }
.process__header .gold-bar { margin: 0 auto 1rem; }
.process__header h2 { color: white; font-size: 1.875rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .process__header h2 { font-size: 2.25rem; } }
.process__header p { color: rgba(255,255,255,0.6); font-size: 1.0625rem; }

.process__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
}
@media (min-width: 640px) { .process__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .process__grid { grid-template-columns: repeat(4, 1fr); } }

.process__connector {
  display: none;
  position: absolute;
  top: 2.5rem;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: rgba(255,255,255,0.1);
  z-index: 0;
}
@media (min-width: 1024px) { .process__connector { display: block; } }

.process__step {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
}
.process__step-num {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(244,168,32,0.5);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.process__step-icon {
  position: relative;
  width: 80px; height: 80px;
  background: var(--color-navy-light);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.process__step-icon svg { width: 32px; height: 32px; color: var(--color-gold); }
.process__step-dot {
  display: none;
  position: absolute;
  right: -1rem; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  background: rgba(244,168,32,0.4);
  border-radius: 50%;
}
@media (min-width: 1024px) { .process__step-dot { display: block; } }
.process__step-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}
.process__step-desc { font-size: 0.875rem; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* ── Realizations Preview ─────────────────────────────────────────────────────── */
.realizations { padding: 4rem 0; background: white; }
@media (min-width: 768px) { .realizations { padding: 6rem 0; } }
.realizations__header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .realizations__header { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
}
/* "Wszystkie realizacje" link (simple, not btn-outline) */
.realizations__all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.realizations__all-link:hover { opacity: 0.7; }
/* Hover overlay on card images */
.realization-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,43,74,0.55);
  opacity: 0;
  transition: opacity 0.3s;
}
.realization-card:hover .realization-card__overlay { opacity: 1; }
.realization-card__overlay-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--color-gold);
  color: var(--color-navy);
}
.realizations__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .realizations__grid { grid-template-columns: repeat(3, 1fr); } }

.realization-card {
  display: block;
  background: white;
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: var(--shadow-card);
}
.realization-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.realization-card__image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-gray-bg);
  position: relative;
}
.realization-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.realization-card:hover .realization-card__image img { transform: scale(1.03); }
.realization-card__cat {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--color-navy);
  color: var(--color-gold);
  padding: 3px 10px;
  border-radius: 20px;
}
.realization-card__body { padding: 1.25rem; }
.realization-card__machine { font-size: 0.75rem; color: var(--color-gray-muted); margin-bottom: 0.375rem; }
.realization-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.realization-card__industry { font-size: 0.8125rem; color: var(--color-gray-muted); margin-bottom: 0.75rem; }
.realization-card__cta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-navy);
  transition: color 0.2s;
}
.realization-card:hover .realization-card__cta { color: var(--color-gold); }
.realization-card__cta svg { width: 14px; height: 14px; }

/* ── Products overview page ───────────────────────────────────────────────────── */
.prod-overview-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}
@media (min-width: 640px) {
  .prod-overview-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.prod-overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) { .prod-overview-grid { grid-template-columns: 1fr 1fr; } }

.prod-brands-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .prod-brands-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .prod-brands-grid { grid-template-columns: repeat(4, 1fr); } }

.prod-cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) { .prod-cta-grid { grid-template-columns: 1fr auto; } }

/* Card hover effects */
.prod-overview-card:hover { transform: translateY(-4px); }
.prod-overview-card:hover .prod-overview-card__img { transform: scale(1.05); }
.prod-overview-card:hover .prod-overview-card__arrow { transform: translateX(4px); }
.prod-brand-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

/* ── Footer CTA ───────────────────────────────────────────────────────────────── */
.footer-cta { background: var(--color-gold); }
.footer-cta__inner {
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 768px) { .footer-cta__inner { flex-direction: row; } }
.footer-cta__title { font-size: 1.25rem; font-weight: 700; color: var(--color-navy); }
.footer-cta__subtitle { font-size: 0.875rem; margin-top: 0.25rem; color: rgba(26,43,74,0.7); }
.footer-cta__btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-navy);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: background-color 0.2s;
}
.footer-cta__btn:hover { background: var(--color-navy-dark); color: white; }
.footer-cta__btn svg { width: 16px; height: 16px; }

/* ── Footer ───────────────────────────────────────────────────────────────────── */
.footer { background: var(--color-navy); padding: 4rem 0 2rem; }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; } }

.footer__brand .navbar__logo-mark { margin-bottom: 1rem; }
.footer__brand .navbar__logo {
  max-width: 280px;
}
.footer__tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
  max-width: 22rem;
  margin-bottom: 1.5rem;
}
.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.footer__contact-item a { color: rgba(255,255,255,0.5); transition: color 0.2s; }

@media (max-width: 639px) {
  .navbar__logo {
    max-width: 180px;
  }
  .navbar__logo-img { height: 32px; }
  .navbar__logo-img--footer { height: 36px; max-width: 220px; }
}
@media (max-width: 420px) {
  .navbar__inner { height: 58px; }
  .navbar__logo { max-width: 150px; }
  .navbar__logo-img { height: 28px; }
  .navbar__hamburger { width: 36px; height: 36px; }
  .navbar__hamburger svg { width: 16px; height: 16px; }
}
.footer__contact-item a:hover { color: var(--color-gold); }
.footer__contact-item svg { width: 14px; height: 14px; color: rgba(255,255,255,0.3); flex-shrink: 0; }

.footer__col-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1rem;
}
.footer__col-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__col-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer__col-links a:hover { color: white; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer__copyright { font-size: 0.8125rem; color: rgba(255,255,255,0.25); }
.footer__legal { display: flex; gap: 1.25rem; }
.footer__legal a { font-size: 0.8125rem; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer__legal a:hover { color: rgba(255,255,255,0.7); }

/* ── Call Modal ───────────────────────────────────────────────────────────────── */
.call-modal__overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.call-modal__overlay.is-open { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.call-modal__card {
  background: white;
  border-radius: var(--radius-2xl);
  width: 100%;
  max-width: 28rem;
  overflow: hidden;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.call-modal__header {
  background: var(--color-navy);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.call-modal__header-icon {
  width: 44px; height: 44px;
  background: rgba(244,168,32,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.call-modal__header-icon svg { width: 20px; height: 20px; color: var(--color-gold); }
.call-modal__header h3 { font-size: 1.125rem; font-weight: 700; color: white; margin-bottom: 0.25rem; }
.call-modal__header p { font-size: 0.875rem; color: rgba(255,255,255,0.55); }
.call-modal__close {
  margin-left: auto;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  flex-shrink: 0;
  transition: background-color 0.15s;
}
.call-modal__close:hover { background: rgba(255,255,255,0.15); }
.call-modal__close svg { width: 16px; height: 16px; }

.call-modal__body { padding: 1.5rem; }
.call-modal__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: background-color 0.15s;
}
.call-modal__item:hover { background: var(--color-gray-bg); }
.call-modal__item-icon {
  width: 40px; height: 40px;
  background: rgba(26,43,74,0.06);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.call-modal__item-icon svg { width: 18px; height: 18px; color: var(--color-navy); }
.call-modal__item-label { font-size: 0.75rem; color: var(--color-gray-muted); margin-bottom: 2px; }
.call-modal__item-value { font-size: 0.9375rem; font-weight: 600; color: var(--color-navy); }

.call-modal__footer { padding: 1rem 1.5rem 1.5rem; }
.call-modal__footer a { display: block; width: 100%; text-align: center; justify-content: center; }

/* ── Product item — ProductSection.tsx replica ────────────────────────────────── */
.prod-item {
  padding: 4rem 0;
  border-bottom: 1px solid var(--color-gray-border);
  scroll-margin-top: 8rem;
}
.prod-item:last-child { border-bottom: none; }

.prod-item__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .prod-item__grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}
@media (min-width: 1024px) {
  .prod-item--reverse .prod-item__img-col { order: 2; }
  .prod-item--reverse .prod-item__content  { order: 1; }
}

/* Image col */
.prod-item__img-col { position: relative; }
.prod-item__img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-gray-bg);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.prod-item__carousel {
  position: relative;
  width: 100%;
  height: 100%;
}
.prod-item__carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}
.prod-item__carousel-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}
.prod-item__carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(14,26,45,0.6);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}
.prod-item__carousel-btn--prev { left: 0.75rem; }
.prod-item__carousel-btn--next { right: 0.75rem; }
.prod-item__carousel-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 0.375rem;
  z-index: 3;
}
.prod-item__carousel-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
}
.prod-item__carousel-dot.is-active {
  background: var(--color-gold);
}
.prod-item__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-gray-bg) 0%, #e0e8f2 100%);
}
.prod-item__placeholder svg { width: 3.5rem; height: 3.5rem; opacity: 0.3; }

/* Brand badge — absolute, bottom-left of image */
.prod-item__brand-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--color-navy);
  border-radius: var(--radius-xl);
  padding: 0.625rem 0.875rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.prod-item__brand-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: rgba(244,168,32,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.prod-item__brand-icon svg { width: 0.875rem; height: 0.875rem; color: var(--color-gold); }
.prod-item__brand-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
}

/* Ghost number — top-right of image */
.prod-item__ghost-num {
  position: absolute;
  top: 0.75rem;
  right: 1.25rem;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255,255,255,0.06);
  pointer-events: none;
  user-select: none;
}

/* Gold border decoration — bottom-right of image col */
.prod-item__gold-border {
  position: absolute;
  bottom: -0.75rem;
  right: -0.75rem;
  width: 5rem;
  height: 5rem;
  border-radius: var(--radius-xl);
  border: 2px solid rgba(244,168,32,0.15);
  z-index: -1;
  pointer-events: none;
}

/* Content col */
.prod-item__content { display: flex; flex-direction: column; justify-content: center; }

.prod-item__meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.prod-item__counter {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.prod-item__meta-line { height: 1px; flex: 1; background: var(--color-gray-border); }
.prod-item__brand-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(244,168,32,0.12);
  color: var(--color-gold-dark, #c68a00);
  flex-shrink: 0;
}

.prod-item__tagline {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gold);
  margin-bottom: 0.375rem;
}
.prod-item__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.3;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) { .prod-item__title { font-size: 1.875rem; } }

.prod-item__desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-gray-muted);
  margin-bottom: 1.5rem;
}

/* Specs box */
.prod-item__specs-box {
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  background: var(--color-gray-bg);
  border: 1px solid var(--color-gray-border);
}
.prod-item__specs-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gray-muted);
  margin-bottom: 0.75rem;
}
.prod-item__specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.375rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 640px) { .prod-item__specs-grid { grid-template-columns: 1fr 1fr; } }

.prod-item__spec { display: flex; align-items: flex-start; gap: 0.5rem; }
.prod-item__spec-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--color-gold);
  flex-shrink: 0;
  margin-top: 0.375rem;
}
.prod-item__spec-text { font-size: 0.75rem; line-height: 1.4; color: var(--color-gray-text); }

.prod-item__apps {
  font-size: 0.75rem;
  color: rgba(107,114,128,0.55);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-gray-border);
}

/* CTA button — navy, white text */
.prod-item__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--color-navy);
  color: white;
  text-decoration: none;
  transition: opacity 0.15s;
}
.prod-item__cta:hover { opacity: 0.85; color: white; }
.prod-item__cta svg { width: 1rem; height: 1rem; flex-shrink: 0; }

/* Bottom CTA row (navy-dark section) */
.prod-cta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) { .prod-cta-row { grid-template-columns: 1fr auto; } }

.prod-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--color-gold);
  color: var(--color-navy);
  text-decoration: none;
  transition: opacity 0.15s;
}
.prod-cta-btn:hover { opacity: 0.85; color: var(--color-navy); }
.prod-cta-btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }

/* ── Plyny page ───────────────────────────────────────────────────────────────── */
.plyny-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 0;
}
@media (min-width: 1024px) { .plyny-intro-grid { grid-template-columns: 1fr 1fr; } }

.plyny-intro-img-wrap {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.plyny-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) { .plyny-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .plyny-cards-grid { grid-template-columns: repeat(3, 1fr); } }

.plyny-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-gray-border);
  background: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}
.plyny-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

.plyny-card--cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  border: 2px dashed var(--color-gray-border);
  background: var(--color-gray-bg);
  box-shadow: none;
}
.plyny-card--cta:hover { box-shadow: none; }

/* ── Contact page ─────────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 380px; gap: 3rem; } }

.contact-sidebar__card {
  background: var(--color-navy-dark, #0e1a2d);
  border-radius: 1rem;
  padding: 1.75rem;
}
.contact-sidebar__item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-sidebar__item:last-child { border-bottom: none; }
.contact-sidebar__icon {
  width: 40px; height: 40px;
  background: rgba(244,168,32,0.1);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-sidebar__icon svg { width: 18px; height: 18px; color: var(--color-gold); }
.contact-sidebar__label { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-bottom: 2px; }
.contact-sidebar__value { font-size: 0.9375rem; font-weight: 600; color: white; }
.contact-sidebar__hint { font-size: 0.75rem; color: rgba(255,255,255,0.35); margin-top: 1px; }

.contact-guarantees { margin-top: 1.25rem; }
.contact-guarantees__title {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
  margin-bottom: 0.75rem;
}
.contact-guarantee-item {
  display: flex; align-items: center; gap: 0.625rem;
  font-size: 0.875rem; color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
}
.contact-guarantee-item svg { width: 14px; height: 14px; color: var(--color-gold); flex-shrink: 0; }

.contact-map { background: var(--color-gray-bg); border-radius: var(--radius-xl); padding: 1.5rem; border: 1px solid var(--color-gray-border); }
.contact-map__link { color: var(--color-gold); font-size: 0.875rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.375rem; transition: color 0.2s; }
.contact-map__link:hover { color: var(--color-gold-dark); }

/* ── FAQ Accordion ────────────────────────────────────────────────────────────── */
.faq { padding: 4rem 0; background: var(--color-gray-bg); }
@media (min-width: 768px) { .faq { padding: 6rem 0; } }
.faq__header { text-align: center; max-width: 40rem; margin: 0 auto 3rem; }
.faq__list { max-width: 48rem; margin: 0 auto; }
.faq__item { border: 1px solid var(--color-gray-border); border-radius: var(--radius-xl); background: white; margin-bottom: 0.75rem; overflow: hidden; }
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-navy);
  transition: background-color 0.15s;
}
.faq__question:hover { background: rgba(26,43,74,0.02); }
.faq__question svg { width: 18px; height: 18px; color: var(--color-gold); flex-shrink: 0; transition: transform 0.25s; }
.faq__item.is-open .faq__question svg { transform: rotate(180deg); }
.faq__answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--color-gray-muted);
  line-height: 1.7;
}
.faq__item.is-open .faq__answer { display: block; }

/* ── Contact FAQ (divide-y, 1:1 Next.js FaqAccordion) ────────────────────────── */
.kontakt-faq {
  border-top: 1px solid var(--color-gray-border);
}
.kontakt-faq__item {
  border-bottom: 1px solid var(--color-gray-border);
}
.kontakt-faq__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.kontakt-faq__q {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--color-navy);
  transition: color 0.15s;
}
.kontakt-faq__item.is-open .kontakt-faq__q { color: var(--color-gold); }
.kontakt-faq__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-gray-muted);
  transition: transform 0.3s, color 0.15s;
}
.kontakt-faq__item.is-open .kontakt-faq__chevron {
  transform: rotate(180deg);
  color: var(--color-gold);
}
.kontakt-faq__ans {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
.kontakt-faq__item.is-open .kontakt-faq__ans {
  max-height: 600px;
  opacity: 1;
}
.kontakt-faq__ans p {
  padding-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-gray-muted);
}

/* ── Contact Form ─────────────────────────────────────────────────────────────── */
.contact-form-wrap {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem 2.5rem;
  border: 1px solid var(--color-gray-border);
}
.cf-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1.125rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.cf-notice--success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}
.cf-notice--success strong {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #15803d;
}
.cf-notice--success p {
  margin: 0;
  color: #166534;
  font-size: 0.875rem;
}
.cf-notice--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form .form-label { display: block; }
.contact-form select.form-input { cursor: pointer; }

/* 2-column row inside contact form */
.cf-row-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .cf-row-2col { grid-template-columns: 1fr 1fr; }
}

/* CF7 overrides */
.wpcf7 { width: 100%; }
.wpcf7-form { display: flex; flex-direction: column; gap: 1rem; }
.wpcf7-form .form-row { display: flex; flex-direction: column; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select { @apply form-input; }
.wpcf7-form input[type="submit"] { width: 100%; justify-content: center; }
.wpcf7-not-valid-tip { font-size: 0.75rem; color: #dc2626; margin-top: 4px; }
.wpcf7-response-output {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  border: none !important;
}
.wpcf7-mail-sent-ok { background: rgba(22,163,74,0.1); color: #15803d; }
.wpcf7-mail-sent-ng, .wpcf7-validation-errors { background: rgba(220,38,38,0.1); color: #dc2626; }

/* ── Mobile consistency pack (CTA + contact section) ───────────────────────── */
@media (max-width: 767px) {
  .footer-cta__inner,
  .prod-cta-row,
  .prod-cta-grid,
  .about-dotacje-card {
    gap: 1rem;
  }

  .footer-cta__inner > div,
  .prod-cta-row > div,
  .prod-cta-grid > div:first-child,
  .about-dotacje-card > div:first-child {
    width: 100%;
    text-align: left;
  }

  .footer-cta__btn,
  .prod-cta-btn,
  .prod-cta-grid > div:last-child > a,
  .about-dotacje-card > div:last-child > a {
    display: flex !important;
    width: 100%;
    justify-content: center;
  }

  .contact-form-wrap {
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 640px) {
  .kontakt-faq__q {
    font-size: 0.9375rem;
  }
  .kontakt-faq__ans p {
    font-size: 0.9375rem;
    line-height: 1.6;
  }
  .kontakt-faq__btn {
    padding: 1rem 0;
  }
  .contact-faq-header__title {
    font-size: 1.5rem !important;
    line-height: 1.25;
  }
  .contact-faq-header__subtitle {
    font-size: 0.95rem !important;
    line-height: 1.55;
  }
}

@media (max-width: 360px) {
  .container-main {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .navbar__logo { max-width: 132px; }
  .navbar__logo-img { height: 26px; }
  .navbar__hamburger { width: 34px; height: 34px; }
  .navbar__mobile { padding: 1rem 0.875rem; }
  .navbar__mobile-link { padding: 0.75rem 0.875rem; font-size: 0.95rem; }
  .navbar__mobile-sub-link { padding: 0.625rem 0.5rem; font-size: 0.875rem; }

  .footer-cta__title,
  .prod-cta-row h2,
  .prod-cta-grid h3 {
    font-size: 1.125rem !important;
    line-height: 1.3;
  }

  .footer-cta__btn,
  .prod-cta-btn {
    min-height: 42px;
    padding: 0.75rem 1rem;
  }
}

/* ── About page ───────────────────────────────────────────────────────────────── */
.about-intro {
  padding: 4rem 0;
  background: white;
}
@media (min-width: 768px) { .about-intro { padding: 6rem 0; } }
.about-intro__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (min-width: 1024px) { .about-intro__grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

/* image column has relative positioning for decorative elements */
.about-intro__image-col { position: relative; }

/* Stats strip (border top+bottom, py-8, 2→4 cols, centered text, font-black) */
.about-stats {
  background: var(--color-gray-bg);
  padding: 2rem 0;
  border-top: 1px solid var(--color-gray-border);
  border-bottom: 1px solid var(--color-gray-border);
}
.about-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}
@media (min-width: 1024px) { .about-stats__grid { grid-template-columns: repeat(4, 1fr); } }
.about-stat { text-align: center; }
.about-stat__value {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--color-navy);
  display: block;
  line-height: 1;
  margin-bottom: 0.375rem;
}
@media (min-width: 768px) { .about-stat__value { font-size: 3rem; } }
.about-stat__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-muted);
}

/* Partners grid — max 2 columns on o-nas (Next.js: sm:grid-cols-2) */
.about-partners { background: var(--color-navy-dark); padding: 4rem 0; }
@media (min-width: 768px) { .about-partners { padding: 6rem 0; } }
.about-partners__header { max-width: 40rem; margin: 0 auto 3rem; }
.about-partners__header h2 { color: white; }
.about-partners__header p { color: rgba(255,255,255,0.55); }
.about-partners__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .about-partners__grid { grid-template-columns: 1fr 1fr; } }
.about-partner-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  transition: all 0.2s;
}
.about-partner-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
  background: rgba(244,168,32,0.12);
}
@media (max-width: 640px) {
  .about-partner-card {
    flex-direction: column;
    gap: 0.875rem;
  }
  .about-partner-card__icon {
    margin-top: 0;
  }
}

/* Dotacje CTA card — navy bg, button on the right on md+ (1:1 Next.js grid-cols-[1fr_auto]) */
.about-dotacje-card {
  background: var(--color-navy);
  border-radius: 1rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.5rem;
}
@media (min-width: 768px) {
  .about-dotacje-card { grid-template-columns: 1fr auto; padding: 3rem; }
}
.about-dotacje-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.about-dotacje-head__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(244,168,32,0.15);
}
@media (max-width: 640px) {
  .about-dotacje-head {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.partner-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  transition: border-color 0.2s, background-color 0.2s;
}
.partner-card:hover { border-color: rgba(244,168,32,0.25); background: rgba(255,255,255,0.06); }
.partner-card__icon {
  width: 48px; height: 48px;
  background: rgba(244,168,32,0.1);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.partner-card__icon svg { width: 22px; height: 22px; color: var(--color-gold); }
.partner-card__name { font-size: 1.125rem; font-weight: 700; color: white; margin-bottom: 0.25rem; }
.partner-card__tagline { font-size: 0.75rem; color: var(--color-gold); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.75rem; }
.partner-card__stat {
  display: inline-block;
  font-size: 0.6875rem; font-weight: 700;
  background: rgba(244,168,32,0.12);
  color: var(--color-gold);
  padding: 2px 10px; border-radius: 20px;
  margin-bottom: 0.75rem;
}
.partner-card__desc { font-size: 0.875rem; color: rgba(255,255,255,0.45); line-height: 1.6; margin-bottom: 0.75rem; }
.partner-card__url { font-size: 0.75rem; color: rgba(255,255,255,0.2); }

/* ── Dotacje page ─────────────────────────────────────────────────────────────── */
.dotacje-steps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .dotacje-steps__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dotacje-steps__grid { grid-template-columns: repeat(4, 1fr); } }

.dotacje-step { background: white; border-radius: var(--radius-xl); padding: 1.75rem; box-shadow: var(--shadow-card); }
.dotacje-step__num {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--color-gold);
  margin-bottom: 0.75rem;
}
.dotacje-step__title { font-size: 1rem; font-weight: 700; color: var(--color-navy); margin-bottom: 0.5rem; }
.dotacje-step__desc { font-size: 0.875rem; color: var(--color-gray-muted); line-height: 1.6; }

.dotacje-programs__grid,
.dotacje-programs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .dotacje-programs__grid,
  .dotacje-programs-grid { grid-template-columns: repeat(2, 1fr); }
}
.dotacje-program {
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  background: white;
}
.dotacje-program__icon {
  width: 40px; height: 40px;
  background: rgba(244,168,32,0.1);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.875rem;
}
.dotacje-program__icon svg { width: 18px; height: 18px; color: var(--color-gold); }
.dotacje-program__title { font-size: 0.9375rem; font-weight: 700; color: var(--color-navy); margin-bottom: 0.5rem; }
.dotacje-program__desc { font-size: 0.875rem; color: var(--color-gray-muted); line-height: 1.6; }

/* ── Gallery page ─────────────────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  border: 0;
  padding: 0;
  width: 100%;
  text-align: left;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item__overlay {
  position: absolute; inset: 0;
  background: rgba(26,43,74,0.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__overlay svg { width: 28px; height: 28px; color: white; }

.gallery-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) { .gallery-video-grid { grid-template-columns: repeat(2, 1fr); } }

.gallery-video-item {
  width: 100%;
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius-md);
  background: white;
  padding: 0;
  overflow: hidden;
  text-align: left;
  transition: box-shadow 0.2s, transform 0.2s;
}
.gallery-video-item:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.gallery-video-item__media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.gallery-video-item__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  transition: background 0.2s;
}
.gallery-video-item:hover .gallery-video-item__play {
  background: rgba(0,0,0,0.55);
}
.gallery-video-item__play svg {
  width: 54px;
  height: 54px;
  color: var(--color-gold);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}
.gallery-video-item__media > svg {
  width: 54px;
  height: 54px;
  color: var(--color-gold);
}
.gallery-video-item__title {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-navy);
}
.gallery-video-item--native {
  display: flex;
  flex-direction: column;
  cursor: default;
  transform: none !important;
}
.gallery-video-item--native:hover {
  box-shadow: none;
  transform: none;
}
.gallery-video-item--native .gallery-video-item__title {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: 1px solid var(--color-gray-border);
}

/* Lightbox */
.gallery-lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center;
}
.gallery-lightbox.is-open { display: flex; }
.gallery-lightbox__img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius-md); }
.gallery-lightbox__close {
  position: absolute; top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; cursor: pointer; transition: background-color 0.15s;
}
.gallery-lightbox__close:hover { background: rgba(255,255,255,0.2); }
.gallery-lightbox__close svg { width: 20px; height: 20px; }
.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: background-color 0.15s;
}
.gallery-lightbox__nav:hover { background: rgba(255,255,255,0.2); }
.gallery-lightbox__nav svg { width: 20px; height: 20px; }
.gallery-lightbox__nav--prev { left: 1rem; }
.gallery-lightbox__nav--next { right: 1rem; }

.gallery-video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 310;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.gallery-video-modal.is-open { display: flex; }
.gallery-video-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
}
.gallery-video-modal__close svg { width: 20px; height: 20px; }
.gallery-video-modal__frame {
  width: min(1100px, 92vw);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}
.gallery-video-modal__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Realizacje archive ────────────────────────────────────────────────────────── */
.realizacje-filter {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 2.5rem;
}
/* Sticky tab-style filter bar (1:1 Next.js) */
.realizacje-filter-bar { line-height: 1; }

.realizacje-filter__btn {
  border: none;
  background: transparent;
  color: var(--color-gray-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 1rem 1.25rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.realizacje-filter__btn:hover {
  color: var(--color-gold);
}
.realizacje-filter__btn.is-active {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
  background: transparent;
}
.realizacje-filter__btn.is-active .realizacje-filter__count {
  background: rgba(244,168,32,0.15);
  color: var(--color-gold);
}
.realizacje-filter__count {
  font-size: 0.75rem;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  font-weight: 500;
  background: var(--color-gray-bg);
  color: var(--color-gray-muted);
  transition: background 0.15s, color 0.15s;
}

.realizacje-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .realizacje-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .realizacje-grid { grid-template-columns: repeat(3, 1fr); } }

/* Single realizacja */
.single-realizacja { padding: 4rem 0; }
.single-realizacja__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) { .single-realizacja__grid { grid-template-columns: 2fr 1fr; gap: 4rem; } }
.single-realizacja__section { margin-bottom: 2.5rem; }
.single-realizacja__section-title {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-gray-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-gold);
  display: inline-block;
}
.single-realizacja__text { font-size: 0.9375rem; color: var(--color-gray-text); line-height: 1.75; }
.single-realizacja__sidebar-card {
  background: var(--color-gray-bg);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.single-realizacja__meta-item {
  display: flex; flex-direction: column;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--color-gray-border);
}
.single-realizacja__meta-item:last-child { border-bottom: none; }
.single-realizacja__meta-label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-gray-muted); margin-bottom: 2px; }
.single-realizacja__meta-value { font-size: 0.9375rem; font-weight: 600; color: var(--color-navy); }

/* ── Products overview page ────────────────────────────────────────────────────── */
.products-overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .products-overview-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products-overview-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Quick nav (product pages) ────────────────────────────────────────────────── */
.product-quick-nav {
  border-bottom: 1px solid var(--color-gray-border);
  background: white;
  position: sticky;
  top: 65px;
  z-index: 30;
}
.product-quick-nav__inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.product-quick-nav__inner::-webkit-scrollbar { display: none; }
.product-quick-nav__item {
  display: inline-flex;
  align-items: center !important;
  gap: 0.5rem;
  padding: 1rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-muted);
  white-space: nowrap;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color 0.15s, box-shadow 0.15s;
}
.product-quick-nav__item:hover { color: var(--color-gold); }
.product-quick-nav__item--active {
  color: var(--color-gold);
  box-shadow: inset 0 -2px 0 var(--color-gold);
}
.product-quick-nav__num {
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(26,43,74,0.25);
  transition: color 0.15s;
}
.product-quick-nav__item--active .product-quick-nav__num { color: var(--color-gold); }

/* ── Disclaimer block ─────────────────────────────────────────────────────────── */
.disclaimer {
  display: flex; gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-gray-border);
  background: #fafbfc;
}
.disclaimer svg { width: 20px; height: 20px; color: var(--color-gray-muted); flex-shrink: 0; margin-top: 2px; }
.disclaimer__title { font-size: 0.875rem; font-weight: 600; color: var(--color-navy); margin-bottom: 0.375rem; }
.disclaimer__text { font-size: 0.875rem; color: var(--color-gray-muted); line-height: 1.65; }
@media (max-width: 640px) {
  .disclaimer {
    flex-direction: column;
    gap: 0.625rem;
  }
  .disclaimer svg {
    margin-top: 0;
  }
}

/* ── 404 ──────────────────────────────────────────────────────────────────────── */
.error-404 { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4rem 1rem; }
.error-404__code { font-size: 5rem; font-weight: 800; color: var(--color-gray-border); line-height: 1; margin-bottom: 1rem; }
.error-404__title { font-size: 1.5rem; font-weight: 700; color: var(--color-navy); margin-bottom: 0.75rem; }
.error-404__desc { color: var(--color-gray-muted); margin-bottom: 2rem; }

/* ── Utilities ────────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-white { color: white; }
.text-gold { color: var(--color-gold); }
.text-navy { color: var(--color-navy); }
.text-muted { color: var(--color-gray-muted); }
.bg-navy { background-color: var(--color-navy); }
.bg-navy-dark { background-color: var(--color-navy-dark); }
.bg-gray { background-color: var(--color-gray-bg); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Animations ───────────────────────────────────────────────────────────────── */
/* anim-page: intentionally no animation — translateY causes layout shift under navbar */
.anim-page { }

/* ── Responsive helpers ───────────────────────────────────────────────────────── */
@media (max-width: 639px) { .hide-mobile { display: none !important; } }
@media (min-width: 640px) { .hide-desktop { display: none !important; } }

/* ── WordPress editor alignment ───────────────────────────────────────────────── */
.wp-block-image img { border-radius: var(--radius-md); }
.aligncenter { display: block; margin: 0 auto; }
.wp-caption { max-width: 100%; }
