/* Dopracowanie podstrony Detailing / Myjnia */

body.page-detailing {
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.16);
  --accent-ink: #061418;
  --det-glow: rgba(34, 211, 238, 0.22);
}

body.page-detailing .brand span {
  color: var(--accent);
}

body.page-detailing .btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

body.page-detailing .btn--primary:hover {
  background: #67e8f9;
}

body.page-detailing .site-nav a.is-active {
  color: var(--accent);
}

body.page-detailing .firefly {
  background: #a5f3fc;
  box-shadow:
    0 0 6px 2px rgba(34, 211, 238, 0.85),
    0 0 22px 10px rgba(34, 211, 238, 0.35),
    0 0 48px 20px rgba(34, 211, 238, 0.12);
}

.hero--detailing {
  min-height: 100svh;
}

.hero--detailing .hero__media img {
  object-position: 72% center;
  filter: saturate(1.1) contrast(1.06) brightness(0.91);
}

.hero--detailing .hero__veil {
  background:
    var(--cursor-glow),
    linear-gradient(
      105deg,
      rgba(11, 13, 12, 0.97) 0%,
      rgba(11, 13, 12, 0.88) 32%,
      rgba(11, 13, 12, 0.42) 58%,
      rgba(11, 13, 12, 0.16) 100%
    ),
    radial-gradient(circle at 76% 44%, var(--det-glow), transparent 42%);
  background-attachment: fixed;
}

.hero--detailing .hero__brand {
  max-width: 12ch;
}

.hero--detailing .hero__title {
  max-width: 20ch;
}

.hero--detailing .hero__droplets {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(2px 2px at 64% 40%, rgba(165, 243, 252, 0.75), transparent),
    radial-gradient(2px 2px at 80% 58%, rgba(34, 211, 238, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 72% 70%, rgba(200, 250, 255, 0.5), transparent),
    linear-gradient(0deg, rgba(34, 211, 238, 0.08), transparent 55%);
  animation: det-droplets 3.5s ease-in-out infinite alternate;
  opacity: 0.75;
}

@keyframes det-droplets {
  from { opacity: 0.35; }
  to { opacity: 0.9; }
}

.det-marquee {
  border-block: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
  padding: 0.85rem 0;
}

.det-marquee__track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: det-marquee 34s linear infinite;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.det-marquee__track span {
  color: var(--muted);
}

.det-marquee__track span::before {
  content: "·";
  margin-right: 2.5rem;
  color: var(--accent);
}

.det-marquee__track span:first-child::before {
  content: none;
  margin: 0;
}

@keyframes det-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.det-personal {
  margin-top: 2rem;
  padding: 1.4rem 1.35rem 1.45rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background:
    linear-gradient(145deg, rgba(34, 211, 238, 0.12), transparent 50%),
    var(--bg-elevated);
}

.det-personal__tag {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.det-personal h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.det-personal p {
  margin: 0;
  color: var(--muted);
  max-width: 48rem;
}

.det-personal p + p {
  margin-top: 0.65rem;
}

.det-system {
  margin-top: 2rem;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 1.35rem;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(34, 211, 238, 0.14), transparent 42%),
    var(--bg-elevated);
}

.det-system__intro {
  padding: 1.45rem 1.4rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.det-system__intro h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  letter-spacing: -0.03em;
  max-width: 30ch;
}

.det-system__intro p {
  margin: 0;
  color: var(--muted);
  max-width: 46rem;
}

.det-system__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.det-system__card {
  padding: 1.25rem 1.15rem 1.35rem;
  border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}

.det-system__card:last-child {
  border-right: none;
}

.det-system__num {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.det-system__card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.det-system__card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.det-outcomes {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.det-outcome {
  padding: 1.25rem 1.2rem;
  border-radius: 1.15rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.det-outcome:first-child {
  border-color: rgba(34, 211, 238, 0.28);
  background:
    linear-gradient(145deg, rgba(34, 211, 238, 0.1), transparent 55%),
    var(--bg-elevated);
}

.det-outcome h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.det-outcome p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.det-flow {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  counter-reset: det-step;
}

.det-flow__step {
  padding: 1.15rem 1rem 1.2rem;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(34, 211, 238, 0.08), transparent 50%),
    var(--bg-elevated);
}

.det-flow__step::before {
  counter-increment: det-step;
  content: counter(det-step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.det-flow__step h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.det-flow__step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.det-engage {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.det-engage__main,
.det-engage__side {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.35rem 1.3rem;
  background: var(--bg-elevated);
}

.det-engage__main {
  background:
    linear-gradient(145deg, rgba(34, 211, 238, 0.1), transparent 40%),
    var(--bg-elevated);
}

.det-engage h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

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

.det-engage__list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.det-engage__list li {
  display: flex;
  gap: 0.65rem;
  font-size: 0.92rem;
}

.det-engage__list li span {
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .det-system__grid {
    grid-template-columns: 1fr 1fr;
  }

  .det-system__card:nth-child(2n) {
    border-right: none;
  }

  .det-system__card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  .det-flow { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .det-engage { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .det-system__grid,
  .det-outcomes {
    grid-template-columns: 1fr;
  }

  .det-system__card {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .det-system__card:last-child {
    border-bottom: none;
  }

  .det-flow { grid-template-columns: 1fr; }
}

body.page-detailing .pricing-box {
  border-color: rgba(34, 211, 238, 0.32);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.1), transparent 55%),
    var(--bg-elevated);
}

body.page-detailing .apps-strip {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.07);
}

body.page-detailing .why__col--good {
  border-color: rgba(34, 211, 238, 0.4);
  background: linear-gradient(165deg, rgba(34, 211, 238, 0.12), var(--bg-elevated) 45%);
}

body.page-detailing .why__col--good li::before {
  background: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .hero--detailing .hero__droplets,
  .det-marquee__track {
    animation: none;
  }
}

/* —— Demo procesu detailingu 2.5D —— */
.det-wash-section {
  background:
    radial-gradient(ellipse 65% 50% at 18% 12%, rgba(34, 211, 238, 0.1), transparent 55%),
    radial-gradient(ellipse 45% 40% at 90% 85%, rgba(14, 165, 233, 0.06), transparent 50%),
    transparent;
}

.det-wash {
  margin-top: 1.5rem;
}

.det-wash__layout {
  display: grid;
  grid-template-columns: 1.4fr 0.95fr;
  gap: 1.1rem;
  align-items: stretch;
}

.det-wash__stage {
  position: relative;
  min-height: min(62vh, 540px);
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 1.2rem;
  overflow: hidden;
  overscroll-behavior: contain;
  background:
    radial-gradient(ellipse 55% 45% at 50% 30%, rgba(34, 211, 238, 0.16), transparent 52%),
    linear-gradient(165deg, #142028 0%, #0a1014 55%, #070b0e 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.28);
}

.det-wash__canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}

.det-wash__canvas:active {
  cursor: grabbing;
}

.det-wash__hud {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  pointer-events: none;
}

.det-wash__badge {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(8, 14, 18, 0.55);
  backdrop-filter: blur(8px);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(165, 243, 252, 0.95);
}

.det-wash__orbit {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.75rem;
  margin: 0;
  z-index: 2;
  pointer-events: none;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.det-wash__panel {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.2rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background:
    linear-gradient(165deg, rgba(34, 211, 238, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.02);
  min-height: 300px;
}

.det-wash__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.det-wash__title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.3vw, 1.65rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.det-wash__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.det-wash__hint {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: rgba(165, 243, 252, 0.75);
  line-height: 1.45;
}

.det-wash__steps {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.det-wash__step {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.82);
  border-radius: 0.65rem;
  padding: 0.5rem 0.7rem;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.det-wash__step:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.1);
}

.det-wash__step.is-active {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink);
}

.det-wash__step.is-done:not(.is-active) {
  border-color: rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.08);
}

.det-wash__step-num {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  opacity: 0.7;
  min-width: 1.6rem;
}

.det-wash__step.is-active .det-wash__step-num {
  opacity: 0.85;
}

.det-wash__step-name {
  font-size: 0.84rem;
  font-weight: 650;
}

.det-wash__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.det-wash__btn {
  flex: 1 1 auto;
  min-width: 5.5rem;
  justify-content: center;
}

@media (max-width: 960px) {
  .det-wash__layout {
    grid-template-columns: 1fr;
  }

  .det-wash__stage {
    min-height: min(52vh, 420px);
    order: -1;
  }

  .det-wash-section {
    padding-bottom: calc(3.25rem + var(--mobile-cta-h, 4.35rem));
  }
}
