/* ===== ZMIENNE – kolory i czcionki marki ===== */
:root {
  /* Kolory marki: czerwony, czarny, biały (z logo) */
  --navy: #111111;       /* czarny – tła ciemnych sekcji */
  --navy-2: #1f1f1f;
  --heat: #e3262b;       /* czerwony z logo */
  --heat-dark: #b81c20;
  --cold: #111111;       /* drugi akcent – czarny */
  --text: #161616;
  --muted: #5f5f5f;
  --bg: #ffffff;
  --bg-alt: #f4f4f4;
  --border: #e4e4e4;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --radius: 12px;
  --max-width: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.6em;
}

h1, h2 {
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

h3 { font-size: 1.3rem; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }

svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.text-heat { color: var(--heat); }

/* ===== UKŁAD ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 88px 0;
  scroll-margin-top: 64px;
}

.section--alt { background: var(--bg-alt); }

.section--dark {
  background: var(--navy);
  color: #fff;
}

.section__head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section__head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.section__head p:last-child { color: var(--muted); margin: 0; }

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--heat);
}

/* ===== PRZYCISKI ===== */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border: 2px solid var(--heat);
  border-radius: 999px;
  background: var(--heat);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.btn:hover { background: var(--heat-dark); border-color: var(--heat-dark); transform: translateY(-1px); }

.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.5); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

.btn--small { padding: 8px 18px; font-size: 0.95rem; }

.btn--dark { background: var(--navy); border-color: var(--navy); }
.btn--dark:hover { background: var(--heat); border-color: var(--heat); }

/* ===== NAGŁÓWEK ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
}

.nav__list a:not(.btn):hover { color: var(--heat); }

/* dwa przyciski obok siebie (Sklep + Wycena) bliżej siebie */
.nav__list li:has(> .btn) + li:has(> .btn) { margin-left: -16px; }

/* ===== STRONA "WKRÓTCE" (sklep) ===== */
.soon {
  min-height: calc(100vh - 64px - 76px);
  display: grid;
  align-items: center;
}

.soon .hero__actions { margin-top: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 130px 0 170px;
  color: #fff;
  background:
    radial-gradient(700px circle at 85% 110%, rgba(227, 38, 43, 0.45), transparent 60%),
    radial-gradient(500px circle at 0% 0%, rgba(255, 255, 255, 0.06), transparent 60%),
    /* przyciemnienie zdjęcia, żeby tekst był czytelny */
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0.35) 100%),
    /* ZDJĘCIE W TLE: wrzuć plik assets/img/hero.jpg (najlepiej poziome, min. 1920 px szerokości) */
    url(../assets/img/hero.jpg) center / cover no-repeat,
    linear-gradient(135deg, #0b0b0b, var(--navy-2));
}

.hero__inner { position: relative; z-index: 1; max-width: 820px; }

/* duży płomień w tle hero */
.hero__flame {
  position: absolute;
  right: -40px;
  bottom: -90px;
  width: min(560px, 60vw);
  opacity: 0.16;
  transform: rotate(8deg);
  pointer-events: none;
  user-select: none;
}

.hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }

.hero__lead {
  max-width: 640px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 36px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== KARTY USŁUG ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  --accent: var(--navy-2);
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 31, 51, 0.08);
}

.card--heat { --accent: var(--heat); }
.card--cold { --accent: var(--cold); }

.card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 10px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

/* --- Zdjęcie w karcie usługi ---
   Wrzuć zdjęcie do assets/img/uslugi/<nazwa>.jpg – pokaże się automatycznie.
   Bez zdjęcia wyświetla się czerwona/czarna grafika zastępcza. */
.card {
  --fallback: linear-gradient(135deg, #4a4a4a, #141414);
  --pattern: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 14px);
  --shade: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent 60%);
  --photo: none;
  overflow: hidden;
}

.card--heat { --fallback: linear-gradient(135deg, #e3262b, #7d1114); }
.card--cold { --fallback: linear-gradient(135deg, #2c2c2c, #050505); }

.card::before {
  content: "";
  display: block;
  height: 180px;
  margin: -28px -28px 0;
  background-image: var(--shade), var(--photo), var(--pattern), var(--fallback);
  background-size: cover;
  background-position: center;
}

.card[data-img="ogrzewanie"]  { --photo: url(../assets/img/uslugi/ogrzewanie.jpg); }
.card[data-img="podlogowe"]   { --photo: url(../assets/img/uslugi/podlogowe.jpg); }
.card[data-img="wentylacja"]  { --photo: url(../assets/img/uslugi/wentylacja.jpg); }
.card[data-img="klimatyzacja"]{ --photo: url(../assets/img/uslugi/klimatyzacja.jpg); }
.card[data-img="chlodnictwo"] { --photo: url(../assets/img/uslugi/chlodnictwo-przemyslowe.jpg); }
.card[data-img="sklepy"]      { --photo: url(../assets/img/uslugi/sklepy.jpg); }

.card .card__icon {
  position: relative;
  margin-top: -26px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.card p { margin: 0; color: var(--muted); }

/* ===== BANER INWESTYCJE ===== */
.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 32px;
  padding: 36px 40px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(110deg, #0b0b0b 0%, var(--navy-2) 65%, #5a1012 100%);
}

.banner h3 { font-size: 1.4rem; }
.banner p { margin: 0; max-width: 620px; color: rgba(255, 255, 255, 0.8); }
.banner .btn { flex-shrink: 0; }

/* ===== DLA KOGO ===== */
.audience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.audience__item {
  padding: 28px;
  background: var(--bg);
  border-radius: var(--radius);
  border-top: 3px solid var(--heat);
}

.audience__item:nth-child(n+3) { border-top-color: var(--cold); }

.audience__item svg {
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  color: var(--navy-2);
}

.audience__item p { margin: 0; color: var(--muted); }

/* ===== KROKI ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  color: var(--heat);
}

.steps p { margin: 0; color: var(--muted); }

/* ===== KONTAKT ===== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.contact__info h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.contact__info > p { color: rgba(255, 255, 255, 0.75); }

.contact__list {
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.1rem;
}

.contact__list svg { color: var(--heat); }
.contact__list a { text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }

.form {
  display: grid;
  gap: 16px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 600;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 400;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--heat);
  border-color: transparent;
}

.form .btn { justify-self: start; }

.form__status { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ===== STOPKA ===== */
.footer {
  padding: 28px 0;
  background: #000;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer p { margin: 0; }
.footer strong { color: #fff; }

/* ===== ATUTY (pasek nachodzący na hero) ===== */
.highlights {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: -64px;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.highlights__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 28px;
}

.highlights__item + .highlights__item { border-left: 1px solid var(--border); }

.highlights__item svg { width: 36px; height: 36px; color: var(--heat); }

.highlights__item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.25rem;
  line-height: 1.2;
}

.highlights__item span { color: var(--muted); font-size: 0.95rem; }

/* ===== O NAS (zdjęcie + tekst) ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split__media {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius);
  box-shadow: -18px 18px 0 var(--heat);
  /* ZDJĘCIE: wrzuć plik assets/img/o-nas.jpg */
  background:
    url(../assets/img/o-nas.jpg) center / cover no-repeat,
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 16px),
    radial-gradient(circle at 70% 80%, rgba(227, 38, 43, 0.5), transparent 60%),
    linear-gradient(135deg, #2a2a2a, #050505);
}

/* znaczek z płomieniem w rogu zdjęcia */
.split__media img {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 72px;
  height: 72px;
  padding: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.split__body h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.split__body > p { color: var(--muted); }

.checklist {
  display: grid;
  gap: 12px;
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 34px;
  font-weight: 500;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat,
    var(--heat);
}

/* ===== DEKORACYJNE TŁA SEKCJI ===== */
.section--dots {
  background-color: var(--bg-alt);
  background-image: radial-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
}

.section--flame {
  position: relative;
  overflow: hidden;
}

.section--flame::before {
  content: "";
  position: absolute;
  left: -140px;
  bottom: -160px;
  width: 560px;
  height: 560px;
  background: url(../assets/img/plomien.svg) center / contain no-repeat;
  opacity: 0.08;
  transform: rotate(-10deg);
  pointer-events: none;
}

.section--flame .container { position: relative; z-index: 1; }

/* ===== ANIMACJE POJAWIANIA SIĘ ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }
.card.reveal.is-visible:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .nav.is-open { display: block; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
  }

  .nav__list a:not(.btn) { display: block; padding: 12px 0; }
  .nav__list .btn { display: block; margin-top: 8px; text-align: center; }
  .nav__list li:has(> .btn) + li:has(> .btn) { margin-left: 0; }

  .hero { padding: 80px 0 120px; }

  .highlights { grid-template-columns: 1fr; margin-top: -48px; }
  .highlights__item + .highlights__item { border-left: 0; border-top: 1px solid var(--border); }
  .highlights__item { padding: 20px 22px; }

  .split { grid-template-columns: 1fr; gap: 48px; }
  .split__media { box-shadow: -12px 12px 0 var(--heat); margin-left: 12px; }
  .section { padding: 64px 0; }

  .banner { flex-direction: column; align-items: flex-start; padding: 28px 24px; }

  .contact { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .form__row { grid-template-columns: 1fr; }
}
