/* =========================================================
   sections-a.css – O nas (.about-), Usługi (.services-), Kroki (.steps-)
   Korzysta z tokenów i klas z base.css (agent A): --color-*, --font-*,
   --radius*, .container, .section*, .btn*, .reveal*.
   Progi (desktop-first): baza 992–1279, ≥1280, ≥1440, ≤991, ≤767, ≤479.
   ========================================================= */

/* ---------------------------------------------------------
   O NAS + LICZNIKI
   --------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: .75fr 1fr;
  align-items: center;
  gap: 60px;
}

/* lewa kolumna: zdjęcie + nachodzące na siebie koła-liczniki */
.about-media {
  position: relative;
  width: 100%;
  --c1: 280px;
  --c2: 220px;
  --c3: 250px;
  --c2-right: 180px;
  --c2-bottom: 96px;
}

.about-photo {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  border-radius: 140px var(--radius, 20px) var(--radius, 20px) var(--radius, 20px);
  background: var(--color-secondary-3, #fff1e7);
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
}

.about-counters {
  list-style: none;
  margin: -110px 0 0;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

.about-counter {
  box-sizing: border-box;
  border-radius: 50%;
  border: 6px solid var(--color-white, #fff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px;
  text-align: center;
  color: var(--color-primary-1, #0e3070);
}

.about-counter--1 {
  width: var(--c1);
  height: var(--c1);
  margin-left: auto;
  margin-bottom: -50px;
  background: var(--color-secondary-4, #e4ffe9);
}

.about-counter--2 {
  /* najmniejsze koło leży na wierzchu, treść wyśrodkowana */
  padding: 12px;
  z-index: 2;
  position: absolute;
  right: var(--c2-right);
  bottom: var(--c2-bottom);
  width: var(--c2);
  height: var(--c2);
  background: var(--color-secondary-2, #fff0f4);
}

.about-counter--3 {
  position: relative;
  width: var(--c3);
  height: var(--c3);
  margin-left: auto;
  background: var(--color-secondary-1, #ecf2ff);
}

.about-counter-value {
  font-family: var(--font-heading);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.1;
  color: var(--color-black, #021b4a);
  font-size: 48px;
}

.about-counter--2 .about-counter-value { font-size: 36px; }
.about-counter--3 .about-counter-value { font-size: 42px; }

.about-counter-label {
  font-size: 16px;
  line-height: 1.3;
  max-width: 16ch;
}

.about-counter--2 .about-counter-label {
  max-width: 12ch;
}

/* prawa kolumna: tytuł, opis, przycisk + atuty */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 90px;
}

.about-title {
  font-size: 40px;
  margin: 0;
}

.about-text {
  margin: 20px 0 50px;
}

.about-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
}

.about-feature-icon {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}

.about-feature p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.about-feature strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--color-black, #021b4a);
}

/* ---------------------------------------------------------
   USŁUGI
   --------------------------------------------------------- */
.services-title {
  margin: 0;
}

.services-title-last {
  white-space: nowrap;
}

.services-lead {
  max-width: 760px;
  margin: 16px auto 0;
}

.services-lead strong {
  color: var(--color-black, #021b4a);
}

.services-grid {
  --services-gap: 30px;
  display: grid;
  gap: 60px;
}

.services-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--services-gap);
}

/* drugi wiersz: 2 karty o tej samej szerokości co w wierszu 1 */
.services-row--2 {
  grid-template-columns: repeat(2, 1fr);
  width: calc((200% - var(--services-gap)) / 3);
  margin-inline: auto;
}

.services-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.services-card-icon {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 140px;
  height: 140px;
  margin: 0 auto -70px;
  border-radius: 50%;
  border: 6px solid var(--color-white, #fff);
  background: var(--color-white, #fff);
  display: grid;
  place-items: center;
  transition: transform .5s var(--ease-out-quart, ease);
}

.services-card-icon img {
  display: block;
  width: 80px;
  height: 80px;
}

.services-card:hover .services-card-icon,
.services-card:focus-within .services-card-icon {
  transform: translateY(-20px);
}

.services-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: var(--radius, 20px);
  padding: 100px 40px 30px;
}

.services-card--mint .services-card-body     { background: var(--color-secondary-4, #e4ffe9); }
.services-card--pink .services-card-body     { background: var(--color-secondary-2, #fff0f4); }
.services-card--blue .services-card-body     { background: var(--color-secondary-1, #ecf2ff); }
.services-card--peach .services-card-body    { background: var(--color-secondary-3, #fff1e7); }
.services-card--lavender .services-card-body { background: var(--color-secondary-5, #fdf2ff); }

.services-card-title {
  font-size: 26px;
  margin: 0 0 10px;
}

.services-card-text {
  flex: 1;
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.5;
}

.services-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-primary-1, #0e3070);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .3s ease-in-out;
}

/* cała karta klikalna (link rozciągnięty na kartę) */
.services-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--radius, 20px);
}

.services-card-link svg {
  flex: none;
  transition: transform .3s ease-in-out;
}

.services-card:hover .services-card-link,
.services-card-link:focus-visible {
  border-bottom-color: currentColor;
}

.services-card:hover .services-card-link svg,
.services-card-link:focus-visible svg {
  transform: translateX(4px);
}

.services-card-link:focus-visible {
  outline: none;
}

.services-card-link:focus-visible::after {
  outline: 2px solid var(--color-primary-1, #0e3070);
  outline-offset: 4px;
}

/* --- wyróżniona karta: myjnia „Ogon w pianie” --- */
.services-featured {
  position: relative;
  overflow: hidden;
  margin-top: 80px;
  padding: 60px;
  border-radius: var(--radius, 20px);
  background: var(--color-primary-2, #f4b6c4);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  scroll-margin-top: 40px;
}

.services-featured-star {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
}

.services-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: var(--radius-pill, 500px);
  background: var(--color-white, #fff);
  color: var(--color-black, #021b4a);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.services-featured-title {
  font-size: 44px;
  margin: 0 0 16px;
}

.services-featured-text {
  max-width: 560px;
  margin: 0 0 24px;
  color: var(--color-black, #021b4a);
}

.services-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0 0 30px;
  color: var(--color-black, #021b4a);
}

.services-price-value {
  font-family: var(--font-heading);
  font-weight: 400;
  font-synthesis: none;
  font-size: 60px;
  line-height: 1;
}

.services-price-unit {
  font-size: 18px;
  font-weight: 500;
}

.btn.services-featured-btn:hover,
.btn.services-featured-btn:focus-visible {
  background: var(--color-white, #fff);
  color: var(--color-primary-1, #0e3070);
}

.services-featured-art {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
}

.services-blob {
  width: 260px;
  height: 240px;
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  background: var(--color-white, #fff);
  display: grid;
  place-items: center;
}

.services-blob img {
  width: 140px;
  height: 140px;
}

.services-bubble {
  position: absolute;
  border-radius: 50%;
  background: var(--color-white, #fff);
  border: 2px solid var(--color-primary-1, #0e3070);
  animation: services-float 4s ease-in-out infinite alternate;
}

.services-bubble--1 { width: 28px; height: 28px; top: 8%;  left: 18%; }
.services-bubble--2 { width: 16px; height: 16px; top: 22%; left: 10%; animation-delay: -1s; }
.services-bubble--3 { width: 22px; height: 22px; top: 12%; right: 16%; animation-delay: -2s; }
.services-bubble--4 { width: 12px; height: 12px; bottom: 18%; right: 12%; animation-delay: -.5s; }
.services-bubble--5 { width: 20px; height: 20px; bottom: 8%; left: 24%; animation-delay: -3s; }
.services-bubble--6 { width: 14px; height: 14px; top: 46%; right: 6%; animation-delay: -1.5s; }

@keyframes services-float {
  from { transform: translateY(0); }
  to   { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .services-bubble { animation: none; }
  .services-card-icon { transition: none; }
}

/* ---------------------------------------------------------
   KROKI WIZYTY
   --------------------------------------------------------- */
.steps {
  position: relative;
  overflow: hidden;
}

/* „chmura” z trzema garbami – przechodzi bez szwu w miętowe tło */
.steps-cloud {
  display: block;
  width: 100%;
  height: clamp(110px, 24vw, 460px);
  margin-bottom: -1px;
  fill: var(--color-secondary-4, #e4ffe9);
}

.steps-inner {
  display: flow-root; /* blokuje „przeciekanie” ujemnego marginesu */
  background: var(--color-secondary-4, #e4ffe9);
  padding-bottom: 80px;
}

.steps-wrap {
  position: relative;
  margin-top: -50px;
}

.steps-title {
  margin-top: 0;
}

.steps-grid {
  --steps-size: 200px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 90px;
}

.steps-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* zygzak: 1 – środek, 2 – najniżej, 3 – najwyżej */
.steps-item--1 { margin-top: -119px; }
.steps-item--3 { margin-top: -196px; }

.steps-circle {
  box-sizing: border-box;
  width: var(--steps-size);
  height: var(--steps-size);
  border-radius: 50%;
  background: var(--color-white, #fff);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.steps-icon {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}

.steps-label {
  font-size: 16px;
  line-height: 1.3;
  color: var(--color-primary-1, #0e3070);
}

.steps-name {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.2;
  color: var(--color-primary-1, #0e3070);
}

.steps-text {
  max-width: 260px;
  margin: 16px auto 0;
  font-size: 16px;
  line-height: 1.5;
}

/* łączniki (rysowane w js/sections-a.js) */
.steps-arcs {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  color: var(--color-primary-1, #0e3070);
}

/* ślad łap – tylko na mobile */
.steps-trail {
  display: none;
}

/* =========================================================
   ≥1280
   ========================================================= */
@media (min-width: 1280px) {
  .about-grid { gap: 80px; }
  .about-media {
    --c1: 300px;
    --c2: 220px;
    --c3: 250px;
    --c2-right: 217px;
    --c2-bottom: 78px;
  }
  .about-counter-value { font-size: 54px; }
  .about-counter--2 .about-counter-value { font-size: 40px; }
  .about-counter--3 .about-counter-value { font-size: 48px; }
  .about-counter-label { font-size: 20px; }
  .about-counter--2 .about-counter-label { font-size: 17px; }
  .about-content { gap: 100px; }
  .about-title { font-size: 48px; }

  .services-grid { --services-gap: 60px; gap: 60px; }
  .services-card-body { padding: 100px 50px 36px; }
  .services-card-title { font-size: 30px; }

  .steps-wrap { margin-top: -90px; }
  .steps-grid { --steps-size: 250px; gap: 160px; }
  .steps-item--1 { margin-top: -130px; }
  .steps-item--3 { margin-top: -220px; }
  .steps-circle { padding: 40px 30px; }
  .steps-icon { width: 44px; height: 44px; }
  .steps-label { font-size: 18px; }
  .steps-name { font-size: 20px; margin-top: 12px; }
}

/* =========================================================
   ≥1440
   ========================================================= */
@media (min-width: 1440px) {
  .about-grid { gap: 100px; }
  .about-media {
    --c1: 360px;
    --c2: 250px;
    --c3: 310px;
    --c2-right: 260px;
    --c2-bottom: 159px;
  }
  .about-counter-value { font-size: 60px; }
  .about-counter--3 .about-counter-value { font-size: 50px; }
  .about-counter-label { font-size: 22px; }
  .about-content { gap: 120px; }
  .about-title { font-size: 60px; }

  .services-grid { --services-gap: 80px; gap: 80px; }

  .steps-grid { --steps-size: 280px; gap: 220px; }
  .steps-item--1 { margin-top: -180px; }
  .steps-item--3 { margin-top: -240px; }
  .steps-circle { padding: 60px 40px; }
  .steps-name { font-size: 22px; margin-top: 16px; }
}

/* =========================================================
   ≤991 (tablet)
   ========================================================= */
@media (max-width: 991px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .about-media {
    max-width: 520px;
    margin-inline: auto;
  }
  .about-content { gap: 50px; }

  .services-grid { --services-gap: 50px; gap: 80px; }
  .services-row,
  .services-row--2 {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }
  /* 3 + 2 → 2 + 2 + 1: piąta karta wyśrodkowana */
  .services-card-icon {
    width: 110px;
    height: 110px;
    margin-bottom: -55px;
  }
  .services-card-icon img { width: 64px; height: 64px; }
  .services-card-body { padding: 85px 30px 30px; }
  .services-card-title { font-size: 26px; }

  .services-featured {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px;
  }
  .services-featured-art {
    order: -1;
    min-height: 260px;
  }

  .steps-inner { padding-bottom: 70px; }
  .steps-wrap { margin-top: 0; }
  .steps-grid { gap: 30px; }
  .steps-item--1 { margin-top: 40px; }
  .steps-item--2 { margin-top: 100px; }
  .steps-item--3 { margin-top: 0; }
  .steps-arcs { display: none; }
}

/* 2 kolumny kart: wiersz 1 ma 3 karty → trzecia przechodzi niżej;
   układamy wszystkie 5 w jednej siatce 2-kolumnowej */
@media (max-width: 991px) and (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: var(--services-gap);
  }
  .services-row,
  .services-row--2 { display: contents; }
  .services-card--lavender {
    grid-column: 1 / -1;
    width: calc((100% - var(--services-gap)) / 2);
    justify-self: center;
  }
}

/* =========================================================
   ≤767 (mobile landscape)
   ========================================================= */
@media (max-width: 767px) {
  .about-media {
    --c1: 300px;
    --c2: 220px;
    --c3: 270px;
    --c2-right: 230px;
    --c2-bottom: 110px;
  }
  .about-photo { aspect-ratio: 4 / 3; border-top-left-radius: 100px; }
  .about-counters { margin-top: -70px; }
  .about-counter-value { font-size: 48px; }
  .about-counter--2 .about-counter-value { font-size: 34px; }
  .about-counter--3 .about-counter-value { font-size: 42px; }
  .about-counter-label,
  .about-counter--2 .about-counter-label { font-size: 16px; }
  .about-title { font-size: 40px; }
  .about-text { margin: 16px 0 30px; }
  .about-features { grid-template-columns: 1fr; gap: 30px; }

  .services-grid { --services-gap: 40px; gap: 40px; }
  .services-row,
  .services-row--2 { grid-template-columns: 1fr; }

  .services-featured { margin-top: 50px; }
  .services-featured-title { font-size: 32px; }
  .services-price-value { font-size: 44px; }

  .steps-inner { padding-bottom: 50px; }
  .steps-grid {
    --steps-size: 250px;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .steps-item--1,
  .steps-item--2,
  .steps-item--3 { margin-top: 0; }
  .steps-circle { padding: 36px 28px; }
  .steps-name { font-size: 20px; margin-top: 12px; }
  .steps-trail {
    display: block;
    width: 48px;
    height: auto;
    margin: 24px auto 0;
    transform: rotate(90deg);
  }
}

/* =========================================================
   ≤479 (mobile)
   ========================================================= */
@media (max-width: 479px) {
  .about-media {
    --c1: 220px;
    --c2: 150px;
    --c3: 180px;
    --c2-right: 150px;
    --c2-bottom: 60px;
  }
  .about-photo { border-top-left-radius: 70px; }
  .about-counters { margin-top: -50px; }
  .about-counter { padding: 12px; gap: 2px; }
  .about-counter-value { font-size: 36px; }
  .about-counter--2 .about-counter-value { font-size: 26px; }
  .about-counter--3 .about-counter-value { font-size: 30px; }
  .about-counter-label { font-size: 14px; }
  .about-counter--2 .about-counter-label { font-size: 13px; }
  .about-title { font-size: 30px; }

  .services-grid { --services-gap: 30px; gap: 30px; }
  .services-card-icon {
    width: 96px;
    height: 96px;
    margin-bottom: -48px;
  }
  .services-card-icon img { width: 56px; height: 56px; }
  .services-card-body { padding: 70px 20px 24px; }
  .services-card-title { font-size: 22px; }

  .services-featured { padding: 24px; }
  .services-featured-star { top: 14px; right: 14px; width: 36px; height: 36px; }
  .services-featured-title { font-size: 28px; }
  .services-featured-art { min-height: 220px; }
  .services-blob { width: 200px; height: 185px; }
  .services-blob img { width: 110px; height: 110px; }
  .services-featured-btn { width: 100%; justify-content: center; }

  .steps-grid { --steps-size: 180px; }
  .steps-circle { padding: 20px; }
  .steps-icon { width: 32px; height: 32px; margin-bottom: 4px; }
  .steps-label { font-size: 15px; }
  .steps-name { font-size: 18px; margin-top: 8px; }
}

/* =========================================================
   WYRÓŻNIONE PODSTRONY (.offer-) – zaraz pod hero
   ========================================================= */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 34px 34px;
  border-radius: var(--radius);
  background: var(--color-secondary-1);
  transition: transform var(--transition), box-shadow var(--transition);
}
.offer-card:hover { transform: translateY(-8px); box-shadow: 0 26px 44px -26px rgba(2, 27, 74, .4); }
.offer-card--ozone { background: var(--color-secondary-2); box-shadow: inset 0 0 0 2px var(--color-primary-2); }
.offer-card--wash { background: var(--color-secondary-4); }
.offer-card--course { background: var(--color-secondary-5); }
.offer-badge {
  position: absolute;
  top: -14px;
  right: 30px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-2);
  color: var(--color-black);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.offer-icon {
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--color-white);
}
.offer-icon img { width: 68px; height: 68px; }
.offer-title { margin: 0 0 12px; font-size: 30px; line-height: 1.25; }
.offer-text { margin: 0 0 18px; font-size: 16px; }
.offer-price { margin: 0 0 22px; font-size: 16px; }
.offer-price strong { font-family: var(--font-heading); font-weight: 400; font-size: 26px; color: var(--color-black); }
.offer-link {
  margin-top: auto;
  padding: 12px 22px;
  border-radius: var(--radius-button);
  background: var(--color-primary-1);
  color: var(--color-white);
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.offer-link:hover { background: var(--color-primary-2); color: var(--color-black); }
.offer-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* cała karta klikalna */

@media (max-width: 991px) {
  .offer-grid { grid-template-columns: 1fr 1fr; }
  .offer-card--course { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .offer-grid { grid-template-columns: 1fr; gap: 36px; }
  .offer-card { padding: 36px 24px 28px; }
  .offer-title { font-size: 26px; }
}

.offer { padding-top: 110px; }
@media (max-width: 991px) { .offer { padding-top: 90px; } }
@media (max-width: 767px) { .offer { padding-top: 50px; } }
