/* ============================================================
   Jerzy Nikitiuk — Rzeczoznawca ds. Zabezpieczeń Przeciwpożarowych
   styles.css — motyw: ogień / straż pożarna
   czysty CSS, bez frameworków, mobile-first
   ============================================================ */

/* ---------- Tokeny ---------- */
:root {
  color-scheme: dark;
  --smoke:      #16110d;   /* dym — tło główne */
  --smoke-2:    #1f1812;   /* panele */
  --smoke-3:    #2a1f16;   /* obramowane pola */
  --ash:        #f2e9df;   /* popiół — tekst główny */
  --ash-dim:    #b9aa9b;   /* tekst drugorzędny */
  --flame-red:  #e03a1c;
  --flame-org:  #ff7a1a;
  --flame-amb:  #ffb52e;
  --fire-grad:  linear-gradient(100deg, var(--flame-red), var(--flame-org) 55%, var(--flame-amb));
  --line:       rgba(242, 233, 223, 0.14);
  --line-soft:  rgba(242, 233, 223, 0.08);

  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-body:    "Archivo", "Segoe UI", Arial, sans-serif;

  --measure: 64ch;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-gap: clamp(4rem, 9vw, 7.5rem);
}

/* ---------- Baza ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  background: #16110d;
  scrollbar-color: #3d2f21 #16110d;
}
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #16110d; }
::-webkit-scrollbar-thumb { background: #3d2f21; border-radius: 6px; border: 2px solid #16110d; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ash);
  background: var(--smoke);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

/* Tło także na main i sekcjach — niektóre podglądy (np. iOS Quick Look)
   ignorują tło ustawione na body */
main { background: var(--smoke); }
section { background: var(--smoke); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.7rem, 7.4vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  line-height: 1.3;
}

p { margin: 0 0 1em; max-width: var(--measure); }
ul { padding-left: 1.2rem; }

a { color: var(--flame-amb); text-underline-offset: 3px; }
a:hover { color: var(--flame-org); }

::selection { background: var(--flame-red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--flame-amb);
  outline-offset: 3px;
}

/* ---------- Pas szewronowy (jak na wozach bojowych) ---------- */
.chevrons {
  height: 9px;
  background: repeating-linear-gradient(
    -45deg,
    #b53318 0 18px,
    #5e170a 18px 36px
  );
  border-block: 1px solid rgba(0, 0, 0, 0.55);
  opacity: 0.9;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--flame-red);
  color: #fff;
  padding: 0.6rem 1.1rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Layout ---------- */
.wrap {
  width: min(1140px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

section { padding-block: var(--section-gap); }

/* Etykieta sekcji: iskra + napis */
.spark-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--flame-amb);
  margin: 0 0 1rem;
}
.spark-label::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--fire-grad);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.section-head { position: relative; margin-bottom: clamp(1.6rem, 4vw, 3rem); }
@supports (-webkit-text-stroke: 1px #000) {
  .section-head::before {
    content: attr(data-no);
    position: absolute;
    top: -0.32em;
    left: -0.04em;
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 11vw, 8rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(242, 233, 223, 0.09);
    pointer-events: none;
  }
}

.sec-no { color: var(--ash-dim); }
.sec-no::after { content: " /"; opacity: 0.45; margin-right: 0.15rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ash-dim); }

/* Nagłówki z ognistym podkreśleniem */
.h-fire {
  position: relative;
  padding-bottom: 0.35em;
}
.h-fire::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3.5rem;
  height: 5px;
  background: var(--fire-grad);
}

/* ---------- Header ---------- */
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--fire-grad);
  opacity: 0.3;
}
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--fire-grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 60;
  pointer-events: none;
}
.site-header.is-scrolled { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 17, 13, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--ash);
  margin-right: auto;
  min-width: 0;
}
.brand:hover { color: var(--ash); }
.brand .brand-lockup {
  height: clamp(38px, 6vw, 50px);
  width: auto;
  flex: none;
  margin-block: 10px;
}

.brand-text { line-height: 1.2; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: block;
  white-space: nowrap;
  background: var(--fire-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-role {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash-dim);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav { display: none; }
.header-phone { display: none; }

.nav-toggle {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ash);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { background: var(--flame-red); border-color: var(--flame-red); color: #fff; }

.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--line-soft);
  background: var(--smoke-2);
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0.5rem 0 1rem; }
.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ash);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a:hover { color: var(--flame-amb); }
.mobile-nav .mobile-contact {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--flame-amb);
  border-bottom: 0;
}

@media (min-width: 880px) {
  .nav-toggle, .mobile-nav { display: none !important; }

  .site-nav { display: block; }
  .site-nav ul { display: flex; gap: 1.7rem; list-style: none; margin: 0; padding: 0; }
  .site-nav a {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ash-dim);
    padding-block: 0.4rem;
    border-bottom: 2px solid transparent;
  }
  .site-nav a:hover { color: var(--ash); border-bottom-color: var(--flame-org); }

  .header-phone {
    display: inline-block;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: #fff;
    background: var(--flame-red);
    padding: 0.55rem 1.1rem;
    white-space: nowrap;
    transition: background-color 0.15s ease;
  }
  .header-phone:hover { background: var(--flame-org); color: #fff; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(72vh, 640px);
  display: grid;
  align-items: center;
  padding-block: clamp(5rem, 12vw, 8rem);
  background:
    radial-gradient(70rem 30rem at 50% 118%, rgba(224, 58, 28, 0.4), transparent 62%),
    radial-gradient(46rem 22rem at 22% 122%, rgba(255, 122, 26, 0.22), transparent 60%),
    radial-gradient(46rem 22rem at 78% 122%, rgba(255, 122, 26, 0.22), transparent 60%),
    linear-gradient(180deg, #14100c, var(--smoke));
  border-bottom: 1px solid var(--line-soft);
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: clamp(1.6rem, 4vw, 2.6rem);
}
.hero h1 {
  max-width: 17ch;
  margin: 0;
  letter-spacing: 0.02em;
  text-shadow: 0 3px 30px rgba(0, 0, 0, 0.65), 0 0 60px rgba(224, 58, 28, 0.25);
}
.hero h1 .fire-text {
  background: var(--fire-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- scena ognia --- */
.fire-scene { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.flame {
  position: absolute;
  bottom: -12%;
  border-radius: 48% 52% 42% 58% / 70% 66% 34% 30%;
  background: linear-gradient(180deg, rgba(255, 181, 46, 0.85), rgba(255, 122, 26, 0.75) 45%, rgba(224, 58, 28, 0.7) 80%, transparent);
  filter: blur(26px);
  transform-origin: 50% 100%;
  opacity: 0.5;
}
.f1 { left: 4%;  width: 16%; height: 42%; }
.f2 { left: 20%; width: 13%; height: 34%; opacity: 0.4; }
.f3 { left: 37%; width: 20%; height: 52%; opacity: 0.55; }
.f4 { left: 56%; width: 14%; height: 38%; opacity: 0.42; }
.f5 { left: 70%; width: 18%; height: 48%; }
.f6 { left: 88%; width: 12%; height: 32%; opacity: 0.38; }

.ember {
  position: absolute;
  bottom: 6%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flame-amb);
  box-shadow: 0 0 10px 2px rgba(255, 181, 46, 0.7);
  opacity: 0;
}
.e1 { left: 12%; } .e2 { left: 26%; } .e3 { left: 38%; } .e4 { left: 49%; }
.e5 { left: 60%; } .e6 { left: 71%; } .e7 { left: 83%; } .e8 { left: 93%; }

@media (prefers-reduced-motion: no-preference) {
  .flame { animation: flameFlick 3s ease-in-out infinite alternate; }
  .f2 { animation-duration: 2.4s; animation-delay: 0.3s; }
  .f3 { animation-duration: 3.6s; animation-delay: 0.6s; }
  .f4 { animation-duration: 2.7s; animation-delay: 0.2s; }
  .f5 { animation-duration: 3.2s; animation-delay: 0.9s; }
  .f6 { animation-duration: 2.5s; animation-delay: 0.5s; }
  .ember { animation: emberUp 6s linear infinite; }
  .e2 { animation-duration: 7.2s; animation-delay: 1.2s; }
  .e3 { animation-duration: 5.4s; animation-delay: 2.4s; }
  .e4 { animation-duration: 8s;   animation-delay: 0.8s; }
  .e5 { animation-duration: 6.6s; animation-delay: 3.1s; }
  .e6 { animation-duration: 5.8s; animation-delay: 1.9s; }
  .e7 { animation-duration: 7.6s; animation-delay: 4.2s; }
  .e8 { animation-duration: 6.2s; animation-delay: 2.7s; }
}
@keyframes flameFlick {
  from { transform: scaleY(1) scaleX(1); }
  to   { transform: scaleY(1.22) scaleX(0.92) translateY(-2.5%); }
}
@keyframes emberUp {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  8%   { opacity: 0.9; }
  60%  { transform: translateY(-46vh) translateX(2vw); opacity: 0.5; }
  100% { transform: translateY(-72vh) translateX(-1.5vw); opacity: 0; }
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.8rem;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-fire {
  background: var(--fire-grad);
  color: #1b0d05;
}
.btn-fire:hover {
  color: #1b0d05;
  box-shadow: 0 0 24px rgba(255, 122, 26, 0.45);
}
.btn-fire .arr { display: inline-block; margin-left: 0.55rem; transition: transform 0.2s ease; }
.btn-fire:hover .arr { transform: translateX(4px); }
.btn-ghost { border-color: var(--ash); color: var(--ash); }
.btn-ghost:hover { border-color: var(--flame-amb); color: var(--flame-amb); }

/* (hero-stats usunięte - hero uproszczone) */
/* ---------- Najważniejsze informacje ---------- */
.keyfacts {
  padding-block: clamp(2.8rem, 6vw, 4.5rem);
  background: var(--smoke-2);
  border-bottom: 1px solid var(--line-soft);
}
.keyfacts-grid {
  display: grid;
  gap: 1.4rem 2.2rem;
  margin: 0;
}
@media (min-width: 680px) { .keyfacts-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .keyfacts-grid { grid-template-columns: repeat(3, 1fr); } }
.keyfacts-duo { max-width: 780px; }
@media (min-width: 680px) { .keyfacts-duo { grid-template-columns: 1fr 1fr !important; } }

.keyfacts-grid > div {
  position: relative;
  padding-left: 1.1rem;
}
.keyfacts-grid > div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 3px;
  background: linear-gradient(180deg, var(--flame-amb), var(--flame-org), var(--flame-red));
}
.keyfacts-grid dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash-dim);
}
.keyfacts-grid dd { margin: 0.2rem 0 0; font-size: 1rem; font-weight: 500; }
.keyfacts-grid dd a { text-decoration: none; }
.keyfacts-grid dd a:hover { text-decoration: underline; }

/* ---------- Profil ---------- */
.profile-grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
@media (min-width: 920px) {
  .profile-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
}

/* Zdjęcie portretowe */
.portrait-figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-soft);
  background: var(--smoke-2);
}
.portrait-figure::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 4px;
  background: var(--fire-grad);
  z-index: 1;
}
.portrait-figure img { width: 100%; height: auto; }
.portrait-figure figcaption,
.actions-photo figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash-dim);
}
.portrait-slot img { width: 100%; height: 100%; object-fit: cover; }

.credentials {
  position: relative;
  margin-top: 1.4rem;
  background: linear-gradient(180deg, #251c13, var(--smoke-2) 55%);
  border: 1px solid var(--line-soft);
  padding: 1.6rem;
}
.credentials::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 4px;
  background: var(--fire-grad);
}
.credentials dl { margin: 0; }
.credentials dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash-dim);
  margin-top: 1rem;
}
.credentials dt:first-of-type { margin-top: 0; }
.credentials dd {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}
.credentials .upr-no { color: var(--flame-amb); }

/* Oś czasu służby */
.timeline {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 2px;
  background: linear-gradient(180deg, var(--flame-amb), var(--flame-org) 35%, var(--flame-red) 70%, var(--smoke-3));
}
.timeline li {
  position: relative;
  padding: 0 0 1.2rem 1.5rem;
  max-width: var(--measure);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.5em;
  width: 10px;
  height: 10px;
  background: var(--fire-grad);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.timeline .t-year {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--flame-amb);
  display: block;
}

/* Akcje ratownicze */
.actions-block { margin-top: 2.6rem; }
.actions-grid { display: grid; gap: 1.8rem; align-items: start; }
@media (min-width: 980px) {
  .actions-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
.actions-photo {
  margin: 0;
  border: 1px solid var(--line-soft);
  background: var(--smoke-2);
}
.actions-photo img { width: 100%; height: auto; }
.actions-block h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
}
.actions-block h3::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  background: var(--fire-grad);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.action-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.action-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-soft);
  max-width: var(--measure);
}
.action-list .a-year {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--flame-amb);
  line-height: 1.5;
  min-width: 3.2rem;
}
.action-list p { margin: 0; color: var(--ash-dim); }

/* ---------- Usługi ---------- */
.services {
  background:
    radial-gradient(50rem 24rem at 10% 0%, rgba(224, 58, 28, 0.1), transparent 60%),
    var(--smoke-2);
  border-block: 1px solid var(--line-soft);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  counter-reset: srv;
}
@media (min-width: 800px) { .service-list { grid-template-columns: 1fr 1fr; } }

.service-item {
  background: var(--smoke);
  padding: clamp(1.4rem, 3vw, 2rem);
  padding-right: 3.4rem;
  position: relative;
  counter-increment: srv;
  transition: background-color 0.2s ease;
}
.service-item:hover { background: #221a12; }
.service-item::after {
  content: counter(srv, decimal-leading-zero);
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: var(--ash-dim);
  opacity: 0.4;
}
.service-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--fire-grad);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.service-item:hover::before { opacity: 1; }
.service-item h3 { margin-bottom: 0.5rem; transition: color 0.2s ease; }
.service-item:hover h3 { color: var(--flame-amb); }
.service-item p { margin-bottom: 0; color: var(--ash-dim); font-size: 0.96rem; }

.service-item .tag {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffc95e;
  border: 1px solid rgba(255, 181, 46, 0.55);
  padding: 0.18rem 0.55rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* ---------- Dla kogo ---------- */
.audience-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem 2.6rem;
}
@media (min-width: 720px) { .audience-list { grid-template-columns: 1fr 1fr; } }

.audience-list li {
  padding: 0.8rem 0 0.8rem 1.7rem;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}
.audience-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(50% - 5px);
  width: 10px;
  height: 10px;
  background: var(--fire-grad);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* ---------- Typowe sprawy ---------- */
.cases {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(46rem 22rem at 100% 100%, rgba(255, 122, 26, 0.14), transparent 60%),
    var(--smoke);
}
.cases .watermark {
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: clamp(16rem, 34vw, 26rem);
  opacity: 0.07;
  pointer-events: none;
}

.case-list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 1;
}
@media (min-width: 800px) { .case-list { columns: 2; column-gap: 3rem; } }

.case-list li {
  break-inside: avoid;
  padding: 0.9rem 0 0.9rem 2rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1.02rem;
  position: relative;
}
.case-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.42rem;
  width: 10px;
  height: 10px;
  background: var(--fire-grad);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* ---------- Kontakt ---------- */
.contact { border-top: 1px solid var(--line-soft); }
.contact-single { max-width: 720px; }

.contact-data { list-style: none; margin: 1.8rem 0 0; padding: 0; }
.contact-data li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  gap: 0.15rem;
}
.contact-data .label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash-dim);
}
.contact-data a {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--ash);
}
.contact-data a {
  transition: color 0.15s ease;
  background-image: var(--fire-grad);
  background-repeat: no-repeat;
  background-position: left calc(100% - 2px);
  background-size: 0% 2px;
  transition: color 0.15s ease, background-size 0.25s ease;
}
.contact-data a:hover { background-size: 100% 2px; }
.contact-data a:hover { color: var(--flame-amb); }

/* Formularz */
.contact-form {
  position: relative;
  background: var(--smoke-2);
  border: 1px solid var(--line-soft);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: grid;
  gap: 1.15rem;
}
.contact-form::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 4px;
  background: var(--fire-grad);
}
.form-row { display: grid; gap: 1.15rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 0.4rem; }
.field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash-dim);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ash);
  background: var(--smoke);
  border: 1px solid var(--line);
  padding: 0.75rem 0.9rem;
  width: 100%;
}
.field select { appearance: auto; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--flame-amb);
  outline-offset: 1px;
  border-color: var(--flame-org);
}
.field textarea { min-height: 9rem; resize: vertical; }

.form-note { font-size: 0.82rem; color: var(--ash-dim); margin: 0; }

/* ---------- Stopka ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(2.6rem, 6vw, 4rem) 1.6rem;
  font-size: 0.9rem;
  color: var(--ash-dim);
  background: #100c09;
}
.footer-grid {
  display: grid;
  gap: 2.2rem 3rem;
  padding-bottom: clamp(1.8rem, 4vw, 2.8rem);
}
@media (min-width: 820px) { .footer-grid { grid-template-columns: 5fr 3fr 4fr; } }

.footer-brand .footer-lockup { height: 56px; width: auto; margin-bottom: 1rem; }
.footer-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ash);
  margin: 0 0 0.35rem;
}
.footer-desc { margin: 0; max-width: 34ch; line-height: 1.6; }

.footer-h {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--flame-amb);
  margin: 0 0 0.9rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-col a { color: var(--ash-dim); text-decoration: none; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--ash); }
.footer-col a.strong { color: var(--ash); font-weight: 600; }
.footer-col a.strong:hover { color: var(--flame-amb); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.5rem;
  font-size: 0.8rem;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.footer-nav a { color: var(--ash-dim); text-decoration: none; }
.footer-nav a:hover { color: var(--flame-amb); text-decoration: underline; }

/* ---------- Podstrony prawne / 404 ---------- */
.page-simple { padding-block: clamp(3rem, 7vw, 5.5rem); min-height: 55vh; }
.page-simple h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-simple h2 {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.2rem;
  margin-top: 2.3rem;
}
.page-simple .updated {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash-dim);
  margin-bottom: 2rem;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 8rem);
  line-height: 1;
  margin: 0 0 0.5rem;
  background: var(--fire-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


/* ---------- Druk / białe tło ---------- */
@media print {
  :root { color-scheme: light; }
  * {
    background: #fff !important;
    color: #1a1a1a !important;
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
  }
  body { font-size: 11pt; }
  a { color: #8a3c00 !important; text-decoration: underline; }
  a[href^="tel:"]::after, a[href^="mailto:"]::after { content: ""; }
  .spark-label, .timeline .t-year, .action-list .a-year, .service-item .tag,
  .error-code, .hero h1 .fire-text {
    color: #a34400 !important;
    -webkit-text-fill-color: #a34400 !important;
    background: none !important;
  }
  .spark-label::before, .hero-spec li::before, .audience-list li::before,
  .case-list li::before, .timeline li::before, .actions-block h3::before,
  .keyfacts-grid > div::before, .credentials::before, .contact-form::before,
  .h-fire::after { background: #a34400 !important; }
  .chevrons, .watermark, .nav-toggle, .mobile-nav, .skip-link,
  .contact-form button, .scroll-progress, .fire-scene { display: none !important; }
  .section-head::before { content: none !important; }
  .site-header { position: static; border-bottom: 2px solid #1a1a1a; }
  .header-phone { border: 1px solid #1a1a1a; }
  section { padding-block: 1.2rem; }
  .service-item, .credentials, .contact-form,
  .keyfacts-grid > div { border: 1px solid #bbb !important; }
  .case-list li, .audience-list li, .contact-data li,
  .action-list li, .mobile-nav a { border-color: #ccc !important; }
}


/* ---------- Subtelne pojawianie treści ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .rv-in { opacity: 1; transform: none; }
}
@media print {
  .rv { opacity: 1 !important; transform: none !important; }
}


/* ---------- Dyskretny motyw ppoż. w sekcjach ---------- */
section { position: relative; }
.sec-icon {
  position: absolute;
  top: clamp(2rem, 5vw, 3.5rem);
  right: clamp(1rem, 5vw, 4rem);
  width: clamp(80px, 11vw, 140px);
  height: auto;
  color: var(--ash);
  opacity: 0.075;
  pointer-events: none;
}
@media print { .sec-icon { display: none !important; } }


/* ---------- Strona 404 ---------- */
.page-404 {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: min(78vh, 720px);
  padding-block: clamp(4rem, 10vw, 7rem);
  background:
    radial-gradient(70rem 32rem at 50% 118%, rgba(224, 58, 28, 0.34), transparent 62%),
    linear-gradient(180deg, #14100c, var(--smoke));
}
.page-404-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: clamp(1.1rem, 3vw, 1.8rem);
}
.page-404 .error-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 12rem);
  line-height: 0.9;
  margin: 0;
  background: var(--fire-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 40px rgba(224, 58, 28, 0.35));
  letter-spacing: 0.02em;
}
.page-404 h1 { margin: 0; text-shadow: 0 3px 30px rgba(0, 0, 0, 0.65); }
.page-404 h1::after { left: 50%; transform: translateX(-50%); }
.page-404 .lead { max-width: 46ch; }
.page-404 .cta-row { justify-content: center; }

.page-404-nav { margin-top: clamp(1.4rem, 4vw, 2.4rem); }
.page-404-nav .footer-h { text-align: center; margin-bottom: 0.7rem; }
.page-404-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.4rem;
  font-size: 0.9rem;
}
.page-404-nav a {
  color: var(--ash-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.page-404-nav a:hover { color: var(--flame-amb); border-bottom-color: var(--flame-org); }

.fire-scene-404 .flame { filter: blur(30px); }
