/* =========================================================
   SECURITY SYSTEMS — GLOBAL STYLESHEET
   Premium, dark, technologiczny design system
   ========================================================= */

/* Fonts loaded non-blocking via <link> in HTML head */

:root {
  /* Backgrounds */
  --bg-body:        #06080F;
  --bg-darker:      #04050A;
  --bg-section:     #0A0E1A;
  --bg-section-alt: #10151F;
  --bg-card:        #141A26;
  --bg-card-alt:    #1A1D29;

  /* Accent */
  --accent:        #FF6B00;
  --accent-2:      #F3791E;
  --accent-soft:   rgba(255, 107, 0, 0.12);
  --accent-glow:   rgba(255, 107, 0, 0.35);

  /* Text */
  --text-primary:   #F5F6F8;
  --text-secondary: #C7CCD6;
  --text-muted:     #8A93A6;

  /* Borders / lines */
  --border-subtle:  rgba(255, 255, 255, 0.07);
  --border-accent:  rgba(255, 107, 0, 0.35);

  /* Layout */
  --container-w: 1240px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Fonts */
  --font-heading: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Shadows */
  --shadow-card: 0 20px 50px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 40px rgba(255,107,0,0.25);
}

/* =========================================================
   RESET / BASE
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-body);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film-grain removed — forced GPU repaint every frame */

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--accent-2); }

ul { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: 2px; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); letter-spacing: 2px; }
h3 { font-size: 1.25rem; letter-spacing: 1px; }
h4 { font-size: 1.05rem; letter-spacing: 1px; }

p { margin-bottom: 1rem; }

.accent { color: var(--accent); }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 68px 0;
  position: relative;
}
.section--alt {
  background: var(--bg-section-alt);
  box-shadow:
    inset 0 60px 80px -60px rgba(0,0,0,0.6),
    inset 0 -60px 80px -60px rgba(0,0,0,0.6);
}
.section--alt::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 18% 0%, rgba(255,107,0,0.06), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.section--alt .container { position: relative; z-index: 1; }
.section--tight { padding: 44px 0; }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.section-head.left { text-align: left; margin: 0 0 48px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 600;
}

.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* Subtle background grid texture used on dark sections */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,0,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #0A0E1A;
  box-shadow: 0 8px 28px rgba(255,107,0,0.35), inset 0 1px 0 rgba(255,255,255,0.35), inset 0 -3px 8px rgba(0,0,0,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(255,107,0,0.5), inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -3px 8px rgba(0,0,0,0.2);
  color: #0A0E1A;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 24px rgba(255,107,0,0.18);
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-block { width: 100%; justify-content: center; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 8, 15, 0.97);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,107,0,0.5), transparent);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 110px;
  gap: 24px;
}

.logo img { height: 96px; width: auto; }
.logo { display: flex; align-items: center; }

.logo-compact { display: none; align-items: center; gap: 10px; }
.logo-compact img { height: 76px; width: auto; }
.logo-compact-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  line-height: 1;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--text-primary); }
.main-nav a.active::after,
.main-nav li:hover > a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--accent);
}

.has-dropdown { position: relative; }
.has-dropdown > a::before {
  content: "▾";
  display: inline-block;
  margin-left: 6px;
  font-size: 0.7rem;
  color: var(--accent);
}

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: -20px;
  min-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
  box-shadow: var(--shadow-card);
}
.has-dropdown:hover .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  letter-spacing: 1px;
}
.dropdown li a:hover { background: var(--accent-soft); color: var(--accent); }
.dropdown li a::after { display: none !important; }

.dropdown-mega {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 800px;
  left: -300px;
  padding: 16px 12px;
}
.dropdown-mega-top {
  display: block;
  padding: 10px 14px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  border-bottom: 1px solid var(--border-subtle);
}
.dropdown-mega-top:hover { background: var(--accent-soft); }
.dropdown-mega-top svg { width: 14px; height: 14px; vertical-align: -2px; }
.dropdown-mega-cols { display: flex; gap: 8px; }
.dropdown-col { flex: 1; min-width: 170px; }
.dropdown-col-title {
  display: block;
  padding: 8px 14px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.dropdown-col ul { list-style: none; }
.dropdown-col + .dropdown-col { border-left: 1px solid var(--border-subtle); padding-left: 8px; }

.header-cta { flex-shrink: 0; }
.header-cta-mobile { display: none; }
.header-cta .btn {
  padding: 8px 18px;
  font-size: 0.7rem;
  gap: 6px;
  letter-spacing: 1px;
}
.header-cta .btn svg { width: 13px; height: 13px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--text-primary);
  transition: all .25s ease;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  background: #06080F url('../img/photos/Hikvision/Hikvision1.png') center center / cover no-repeat;
  overflow: hidden;
  box-shadow: inset 0 -160px 120px -80px var(--bg-body);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,8,15,0.96) 0%, rgba(6,8,15,0.80) 38%, rgba(6,8,15,0.40) 65%, rgba(6,8,15,0.18) 100%);
  z-index: 1;
}
.hero::after {
  content: "";
  position: absolute;
  right: -8%; top: 8%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(255,107,0,0.14), transparent 65%);
  z-index: 1;
  pointer-events: none;
  /* filter:blur removed — compositor layer cost */
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 120px 0 80px;
}
.hero .eyebrow {
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero .eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  margin-bottom: 22px;
  text-shadow: 0 6px 30px rgba(0,0,0,0.6);
}
.hero h1 .line { display: block; }
.hero h1 .hl {
  color: var(--accent);
  text-shadow: 0 0 40px rgba(255,107,0,0.55), 0 0 80px rgba(255,107,0,0.25);
}
.hero p.lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

/* Page hero (subpages) — shorter version */
.page-hero {
  position: relative;
  padding: 170px 0 90px;
  background: linear-gradient(135deg, #0A0E1A 0%, #0D1320 55%, #0A0E1A 100%);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: inset 0 -120px 100px -70px var(--bg-body);
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255,107,0,0.18), transparent 70%);
  pointer-events: none;
}
.page-hero::before {
  content: "";
  position: absolute;
  left: -160px; bottom: -160px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255,107,0,0.08), transparent 70%);
  pointer-events: none;
}
.page-hero .breadcrumbs {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
  position: relative; z-index: 2;
}
.page-hero .breadcrumbs a { color: var(--text-muted); }
.page-hero .breadcrumbs a:hover { color: var(--accent); }
.page-hero h1 { position: relative; z-index: 2; margin-bottom: 18px; }
.page-hero .lead {
  position: relative; z-index: 2;
  max-width: 720px;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Page hero with background photo */
.page-hero--photo { background: #05080C; }
.page-hero--photo::after,
.page-hero--photo::before { display: none; }
.page-hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.page-hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.page-hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,8,12,.92), rgba(5,8,12,.55), rgba(5,8,12,.15));
}
.page-hero--photo .container { position: relative; z-index: 2; }

/* =========================================================
   PAGE HERO — SPLIT LAYOUT (text left, image right)
   ========================================================= */
.page-hero--split {
  padding: clamp(100px, 10vw, 160px) 0 clamp(60px, 7vw, 110px);
}
.page-hero--split::after,
.page-hero--split::before { display: none; }

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.page-hero__content { position: relative; z-index: 2; }

.page-hero__content .lead {
  max-width: 760px;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.7;
  color: var(--text-secondary);
}

.page-hero__media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,106,0,.18);
  box-shadow: 0 28px 80px rgba(0,0,0,.30);
  max-height: 460px;
}

.page-hero__media picture,
.page-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.page-hero__media img {
  object-fit: cover;
  object-position: center center;
  aspect-ratio: 16 / 10;
}

@media (max-width: 980px) {
  .page-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .page-hero__media {
    max-height: 320px;
  }
  .page-hero__media img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 560px) {
  .page-hero__media {
    max-height: 240px;
    border-radius: 16px;
  }
}

/* =========================================================
   CONTENT PHOTO (inline section images)
   ========================================================= */
.content-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 9;
  margin: 36px 0;
}
.content-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.content-photo--tall { aspect-ratio: 4 / 3; }

/* Aspect-ratio modifiers for inline/card/why photos — avoid heavy cover-cropping */
.content-photo--wide {
  aspect-ratio: 16 / 9;
}

.content-photo--satel {
  aspect-ratio: 4 / 3;
}

.content-photo--standard {
  aspect-ratio: 4 / 3;
}

.content-photo--contain img,
.why-media--contain img,
.card-media--contain img {
  object-fit: contain;
  background: #05080C;
}

.why-media--wide {
  aspect-ratio: 16 / 9;
  min-height: auto;
}

.why-media--satel {
  aspect-ratio: 4 / 3;
  min-height: auto;
}

.why-media--standard {
  aspect-ratio: 4 / 3;
  min-height: auto;
}

.card-media--wide {
  aspect-ratio: 16 / 9;
}

.card-media--satel {
  aspect-ratio: 4 / 3;
}

/* Limit hover-zoom crop on phone/app/AI-detection imagery */
.card-media--contain img,
.card-media--nozoom img {
  transition: filter .6s ease;
}
.card:hover .card-media--contain img,
.card:hover .card-media--nozoom img {
  transform: none;
}

.content-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: linear-gradient(180deg, rgba(6,8,15,0) 0%, rgba(6,8,15,0.85) 100%);
}

/* =========================================================
   ADVANTAGES BAR
   ========================================================= */
.advantages {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-section);
  position: relative;
  z-index: 5;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), inset 0 -1px 0 rgba(255,255,255,0.03), 0 20px 50px -20px rgba(0,0,0,0.6);
}
.advantages .container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.advantage-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 20px;
  border-right: 1px solid var(--border-subtle);
  transition: background .25s ease;
}
.advantage-item:hover { background: rgba(255,107,0,0.045); }
.advantage-item:last-child { border-right: none; }
.advantage-item .icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  filter: drop-shadow(0 0 10px rgba(255,107,0,0.35));
  transition: filter .25s ease;
}
.advantage-item:hover .icon { filter: drop-shadow(0 0 16px rgba(255,107,0,0.6)); }
.advantage-item .icon svg { width: 30px; height: 30px; }
.advantage-item .label {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  line-height: 1.4;
}

/* =========================================================
   GRID / CARDS
   ========================================================= */
.grid {
  display: grid;
  gap: 24px;
}
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  --mx: 50%;
  --my: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  box-shadow: 0 14px 36px rgba(0,0,0,0.40);
  display: flex;
  flex-direction: column;
  position: relative;
  will-change: transform;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent);
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255,107,0,0.22), transparent 60%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: 4;
  box-shadow: inset 0 0 30px rgba(255,107,0,0.12);
}
.card:hover {
  border-color: var(--border-accent);
  transform: translateY(-8px);
  box-shadow: var(--shadow-card), 0 0 50px rgba(255,107,0,0.18);
}
.card:hover::before { opacity: 1; }

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1A1D29, #0D1117);
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease, filter .6s ease;
  filter: saturate(1.05);
}
.card:hover .card-media img { transform: scale(1.07); }
.card-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,26,0) 45%, rgba(6,8,15,0.55) 100%);
  pointer-events: none;
  z-index: 2;
}
.card-media::before {
  content: "";
  position: absolute; inset: 0;
  border-bottom: 1px solid var(--border-accent);
  z-index: 3;
  opacity: .6;
}
/* Legacy icon-circle fallback (kept for compatibility) */
.card-media svg { width: 56px; height: 56px; }
.card-media .icon-wrap {
  position: relative; z-index: 2;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(255,107,0,0.08);
  border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin: auto;
}

.card-body { padding: 26px 24px 28px; flex: 1; display: flex; flex-direction: column; position: relative; z-index: 2; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { color: var(--text-muted); font-size: 0.93rem; flex: 1; }
.card-link {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  transition: gap .2s ease;
}
.card-link:hover { gap: 14px; }

/* Tag / category pill */
.tag {
  display: inline-block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  padding: 6px 14px;
  border-radius: 100px;
}

/* Pill-style related-topic links */
.pill-links { display: flex; flex-wrap: wrap; gap: 12px; }
.pill-link {
  display: inline-block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 10px 20px;
  border-radius: 100px;
  transition: all .2s ease;
}
.pill-link:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* =========================================================
   PHOTO CARDS (realizacje / baza wiedzy)
   Full-bleed image with gradient overlay + text on top
   ========================================================= */
/* ============================================================
   ARTICLE CARD (baza wiedzy — bez zdjęcia tła)
   ============================================================ */
.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 28px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,106,0,.14), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.article-card:hover {
  border-color: rgba(255,106,0,.42);
  box-shadow: 0 28px 90px rgba(255,106,0,.12);
  transform: translateY(-4px);
}
.article-card__category {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,106,0,.35);
  color: #ff6a00;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.article-card h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(18px, 1.4vw, 24px);
  line-height: 1.22;
  letter-spacing: .02em;
}
.article-card p {
  margin: 0 0 22px;
  color: rgba(255,255,255,.62);
  line-height: 1.65;
  font-size: 0.95rem;
  flex-grow: 1;
}
.article-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ff6a00;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: gap .2s ease;
}
.article-card:hover .article-card__link { gap: 10px; }

/* ============================================================
   PHOTO CARD (case study kafle realizacji)
   ============================================================ */
.photo-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3.1;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 14px 36px rgba(0,0,0,0.40);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  will-change: transform;
}
.photo-card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent);
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255,107,0,0.22), transparent 60%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: 4;
  box-shadow: inset 0 0 30px rgba(255,107,0,0.12);
}
.photo-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
  z-index: 1;
}
.photo-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,8,15,0.05) 25%, rgba(6,8,15,0.94) 100%);
  z-index: 2;
}
.photo-card:hover img { transform: scale(1.08); }
.photo-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-8px);
  box-shadow: var(--shadow-card), 0 0 50px rgba(255,107,0,0.18);
}
.photo-card:hover::before { opacity: 1; }
.photo-card-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 24px;
  z-index: 3;
}
.photo-card-body .tag { margin-bottom: 12px; }
.photo-card-body h3 { margin-bottom: 8px; }
.photo-card-body p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }
.photo-card-body .card-link { margin-top: 14px; }

/* =========================================================
   WHY US SECTION
   ========================================================= */
.why-section .container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  box-sizing: border-box;
}
.why-list { margin: 28px 0 32px; display: flex; flex-direction: column; gap: 16px; }
.why-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text-secondary);
  font-size: 1rem;
}
.why-list li .ico {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-top: 2px;
}
.why-list li .ico svg { width: 14px; height: 14px; }

.why-media {
  --mx: 50%;
  --my: 50%;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  min-height: 460px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(150deg, #161D2A 0%, #0B0E16 100%);
  box-shadow: var(--shadow-card), 0 0 70px rgba(255,107,0,0.10);
  transition: box-shadow .35s ease;
}
.why-media:hover {
  box-shadow: var(--shadow-card), 0 0 90px rgba(255,107,0,0.18);
}
.why-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.why-media::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-accent);
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255,107,0,0.16), transparent 55%);
  box-shadow: inset 0 0 60px rgba(255,107,0,0.10);
  z-index: 1;
  pointer-events: none;
}
.why-media .bg-grid { mask-image: none; opacity: .5; }
.why-media .monitor-mock {
  position: absolute; inset: 24px;
  border-radius: var(--radius-md);
  background: #05070B;
  border: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
  padding: 14px;
}
.why-media .monitor-mock div {
  background: linear-gradient(160deg, #1A2230, #0A0E16);
  border: 1px solid rgba(255,107,0,0.12);
  border-radius: 4px;
  position: relative;
}
.why-media .monitor-mock div::after {
  content:"";
  position:absolute; top:8px; left:8px; width:8px; height:8px;
  border-radius:50%; background:var(--accent); box-shadow:0 0 8px var(--accent);
}
.why-callout {
  position: absolute;
  right: clamp(12px, 2vw, 28px);
  bottom: clamp(12px, 2vw, 28px);
  z-index: 2;
  background: rgba(10,13,22,0.94);
  border: 1px solid rgba(255,107,0,0.45);
  padding: 26px 28px;
  border-radius: var(--radius-md);
  max-width: min(320px, calc(100% - 24px));
  box-sizing: border-box;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55), 0 0 50px rgba(255,107,0,0.22), inset 0 1px 0 rgba(255,255,255,0.06);
}
.why-callout .check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #0A0E1A; margin-bottom: 14px;
}
.why-callout p { color: var(--text-primary); font-size: 1.05rem; line-height: 1.45; margin: 0; }
.why-callout p strong { color: var(--accent); }

/* Reversed variant: image on the left, text on the right */
.why-section--reverse .container { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }

/* Image on the right (normal variant) — contained within grid cell, no overflow margin */
.why-section:not(.why-section--reverse) .why-media { margin-right: 0; }

/* Justified body copy used in the "about" blocks on the homepage */
.text-justify {
  margin-top: 18px;
}
.text-justify p {
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}
.text-justify h4 {
  margin: 26px 0 8px;
  font-size: 1rem;
  color: var(--text-primary);
}
.text-justify h4:first-child { margin-top: 0; }
.text-justify strong { color: var(--text-primary); font-weight: 600; }
.text-justify a strong { color: inherit; }

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  background: linear-gradient(115deg, var(--accent-2) 0%, var(--accent) 60%, #FF8A3D 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 -1px 0 rgba(255,255,255,0.08) inset, 0 30px 80px rgba(0,0,0,0.35);
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 0%, rgba(255,255,255,0.18), transparent 55%);
  pointer-events: none;
}
.cta-band .bg-grid { display: none; }
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 56px 24px;
  flex-wrap: wrap;
}
.cta-band-text { display: flex; align-items: center; gap: 24px; }
.cta-band-text .icon {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(10,14,26,0.18);
  display: flex; align-items: center; justify-content: center;
  color: #0A0E1A;
}
.cta-band-text .icon svg { width: 32px; height: 32px; }
.cta-band h2 { color: #0A0E1A; margin-bottom: 6px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { color: rgba(10,14,26,0.78); margin: 0; font-size: 1rem; }
.cta-band .btn-primary {
  background: #0A0E1A;
  color: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.cta-band .btn-primary:hover { color: var(--accent); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  width: 70%; height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255,107,0,0.5), transparent);
}
.site-footer::after {
  content: "";
  position: absolute;
  left: 8%; top: -200px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255,107,0,0.06), transparent 70%);
  pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 0.9fr 0.9fr 1fr;
  gap: 28px;
  padding-bottom: 56px;
}
.footer-logo { margin-bottom: 18px; }
.footer-logo img { height: 84px; }
.footer-logo .logo-full { margin-bottom: 0; }
.footer-logo .logo-compact img { height: 72px; }
.footer-logo .logo-compact-text { font-size: 1.1rem; }
.footer-about p { font-size: 0.92rem; color: var(--text-muted); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: all .2s ease;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-social svg { width: 16px; height: 16px; }

.site-footer h4 {
  color: var(--text-primary);
  margin-bottom: 20px;
  font-size: 0.95rem;
  letter-spacing: 2px;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--accent); }

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: var(--text-muted);
  align-items: flex-start;
}
.footer-contact li svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }

.footer-badge {
  border: 1px solid var(--border-accent);
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: 22px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom-links { display: flex; gap: 24px; }

/* =========================================================
   FORMS
   ========================================================= */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-section);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color .2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 8px; }

/* =========================================================
   FAQ ACCORDION
   ========================================================= */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 26px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 26px 22px; color: var(--text-muted); font-size: 0.95rem; }

/* =========================================================
   UTILITIES
   ========================================================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-16 { margin-top: 16px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 60px 0;
}

.icon-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
}
.icon-circle svg { width: 26px; height: 26px; }

/* Numbered process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  position: relative;
  padding: 32px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.step .num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: 12px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* Realizacje detail card */
.case-card { display: grid; grid-template-columns: 1fr; }
.case-card .card-media { aspect-ratio: 16/10; }
.case-card .card-media--wide { aspect-ratio: 16 / 9; }
.case-card .card-media--standard { aspect-ratio: 4 / 3; }
.case-card .case-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 14px 0;
}
.case-card .case-meta div { font-size: 0.85rem; }
.case-card .case-meta span {
  display: block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 4px;
}

/* Article / blog */
/* article-layout: self-contained by default (region pages — no .container wrapper).
   When inside .container (article pages), padding/margin reset to zero so the
   container's own centering applies — zero visual change for those pages. */
.article-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: flex-start;
  /* container behaviour for standalone use */
  max-width: var(--container-w);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 88px) clamp(16px, 3.5vw, 24px);
  box-sizing: border-box;
}
/* reset when article pages already wrap it in .container */
.container > .article-layout {
  max-width: none;
  margin-inline: 0;
  padding: 0;
}
.article-body {
  min-width: 0;
}
.article-body h2 {
  font-size: clamp(26px, 2.5vw, 38px);
  line-height: 1.12;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.article-body h2 + h2,
.article-body section + section {
  margin-top: clamp(36px, 5vw, 64px);
}
.article-body p {
  max-width: 900px;
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.78;
  color: rgba(255,255,255,.76);
}
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  position: sticky;
  top: 120px;
}
.toc h4 { margin-bottom: 16px; }
.toc ul { display: flex; flex-direction: column; gap: 10px; }
.toc a { font-size: 0.88rem; color: var(--text-secondary); }
.toc a:hover { color: var(--accent); }

.toc-kb {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}
.toc-kb h4 { margin-bottom: 16px; }
.toc-kb-input {
  width: 100%;
  background: var(--bg-section);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  margin-bottom: 14px;
  transition: border-color .2s ease;
}
.toc-kb-input:focus { outline: none; border-color: var(--accent); }
.toc-kb-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}
.toc-kb-list li { list-style: none; }
.toc-kb-list a { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.4; }
.toc-kb-list a:hover { color: var(--accent); }
.toc-kb-empty { font-size: 0.85rem; color: var(--text-muted); margin: 10px 0 0; }
.toc-kb-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.85rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
}
.toc-kb-all svg { width: 14px; height: 14px; }

.article-body h2 { margin: 40px 0 16px; font-size: 1.7rem; }
.article-body h3 { margin: 28px 0 12px; font-size: 1.2rem; }
.article-body p { color: var(--text-secondary); }
.article-body ul, .article-body ol { margin: 0 0 20px 22px; color: var(--text-secondary); }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; }

.callout {
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 28px 0;
}
.callout h4 { color: var(--accent); margin-bottom: 8px; font-size: 0.95rem; }
.callout p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }

.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.article-meta .date { font-size: 0.85rem; color: var(--text-muted); letter-spacing: 1px; }

.inline-cta {
  background: linear-gradient(120deg, var(--bg-card), var(--bg-card-alt));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  margin: 36px 0;
}
.inline-cta h3 { margin-bottom: 10px; }
.inline-cta p { color: var(--text-muted); margin-bottom: 20px; }

/* 404 */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.error-page .code {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  line-height: 1;
  opacity: 0.5;
}
.error-page h1 { margin: 10px 0 18px; }
.error-page p { color: var(--text-muted); margin-bottom: 32px; }

/* Legal page */
.legal-content h2 { margin: 36px 0 14px; font-size: 1.4rem; }
.legal-content p, .legal-content li { color: var(--text-secondary); }
.legal-content ul { margin: 0 0 16px 22px; list-style: disc; }
.legal-content { max-width: 820px; margin: 0 auto; }

/* =========================================================
   REGION SIDEBAR (local pages)
   ========================================================= */
/* toc used as region sidebar: richer visual */
.toc:has(.toc-region) {
  background: rgba(255,255,255,.038);
  border-color: rgba(255,255,255,.1);
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
  padding: 22px 20px;
}
.toc-region h4 {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin: 0 0 10px;
}
.toc-region + .toc-region { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }
.toc-region-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toc-region-list li a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.4;
  transition: background .15s, color .15s;
}
.toc-region-list li a:hover,
.toc-region-list li.active a {
  background: rgba(255,106,0,.12);
  color: var(--accent);
}
.toc-region-list li.active a { font-weight: 700; }

/* =========================================================
   FOOTER REGION STRIP
   ========================================================= */
.footer-region-strip {
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-top: 28px;
  padding: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,.68);
  text-align: center;
}
.footer-region-strip span:first-child {
  color: rgba(255,255,255,.86);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer-region-strip a {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  transition: color .2s ease;
}
.footer-region-strip a:hover { color: var(--accent); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .advantages .container { grid-template-columns: repeat(3, 1fr); }
  .advantage-item:nth-child(3) { border-right: none; }
  .advantage-item { border-bottom: 1px solid var(--border-subtle); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .why-section .container { grid-template-columns: 1fr; }
  .why-media { max-width: 100%; justify-self: stretch; }
  .why-callout {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 16px;
    max-width: 100%;
  }
  .why-media { min-height: 360px; }
  .article-layout {
    grid-template-columns: 1fr;
    padding-inline: clamp(16px, 3vw, 24px);
  }
  .container > .article-layout { padding-inline: 0; }
  .toc { position: static; order: 2; }
  .article-body { order: 1; }
  .article-body p { max-width: 100%; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .text-justify p {
    text-align: left;
    text-align-last: auto;
  }
  .main-nav { position: fixed; top: 110px; left: 0; right: 0; bottom: 0;
    background: var(--bg-body); flex-direction: column; align-items: stretch;
    padding: 28px 24px; gap: 0; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s ease; z-index: 999; }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav > ul > li { border-bottom: 1px solid var(--border-subtle); }
  .main-nav a { padding: 16px 0; display: block; }
  .main-nav a::after { display: none !important; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none;
    display: none; min-width: 100%; border: none; background: transparent; padding: 0 0 0 16px; box-shadow: none; }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown-mega { display: none; flex-direction: column; min-width: 100%; left: 0; gap: 0; padding: 0; }
  .has-dropdown.open .dropdown-mega { display: flex; }
  .dropdown-col + .dropdown-col { border-left: none; padding-left: 0; border-top: 1px solid var(--border-subtle); margin-top: 6px; padding-top: 6px; }
  .has-dropdown > a::before { float: right; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; padding: 12px; }
  .main-nav .header-cta-mobile { display: block; margin-top: 20px; }

  .grid-5, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .advantages .container { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 28px; }
  .footer-about { grid-column: 1 / -1; }
  .cta-band .container { flex-direction: column; text-align: center; }
  .cta-band-text { flex-direction: column; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  h1 { font-size: clamp(2rem, 9vw, 3rem); }

  .page-hero { padding: 130px 0 60px; }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .hero-content { padding: 90px 0 60px; }
  .btn { padding: 14px 24px; font-size: 0.8rem; }
  .advantages .container { grid-template-columns: 1fr; }
  .advantage-item:nth-child(3) { border-bottom: 1px solid var(--border-subtle); }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-about { grid-column: auto; }

  .logo-full { display: none; }
  .logo-compact { display: flex; }
}

/* ============================================================
   APPROACH SECTION (Nie sprzedajemy elementów)
   ============================================================ */
.section-head--center {
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}
.section-head--center p {
  max-width: 820px;
  margin-inline: auto;
  color: rgba(255,255,255,.7);
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.75;
  margin-top: 16px;
}
.approach-intro {
  max-width: 920px;
  margin: 34px auto 0;
  display: grid;
  gap: 18px;
  color: rgba(255,255,255,.76);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.75;
}
.approach-cards {
  margin-top: clamp(34px, 4vw, 58px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.approach-card {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(255,106,0,.22);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
}
.approach-card h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(17px, 1.3vw, 22px);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.approach-card p {
  margin: 0;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
}
.approach-checklist {
  margin: clamp(34px, 4vw, 58px) auto 0;
  max-width: 980px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 22px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
}
.approach-checklist h3 {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(15px, 1.1vw, 18px);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.approach-checklist ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
}
.approach-checklist li {
  position: relative;
  padding-left: 28px;
  color: rgba(255,255,255,.76);
  line-height: 1.6;
}
.approach-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.approach-cta {
  margin: clamp(34px, 4vw, 58px) auto 0;
  max-width: 920px;
  padding: clamp(26px, 3vw, 40px);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,106,0,.16), rgba(255,255,255,.035));
  border: 1px solid rgba(255,106,0,.26);
  text-align: center;
}
.approach-cta p {
  margin: 0 auto 22px;
  max-width: 720px;
  color: rgba(255,255,255,.84);
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.65;
}
.approach-cta .text-link {
  display: inline-flex;
  align-items: center;
  margin-left: 18px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  gap: 6px;
}
.approach-cta .text-link:hover { text-decoration: underline; }
@media (max-width: 980px) {
  .approach-cards { grid-template-columns: 1fr; }
  .approach-checklist ul { grid-template-columns: 1fr; }
  .approach-cta .text-link { margin-left: 0; margin-top: 16px; display: inline-flex; }
}
@media (max-width: 640px) {
  .approach-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .approach-cta p { margin-bottom: 8px; }
}
