/* ============================================================
   style.css — KontenerPark
   Paleta: #1B5FA8 (akcent), #1A1F2E (antracyt), #F4F5F7 (jasny),
           #1C1C1C (tekst), #7B9BBF (zimna stal), #111520 (stopka)
   Fonty: Barlow Condensed (headings), DM Sans (body)
   ============================================================ */

/* ============================================================
   0. CSS Variables
   ============================================================ */
:root {
  --color-accent:     #1B5FA8;
  --color-accent-dark:#164e8e;
  --color-dark:       #1A1F2E;
  --color-light:      #F4F5F7;
  --color-text:       #1C1C1C;
  --color-text-muted: #46464c;
  --color-steel:      #7B9BBF;
  --color-footer:     #111520;
  --color-white:      #ffffff;
  --color-card-bg:    rgba(255, 255, 255, 0.05);
  --color-card-border:rgba(123, 155, 191, 0.25);

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  --header-height: 72px;
  --container-max: 1200px;
  --section-pad:   96px;
  --section-pad-m: 64px;
}

/* ============================================================
   1. Reset i baza
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin:  0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-light);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ============================================================
   2. Accessibility
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
}
.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ============================================================
   3. Layout — Container
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   4. Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

/* Wypełniony akcentem */
.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

/* Ghost — białe obramowanie (na ciemnym tle) */
.btn--ghost-white {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn--ghost-white:hover,
.btn--ghost-white:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

/* Ghost — akcent (na jasnym tle) */
.btn--ghost-accent {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn--ghost-accent:hover,
.btn--ghost-accent:focus-visible {
  background: rgba(27, 95, 168, 0.08);
}

/* Pełna szerokość */
.btn--full {
  width: 100%;
}

/* ============================================================
   5. Section — wspólne style
   ============================================================ */
.section {
  padding: var(--section-pad) 0;
}

/* Sekcja poprzedzona separatorem — usuń górny padding (separator robi odstęp) */
.section-divider + .section {
  padding-top: calc(var(--section-pad) * 0.55);
}

/* Pierwsza sekcja po hero */
.hero + .section {
  position: relative;
  z-index: 1;
}

/* Sekcja po hero + po dividerze (gdy divider jeszcze jest) */
.hero + .section-divider + .section {
  margin-top: 0;
}

.section--light {
  background: var(--color-light);
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}

#jak-to-dziala {
  background-image: none;
}

.section--dark {
  background: var(--color-dark);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
}

.section--navy {
  background: #0b0f1c;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* Etykieta sekcji z linią oddzielającą nagłówek */
.section-label {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 11px;
  color: var(--color-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-accent);
  margin-bottom: 18px;
}

.section-label__num {
  color: var(--color-accent);
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--color-text);
  line-height: 1.1;
}

.section-heading--white {
  color: var(--color-white);
}

/* Intro blok (etykieta + nagłówek razem) */
.section-intro {
  max-width: 400px;
}

.section-intro--wide {
  max-width: 700px;
  margin-bottom: 64px;
}

/* ============================================================
   6. Header
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.header.is-scrolled {
  background: var(--color-dark);
  border-bottom-color: rgba(123, 155, 191, 0.2);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo__img {
  height: 90px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Nav list */
.nav__list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  padding: 6px 12px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: #fff;
}

/* Telefon w nav — ghost button */
.nav__phone {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-accent);
  padding: 8px 16px;
  border: 1px solid var(--color-accent);
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nav__phone:hover,
.nav__phone:focus-visible {
  background: var(--color-accent);
  color: #fff;
}

/* Na transparentnym headerze (nad hero) — biały przycisk */
.header:not(.is-scrolled) .nav__phone {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.65);
}

.header:not(.is-scrolled) .nav__phone:hover,
.header:not(.is-scrolled) .nav__phone:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: #fff;
}

/* Hamburger (ukryty na desktop) */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* Hamburger otwarty — X */
.nav__hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   7. Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  padding-top: var(--header-height);
  background-image: url('img/hero.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Ciemna nakładka */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 31, 46, 0.30);
  z-index: 0;
}

/* V-wycięcie — trójkąt w kolorze sekcji poniżej, naklejony od dołu */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 88px;
  background: var(--color-light);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
  z-index: 2;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  padding-top: 40px;
  padding-bottom: 120px; /* 80px głębokości cięcia + 40px bufor */
  padding-left: 24px;
  padding-right: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Eyebrow */
.hero__eyebrow {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  margin-bottom: 20px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Animacja wejścia eyebrow */
.hero__eyebrow--anim {
  opacity: 0;
  animation: heroFadeDown 0.6s ease forwards;
  animation-delay: 0.1s;
}

/* H1 */
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 28px;
  /* Rezerwuje miejsce na 3 linie od razu — zapobiega zmianie rozmiaru tła podczas typewritera */
  min-height: calc(clamp(2.5rem, 5vw, 4.5rem) * 1.1 * 3);
}

/* Kursor pisania */
.hero__cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--color-accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: cursorBlink 0.75s step-end infinite;
}

.hero__cursor.is-done {
  animation: cursorBlink 0.75s step-end 3;
  animation-fill-mode: forwards;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Lead */
.hero__lead {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: #D0D8E4;
  line-height: 1.7;
  max-width: 520px;
  opacity: 0;
  margin-bottom: 36px;
}

.hero__lead--anim {
  animation: heroFadeUp 0.7s ease forwards;
}

/* CTA buttons */
.hero__buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
  opacity: 0;
}

.hero__buttons--anim {
  animation: heroFadeUp 0.7s ease forwards;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes heroFadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0);     }
}

/* Badges pod przyciskami */
.hero__badges {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  opacity: 0;
  animation: heroFadeUp 0.7s ease forwards;
  animation-delay: 0.2s; /* tuż po przyciskach */
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.hero__badge-icon {
  flex-shrink: 0;
}

/* ============================================================
   7b. Section dividers (kształt V/klina między sekcjami)
   ============================================================ */
.section-divider {
  position: relative;
  height: 64px;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
}

.section-divider::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* Jasna → ciemna: góra jasna, dół ciemny */
.section-divider--light-to-dark {
  background: var(--color-dark);
}
.section-divider--light-to-dark::before {
  background: var(--color-light);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* Ciemna → jasna: góra ciemna, dół jasny */
.section-divider--dark-to-light {
  background: var(--color-light);
}
.section-divider--dark-to-light::before {
  background: var(--color-dark);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* ============================================================
   8. Sekcja 02 — Jak to działa (section-split 40/60)
   ============================================================ */
.section-split {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 64px;
  align-items: start;
}

.section-split--offer {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.section-split--contact {
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Steps layout — sekcja 02 */
.steps-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}

.steps-layout__left {
  position: sticky;
  top: 96px;
}

.section-lead {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-top: 16px;
  max-width: 36ch;
}

.section-lead--white {
  color: rgba(255, 255, 255, 0.5);
  max-width: 54ch;
}

/* Left photo card */
.steps-card {
  margin-top: 36px;
  overflow: hidden;
  border-radius: 2px;
}

.steps-card__photo {
  background: var(--color-dark);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.steps-card__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.steps-card__photo-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
}

.steps-card__footer {
  background: rgba(27, 95, 168, 0.1);
  border-top: 2px solid var(--color-accent);
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* Hint above steps list */
.steps-hint {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
  font-weight: 400;
}

/* Steps list */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.step-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 0 20px;
  padding: 24px 20px 24px 16px;
  border-left: 3px solid transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
  position: relative;
}

.step-item:last-child {
  border-bottom: none;
}

.step-item.is-active,
.step-item:hover {
  border-left-color: var(--color-accent);
  background-color: rgba(27, 95, 168, 0.04);
}

.step-item__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--color-accent);
  line-height: 1;
  padding-top: 3px;
  transition: color 0.25s ease;
}

.step-item.is-active .step-item__num,
.step-item:hover .step-item__num {
  color: var(--color-accent);
}

.step-item__body {
  min-width: 0;
}

.step-item__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.15;
}

.step-item__text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  font-weight: 300;
}

.step-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.step-item__tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  padding: 3px 9px;
}

.step-item__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 80px;
  padding-top: 2px;
  flex-shrink: 0;
}

.step-item__stat-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  text-align: right;
  font-weight: 400;
  text-transform: uppercase;
}

.step-item__stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  color: var(--color-text);
  text-align: right;
  line-height: 1.1;
  margin-top: 3px;
}

/* Mobile photo inside each step — hidden on desktop */
.step-item__photo {
  display: none;
}

/* Photos grid — lewa kolumna pod H2 */
.steps-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 28px;
}

.steps-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

/* ============================================================
   9. Sekcja 03 — Atuty (karty na ciemnym tle)
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(123, 155, 191, 0.18);
  border-top: 3px solid rgba(123, 155, 191, 0.18);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-top-color 0.2s ease, background-color 0.2s ease;
}

.feature:hover {
  border-top-color: var(--color-accent);
  background-color: rgba(27, 95, 168, 0.06);
}

.feature__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.feature__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.07);
  line-height: 1;
  transition: color 0.2s ease;
}

.feature:hover .feature__num {
  color: var(--color-accent);
}

.feature__icon {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.feature:hover .feature__icon {
  opacity: 1;
}

.feature__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.2;
}

.feature__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  flex: 1;
}

.feature__tag {
  margin-top: 20px;
  padding: 6px 10px;
  background: rgba(27, 95, 168, 0.12);
  border-left: 2px solid var(--color-accent);
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(123, 155, 191, 0.7);
  text-transform: uppercase;
  align-self: flex-start;
}

/* ============================================================
   10. Sekcja 04 — Oferta
   ============================================================ */
.offer__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-top: 24px;
}

.offer-card {
  background: var(--color-dark);
  padding: 36px 40px 40px;
  color: #fff;
}

.offer-card__meta {
  margin-bottom: 14px;
}

.offer-card__label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  text-transform: uppercase;
}

.offer-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: #fff;
  margin-bottom: 20px;
}

.offer-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(123, 155, 191, 0.2);
}

.offer-card__stat-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--color-steel);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.offer-card__stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: #fff;
  line-height: 1.1;
}

.offer-card__divider {
  display: none;
}

.offer-card__lead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 6px;
}

.offer-card__sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--color-steel);
  margin-bottom: 28px;
}

.offer-card__btn {
  display: block;
  text-align: center;
  margin-bottom: 16px;
}

.offer-card__phone {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-steel);
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  transition: color 0.15s ease;
}

.offer-card__phone:hover,
.offer-card__phone:focus-visible {
  color: #fff;
}

/* ============================================================
   11. Sekcja 05 — Cennik
   ============================================================ */

.pricing-banner {
  display: grid;
  grid-template-columns: 360px 1fr;
  align-items: center;
  min-height: 440px;
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid var(--color-card-border);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}

.pricing-banner__info {
  padding: 48px 44px;
  background: rgba(11, 15, 28, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
  border-right: 1px solid var(--color-card-border);
}

.pricing-banner__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 40px;
}

.pricing-banner__visual img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  display: block;
}

.pricing-card__tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-steel);
  margin-bottom: 12px;
}

.pricing-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 28px;
}

.pricing-card__dims {
  list-style: none;
  padding: 20px 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--color-card-border);
  border-bottom: 1px solid var(--color-card-border);
}

.pricing-card__dims li {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #D0D8E4;
}

.pricing-card__dims li span {
  color: var(--color-steel);
}

.pricing-card__dims li strong {
  font-weight: 600;
  color: #fff;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.pricing-card__amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  color: #fff;
}

.pricing-card__unit {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-steel);
}

@media (max-width: 768px) {
  .pricing-card {
    grid-template-columns: 1fr;
  }
  .pricing-banner {
    grid-template-columns: 1fr;
  }
  .pricing-banner__info {
    border-right: none;
    border-bottom: 1px solid var(--color-card-border);
    padding: 32px 24px;
  }
  .pricing-banner__visual {
    padding: 24px;
  }
  .pricing-banner__visual img {
    max-height: 240px;
  }
}

/* ============================================================
   12. Sekcja 06 — Kontakt
   ============================================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  padding-bottom: var(--section-pad);
}

/* Info bloki */
.contact-layout__info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-block {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(123, 155, 191, 0.12);
}

.contact-block:first-child {
  padding-top: 0;
}

.contact-block__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(123, 155, 191, 0.2);
  background: rgba(123, 155, 191, 0.05);
}

.contact-block__label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-steel);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.contact-block__value {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.contact-block__link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.15s ease;
  word-break: break-all;
}

.contact-block__link:hover,
.contact-block__link:focus-visible {
  color: var(--color-steel);
}

/* Mapa — opakowana w kontener, na dole sekcji */
.contact-map {
  overflow: hidden;
  line-height: 0;
  border: 1px solid rgba(123, 155, 191, 0.15);
}

.contact-map iframe {
  display: block;
  width: 100%;
  filter: grayscale(30%) contrast(1.05);
}

/* Stare klasy — zachowane dla wstecznej kompatybilności skryptu */
.contact__intro,
.contact__details,
.contact__item,
.contact__icon,
.contact__link,
.contact__address,
.contact__map { display: none; }

/* ============================================================
   12. Formularz kontaktowy
   ============================================================ */
.form-wrapper {
  background: #0f1422;
  border: 1px solid rgba(123, 155, 191, 0.25);
  border-left: 3px solid var(--color-accent);
  padding: 40px;
}

.form-wrapper__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(123, 155, 191, 0.2);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-steel);
}

.form-label abbr {
  text-decoration: none;
  color: var(--color-accent);
  margin-left: 3px;
}

.form-optional {
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.75rem;
  color: rgba(123, 155, 191, 0.7);
}

.form-input,
.form-textarea {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9375rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(123, 155, 191, 0.25);
  padding: 12px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(123, 155, 191, 0.45);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  background: rgba(27, 95, 168, 0.06);
}

/* Błędne pole */
.form-input.is-invalid,
.form-textarea.is-invalid {
  border-color: #e05252;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.75rem;
  color: rgba(123, 155, 191, 0.7);
  line-height: 1.4;
}

.form-consent {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

.form-consent__link {
  color: var(--color-steel);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-consent__link:hover {
  color: #fff;
}

/* Status formularza */
.form-status {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  min-height: 20px;
  padding: 0;
}

.form-status.is-success {
  color: #6fcf7a;
  padding: 12px 0;
}

.form-status.is-error {
  color: #e57373;
  padding: 12px 0;
}

/* ============================================================
   13. Stopka
   ============================================================ */
.footer {
  background: var(--color-footer);
  padding: 36px 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  text-align: center;
}

.footer-bottom p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
}

.footer__link {
  color: var(--color-steel);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--color-accent);
}

/* ============================================================
   14. Mobile nav — fullscreen overlay
   ============================================================ */
@media (max-width: 768px) {
  .nav {
    justify-content: space-between;
    gap: 0;
    padding: 0 4px;
  }

  .nav__hamburger {
    display: flex;
    margin-left: auto;
  }

  .nav__list {
    position: fixed;
    inset: 0;
    top: var(--header-height);
    background: var(--color-dark);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 32px 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 99;
  }

  .nav__list.is-open {
    transform: translateX(0);
  }

  .nav__list li {
    width: 100%;
    border-bottom: 1px solid rgba(123, 155, 191, 0.12);
  }

  .nav__link {
    display: block;
    padding: 18px 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    width: 100%;
  }

  .nav__phone {
    display: block;
    margin-top: 8px;
    padding: 14px 20px;
    font-size: 1rem;
    text-align: center;
    width: 100%;
  }
}

/* ============================================================
   15. Responsywność — ogólna
   ============================================================ */
@media (max-width: 1024px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 900px) {
  .section-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-split--offer {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-split--contact {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-intro {
    max-width: 100%;
  }

  /* Contact layout responsive */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-map iframe {
    height: 260px;
  }

  /* Steps — mobile layout */
  .steps-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .steps-layout__left {
    position: static;
  }

  .steps-card {
    display: none;
  }

  .steps-hint {
    display: none;
  }

  .step-item {
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    padding: 20px 12px 24px 12px;
    gap: 0 16px;
    border-left: 3px solid transparent;
    overflow: hidden;
  }

  .step-item__stat {
    grid-column: 2;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 16px;
  }

  .step-item__stat-label {
    text-align: left;
  }

  .step-item__stat-value {
    text-align: left;
    font-size: 1.1rem;
  }

  /* Mobile photo card — slides up via clip-path (no overflow issues) */
  .step-item__photo {
    display: flex;
    align-items: flex-end;
    padding: 16px;
    grid-column: 1 / -1;
    height: 220px;
    margin: 12px -12px 0;
    background: var(--color-dark);
    background-image: repeating-linear-gradient(
      180deg,
      transparent 0px,
      transparent 23px,
      rgba(255, 255, 255, 0.03) 23px,
      rgba(255, 255, 255, 0.03) 24px
    );
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 1;
  }

  .step-item__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .step-item__photo.is-visible {
    clip-path: inset(0 0 0% 0);
  }

  .step-item__photo-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
    letter-spacing: 0.05em;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: var(--section-pad-m);
  }

  .hero {
    min-height: 85dvh;
  }

  .hero__inner {
    padding-left: 24px;
  }

  .hero__buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero__buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__badges {
    flex-direction: column;
    gap: 12px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .form-wrapper {
    padding: 28px 20px;
  }

  .offer-card {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

/* ============================================================
   16. Animacje scroll-triggered
   ============================================================ */

/* Keyframes */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.18); opacity: 0.7; }
}

/* Stany wyjściowe – przed wejściem w viewport */
.anim-fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.anim-from-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.anim-from-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.anim-scale-in {
  opacity: 0;
  transform: scale(0.93);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

/* Stan widoczny – dodawany przez JS */
.anim-fade-up.is-visible,
.anim-from-left.is-visible,
.anim-from-right.is-visible,
.anim-scale-in.is-visible {
  opacity: 1;
  transform: none;
}

/* Opóźnienia dla kaskadowych wejść */
.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.2s; }
.anim-delay-3 { transition-delay: 0.3s; }
.anim-delay-4 { transition-delay: 0.4s; }
.anim-delay-5 { transition-delay: 0.5s; }
.anim-delay-6 { transition-delay: 0.6s; }

/* Float – delikatne unoszenie się */
.anim-float {
  animation: float 4s ease-in-out infinite;
}

/* Pulse – delikatne pulsowanie (badge, dot) */
.anim-pulse {
  animation: pulse-dot 2.8s ease-in-out infinite;
}

/* Wyłącz animacje dla użytkowników preferujących brak ruchu */
@media (prefers-reduced-motion: reduce) {
  .anim-fade-up,
  .anim-from-left,
  .anim-from-right,
  .anim-scale-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .anim-float,
  .anim-pulse {
    animation: none;
  }
}

/* ============================================================
   17. Polityka prywatności — podstrona
   ============================================================ */
.policy-hero {
  background: var(--color-dark);
  padding: calc(var(--header-height) + 64px) 0 64px;
}

.policy-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #fff;
  margin-bottom: 12px;
}

.policy-date {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.875rem;
  color: var(--color-steel);
}

.policy-content {
  background: var(--color-light);
  padding: 72px 0 96px;
}

.policy-container {
  max-width: 760px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-accent);
  text-decoration: none;
  margin-bottom: 48px;
  transition: color 0.15s ease;
}

.btn-back:hover {
  color: var(--color-accent-dark);
}

.policy-container h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-text);
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(27, 95, 168, 0.2);
}

.policy-container p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.policy-container ul,
.policy-container ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.policy-container ul {
  list-style: disc;
}

.policy-container ol {
  list-style: decimal;
}

.policy-container li {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 6px;
}

.policy-container strong {
  font-weight: 500;
  color: var(--color-text);
}

.policy-container a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-container a:hover {
  color: var(--color-accent-dark);
}
