/* ==========================================================================
   MAGMAR Mielec – arkusz stylów
   Kolory wzięte ze zdjęcia siedziby: pomarańczowy szyld + grafitowa elewacja.
   ========================================================================== */

:root {
  /* Marka */
  --orange: #fd5c1f;          /* kolor liter szyldu MAGMAR (pobrany ze zdjęcia) */
  --orange-hover: #ff7a45;
  --orange-ink: #c2410c;      /* pomarańcz do drobnego tekstu na jasnym tle (kontrast AA) */

  /* Grafit / stal / beton */
  --graphite-900: #17191c;
  --graphite-800: #1f2226;    /* elewacja */
  --graphite-700: #2a2e33;
  --graphite-600: #3a3f45;
  --steel-400: #8a9098;
  --steel-300: #b4b9bf;
  --concrete-100: #f1f2f3;
  --concrete-200: #e4e6e8;
  --white: #ffffff;

  --text: #1b1d20;
  --text-muted: #565c63;
  --text-light: #e9ebed;
  --text-light-muted: #a7adb4;

  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 72px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 800; font-stretch: 112%; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: square; stroke-linejoin: miter; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--orange); color: var(--graphite-900); padding: 10px 16px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font: 700 0.95rem/1 var(--font-sans); font-stretch: 110%; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--graphite-900); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn-outline { border-color: var(--graphite-800); color: var(--graphite-800); }
.btn-outline:hover { background: var(--graphite-800); color: var(--white); }
.btn-block { width: 100%; }
.btn-icon { width: 20px; height: 20px; }

/* ---------- Etykiety sekcji ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 0.8rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--orange-ink); margin-bottom: 18px;
}
.eyebrow .num { color: var(--text-muted); }
.eyebrow .num::after { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; margin-left: 12px; vertical-align: middle; }
.eyebrow-light { color: var(--orange); }
.eyebrow-light .num { color: var(--text-light-muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--graphite-800);
  border-bottom: 1px solid var(--graphite-700);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; line-height: 1; flex: none; }
.logo-text { display: flex; flex-direction: column; justify-content: center; }
.logo-top {
  font-family: var(--font-sans); font-weight: 400; font-stretch: 100%;
  font-size: 0.88rem; letter-spacing: 0.23em; text-transform: uppercase;
  color: var(--steel-300); line-height: 1; margin-bottom: 4px; white-space: nowrap;
}
.logo-word {
  font-family: var(--font-sans); font-weight: 900; font-stretch: 125%;
  font-size: 1.62rem; letter-spacing: 0.01em; color: var(--orange);
  line-height: 0.92; text-shadow: 2px 2px 0 #0a0b0d; white-space: nowrap;
}
.logo-mark { width: 42px; height: 42px; flex: none; display: block; object-fit: contain; }

.main-nav { margin-left: auto; display: flex; align-items: center; }
.main-nav ul { display: flex; gap: 24px; }
.main-nav a {
  position: relative; display: block; padding: 8px 0;
  color: var(--text-light); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.main-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.main-nav ul a:hover::after, .main-nav ul a.is-active::after { transform: scaleX(1); }
.main-nav .nav-cta-mobile { display: none; }

.header-phone {
  display: inline-flex; align-items: center; gap: 10px; padding: 0 18px; min-height: 44px;
  background: var(--orange); color: var(--graphite-900); text-decoration: none;
  font-weight: 700; font-stretch: 110%; letter-spacing: 0.02em; border-radius: var(--radius);
  transition: background-color .2s;
}
.header-phone:hover { background: var(--orange-hover); }
.header-phone svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px; padding: 12px;
  background: none; border: 1px solid var(--graphite-600); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--white); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--graphite-800); color: var(--white); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; min-height: min(calc(100vh - var(--header-h)), 820px); }
.hero-content {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 72px) clamp(64px, 8vw, 110px) max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  /* delikatna siatka – motyw rysunku technicznego */
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero h1 { font-size: clamp(2.3rem, 4.1vw, 3.75rem); font-stretch: 115%; letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--orange); }
.hero-lead { margin-top: 24px; max-width: 34em; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text-light-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--graphite-600); font-size: 0.95rem; color: var(--text-light-muted); }
.hero-facts strong { color: var(--white); font-weight: 700; margin-right: 4px; }

.hero-media { position: relative; margin: 0; min-height: 360px; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.hero-media::before { /* pomarańczowe "obrzeże" na krawędzi zdjęcia */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--orange); z-index: 1;
}
.hero-media figcaption {
  position: absolute; right: 0; bottom: 18px; z-index: 1;
  background: rgba(23,25,28,.88);
  font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light);
}
.hero-pin {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  text-decoration: none; color: inherit; transition: color .2s;
}
.hero-pin svg { width: 15px; height: 15px; color: var(--orange); flex: none; }
.hero-pin:hover { color: var(--orange); }

/* linijka z podziałką milimetrową */
.ruler {
  position: absolute; left: 0; right: 0; bottom: 0; height: 14px; z-index: 2; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 1px, transparent 1px 80px) bottom / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 1px, transparent 1px 40px) bottom / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, transparent 1px 8px) bottom / 100% 5px no-repeat;
  mix-blend-mode: screen;
}

/* ---------- Atuty ---------- */
.strengths { background: var(--orange); color: var(--graphite-900); }
.strengths-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strength { display: flex; gap: 16px; align-items: flex-start; padding: 30px 24px; }
.strength + .strength { border-left: 1px solid rgba(23,25,28,.25); }
.strength svg { flex: none; width: 30px; height: 30px; stroke-width: 1.6; }
.strength h3 { font-size: 1.05rem; font-stretch: 110%; }
.strength p { margin-top: 4px; font-size: 0.92rem; line-height: 1.45; color: rgba(23,25,28,.9); }

/* ---------- Sekcje ---------- */
.section { padding-block: var(--section-y); }
.section-alt { background: var(--concrete-100); }
.section-dark { background: var(--graphite-800); color: var(--white); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2, .partner-text h2, .news-text h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.section-lead { margin-top: 20px; font-size: 1.1rem; color: var(--text-muted); }
.section-dark .section-lead { color: var(--text-light-muted); }

/* ---------- Oferta – karty jak płyty z obrzeżem ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--concrete-200); border: 1px solid var(--concrete-200); }
.card {
  position: relative; padding: 32px 28px 36px; background: var(--white);
  transition: background-color .25s;
}
.card::before { /* obrzeże */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--orange);
  transform: scaleY(.18); transform-origin: top; transition: transform .35s var(--ease);
}
.card:hover::before { transform: scaleY(1); }
.card:hover { background: #fcfcfc; }
.card-icon { width: 40px; height: 40px; color: var(--graphite-800); stroke-width: 1.5; margin-bottom: 22px; }
.card h3 { font-size: 1.2rem; }
.card p { margin-top: 10px; font-size: 0.97rem; color: var(--text-muted); }

/* ---------- Marki ---------- */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--concrete-200);
  border: 1px solid var(--concrete-200);
}
.brand-group {
  position: relative;
  padding: 32px 28px 34px;
  background: var(--white);
}
.brand-group.wide {
  grid-column: 1 / -1;
}
.brand-group::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--orange);
}
.brand-group h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.brand-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 10px;
}
.brand-group.wide .brand-list {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.brand-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 64px;
  padding: 10px 22px 10px 10px;
  background: var(--concrete-100);
  border: 1px solid var(--concrete-200);
  border-radius: var(--radius);
  color: var(--graphite-800);
  text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.brand-tile-featured {
  background: var(--white);
  border-color: var(--steel-300);
}
.brand-tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.brand-tile:hover {
  background: var(--white);
  border-color: var(--graphite-800);
  color: var(--graphite-900);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(23, 25, 28, .08);
}
.brand-tile:hover::after {
  transform: scaleX(1);
}

.brand-thumb {
  flex: none;
  width: 52px;
  height: 36px;
  padding: 3px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--concrete-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.brand-thumb-dark {
  background: var(--graphite-900);
  border-color: var(--graphite-800);
}
.brand-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.brand-name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-stretch: 102%;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
  min-width: 0;
}

.brand-ext {
  position: absolute;
  top: 6px;
  right: 8px;
  font: 500 0.72rem/1 var(--font-mono);
  color: var(--steel-400);
  transition: color .2s, transform .2s var(--ease);
}
.brand-tile:hover .brand-ext {
  color: var(--orange-ink);
  transform: translate(2px, -2px);
}

/* Baner ITA TOOLS */
.ita {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 28px 32px;
  background: var(--graphite-800);
  color: var(--white);
  border-top: 6px solid var(--orange);
}
.ita-main {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1 1 auto;
  min-width: 0;
}
.ita-brand-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 12px;
  background: var(--graphite-900);
  border: 1px solid var(--graphite-600);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--orange);
  font: 500 0.85rem/1 var(--font-mono);
  transition: border-color .2s, transform .2s var(--ease);
}
.ita-brand-link:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}
.ita-brand-link .brand-thumb {
  width: 38px;
  height: 34px;
  border-color: var(--graphite-600);
}
.ita-name {
  font-family: var(--font-sans);
  font-weight: 900;
  font-stretch: 112%;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--white);
}
.ita-label {
  font: 500 .75rem/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.ita h3 {
  font-size: 1.4rem;
}
.ita p:not(.ita-label) {
  margin-top: 8px;
  color: var(--text-light-muted);
}
.ita .btn {
  flex: none;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .ita-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ---------- Usługi ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--graphite-600); }
.service { position: relative; padding: 36px 32px 40px 0; border-bottom: 1px solid var(--graphite-600); }
.service:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--graphite-600); }
.service-num { display: block; font: 500 0.85rem/1 var(--font-mono); color: var(--orange); letter-spacing: 0.1em; margin-bottom: 26px; }
.service h3 { font-size: 1.35rem; }
.service p { margin-top: 12px; color: var(--text-light-muted); }

/* ---------- Dla kogo ---------- */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.audience-item { padding: 32px; border: 1px solid var(--concrete-200); border-top: 4px solid var(--graphite-800); transition: border-color .25s; }
.audience-item:hover { border-top-color: var(--orange); }
.audience-item h3 { font-size: 1.3rem; }
.audience-item p { margin-top: 12px; color: var(--text-muted); }

/* ---------- Kroki ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 64px; counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font: 800 2.6rem/1 var(--font-sans); font-stretch: 125%; color: var(--orange);
}
.step::after { content: ""; position: absolute; top: 20px; left: 84px; right: -12px; height: 1px; background: var(--steel-300); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.2rem; }
.step p { margin-top: 10px; color: var(--text-muted); font-size: 0.98rem; }

/* ---------- Kronosfera / partner ---------- */
.partner { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.partner-text > p:not(.eyebrow) { margin-top: 20px; font-size: 1.08rem; color: var(--text-muted); }
.partner-text strong { color: var(--text); }
.inline-link {
  text-decoration: underline; text-decoration-color: var(--orange);
  text-underline-offset: 3px; text-decoration-thickness: 2px;
  transition: color .2s;
}
.inline-link:hover, .inline-link:hover strong { color: var(--orange-ink); }
.check-list { margin-top: 28px; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; background: var(--orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12l5 5L20 6' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12l5 5L20 6' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.partner-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.partner-badge { display: flex; justify-content: center; }
.badge-box {
  position: relative; width: 100%; max-width: 380px; aspect-ratio: 1;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 36px;
  background: var(--graphite-800); color: var(--white);
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.badge-box::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: var(--orange); }
.badge-label { font: 500 0.75rem/1.3 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); }
.badge-main { margin-top: 14px; font-weight: 800; font-stretch: 115%; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.08; }
.badge-brand { margin-top: 18px; font-weight: 800; font-stretch: 125%; font-size: 1.25rem; letter-spacing: 0.06em; text-transform: uppercase; }
.badge-net { margin-top: 4px; font: 500 0.8rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light-muted); }

/* ---------- Aktualności / Facebook ---------- */
.news { display: grid; grid-template-columns: 1fr minmax(0, 500px); gap: clamp(40px, 6vw, 96px); align-items: start; }
.news-text p:not(.eyebrow) { margin-top: 20px; margin-bottom: 32px; font-size: 1.08rem; color: var(--text-muted); max-width: 32em; }
.fb-card { background: var(--white); border: 1px solid var(--concrete-200); border-top: 6px solid var(--orange); }
.fb-profile { display: flex; align-items: center; gap: 16px; padding: 22px 20px; text-decoration: none; color: var(--text); }
.fb-profile img { flex: none; width: 64px; height: 64px; object-fit: cover; object-position: 20% 30%; border-radius: 50%; border: 2px solid var(--concrete-200); }
.fb-profile-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fb-profile-text strong { font-size: 1.15rem; font-stretch: 110%; }
.fb-profile-text span { font-size: 0.9rem; color: var(--text-muted); }
.fb-follow {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  background: #1877f2; color: var(--white); font-weight: 700; font-size: 0.9rem; border-radius: var(--radius); transition: background-color .2s;
}
.fb-follow svg { width: 18px; height: 18px; }
.fb-profile:hover .fb-follow { background: #0f63d0; }
.fb-live-feed { border-top: 1px solid var(--concrete-200); }
.fb-widget-mount:empty { display: none; }
.fb-sociablekit-frame { width: 100%; height: 420px; border: 0; display: block; }
.fb-live-feed.has-widget .fb-fallback { display: none; }
.fb-live-notice {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 20px; background: var(--concrete-100); border-bottom: 1px solid var(--concrete-200);
  font-size: 0.84rem; line-height: 1.45; color: var(--text-muted);
}
.fb-live-notice code { font-family: var(--font-mono); font-size: 0.8em; color: var(--graphite-800); }
.fb-live-dot {
  flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%;
  background: var(--orange);
}
.fb-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--concrete-200); }
.fb-topics li { display: flex; gap: 14px; align-items: flex-start; padding: 22px 20px; background: var(--white); }
.fb-topics svg { flex: none; width: 26px; height: 26px; color: var(--orange-ink); stroke-width: 1.6; }
.fb-topics h3 { font-size: 1rem; font-stretch: 108%; }
.fb-topics p { margin-top: 4px; font-size: 0.9rem; line-height: 1.45; color: var(--text-muted); }
.fb-more {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 20px; background: var(--graphite-800); color: var(--white); text-decoration: none;
  font-weight: 700; font-stretch: 110%; letter-spacing: 0.02em; transition: background-color .2s;
}
.fb-more span { color: var(--orange); font-size: 1.3rem; transition: transform .25s var(--ease); }
.fb-more:hover { background: var(--graphite-900); }
.fb-more:hover span { transform: translateX(4px); }

/* ---------- Kontakt ---------- */
.contact-info-full {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.contact-info-full .info-block {
  padding: 28px 24px;
  background: var(--graphite-900);
  border: 1px solid var(--graphite-700);
  border-top: 4px solid var(--orange);
}
.info-block h3 {
  display: flex; align-items: center; gap: 8px;
  font: 500 0.78rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 16px;
}
.info-ico { width: 16px; height: 16px; flex: none; }
.info-block p { color: var(--text-light); line-height: 1.7; }
.info-block a { color: var(--white); text-decoration: none; word-break: break-word; }
.info-block a:hover { color: var(--orange); }
.contact-phones { display: grid; gap: 8px; }
.contact-phones a[href^="tel"] { font-weight: 700; font-stretch: 110%; font-size: 1.08rem; }
.icon-link { display: inline-flex; align-items: center; gap: 9px; }
.icon-link svg { width: 17px; height: 17px; flex: none; color: var(--orange); }
.text-link { display: inline-flex; margin-top: 14px; font-weight: 600; font-size: 0.95rem; color: var(--orange) !important; }
.hours { margin: 0; display: grid; gap: 6px; }
.hours dt { color: var(--text-light-muted); font-size: 0.9rem; }
.hours dd { margin: 0 0 8px; color: var(--white); font-weight: 700; }

/* ---------- Mapa ---------- */
.map { line-height: 0; background: var(--concrete-200); }
.map iframe { width: 100%; height: clamp(340px, 45vw, 480px); border: 0; filter: grayscale(.85) contrast(1.05); transition: filter .4s; }
.map iframe:hover { filter: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--graphite-900); color: var(--text-light-muted); padding-top: 64px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.1fr 0.9fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .logo-top { font-size: 0.98rem; letter-spacing: 0.24em; }
.footer-brand .logo-word { font-size: 1.82rem; }
.footer-brand .logo-mark { width: 48px; height: 48px; }
.footer-brand p { margin-top: 16px; max-width: 26em; }
.site-footer h3 { font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.site-footer p { line-height: 1.75; }
.site-footer a { color: var(--text-light); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-contact-list { display: grid; gap: 9px; }
.footer-contact-list .icon-link { align-items: flex-start; }
.footer-contact-list .icon-link svg { margin-top: 3px; }
.footer-shortcuts { text-align: center; }
.footer-shortcuts .footer-links { justify-items: center; }
.footer-links { display: grid; gap: 8px; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 22px; font-size: 0.85rem; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--graphite-700); }

/* ---------- Animacje wejścia ---------- */
/* elementy ukrywamy tylko, gdy działa JS (klasa .js dodawana w <head>) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* ==========================================================================
   Responsywność
   ========================================================================== */
@media (max-width: 1180px) {
  .header-phone span { display: none; }
  .header-phone { padding: 0 14px; }
}

@media (max-width: 1100px) {
  .header-inner { gap: 20px; }
  .main-nav ul { gap: 16px; }
  .main-nav a { font-size: .9rem; }
  .main-nav ul { gap: 20px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .strengths-grid { grid-template-columns: repeat(2, 1fr); }
  .strength:nth-child(3) { border-left: 0; }
  .strength:nth-child(n+3) { border-top: 1px solid rgba(23,25,28,.25); }
  .contact-info-full { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .header-phone { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: var(--graphite-800); border-top: 1px solid var(--graphite-700);
    padding: 12px var(--gutter) 28px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .25s var(--ease), opacity .25s, visibility .25s;
    box-shadow: 0 18px 30px rgba(0,0,0,.3);
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { padding: 16px 0; border-bottom: 1px solid var(--graphite-700); font-size: 1.05rem; }
  .main-nav ul a::after { display: none; }
  .main-nav { display: block; }
  .main-nav .nav-cta-mobile { display: flex; width: 100%; margin-top: 20px; padding: 0 26px; border-bottom: 0; color: var(--graphite-900); }

  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-content { padding: 56px var(--gutter) 48px; }
  .hero-media { min-height: 0; aspect-ratio: 4 / 3; }
  .hero-media::before { width: auto; height: 6px; right: 0; bottom: auto; }

  .services { grid-template-columns: repeat(2, 1fr); }
  .service, .service:not(:nth-child(3n+1)) { padding: 32px 24px 36px 0; border-left: 0; }
  .service:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--graphite-600); }

  .audience { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .step:nth-child(2)::after { display: none; }
  .partner, .news { grid-template-columns: 1fr; }
  .ita { flex-direction: column; align-items: flex-start; }
  .news-text .btn { display: none; } /* na mobile karta FB jest tuż pod spodem */
  .news-text p:not(.eyebrow) { margin-bottom: 0; }
  .partner-badge { justify-content: flex-start; }
  .badge-box { max-width: 100%; aspect-ratio: auto; padding-top: 64px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .logo { gap: 8px; }
  .logo-top { font-size: 0.74rem; letter-spacing: 0.2em; margin-bottom: 3px; }
  .logo-word { font-size: 1.36rem; }
  .logo-mark { width: 34px; height: 34px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .strengths-grid { grid-template-columns: 1fr; }
  .strength { padding: 22px 0; }
  .strength + .strength { border-left: 0; border-top: 1px solid rgba(23,25,28,.25); }
  .cards, .brands-grid { grid-template-columns: 1fr; }
  .brand-group.wide { grid-column: auto; }
  .ita { padding: 24px 20px; } .ita .btn { width: 100%; }
  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding: 28px 0 30px; border-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .contact-info-full { grid-template-columns: 1fr; gap: 16px; }
  .partner-actions .btn, .news-text .btn { width: 100%; }
  .fb-topics { grid-template-columns: 1fr; }
  .fb-profile { padding: 18px 16px; gap: 12px; }
  .fb-profile img { width: 52px; height: 52px; }
  .fb-follow { padding: 10px 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ITA – tekst zajmuje wolne miejsce, przycisk nie wychodzi poza ramkę */
.ita > div { flex: 1 1 auto; min-width: 0; }
.ita .btn { white-space: nowrap; }
@media (max-width: 600px) { .ita .btn { white-space: normal; text-align: center; } }
