/* ==========================================================================
   TermoFrost — termo-frost.pl
   Statyczny one-page. Zero zewnętrznych zasobów (fonty lokalne).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonty (self-hosted, subsety latin + latin-ext)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Zmienne
   -------------------------------------------------------------------------- */
:root {
  --bg: #0b0d10;
  --bg-alt: #12151a;
  --card: #161a20;
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.1);
  --text: #e8ecf1;
  --text-2: #c3ccd6;
  --muted: #9aa4b0;
  --accent: #3ab7ff;
  --accent-2: #1f9ee9;
  --accent-soft: rgba(58, 183, 255, 0.1);
  --accent-line: rgba(58, 183, 255, 0.22);

  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 58px;
  --container: 1140px;
  --pad-x: 16px;
  --section-y: clamp(56px, 8vw, 96px);
}

/* --------------------------------------------------------------------------
   3. Reset / baza
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: 0.012em;
}
h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: 0.018em;
}
h3 {
  font-size: 1.0625rem;
  line-height: 1.32;
  letter-spacing: 0.04em;
}

p { margin: 0; }

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

a { color: inherit; }

ul, ol { margin: 0; padding: 0; }

address { font-style: normal; }

::selection {
  background: var(--accent);
  color: #04121c;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* kotwice pod sticky headerem */
[id] { scroll-margin-top: calc(var(--header-h) + 14px); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #04121c;
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
}
.skip-link:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--pad-x) * 2);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section {
  position: relative;
  padding: var(--section-y) 0;
  background: var(--bg);
}
.section--alt { background: var(--bg-alt); }

/* delikatna dekoracja wzorem płatków */
.section--pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("img/pattern.png") repeat;
  background-size: 172px auto;
  opacity: 0.05;
  pointer-events: none;
}
.section--pattern > .container { position: relative; }

.section__head {
  max-width: 780px;
  margin-bottom: clamp(30px, 4.5vw, 52px);
}

.overline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.overline::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  flex: none;
}

.lead {
  margin-top: 18px;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.65;
  max-width: 68ch;
}

.grid {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  list-style: none;
}

/* --------------------------------------------------------------------------
   5. Przyciski i ikony
   -------------------------------------------------------------------------- */
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease, color 0.2s ease, filter 0.2s ease;
}

.btn--primary {
  background: linear-gradient(180deg, #4dc2ff 0%, var(--accent-2) 100%);
  color: #04121c;
  box-shadow: 0 10px 26px -14px rgba(58, 183, 255, 0.9);
}
.btn--primary:focus-visible { outline-color: #fff; }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
}

.btn--lg {
  padding: 16px clamp(18px, 3.6vw, 26px);
  font-size: clamp(0.8125rem, 2.4vw, 0.875rem);
}
/* skaluje się płynnie — na 320 px header musi zmieścić logo + telefon + CTA */
.btn--sm {
  padding: 10px clamp(11px, 2.8vw, 18px);
  font-size: clamp(0.625rem, 2.5vw, 0.75rem);
  letter-spacing: 0.06em;
}

@media (hover: hover) {
  .btn--primary:hover {
    filter: brightness(1.07);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -14px rgba(58, 183, 255, 0.95);
  }
  .btn--ghost:hover {
    border-color: var(--accent);
    background: rgba(58, 183, 255, 0.1);
    color: var(--accent);
    transform: translateY(-2px);
  }
}

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(6px, 2vw, 12px);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex: 0 1 auto;
}
.brand img {
  height: clamp(24px, 7.4vw, 34px);
  width: auto;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: clamp(6px, 2vw, 10px);
  flex: none;
}

.phone-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.phone-link .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  transition: color 0.2s ease;
}
/* na wąskim ekranie sama ikonka — numer zostaje dostępny dla czytników */
.phone-link__label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (hover: hover) {
  .phone-link:hover {
    border-color: var(--accent);
    background: rgba(58, 183, 255, 0.08);
    color: var(--accent);
  }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 86vh;
  min-height: 86svh;
  padding: clamp(48px, 9vw, 96px) 0 clamp(44px, 7vw, 84px);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #06080b;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 50%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(6, 8, 11, 0.86) 0%,
      rgba(6, 8, 11, 0.62) 38%,
      rgba(6, 8, 11, 0.84) 78%,
      var(--bg) 100%
    ),
    rgba(6, 8, 11, 0.24);
}

.hero__inner {
  position: relative;
  max-width: calc(var(--container) + var(--pad-x) * 2);
}

.hero h1 {
  max-width: 15ch;
  margin-bottom: 20px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.hero__lead {
  max-width: 60ch;
  color: var(--text-2);
  font-size: clamp(1rem, 1.7vw, 1.1875rem);
  line-height: 1.68;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 3.4vw, 38px);
}
.hero__actions .btn { flex: 1 1 240px; }

.hero__sectors {
  margin-top: clamp(24px, 3vw, 34px);
  padding-top: clamp(18px, 2.4vw, 24px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 560px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* akcent w H1 — solidny kolor jako fallback, gradient tam, gdzie działa clip */
.hero__accent { color: var(--accent); }

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero__accent {
    background-image: linear-gradient(100deg, var(--accent) 0%, #8fd6ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

/* „śnieg" suchego lodu — nad zdjęciem hero, pod treścią */
.hero__snow {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   8. Liczby zaufania — wąski pasek pod hero
   -------------------------------------------------------------------------- */
.stats {
  position: relative;
  padding: clamp(26px, 4vw, 40px) 0;
  background: var(--bg);
}

.stats__panel {
  display: grid;
  gap: clamp(16px, 2.4vw, 22px);
  padding: clamp(22px, 3vw, 32px) clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 160% at 50% 0%, rgba(58, 183, 255, 0.1) 0%, rgba(58, 183, 255, 0) 62%),
    var(--card);
  text-align: center;
}

.stat + .stat {
  padding-top: clamp(16px, 2.4vw, 22px);
  border-top: 1px solid var(--line-2);
}

.stat__value {
  display: block;
  color: var(--accent);
  font-size: clamp(2rem, 7vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   9. Karty
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  padding: clamp(20px, 2.6vw, 28px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card h3 { margin-bottom: 10px; }
.card p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.72;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-3px);
    border-color: rgba(58, 183, 255, 0.42);
    box-shadow: 0 22px 44px -28px rgba(0, 0, 0, 0.95),
      0 10px 34px rgba(58, 183, 255, 0.13);
  }
  /* ikona rozjaśnia się razem z kartą */
  .card:hover .card__icon {
    border-color: rgba(58, 183, 255, 0.45);
    background: rgba(58, 183, 255, 0.16);
    color: #7ed0ff;
  }
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.card__icon svg { width: 24px; height: 24px; }
.card__icon--lg { width: 56px; height: 56px; }
.card__icon--lg svg { width: 28px; height: 28px; }

/* karta z akcentowym paskiem u góry */
.card--top { padding-top: calc(clamp(20px, 2.6vw, 28px) + 4px); }
.card--top::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(58, 183, 255, 0.12) 100%);
}

/* --------------------------------------------------------------------------
   10. Metoda — kroki + chipy
   -------------------------------------------------------------------------- */
.step { padding-right: clamp(56px, 8vw, 72px); }
.step__num {
  position: absolute;
  top: 16px;
  right: 20px;
  color: rgba(58, 183, 255, 0.16);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
}

.chips-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: clamp(24px, 3.2vw, 34px);
  padding: clamp(16px, 2.2vw, 22px) clamp(18px, 2.6vw, 26px);
  border: 1px dashed rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.chips-bar__label {
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
}
.chips li {
  padding: 7px 14px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: rgba(58, 183, 255, 0.08);
  color: #cfe6f9;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   11. Branże
   -------------------------------------------------------------------------- */
.sector h3 { font-size: 1.1875rem; }
.sector p { font-size: 0.96875rem; }

.note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 30px);
  padding: 18px 20px;
  border: 1px solid rgba(58, 183, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(58, 183, 255, 0.06);
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.note__icon {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--accent);
}
.note a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
@media (hover: hover) {
  .note a:hover { color: #7ed0ff; }
}

/* --------------------------------------------------------------------------
   12. Realizacje
   -------------------------------------------------------------------------- */
/* karty równej wysokości w wierszu — podpisy wyrównane do dołu */
.works { align-items: stretch; }

.work {
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
@media (hover: hover) {
  .work:hover {
    transform: translateY(-3px);
    border-color: rgba(58, 183, 255, 0.35);
    box-shadow: 0 22px 44px -28px rgba(0, 0, 0, 0.95),
      0 10px 34px rgba(58, 183, 255, 0.13);
  }
}
.work figcaption {
  margin-top: auto;
  padding: 15px 18px 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.90625rem;
  line-height: 1.55;
}

/* przed / po */
.ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(255, 255, 255, 0.07);
}
.ba__item {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0e1116;
}
.ba__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.12em;
}
.badge--before {
  background: rgba(10, 13, 17, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #d3dae2;
}
.badge--after {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #04121c;
}

/* filmy i zdjęcie */
.media {
  position: relative;
  overflow: hidden;
  background: #0e1116;
}
.media video,
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media--video { aspect-ratio: 16 / 9; }
.media--photo {
  aspect-ratio: 4 / 3;
}
.media--photo img { object-position: 50% 34%; }

/* mała ikonka ▶ na posterze filmu */
.play {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(58, 183, 255, 0.55);
  border-radius: 11px;
  background: rgba(8, 11, 15, 0.72);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.play::before {
  content: "";
  position: absolute;
  left: 53%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--accent);
}
/* łagodny puls, dopóki film stoi na posterze */
.media--video .play {
  animation: play-pulse 2.6s ease-in-out infinite;
}
.media--video.is-playing .play {
  opacity: 0;
  transform: scale(0.86);
  animation: none;
}

@keyframes play-pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* --------------------------------------------------------------------------
   13. Jak działamy
   -------------------------------------------------------------------------- */
.flow {
  display: grid;
  gap: 26px;
  list-style: none;
}
.flow__step {
  position: relative;
  padding-left: 66px;
}
/* pionowa oś na mobile */
.flow__step::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 56px;
  bottom: -30px;
  width: 1px;
  background: linear-gradient(180deg, rgba(58, 183, 255, 0.4), rgba(58, 183, 255, 0.06));
}
.flow__step:last-child::before { display: none; }

.flow__num {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1;
}
.flow__step h3 {
  margin-bottom: 8px;
  padding-top: 11px;
  font-size: 1.125rem;
}
.flow__step p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.72;
}

/* --------------------------------------------------------------------------
   14. Kontakt / final CTA
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 72px) clamp(20px, 4vw, 56px);
  border: 1px solid rgba(58, 183, 255, 0.28);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 150% at 50% 0%, rgba(58, 183, 255, 0.18) 0%, rgba(58, 183, 255, 0.03) 48%, rgba(18, 21, 26, 0) 76%),
    linear-gradient(180deg, #13171d 0%, #0d1014 100%);
  text-align: center;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("img/pattern.png") no-repeat;
  background-position: right -56px top -44px;
  background-size: 300px auto;
  opacity: 0.07;
  pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }

.cta__lead {
  max-width: 46ch;
  margin: 16px auto 0;
  color: var(--text-2);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.65;
}

.cta__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.34em;
  margin-top: clamp(24px, 3.4vw, 34px);
  color: var(--text);
  font-size: clamp(1.875rem, 6.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.2s ease;
}
.cta__phone .icon {
  width: 0.6em;
  height: 0.6em;
  color: var(--accent);
}
@media (hover: hover) {
  .cta__phone:hover { color: var(--accent); }
}

.cta__mails {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.cta__mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: clamp(0.9375rem, 2.4vw, 1.0625rem);
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
  transition: color 0.2s ease;
}
.cta__mail .icon { width: 20px; height: 20px; }
@media (hover: hover) {
  .cta__mail:hover { color: #7ed0ff; }
}

.cta__area {
  max-width: 52ch;
  margin: clamp(26px, 3.4vw, 34px) auto 0;
  padding-top: clamp(20px, 2.6vw, 26px);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   15. Stopka
   -------------------------------------------------------------------------- */
.site-footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(38px, 6vw, 60px) 0 clamp(26px, 3.4vw, 36px);
}
.site-footer__inner {
  display: grid;
  gap: clamp(24px, 3.2vw, 34px);
}
.site-footer__brand img { height: 34px; width: auto; }
.site-footer__tagline {
  margin-top: 14px;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.site-footer__cols {
  display: grid;
  gap: 18px;
}
.site-footer__col {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.85;
}
.site-footer__contact a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}
@media (hover: hover) {
  .site-footer__contact a:hover { color: var(--accent); }
}
.site-footer__copy {
  padding-top: clamp(18px, 2.4vw, 24px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #7b8792;
  font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   16. Animacje wejścia
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.72, 0.28, 1);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* kaskada — kolejne karty w gridzie wchodzą co ~70 ms, max 0,35 s */
.js .grid > .reveal:nth-child(2),
.js .flow > .reveal:nth-child(2) { transition-delay: 0.07s; }
.js .grid > .reveal:nth-child(3),
.js .flow > .reveal:nth-child(3) { transition-delay: 0.14s; }
.js .grid > .reveal:nth-child(4) { transition-delay: 0.21s; }
.js .grid > .reveal:nth-child(5) { transition-delay: 0.28s; }
.js .grid > .reveal:nth-child(6) { transition-delay: 0.35s; }

/* wejście hero po załadowaniu — overline, h1, lead, przyciski, pasek branż */
.js .hero__inner > * { animation: hero-in 0.7s cubic-bezier(0.22, 0.72, 0.28, 1) both; }
.js .hero__inner > h1 { animation-delay: 0.08s; }
.js .hero__inner > .hero__lead { animation-delay: 0.16s; }
.js .hero__inner > .hero__actions { animation-delay: 0.24s; }
.js .hero__inner > .hero__sectors { animation-delay: 0.32s; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   17. Breakpointy
   -------------------------------------------------------------------------- */
@media (min-width: 360px) {
  :root { --pad-x: 20px; --header-h: 62px; }
}

@media (min-width: 480px) {
  .badge { left: 12px; top: 12px; }
  .play { left: 14px; top: 14px; }
}

@media (min-width: 560px) {
  /* numer telefonu w headerze — pełny, z ikonką */
  .phone-link {
    width: auto;
    height: auto;
    padding: 10px 15px;
  }
  .phone-link__label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
  }
  .site-header__actions { gap: 10px; }
}

@media (min-width: 620px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  /* trzecia karta na całą szerokość, żeby nie zostawiać sieroty */
  .steps > li:last-child,
  .sectors > li:last-child { grid-column: 1 / -1; }

  /* liczniki obok siebie, rozdzielone pionową kreską */
  .stats__panel {
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 4vw, 40px);
  }
  .stat + .stat {
    padding-top: 0;
    border-top: 0;
    border-left: 1px solid var(--line-2);
  }
}

@media (min-width: 720px) {
  :root { --pad-x: 28px; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .media--photo { aspect-ratio: 3 / 2; }
  .site-footer__cols {
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: start;
  }
  .site-footer__contact { text-align: right; }
}

@media (min-width: 768px) {
  :root { --header-h: 78px; }
  .brand img { height: 46px; }
  .btn--sm { padding: 12px 18px; }
  .hero__actions .btn { flex: 0 0 auto; }
  .note { padding: 20px 24px; font-size: 1rem; }
}

@media (min-width: 860px) {
  .flow {
    --flow-gap: clamp(24px, 3vw, 40px);
    grid-template-columns: repeat(3, 1fr);
    gap: var(--flow-gap);
  }
  .flow__step { padding-left: 0; }
  /* pozioma oś na desktopie — od krawędzi kółka do kółka w następnej kolumnie */
  .flow__step::before {
    left: 60px;
    right: calc(-1 * var(--flow-gap));
    top: 24px;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, rgba(58, 183, 255, 0.35), rgba(58, 183, 255, 0.05));
  }
  .flow__num {
    position: static;
    margin-bottom: 22px;
  }
  .flow__step h3 { padding-top: 0; }
}

@media (min-width: 940px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .steps > li:last-child,
  .sectors > li:last-child { grid-column: auto; }
  .step { padding-right: clamp(56px, 6vw, 68px); }
}

@media (min-width: 1100px) {
  .hero__lead { font-size: 1.1875rem; }
  .section__head { margin-bottom: 56px; }
}

/* --------------------------------------------------------------------------
   18. Ograniczony ruch
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  /* fajerwerki wyłączone: wejście hero, puls ▶, kaskada kart */
  .js .hero__inner > * { animation: none; }
  .media--video .play { animation: none; }
  .js .grid > .reveal:nth-child(n),
  .js .flow > .reveal:nth-child(n) { transition-delay: 0s; }
  /* śnieg w hero i tak nie startuje — site.js sprawdza preferencję */
  .hero__snow { display: none; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   19. Druk (podstawowy)
   -------------------------------------------------------------------------- */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .play, .hero__media, .hero__snow { display: none; }
  .section, .section--alt, .cta, .card, .work { background: #fff; color: #000; border-color: #ccc; }
  h1, h2, h3, .cta__phone { color: #000; }
  .stats, .stats__panel { background: #fff; border-color: #ccc; }
  .hero__accent, .stat__value { color: #000; -webkit-text-fill-color: #000; background: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero__inner > * { animation: none; }
}

/* utility */
.nowrap { white-space: nowrap; }
