/* ==============================================
   CSS CUSTOM PROPERTIES (scope: seo page)
   ============================================== */
:root {
  --seo-transition: cubic-bezier(0.22, 1, 0.36, 1);
  --seo-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==============================================
   SECJE WSPÓLNE – centrowanie
   ============================================== */
/* Wyśrodkuj label z ikoną sygnetu we wszystkich sekcjach SEO */
.section .section__label {
  justify-content: center;
}

/* ==============================================
   SEO HERO – 2 columns with photo
   ============================================== */
.seo-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* flex-start, nie center: przy min-height 100vh centrowanie przesuwało start hero
     w dół zależnie od wysokości okna — każdy monitor widział plakietkę gdzie indziej.
     Stały start = 7rem paddingu + 56 px na kolumnie treści (168 px, wzorzec usług). */
  justify-content: flex-start;
  position: relative; z-index: 1;
  padding: 7rem 3rem 4rem;
  overflow: hidden;
}
.seo-hero__bg-glow {
  position: absolute; width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254,204,0,0.07) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0; top: 50%; left: 40%;
}


.seo-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  /* WSPÓLNA ZASADA STRON USŁUGOWYCH: kolumna z tekstem wyrównana do GÓRY, nie do środka.
     Wizual po prawej jest wysoki, więc wyśrodkowany blok tekstu spadał nisko i każda
     podstrona zaczynała się na innej wysokości. */
  align-items: start;
  position: relative; z-index: 1;
}
/* Wyrównanie startu lewej kolumny do /strony-internetowe (208 px od góry).
   Pomiar: bez tego plakietka startowała na 152 px — o 56 px za wysoko. */
.seo-hero__content { padding-top: 56px; }

.seo-hero__badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--yellow);
  border: 1px solid rgba(254,204,0,0.2);
  border-radius: 4px; padding: 0.45rem 1.2rem;
  margin-bottom: 2rem;
  background: rgba(254,204,0,0.08);
}
.seo-hero__badge-dot {
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--yellow);
  animation: seo-pulse-dot 1.5s ease-in-out infinite;
}
@keyframes seo-pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 rgba(254,204,0,0.7); }
  50% { box-shadow: 0 0 0 10px rgba(254,204,0,0); }
}
.seo-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 700; line-height: 1.08;
  letter-spacing: -0.02em; margin-bottom: 1.5rem;
  color: var(--white);
}
.seo-hero__title em { font-style: normal; color: var(--yellow); text-shadow: 0 0 60px rgba(254,204,0,0.4); }
.seo-hero__sub {
  font-family: var(--font-body);
  font-size: 1.1rem; font-weight: 300; line-height: 1.75;
  color: rgba(255,255,255,0.78); max-width: 480px;
  margin-bottom: 2.5rem;
}
.seo-hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.seo-hero__photo-wrap {
  position: relative;
  width: 100%;
  min-height: 680px;
  overflow: hidden;
  border-radius: 20px;
}
.seo-hero__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  position: absolute; inset: 0;
  /* Nowe hero ma tło dopasowane do --navy. Brightness(0.5) robił z niego czarny klin
     mimo poprawnego koloru w samym WebP; zostawiamy tylko lekkie ujednolicenie nasycenia. */
  filter: contrast(1.02) saturate(0.82);
  -webkit-mask-image:
      linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image:
      linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* Scroll indicator — nadpisuje globalny komponent: tu płynie w treści pod przyciskami.
   position/transform/flex-direction trzeba wyzerować jawnie, bo global.css ustawia
   position: absolute na dole hero — na mobile "Przewiń w dół" nachodziło na CTA. */
.scroll-indicator {
  position: static;
  transform: none;
  display: flex; flex-direction: row; align-items: center; gap: 0.75rem;
  margin-top: 3rem;
}
.scroll-indicator__text {
  font-family: var(--font-mono);
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: rgba(255,255,255,0.55); /* WCAG AA: 0.50=4.22:1 fail → 0.55=4.77:1 */
}
.scroll-indicator__line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(254,204,0,0.4), transparent);
  position: relative; overflow: hidden;
}
.scroll-indicator__line::after {
  content: ''; position: absolute; top: -100%;
  left: 0; width: 100%; height: 100%;
  background: var(--yellow);
  animation: seo-scroll-indicator 2s ease-in-out infinite;
}
@keyframes seo-scroll-indicator {
  0%,100% { top: -100%; opacity: 0; }
  40% { opacity: 1; }
  70% { opacity: 0; }
  100% { top: 100%; opacity: 0; }
}

/* ==============================================
   LAYERS – Drzewo SEO (lewo) + treść (prawo)
   ============================================== */
.layers {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.layers__header {
  text-align: center;
  margin-bottom: 3rem;
}

.layers__header .section__desc {
  margin-left: auto;
  margin-right: auto;
}

/* Dwie kolumny */
.layers__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

/* KOLUMNA LEWA – stack warstw drzewa */
.layers__tree-col {
  display: flex;
  justify-content: center;
}

.layers__tree-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  user-select: none;
}

/* Każda warstwa drzewa (webp) – ułożona jedna na drugiej */
.layers__tree-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.5s ease, filter 0.5s ease;
  opacity: 0;
  filter: drop-shadow(0 0 30px rgba(254, 204, 0, 0));
  pointer-events: none; /* nie blokuje hotspotów */
}

.layers__tree-layer--active {
  opacity: 1;
  filter: drop-shadow(0 0 40px rgba(254, 204, 0, 0.12));
}

/* Hotspoty – kółka na drzewie */
.layers__hotspot {
  position: absolute;
  left: 50%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy-deeper);
  border: 2px solid var(--navy-light);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--yellow);
}
.layers__hotspot[data-layer="roots"] { top: 90%; }
.layers__hotspot[data-layer="stem"]  { top: 48%; }
.layers__hotspot[data-layer="bloom"] { top: 14%; }

.layers__hotspot:hover,
.layers__hotspot--active {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--navy-dark);
  box-shadow: 0 0 24px rgba(254, 204, 0, 0.45);
  animation: hotspot-pulse 1.4s ease-in-out infinite;
}

@keyframes hotspot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(254,204,0,0.6); }
  50% { box-shadow: 0 0 0 15px rgba(254,204,0,0); }
}

/* Etykietki przy hotspotach */
.layers__hotspot-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.layers__hotspot:hover .layers__hotspot-label,
.layers__hotspot--active .layers__hotspot-label {
  opacity: 1;
}

.layers__hotspot-label--left {
  right: calc(100% + 16px);
  transform: translateY(-50%) translateX(8px);
  text-align: right;
}

.layers__hotspot:hover .layers__hotspot-label--left,
.layers__hotspot--active .layers__hotspot-label--left {
  transform: translateY(-50%) translateX(0);
}

.layers__hotspot-label--right {
  left: calc(100% + 16px);
  transform: translateY(-50%) translateX(-8px);
  text-align: left;
}

.layers__hotspot:hover .layers__hotspot-label--right,
.layers__hotspot--active .layers__hotspot-label--right {
  transform: translateY(-50%) translateX(0);
}

/* Nakładki hover – przezroczyste strefy na obszarach drzewa */
.layers__hover-zone {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 3;
  background: transparent;
}
.layers__hover-zone[data-layer="roots"] { top: 82%; width: 55%; height: 18%; }
.layers__hover-zone[data-layer="stem"]  { top: 30%; width: 25%; height: 45%; }
.layers__hover-zone[data-layer="bloom"] { top:  0%; width: 60%; height: 38%; }

/* KOLUMNA PRAWA – panel z treścią */
.layers__content-col {
  display: flex;
  align-items: flex-start;
}

.layers__detail {
  width: 100%;
  border: 1px solid var(--navy-light);
  border-radius: 16px;
  background: var(--navy-deeper);
  padding: 2rem;
  opacity: 1;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.layers__detail--flash {
  border-color: var(--yellow);
  box-shadow: 0 0 30px rgba(254, 204, 0, 0.25);
}

.layers__detail-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* 3 panele warstw są w HTML (SEO); widoczny jest tylko aktywny.
   GOTCHA: autorska reguła display musi jawnie obsłużyć [hidden], inaczej nadpisze UA. */
.layers__detail-panel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.layers__detail-panel[hidden] {
  display: none;
}

.layers__detail-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.layers__detail-icon--roots { background: rgba(140, 180, 140, 0.15); }
.layers__detail-icon--stem { background: rgba(160, 200, 120, 0.15); }
.layers__detail-icon--bloom { background: rgba(254, 204, 0, 0.15); }

.layers__detail h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}

.layers__detail h3 em {
  font-style: normal;
  color: var(--yellow);
}

.layers__detail p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
}

.layers__detail-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.layers__detail-list li {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.72);
  padding-left: 1.3rem;
  position: relative;
}

.layers__detail-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-size: 0.7rem;
}

/* ==============================================
   JOURNEY – Podróż użytkownika (scroll-driven)
   ============================================== */
.journey {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.journey__header {
  text-align: center;
  margin-bottom: 4rem;
}

.journey__badge {
  display: inline-flex;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(254, 204, 0, 0.2);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.journey__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.journey__sub {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
}

/* Center section__desc inside journey__header */
.journey__header .section__desc {
  margin-left: auto;
  margin-right: auto;
}

/* Track layout */
.journey__track {
  display: flex;
  gap: 3rem;
  position: relative;
}

/* Progress bar – left side, sticky */
.journey__progress {
  position: sticky;
  top: 50vh;
  margin-top: -200px;
  width: 3px;
  height: 400px;
  background: var(--navy-light);
  border-radius: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.journey__progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--yellow);
  border-radius: 2px;
  height: 0%;
  transition: height 0.1s linear;
  box-shadow: 0 0 12px rgba(254, 204, 0, 0.5);
}

.journey__progress-dots {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.journey__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--navy-light);
  border: 2px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
  z-index: 2;
}

.journey__dot--active {
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 0 0 14px rgba(254, 204, 0, 0.6);
}

/* Steps */
.journey__steps {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12rem;
  padding-bottom: 4rem;
}

.journey-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 60vh;
  opacity: 0.4;
  transition: opacity 0.5s ease;
}

.journey-step--visible {
  opacity: 1;
}

/* Visual side */
.journey-step__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.journey-step__icon-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.journey-step__emoji {
  font-size: 2.8rem;
  position: relative;
  z-index: 1;
  filter: grayscale(0.3);
  transition: filter 0.4s;
}

.journey-step--visible .journey-step__emoji {
  filter: grayscale(0);
}

.journey-step__pulse {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(254, 204, 0, 0.3);
  animation: seo-pulse-ring 2.5s ease-out infinite;
  opacity: 0;
}

.journey-step--visible .journey-step__pulse {
  opacity: 1;
}

.journey-step__pulse--done {
  border-color: rgba(254, 204, 0, 0.6);
  animation-duration: 1.5s;
}

@keyframes seo-pulse-ring {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Illustrations */
.journey-step__illustration {
  width: 100%;
  max-width: 340px;
}

/* Browser mockup (step 1) */
.journey-step__browser {
  background: var(--navy-deeper);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--navy-light);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.journey-step__browser-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
}

.journey-step__browser-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy-light);
}

.journey-step__browser-bar span:nth-child(1) { background: #FF5F56; }
.journey-step__browser-bar span:nth-child(2) { background: #FFBD2E; }
.journey-step__browser-bar span:nth-child(3) { background: #27C93F; }

.journey-step__search-bar {
  margin: 10px 14px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.72);
}

.journey-step__serp {
  padding: 10px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.journey-step__serp-result {
  padding: 8px;
  border-radius: 4px;
}

.journey-step__serp-url {
  display: block;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 2px;
}

.journey-step__serp-title {
  display: block;
  font-size: 0.85rem;
  color: #8AB4F8;
  font-weight: 600;
  line-height: 1.3;
}

.journey-step__serp-desc {
  display: block;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.72);
  margin-top: 2px;
}

.journey-step__serp-result--top {
  background: rgba(254, 204, 0, 0.06);
  border-left: 2px solid var(--yellow);
  padding-left: 10px;
}

/* Cards (step 2) */
.journey-step__cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.journey-step__card {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--navy-light);
  background: var(--navy-deeper);
}

.journey-step__card--highlight {
  border-color: var(--yellow);
  background: rgba(254, 204, 0, 0.05);
  box-shadow: 0 0 20px rgba(254, 204, 0, 0.08);
}

.journey-step__card-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--yellow);
  margin-bottom: 4px;
}

.journey-step__card-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 3px;
}

.journey-step__card-desc {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.4;
}

/* Speedometer (step 3) */
.journey-step__speedometer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.journey-step__gauge {
  position: relative;
  width: 140px;
  height: 140px;
}

.journey-step__gauge-svg {
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
}

.journey-step__gauge-fill {
  transition: stroke-dashoffset 1s ease-out;
}

.journey-step__gauge-val {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--yellow);
  display: flex;
  align-items: baseline;
}

.journey-step__gauge-val span {
  font-size: 1rem;
  opacity: 0.7;
}

.journey-step__speed-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.72);
}

/* Content preview (step 4) */
.journey-step__content-preview {
  background: var(--navy-deeper);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--navy-light);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.journey-step__content-h1 {
  width: 60%;
  height: 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.journey-step__content-h2 {
  width: 35%;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 4px;
}

.journey-step__content-line {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
}

.journey-step__content-line--long {
  width: 80%;
}

.journey-step__content-line--short {
  width: 45%;
}

/* Success (step 5) */
.journey-step__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem;
  position: relative;
}

.journey-step__checkmark {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(254, 204, 0, 0.15);
  border: 2px solid var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--yellow);
  animation: seo-check-pop 0.6s var(--seo-ease-spring) forwards;
  opacity: 0;
  transform: scale(0.5);
}

.journey-step--visible .journey-step__checkmark {
  opacity: 1;
  transform: scale(1);
}

@keyframes seo-check-pop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.journey-step__success-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--yellow);
}

/* Text side */
.journey-step__text {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.journey-step__num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--yellow);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.journey-step__text h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.journey-step__text p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
}

.journey-step__facts {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.journey-step__facts li {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.72);
  padding-left: 1.2rem;
  position: relative;
}

.journey-step__facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yellow);
}

/* ==============================================
   MYTHS – Flip cards
   ============================================== */
.myths {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.myths__header {
  text-align: center;
  margin-bottom: 3rem;
}

.myths__header .section__desc {
  margin-left: auto;
  margin-right: auto;
}

.myths__badge {
  display: inline-flex;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(254, 204, 0, 0.2);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.myths__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.myths__sub {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
}

.myths__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Flip card */
.myth-card {
  perspective: 1000px;
  height: 280px;
  cursor: pointer;
  will-change: transform;
}

.myth-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
}

.myth-card--flipped .myth-card__inner {
  transform: rotateY(180deg);
}

.myth-card__front,
.myth-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  border: 1px solid var(--navy-light);
  background: radial-gradient(ellipse at center, rgba(254, 204, 0, 0.03) 0%, transparent 70%);
  background-color: var(--navy-deeper);
}

.myth-card__front {
  gap: 1rem;
}

.myth-card__icon {
  font-size: 2.5rem;
}

.myth-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  text-align: center;
  line-height: 1.4;
}

.myth-card__hint {
  font-family: var(--font-mono);
  font-size: 0.7rem; /* było 0.6rem ≈ 9.6px — jedyna wskazówka UI, poniżej minimum czytelności */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--yellow);
  opacity: 0.7;
}

.myth-card__back {
  transform: rotateY(180deg);
  background: radial-gradient(ellipse at center, rgba(254, 204, 0, 0.08) 0%, transparent 70%);
  background-color: var(--navy-deeper);
  border-color: var(--yellow);
  gap: 0.75rem;
}

/* Etykieta rewersu mit-karty jest teraz <p class="myth-card__title"> (nie <h3>) — nagłówek-etykieta
   zaśmiecał outline. Selektor podbity o klasę zachowuje wygląd (wyższa specyficzność niż .myth-card__title). */
.myth-card__back .myth-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--yellow);
}

.myth-card__back p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
  text-align: center;
}

/* ==============================================
   PROCESS – Cykliczna timeline
   ============================================== */
.process {
  padding: 6rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.process__header {
  text-align: center;
  margin-bottom: 3rem;
}

.process__badge {
  display: inline-flex;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(254, 204, 0, 0.2);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.process__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.process__sub {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  max-width: 550px;
  margin: 0 auto;
}

.process__cycle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Ring */
.process__ring {
  position: relative;
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  aspect-ratio: 1;
}

.process__ring-svg {
  width: 100%;
  height: 100%;
}

.process__ring-progress {
  transition: stroke-dashoffset 0.3s ease;
}

/* Nodes positioned around the ring */
.process__nodes {
  position: absolute;
  inset: 0;
}

.process__node {
  position: absolute;
  top: var(--py);
  left: var(--px);
  transform: translate(-50%, -50%);
  background: var(--navy-deeper);
  border: 1px solid var(--navy-light);
  border-radius: 100px;
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  white-space: nowrap;
}

.process__node:hover,
.process__node--active {
  border-color: var(--yellow);
  box-shadow: 0 0 20px rgba(254, 204, 0, 0.2);
  transform: translate(-50%, -50%) scale(1.05);
}

.process__node-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--yellow);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.process__node-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}

/* Details */
.process__details {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process__detail {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  animation: seo-fade-in 0.4s ease;
}

.process__detail--active {
  display: flex;
}

@keyframes seo-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.process__detail h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

.process__detail p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
}

/* ==============================================
   FAQ
   ============================================== */
.faq {
  padding: 6rem 2rem;
  max-width: 750px;
  margin: 0 auto;
}

.faq__header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq__badge {
  display: inline-flex;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(254, 204, 0, 0.2);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.faq__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq__item {
  border: 1px solid var(--navy-light);
  border-bottom: none;
  overflow: hidden;
}

.faq__item:first-child {
  border-radius: 12px 12px 0 0;
}

.faq__item:last-child {
  border-radius: 0 0 12px 12px;
  border-bottom: 1px solid var(--navy-light);
}

.faq__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.3s;
}

.faq__btn:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq__btn-icon {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--yellow);
  transition: transform 0.3s;
}

.faq__item--open .faq__btn-icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.4s;
}

.faq__item--open .faq__answer {
  max-height: 420px; /* było 200px — najdłuższe odpowiedzi ucinane na wąskich ekranach */
  padding: 0 1.5rem 1.25rem;
}

.faq__answer p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
}

/* ==============================================
   CONTACT / CTA
   ============================================== */
/* .seo-contact* — USUNIĘTE. Sekcja #contact używa teraz wspólnego
   komponentu .contact-section/.contact-form z global.css (formularz + kanały). */

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1024px) {
  .myths__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* W paśmie 769–1024px hero zostaje 2-kolumnowe — obniżamy sztywne 680px zdjęcia. */
  .seo-hero__photo-wrap {
    min-height: 480px;
  }
}

@media (max-width: 768px) {
  .seo-hero {
    padding: 7rem 1.5rem 4rem;
  }

  .seo-hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .seo-hero__photo-wrap {
    min-height: 300px;
    border-radius: 14px;
    order: -1;
  }

  /* Reset desktopowego wyrównania (padding-top:56px) — na mobile zdjęcie jest NAD tekstem. */
  .seo-hero__content {
    padding-top: 0;
  }

  /* Sekcje SEO mają padding 6rem 2rem zadeklarowany poza media (nadpisuje mobilny .section). */
  .layers, .journey, .myths, .process, .faq {
    padding: 4rem 1.5rem;
  }

  /* Trzy warstwy: 1 kolumna już od 768px (przy 2 kol. drzewo kurczyło się do ~240px). */
  .layers__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .layers__tree-stack {
    max-width: 320px;
    margin: 0 auto;
  }

  .seo-hero__title {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }

  /* Journey */
  .journey__track {
    flex-direction: column;
    gap: 2rem;
  }

  .journey__progress {
    position: relative;
    top: 0;
    transform: none;
    margin-top: 0; /* desktop ma -200px (kompensacja sticky); bez resetu pasek nachodził na nagłówek */
    width: 100%;
    height: 3px;
    flex-direction: row;
  }

  .journey__progress-fill {
    height: 100%;
    width: 0%;
  }

  .journey__progress-dots {
    flex-direction: row;
    width: 100%;
    height: auto;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
  }

  .journey-step {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
    padding: 2rem 0;
  }

  .journey__steps {
    gap: 4rem;
  }

  .journey-step__illustration {
    max-width: 260px;
  }

  /* Myths */
  .myths__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .myth-card {
    height: 240px;
  }

  /* Process */
  .process__cycle {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .process__ring {
    max-width: 280px;
  }

  .process__node {
    padding: 0.45rem 0.8rem;
  }

  .process__node-label {
    font-size: 0.75rem;
  }

}

@media (max-width: 480px) {
  /* CTA hero obsługuje globalny blok :is(...) w global.css; .layers przeniesione do @768. */

  .journey__steps {
    gap: 3rem;
  }

  .process__node {
    padding: 0.55rem 0.7rem; /* było 0.35rem — cel dotykowy schodził poniżej 44px */
    min-height: 44px;
    font-size: 0.7rem;
  }

  .process__node-label {
    font-size: 0.75rem;
  }

  .process__node-num {
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
  }
}
