/* =====================================================================
   COOL DREAM — nagłówek, stopka i strona główna (projekt Figma 2026)
   Klasy z prefiksem .cd- — niezależne od starego styles.css.
   ===================================================================== */

/* Font: Poppins z Google Fonts — link w index.html */

/* ---------- Tokeny ---------- */
:root {
  --cd-navy: #0a2841;
  --cd-navy-hover: #143a5c;
  --cd-ice: #ebf5f7;
  --cd-ice-hover: #dcedf1;
  --cd-muted: #a0b4be;
  --cd-star: #ffb400;
  --cd-white: #ffffff;

  --cd-font:
    "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* 160px przy 1920 — 16px na telefonie */
  --cd-gutter: clamp(16px, 8.3333vw, 160px);
  --cd-space: clamp(72px, 7.5vw, 144px);

  --cd-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cd-scope {
  font-family: var(--cd-font);
  color: var(--cd-navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* :where() = zerowa specyficzność, żeby nie nadpisywać klas sekcji */
:where(.cd-scope) ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cd-scope ::selection {
  background: #dcebf0;
  color: var(--cd-navy);
}

.cd-scope :focus-visible {
  outline: 2px solid var(--cd-navy);
  outline-offset: 3px;
}

.cd-container {
  width: 100%;
  max-width: calc(1600px + 2 * var(--cd-gutter));
  margin-inline: auto;
  padding-inline: var(--cd-gutter);
}

.cd-container--narrow {
  max-width: calc(1280px + 2 * var(--cd-gutter));
}

/* ---------- Przyciski ---------- */
.cd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 0 32px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-family: var(--cd-font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.cd-btn--solid {
  background: var(--cd-navy);
  border-color: var(--cd-navy);
  color: var(--cd-white);
}
.cd-btn--solid:hover {
  background: var(--cd-navy-hover);
  border-color: var(--cd-navy-hover);
}

.cd-btn--ring {
  border-color: var(--cd-white);
}

.cd-btn--outline {
  background: transparent;
  border-color: var(--cd-navy);
  color: var(--cd-navy);
}
.cd-btn--outline:hover {
  background: var(--cd-navy);
  color: var(--cd-white);
}

.cd-btn--light {
  background: var(--cd-white);
  border-color: var(--cd-white);
  color: var(--cd-navy);
}
.cd-btn--light:hover {
  background: var(--cd-ice);
  border-color: var(--cd-ice);
}

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

.cd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}

.cd-actions--center {
  justify-content: center;
}

.cd-round-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--cd-navy);
  border-radius: 50%;
  background: var(--cd-white);
  color: var(--cd-navy);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}
.cd-round-btn:hover:not(:disabled) {
  background: var(--cd-navy);
  color: var(--cd-white);
}
.cd-round-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

/* ---------- Typografia sekcji ---------- */
.cd-h2 {
  margin: 0;
  font-size: clamp(32px, 1.6vw + 18px, 48px);
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
}

.cd-h2--sm {
  font-size: clamp(30px, 1.1vw + 19px, 40px);
}

.cd-lead {
  max-width: 800px;
  margin: 0 auto;
  font-size: clamp(16px, 0.2vw + 15px, 18px);
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

.cd-section__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  margin-bottom: 64px;
}

.cd-section__head--tight {
  margin-bottom: 48px;
}

/* =====================================================================
   NAGŁÓWEK
   ===================================================================== */
.cd-header {
  position: fixed;
  top: 32px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding-inline: var(--cd-gutter);
  pointer-events: none;
}

.cd-header__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1600px;
  margin-inline: auto;
  padding: 16px 32px 16px 40px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--cd-white);
  border-radius: 100px;
  box-shadow: 0 8px 40px rgba(10, 40, 65, 0.04);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.cd-header__logo {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 8px;
}

.cd-logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--cd-navy);
}

.cd-logo__mark {
  flex-shrink: 0;
}

.cd-logo__text {
  font-family: var(--cd-font);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.cd-header__nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.cd-nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--cd-navy);
  white-space: nowrap;
}

.cd-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--cd-ease);
}

.cd-nav-link:hover::after,
.cd-nav-link.is-active::after {
  transform: scaleX(1);
}

.cd-header__cta {
  flex-shrink: 0;
}

.cd-burger {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--cd-navy);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cd-burger__line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 1.5px;
  margin-left: -12px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--cd-ease);
}
.cd-burger__line:nth-child(1) {
  transform: translateY(-4px);
}
.cd-burger__line:nth-child(2) {
  transform: translateY(4px);
}

.cd-header.is-open .cd-burger__line:nth-child(1) {
  transform: rotate(45deg);
}
.cd-header.is-open .cd-burger__line:nth-child(2) {
  transform: rotate(-45deg);
}

/* ----- menu mobilne ----- */
.cd-mobile {
  display: none;
}

body.cd-menu-open {
  overflow: hidden;
}

@media (max-width: 1279.98px) {
  .cd-header__bar {
    padding-inline: 32px 24px;
  }
  .cd-header__nav ul {
    gap: 24px;
  }
  .cd-nav-link {
    font-size: 15px;
    letter-spacing: 0.6px;
  }
}

@media (max-width: 1023.98px) {
  .cd-header {
    top: 12px;
    padding-inline: 12px;
  }

  .cd-header__bar {
    /* ok. 54 px wysokości: 42 px hamburger + 2 × 5 px + obramowanie */
    padding: 5px 6px 5px 20px;
  }

  .cd-burger {
    width: 42px;
    height: 42px;
  }

  .cd-logo__text {
    font-size: 24px;
  }

  .cd-header__nav {
    display: none;
  }

  /* na węższym ekranie sam hamburger — Kontakt jest w menu */
  .cd-header__cta {
    display: none;
  }

  .cd-burger {
    display: inline-block;
  }

  .cd-header.is-open .cd-header__bar {
    background: rgba(255, 255, 255, 0.85);
  }

  .cd-mobile {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: 92px 24px max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--cd-white);
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s var(--cd-ease),
      visibility 0s linear 0.3s;
  }

  .cd-header.is-open .cd-mobile {
    opacity: 1;
    visibility: visible;
    transition:
      opacity 0.3s var(--cd-ease),
      visibility 0s;
  }

  .cd-mobile__nav li {
    border-bottom: 1px solid var(--cd-ice);
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 0.35s var(--cd-ease),
      transform 0.35s var(--cd-ease);
  }

  .cd-header.is-open .cd-mobile__nav li {
    opacity: 1;
    transform: none;
    transition-delay: calc(60ms + var(--i, 0) * 40ms);
  }

  .cd-mobile__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    border-radius: 12px;
    font-size: clamp(22px, 5.5vw, 28px);
    font-weight: 400;
    line-height: 1.15;
    color: var(--cd-navy);
  }

  .cd-mobile__link svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }

  .cd-mobile__link:hover svg,
  .cd-mobile__link:focus-visible svg {
    transform: translateX(3px);
  }

  /* „Zadzwoń” i „Napisz” — dwie równe kolumny na całą szerokość menu */
  .cd-mobile__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .cd-mobile__actions .cd-btn {
    min-height: 48px;
    padding: 0 16px;
    font-size: 16px;
  }
}

@media (max-width: 479.98px) {
  .cd-logo__text {
    font-size: 22px;
  }
}

/* =====================================================================
   HERO
   ===================================================================== */
.cd-home {
  display: block;
  background: var(--cd-white);
  overflow-x: clip;
}

.cd-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 240px;
  isolation: isolate;
}

.cd-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  opacity: 0.9;
  pointer-events: none;
}

.cd-hero__video {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}

.cd-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: calc(980px + 2 * var(--cd-gutter));
  padding-inline: var(--cd-gutter);
  text-align: center;
}

/* Poppins jest nieco szerszy od Gilroy z Figmy — 880px daje ten sam układ 3 linii */
.cd-hero__title {
  margin: 0;
  font-size: clamp(40px, 2.4vw + 26px, 72px);
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
}

.cd-hero__lead {
  max-width: 800px;
  margin: 24px 0 0;
  font-size: clamp(17px, 0.45vw + 15px, 24px);
  font-weight: 400;
  line-height: 1.5;
}

.cd-hero__content .cd-actions {
  justify-content: center;
  margin-top: 48px;
}

.cd-hero__features {
  width: 100%;
  padding: 144px 64px;
  background: linear-gradient(to top, var(--cd-white), rgba(255, 255, 255, 0));
}

.cd-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}

.cd-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.cd-feature__icon {
  flex-shrink: 0;
}

.cd-feature__icon.is-flipped {
  transform: scaleX(-1);
}

.cd-feature__label {
  font-size: clamp(16px, 0.6vw + 12px, 24px);
  font-weight: 400;
  line-height: 1.25;
}

/* =====================================================================
   SEKCJE
   ===================================================================== */
.cd-section {
  position: relative;
}

/* odstępy jak w Figmie: serwis przylega do hero, dalej 144px */
.cd-audience {
  padding-top: var(--cd-space);
}
.cd-reviews {
  padding-block: var(--cd-space);
}
.cd-brands {
  padding-bottom: var(--cd-space);
}

/* ----- Serwis ----- */
.cd-service__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 64px;
}

.cd-service__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--cd-ice);
  border-radius: 32px;
  background: var(--cd-white);
  text-align: center;
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.cd-service__card:hover {
  border-color: #d7e9ee;
  box-shadow: 0 8px 40px rgba(10, 40, 65, 0.06);
}

.cd-service__title {
  margin: 0;
  font-size: clamp(20px, 0.4vw + 17px, 24px);
  font-weight: 400;
  line-height: 1.25;
}

.cd-service__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

/* ----- Dla domu / dla firm ----- */
.cd-audience__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: start;
}

.cd-audience__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--cd-ice);
  border-radius: 48px;
  background: var(--cd-white);
}

.cd-audience__card.is-tinted {
  background: var(--cd-ice);
}

.cd-audience__img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 48px 48px 0 0;
}

.cd-audience__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 48px;
  text-align: center;
}

.cd-audience__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cd-audience__title {
  margin: 0;
  font-size: clamp(30px, 1.1vw + 19px, 40px);
  font-weight: 400;
  line-height: 1.1;
}

.cd-audience__subtitle {
  margin: 0;
  font-size: clamp(19px, 0.4vw + 16px, 24px);
  line-height: 1.25;
}

.cd-audience__text {
  margin: 0;
  font-size: clamp(15px, 0.1vw + 14px, 16px);
  line-height: 1.5;
}

/* ----- Opinie ----- */
.cd-reviews__track {
  --cd-per-view: 6;
  /* kafelki o 50% większe niż w Figmie (na telefonie bez zmian — już zajmują prawie cały ekran) */
  --cd-card-scale: 1.5;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(
    var(--cd-card-scale) * (100% - (var(--cd-per-view) - 1) * 32px) /
      var(--cd-per-view)
  );
  gap: 32px;
  align-items: start;
  /* miejsce na cień kart wewnątrz obszaru przewijania */
  margin: -16px calc(-1 * var(--cd-gutter)) -48px;
  padding: 16px var(--cd-gutter) 48px;
  scroll-padding-inline: var(--cd-gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cd-reviews__track::-webkit-scrollbar {
  display: none;
}

.cd-reviews__track:focus-visible {
  outline-offset: -4px;
}

.cd-review {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--cd-ice);
  border-radius: 24px;
  background: var(--cd-white);
  box-shadow: 0 8px 40px rgba(10, 40, 65, 0.06);
  scroll-snap-align: start;
}

/* cudzysłów 80% wielkości z Figmy (40×32) */
.cd-review__quote {
  width: 32px;
  height: 25.6px;
  transform: rotate(180deg);
}

.cd-review__text {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.cd-review__stars {
  margin: 0;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--cd-star);
}

.cd-review__meta {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.cd-reviews__nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

/* ----- Marki ----- */
.cd-brands__hint {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

.cd-brands__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.cd-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px solid var(--cd-ice);
  border-radius: 16px;
  background: var(--cd-ice);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  color: var(--cd-navy);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

a.cd-brand:hover {
  background: var(--cd-ice-hover);
  border-color: var(--cd-ice-hover);
}

/* =====================================================================
   STOPKA
   ===================================================================== */
.cd-footer {
  padding: 144px 0 48px;
  border-radius: 96px 96px 0 0;
  background: var(--cd-navy);
  color: var(--cd-white);
}

.cd-footer :focus-visible {
  outline-color: var(--cd-white);
}

.cd-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 64px;
}

.cd-footer__cta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 400px;
  max-width: 100%;
}

.cd-footer__title {
  margin: 0;
  font-size: clamp(30px, 1.1vw + 19px, 40px);
  font-weight: 400;
  line-height: 1.1;
}

@media (min-width: 640px) {
  .cd-footer__title {
    white-space: nowrap;
  }
}

.cd-footer__text {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
}

.cd-footer__cols {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  width: 480px;
  max-width: 100%;
  font-size: 16px;
  line-height: 1.25;
}

.cd-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cd-footer__label {
  margin: 0 0 24px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* cieńsze od etykiet „Menu” / „Kontakt” (500) */
.cd-footer__link {
  font-weight: 200;
  color: var(--cd-white);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}

.cd-footer__link:hover {
  text-decoration-color: currentColor;
}

.cd-footer__brand {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-top: 96px;
}

.cd-footer__logo {
  display: inline-flex;
  border-radius: 12px;
}

.cd-logo--footer {
  gap: 11.6px;
  color: var(--cd-white);
}

.cd-logo--footer .cd-logo__text {
  font-size: 81.455px;
  line-height: 0.8;
}

.cd-footer__about {
  width: 480px;
  max-width: 100%;
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
}

.cd-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-top: 96px;
  font-size: 14px;
  line-height: 1.5;
}

.cd-footer__bottom p {
  margin: 0;
}

.cd-footer__legal {
  display: flex;
  gap: 32px;
  white-space: nowrap;
}

.cd-footer__legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cd-footer__legal a:hover {
  text-decoration-thickness: 2px;
}

/* =====================================================================
   RESPONSYWNOŚĆ
   ===================================================================== */
@media (max-width: 1439.98px) {
  .cd-reviews__track {
    --cd-per-view: 4;
  }
}

@media (max-width: 1279.98px) {
  .cd-service__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cd-audience__grid {
    gap: 32px;
  }
  .cd-audience__body {
    padding: 40px 32px;
    gap: 40px;
  }
  .cd-audience__img {
    height: 320px;
  }
  .cd-brands__grid {
    gap: 24px;
  }

  .cd-footer__top {
    flex-direction: column;
    gap: 64px;
  }
  .cd-footer__cta {
    width: 560px;
  }
  .cd-footer__cols {
    width: 100%;
    max-width: 560px;
    justify-content: flex-start;
    gap: 96px;
  }
  .cd-logo--footer .cd-logo__text {
    font-size: clamp(44px, 5vw + 12px, 81.455px);
  }
}

@media (max-width: 1023.98px) {
  .cd-hero {
    padding-top: 168px;
  }
  .cd-hero__features {
    padding: 96px var(--cd-gutter);
  }
  .cd-features {
    gap: 48px 24px;
  }

  .cd-audience__grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
    margin-inline: auto;
  }
  .cd-reviews__track {
    --cd-per-view: 2.6;
    scroll-snap-type: x mandatory;
  }

  .cd-brands__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cd-footer {
    padding-top: 96px;
    border-radius: 64px 64px 0 0;
  }
  .cd-footer__brand {
    flex-direction: column;
    gap: 24px;
    margin-top: 72px;
  }
  .cd-footer__bottom {
    margin-top: 56px;
  }
}

@media (max-width: 639.98px) {
  /* boczny margines stron na telefonie */
  :root {
    --cd-gutter: 24px;
  }

  .cd-section__head {
    gap: 16px;
    margin-bottom: 40px;
  }
  .cd-section__head--tight {
    margin-bottom: 32px;
  }

  .cd-btn {
    min-height: 48px;
    padding: 0 24px;
    font-size: 16px;
  }

  .cd-actions {
    gap: 12px;
  }
  /* przyciski zawsze w naturalnej szerokości — bez rozciągania na całą stronę */
  .cd-actions .cd-btn {
    max-width: 100%;
    white-space: normal;
    padding-block: 12px;
    line-height: 1.25;
  }
  .cd-actions--center {
    justify-content: center;
  }
  /* hero: przyciski jeden pod drugim, wyśrodkowane, każdy w naturalnej szerokości (nie na całą stronę) */
  .cd-hero__content .cd-actions {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
  }
  /* w kolumnie flex-basis liczy się od wysokości — przyciski mają mieć naturalną wysokość */
  .cd-actions--center .cd-btn,
  .cd-hero__content .cd-actions .cd-btn {
    flex: 0 0 auto;
  }
  .cd-hero__content .cd-actions .cd-btn {
    padding-inline: 28px;
  }

  .cd-hero {
    padding-top: 132px;
  }
  .cd-hero__content .cd-actions {
    margin-top: 32px;
  }
  .cd-hero__media {
    bottom: auto;
    height: 82%;
  }
  .cd-hero__video {
    object-position: 30% top;
  }
  .cd-hero__features {
    padding: 72px var(--cd-gutter);
  }
  .cd-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 16px;
  }

  .cd-service__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 40px;
  }
  .cd-service__card {
    padding: 24px;
    border-radius: 24px;
    gap: 12px;
  }

  .cd-audience__card {
    border-radius: 32px;
  }
  .cd-audience__img {
    height: auto;
    aspect-ratio: 16 / 11;
    border-radius: 32px 32px 0 0;
  }
  .cd-audience__body {
    padding: 32px 20px;
    gap: 32px;
  }
  .cd-audience__copy {
    gap: 16px;
  }
  .cd-audience__body .cd-btn {
    max-width: 100%;
    white-space: normal;
    padding-block: 12px;
    line-height: 1.25;
  }

  .cd-reviews__track {
    --cd-per-view: 1.25;
    --cd-card-scale: 1;
    gap: 16px;
    grid-auto-columns: calc(
      (100% - (var(--cd-per-view) - 1) * 16px) / var(--cd-per-view)
    );
  }
  .cd-review {
    padding: 24px;
  }
  .cd-reviews__nav {
    margin-top: 24px;
  }

  .cd-brands__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .cd-brand {
    padding: 18px 12px;
    font-size: 15px;
    border-radius: 14px;
  }

  .cd-footer {
    padding: 48px 0 calc(32px + env(safe-area-inset-bottom));
    border-radius: 40px 40px 0 0;
  }
  .cd-footer__top {
    gap: 48px;
  }
  .cd-footer__cta .cd-actions {
    flex-direction: row;
    max-width: none;
  }
  .cd-footer__cols {
    gap: 24px;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
  }
  .cd-footer__col ul {
    gap: 16px;
  }
  .cd-footer__label {
    margin-bottom: 16px;
    font-size: 14px;
  }
  .cd-footer__link {
    display: inline-block;
    padding-block: 2px;
    font-size: 15px;
    overflow-wrap: anywhere;
  }
  .cd-footer__brand {
    margin-top: 56px;
    gap: 20px;
  }
  .cd-logo--footer {
    gap: 8px;
  }
  .cd-logo--footer .cd-logo__mark {
    width: 40px;
    height: 40px;
  }
  .cd-logo--footer .cd-logo__text {
    font-size: clamp(40px, 13vw, 56px);
  }
  .cd-footer__bottom {
    flex-direction: column-reverse;
    gap: 16px;
    margin-top: 40px;
    font-size: 13px;
  }
  .cd-footer__legal {
    gap: 24px;
  }
}

@media (max-width: 379.98px) {
  /* ikony pod hero zostają w 2 kolumnach także na wąskich telefonach */
  .cd-features {
    gap: 32px 12px;
  }
  .cd-feature__label {
    font-size: 15px;
  }
  .cd-footer__cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

/* =====================================================================
   PODSTRONA: SERWIS
   ===================================================================== */
.cd-svc {
  display: block;
  background: var(--cd-white);
  overflow-x: clip;
}

/* rogi stopki leżą na tle sekcji FAQ */
body.route-serwis {
  background: #f9fcfd;
}

/* nagłówek podstrony — jak hero strony głównej, bez wideo */
.cd-page-hero {
  display: flex;
  justify-content: center;
  padding: 240px 0 96px;
}

.cd-page-hero .cd-hero__content .cd-actions {
  justify-content: center;
  margin-top: 48px;
}

/* ----- pakiety ----- */
.cd-pkgs {
  padding-bottom: var(--cd-space);
}

.cd-pkgs__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  /* wysokość karty wg treści — przycisk zaraz pod listą */
  align-items: start;
}

.cd-pkg {
  display: flex;
  flex-direction: column;
  padding: 40px 32px 32px;
  border: 1px solid var(--cd-ice);
  border-radius: 32px;
  background: var(--cd-white);
  transition: box-shadow 0.25s ease;
}

.cd-pkg:hover {
  box-shadow: 0 8px 40px rgba(10, 40, 65, 0.06);
}

.cd-pkg--complete {
  background: var(--cd-ice);
}

.cd-pkg__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* stała wysokość wiersza plakietki — nazwy i ceny w jednej linii na wszystkich kartach */
.cd-pkg__badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin-bottom: 16px;
}

.cd-pkg__badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--cd-navy);
  color: var(--cd-white);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.cd-pkg__name {
  margin: 0;
  font-size: clamp(20px, 0.4vw + 17px, 24px);
  font-weight: 500;
  line-height: 1.25;
}

.cd-pkg__price {
  margin: 8px 0 0;
  font-size: clamp(40px, 1vw + 30px, 48px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.cd-pkg__tagline {
  max-width: 320px;
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.5;
}

.cd-pkg__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 0;
}

.cd-pkg__item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
}

.cd-pkg__dot {
  width: 4px;
  height: 4px;
  margin: 9px 0 0 8px;
  border-radius: 50%;
  background: var(--cd-navy);
}

.cd-pkg__icon {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: #1f9d55;
}

.cd-pkg__cta {
  align-self: center;
}

.cd-pkgs__custom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: var(--cd-space);
  text-align: center;
}

.cd-pkgs__custom .cd-h2 {
  max-width: 820px;
}

.cd-pkgs__custom .cd-actions {
  margin-top: 24px;
}

/* ----- FAQ ----- */
.cd-faq {
  padding-block: var(--cd-space);
  background: #f9fcfd;
}

.cd-faq__inner {
  max-width: calc(960px + 2 * var(--cd-gutter));
}

.cd-faq__title {
  max-width: 820px;
  text-wrap: balance;
}

.cd-faq__group + .cd-faq__group {
  margin-top: 48px;
}

.cd-faq__cat {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.cd-faq__list {
  border: 1px solid var(--cd-ice);
  border-radius: 24px;
  background: var(--cd-white);
  overflow: hidden;
}

.cd-faq__item + .cd-faq__item {
  border-top: 1px solid var(--cd-ice);
}

.cd-faq__q-wrap {
  margin: 0;
  font: inherit;
}

.cd-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 24px 32px;
  border: 0;
  background: transparent;
  color: var(--cd-navy);
  font-family: var(--cd-font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cd-faq__q:hover {
  background: #fbfdfe;
}

.cd-faq__q:focus-visible {
  outline-offset: -3px;
}

.cd-faq__chev {
  display: inline-flex;
  flex-shrink: 0;
  transition: transform 0.3s var(--cd-ease);
}

.cd-faq__item.is-open .cd-faq__chev {
  transform: rotate(180deg);
}

/* płynne rozwijanie bez mierzenia wysokości */
.cd-faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--cd-ease);
}

.cd-faq__item.is-open .cd-faq__a {
  grid-template-rows: 1fr;
}

.cd-faq__a-inner {
  overflow: hidden;
}

.cd-faq__a p {
  margin: 0;
  padding: 0 32px 24px;
  max-width: 760px;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 1279.98px) {
  .cd-pkgs__grid {
    gap: 24px;
  }
  .cd-pkg {
    padding: 32px 24px 24px;
  }
}

@media (max-width: 1023.98px) {
  .cd-page-hero {
    padding: 168px 0 72px;
  }
  .cd-pkgs__grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    margin-inline: auto;
    gap: 24px;
  }
  .cd-pkg__badge-row:empty {
    display: none;
  }
}

@media (max-width: 639.98px) {
  .cd-page-hero {
    padding: 132px 0 56px;
  }
  .cd-page-hero .cd-hero__content .cd-actions {
    margin-top: 32px;
  }
  .cd-pkg {
    padding: 28px 20px 20px;
    border-radius: 24px;
  }
  .cd-pkg__list {
    padding: 24px 0;
    gap: 12px;
  }
  .cd-pkgs__custom {
    gap: 16px;
  }
  .cd-pkgs__custom .cd-actions {
    margin-top: 16px;
  }
  .cd-faq__group + .cd-faq__group {
    margin-top: 32px;
  }
  .cd-faq__list {
    border-radius: 20px;
  }
  .cd-faq__q {
    padding: 20px;
    font-size: 16px;
    gap: 16px;
  }
  .cd-faq__a p {
    padding: 0 20px 20px;
    font-size: 13px;
  }
}

/* =====================================================================
   PODSTRONA: DLA DOMU — proces montażu (timeline)
   ===================================================================== */
body.route-montaz {
  background: #f9fcfd;
}

.cd-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.cd-process {
  padding-bottom: var(--cd-space);
}

.cd-tl {
  --cd-tl-axis: 112px;
  --cd-tl-dot: 40px;
  --cd-tl-gap: 64px;
  --cd-tl-line: #d5e7ec;
  /* środek kółka = środek wiersza z ikoną i tytułem (36px) */
  --cd-tl-dot-top: -2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cd-tl__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--cd-tl-axis) minmax(0, 1fr);
}

.cd-tl__row + .cd-tl__row {
  margin-top: var(--cd-tl-gap);
}

.cd-tl__axis {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: center;
}

/* linia łącząca z następnym krokiem */
.cd-tl__row:not(:last-child) .cd-tl__axis::after {
  content: "";
  position: absolute;
  top: calc(var(--cd-tl-dot-top) + var(--cd-tl-dot) / 2);
  bottom: calc(
    -1 * var(--cd-tl-gap) - var(--cd-tl-dot-top) - var(--cd-tl-dot) / 2
  );
  left: 50%;
  width: 1px;
  background: var(--cd-tl-line);
  transform: translateX(-0.5px);
}

.cd-tl__dot {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--cd-tl-dot);
  height: var(--cd-tl-dot);
  margin-top: var(--cd-tl-dot-top);
  border: 1px solid var(--cd-tl-line);
  border-radius: 50%;
  background: var(--cd-white);
  color: var(--cd-navy);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.cd-tl__card {
  grid-row: 1;
  max-width: 480px;
}

.cd-tl__row.is-left .cd-tl__card {
  grid-column: 1;
  justify-self: end;
}

.cd-tl__row.is-right .cd-tl__card {
  grid-column: 3;
  justify-self: start;
}

.cd-tl__head {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 36px;
}

.cd-tl__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  height: 36px;
}

.cd-tl__icon img.is-flipped {
  transform: scaleX(-1);
}

.cd-tl__title {
  margin: 0;
  font-size: clamp(19px, 0.3vw + 17px, 22px);
  font-weight: 500;
  line-height: 1.3;
}

.cd-tl__lead {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.6;
}

.cd-tl__more {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.cd-tl__more p {
  margin: 0;
}

.cd-tl__more p + p {
  margin-top: 8px;
}

.cd-tl__more ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cd-tl__more li {
  position: relative;
  padding-left: 16px;
}

.cd-tl__more li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.75em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cd-navy);
}

.cd-tl__more strong {
  font-weight: 500;
}

@media (max-width: 1023.98px) {
  .cd-tl {
    --cd-tl-axis: 40px;
    --cd-tl-dot: 32px;
    --cd-tl-gap: 40px;
    --cd-tl-dot-top: 2px;
  }

  .cd-tl__row {
    grid-template-columns: var(--cd-tl-axis) minmax(0, 1fr);
    column-gap: 16px;
  }

  .cd-tl__axis {
    grid-column: 1;
  }

  .cd-tl__row.is-left .cd-tl__card,
  .cd-tl__row.is-right .cd-tl__card {
    grid-column: 2;
    justify-self: stretch;
    max-width: none;
  }

  .cd-tl__dot {
    font-size: 13px;
  }
}

@media (max-width: 639.98px) {
  .cd-tl {
    --cd-tl-axis: 28px;
    --cd-tl-dot: 28px;
    --cd-tl-dot-top: 2px;
  }

  .cd-tl__row {
    column-gap: 16px;
  }
  .cd-tl__head {
    gap: 12px;
    min-height: 32px;
  }
  .cd-tl__icon {
    flex-basis: 32px;
    height: 32px;
  }
  .cd-tl__icon img {
    max-width: 32px;
    height: auto;
  }
  .cd-tl__lead {
    margin-top: 12px;
    font-size: 15px;
  }
  .cd-tl__more {
    font-size: 13px;
  }
}

/* =====================================================================
   PODSTRONA: DLA FIRM — kolory jak na pozostałych podstronach
   ===================================================================== */
/* rogi stopki leżą na tle sekcji FAQ */
body.route-b2b {
  background: #f9fcfd;
}

/* ----- rozwiązania: 4 kafelki ----- */
.cd-solutions {
  padding-bottom: var(--cd-space);
}

.cd-solutions__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.cd-solution {
  overflow: hidden;
  border: 1px solid var(--cd-ice);
  border-radius: 32px;
  background: var(--cd-white);
  transition: box-shadow 0.25s ease;
}

.cd-solution:hover {
  box-shadow: 0 8px 40px rgba(10, 40, 65, 0.06);
}

.cd-solution__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cd-solution__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 28px 32px;
}

.cd-solution__title {
  margin: 0;
  font-size: clamp(19px, 0.3vw + 17px, 22px);
  font-weight: 500;
  line-height: 1.3;
}

.cd-solution__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 1279.98px) {
  .cd-solutions__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 639.98px) {
  .cd-solutions__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .cd-solution {
    border-radius: 24px;
  }
  .cd-solution__body {
    padding: 20px 20px 24px;
  }
}

/* =====================================================================
   PODSTRONA: O NAS
   ===================================================================== */
.cd-about__intro {
  max-width: 800px;
  margin-top: 24px;
  font-size: clamp(16px, 0.2vw + 15px, 18px);
  line-height: 1.6;
}

.cd-about__intro p {
  margin: 0;
}

.cd-about__intro p + p {
  margin-top: 16px;
}

/* ikona nad tytułem karty (standard pracy, certyfikaty) */
.cd-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  margin-bottom: 8px;
}

.cd-card-icon img.is-flipped {
  transform: scaleX(-1);
}

.cd-standard__grid {
  margin-bottom: 0;
}

.cd-brands--spaced {
  padding-top: var(--cd-space);
}

.cd-certs {
  padding-bottom: var(--cd-space);
}

/* 5 kart: jeden rząd na desktopie, niepełne rzędy wyśrodkowane */
.cd-certs__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.cd-cert {
  flex: 0 1 calc((100% - 4 * 32px) / 5);
}

/* węższe karty niż w serwisie — mniejszy tytuł, żeby nie łamał się co słowo */
.cd-cert .cd-service__title {
  font-size: 20px;
}

@media (max-width: 1279.98px) {
  .cd-certs__grid {
    gap: 24px;
  }
  .cd-cert {
    flex-basis: calc((100% - 2 * 24px) / 3);
  }
}

@media (max-width: 767.98px) {
  .cd-cert {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (max-width: 639.98px) {
  .cd-certs__grid {
    gap: 16px;
  }
  .cd-cert {
    flex-basis: 100%;
  }
}

/* =====================================================================
   PODSTRONA: FAQ
   ===================================================================== */
body.route-faq {
  background: #f9fcfd;
}

.cd-faq__followup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: var(--cd-space);
  text-align: center;
}

.cd-faq__followup .cd-lead {
  max-width: 640px;
}

.cd-faq__followup .cd-actions {
  margin-top: 8px;
}

@media (max-width: 639.98px) {
  .cd-faq__followup {
    gap: 16px;
  }
}

/* =====================================================================
   PODSTRONA: KONTAKT
   ===================================================================== */
.cd-c-icon {
  display: block;
  flex-shrink: 0;
}

/* plakietka „Odpowiadamy w ciągu 30 minut” */
.cd-contact__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0 0;
  padding: 12px 22px 12px 16px;
  border-radius: 100px;
  background: var(--cd-ice);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.cd-contact__badge .cd-c-icon {
  width: 20px;
  height: 20px;
}

.cd-contact__section {
  padding-bottom: var(--cd-space);
}

.cd-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.cd-contact__form-card,
.cd-contact__panel {
  padding: 48px;
  border: 1px solid var(--cd-ice);
  border-radius: 32px;
  background: var(--cd-white);
}

.cd-contact__card-title {
  margin: 0 0 32px;
  font-size: clamp(24px, 0.6vw + 20px, 28px);
  font-weight: 400;
  line-height: 1.2;
}

/* ----- formularz ----- */
.cd-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cd-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.cd-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cd-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cd-field__label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}

.cd-input {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border: 1px solid #d5e7ec;
  border-radius: 16px;
  background: var(--cd-white);
  color: var(--cd-navy);
  font-family: var(--cd-font);
  font-size: 16px;
  line-height: 1.4;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.cd-input::placeholder {
  color: var(--cd-muted);
  font-weight: 300;
}

.cd-input:hover {
  border-color: #b9d6de;
}

/* aktywne pole: tylko ciemna linia, bez poświaty i obrysu */
.cd-input:focus,
.cd-input:focus-visible {
  outline: none;
  border-color: var(--cd-navy);
}

.cd-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5 10 12.5l5-5' stroke='%230a2841' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  cursor: pointer;
}

.cd-textarea {
  min-height: 160px;
  resize: vertical;
}

.cd-form__error {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fdecec;
  color: #a4161a;
  font-size: 14px;
  line-height: 1.4;
}

.cd-form__submit {
  align-self: flex-start;
  min-height: 52px;
  margin-top: 4px;
}

.cd-form__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.cd-form__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.cd-form__note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ----- szybki kontakt ----- */
.cd-contact__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cd-contact__item {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 8px;
}

.cd-contact__icon {
  display: inline-flex;
  flex: 0 0 20px;
  color: var(--cd-navy);
}

.cd-contact__icon .cd-c-icon {
  width: 20px;
  height: 20px;
}

.cd-contact__value {
  min-width: 0;
  font-size: 17px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}

/* po najechaniu tylko delikatne podkreślenie tekstu */
.cd-contact__item:hover .cd-contact__value {
  text-decoration-color: currentColor;
}

/* ----- okno potwierdzenia ----- */
.cd-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cd-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 40, 65, 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.cd-modal__card {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 40px;
  border-radius: 32px;
  background: var(--cd-white);
  text-align: center;
  box-shadow: 0 24px 80px rgba(10, 40, 65, 0.2);
}

.cd-modal__title {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
}

.cd-modal__text {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.5;
}

.cd-modal__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 1023.98px) {
  .cd-contact__grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
    margin-inline: auto;
  }
  /* w jednej kolumnie „Szybki kontakt” nad formularzem */
  .cd-contact__panel {
    order: -1;
  }
  .cd-contact__form-card,
  .cd-contact__panel {
    padding: 32px;
  }
}

@media (max-width: 639.98px) {
  .cd-contact__badge {
    margin-top: 24px;
    font-size: 15px;
  }
  /* na telefonie bez kart — formularz i dane kontaktowe na pełną szerokość treści */
  .cd-contact__grid {
    gap: 48px;
  }
  .cd-contact__form-card,
  .cd-contact__panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .cd-contact__card-title {
    margin-bottom: 24px;
  }
  .cd-form__row {
    grid-template-columns: minmax(0, 1fr);
  }
  .cd-modal__card {
    padding: 32px 24px;
  }
}

/* na telefonie, na stronie Kontakt, blok „Skontaktuj się z nami” w stopce jest zbędny */
@media (max-width: 639.98px) {
  body.route-kontakt .cd-footer__cta {
    display: none;
  }
}

/* bardzo wąskie telefony: plakietka w jednej linii */
@media (max-width: 379.98px) {
  .cd-contact__badge {
    gap: 8px;
    padding: 10px 16px 10px 12px;
    font-size: 14px;
    white-space: nowrap;
  }
  .cd-contact__badge .cd-c-icon {
    width: 18px;
    height: 18px;
  }
}

/* =====================================================================
   PODSTRONA: POLITYKA PRYWATNOŚCI
   ===================================================================== */
.cd-legal__body {
  padding-bottom: var(--cd-space);
}

.cd-legal__inner {
  max-width: calc(800px + 2 * var(--cd-gutter));
}

.cd-legal__section + .cd-legal__section {
  margin-top: 48px;
}

.cd-legal__title {
  margin: 0 0 16px;
  font-size: clamp(20px, 0.4vw + 17px, 24px);
  font-weight: 500;
  line-height: 1.3;
}

.cd-legal__section p,
.cd-legal__list {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

.cd-legal__section p + p,
.cd-legal__section p + .cd-legal__list,
.cd-legal__list + p {
  margin-top: 12px;
}

.cd-legal__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cd-legal__list li {
  position: relative;
  padding-left: 20px;
}

.cd-legal__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.8em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cd-navy);
}

@media (max-width: 639.98px) {
  .cd-legal__section + .cd-legal__section {
    margin-top: 36px;
  }
  .cd-legal__section p,
  .cd-legal__list {
    font-size: 15px;
  }
}

/* ---------- Ograniczony ruch ---------- */
@media (prefers-reduced-motion: reduce) {
  .cd-scope *,
  .cd-scope *::before,
  .cd-scope *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
