/* =====================================================================
   Urban Ceramics — css/certyfikat.css (strona /certyfikat, Faza 4.3)
   Ładowany PO css/base.css i css/classic.css (osobny <link>, bez importów CSS).
   Wygląd R1 strony głównej: krem i granat (paleta z classic.css), czerwone przyciski, etykiety mono,
   nagłówki .section-heading z bazy. Rytm tła: krem (hero) → granat (nominały) → biel (kroki) → krem (lokale) → biel (FAQ).
   Reguły .gift-modal* są KOPIĄ z css/home.css i muszą z nią pozostać zgodne
   (pilnuje G9 w scripts/check-certyfikat.mjs): zmiana w home.css = ta sama zmiana tutaj.
   Cele dotyku ≥ 44 px, fokus widoczny na kremie i granacie, animacje wyłączone przy reduced motion.
   ===================================================================== */

/* === HERO PODSTRONY === */

.cert-hero {
  /* clip, nie hidden: ucina wychylenie obróconej makiety w poziomie, ale nie ucina cienia w pionie */
  overflow-x: clip;
  padding: calc(var(--nav-height) + 2.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  background-color: var(--color-cream);
}

.cert-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

/* H1 = etykieta z frazą „Certyfikat podarunkowy…” (SEO) + hasło marki z brandbooka (wersaliki jak na koszulkach ekipy) */
.cert-hero__heading {
  --loops-w: min(17rem, 75%);
  position: relative;
  margin: 0.25rem 0 1.5rem;
}

.cert-hero__title {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: 0.9rem;
  margin: 0;
  font-weight: 400;
}

.cert-hero__slogan {
  display: block;
  font-family: var(--font-primary);
  font-size: clamp(2.25rem, 7vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--color-blue);
  max-width: 13ch;
  text-wrap: balance;
}

/* Pętelki pod hasłem: rysowane raz po wejściu na stronę */
.cert-hero__loops {
  display: block;
  width: var(--loops-w);
  height: auto;
  margin-top: 0.9rem;
  overflow: visible;
}

.cert-hero__loops path {
  fill: none;
  stroke: var(--color-pink);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: cert-draw 1.6s 0.6s cubic-bezier(0.45, 0, 0.25, 1) forwards;
}

/* Doodle z brandbooka przy haśle: pędzel na początku, kwiatek przy końcu (jak nadruk „When hands are busy, mind rests”) */
.cert-hero__brush,
.cert-hero__flower {
  position: absolute;
  z-index: 0;
  color: var(--color-pink);
}

/* Pędzel „kończy” malować pętelki: czubek przy końcu linii */
.cert-hero__brush {
  width: clamp(2.5rem, 7vw, 4rem);
  aspect-ratio: 225 / 320;
  left: calc(var(--loops-w) - 0.6rem);
  bottom: 0.2rem;
  transform-origin: 10% 95%;
  animation: cert-pop 0.6s 2.2s cubic-bezier(0.34, 1.56, 0.64, 1) both,
             cert-sway 5s 3s ease-in-out infinite;
}

/* Kwiatek przy pierwszym wersie hasła, po prawej */
.cert-hero__flower {
  width: clamp(3.25rem, 9vw, 5.5rem);
  aspect-ratio: 282 / 320;
  right: 0;
  top: 3.5rem;
  animation: cert-pop 0.7s 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both,
             cert-spin 16s 1.3s linear infinite;
}

/* Wejście tekstu hero samym przesunięciem (jak hero-enter w base.css): treść widoczna od pierwszego malowania */
.cert-hero__text > * {
  animation: cert-rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.cert-hero__text > :nth-child(2) { animation-delay: 0.08s; }
.cert-hero__text > :nth-child(3) { animation-delay: 0.16s; }
.cert-hero__text > :nth-child(4),
.cert-hero__text > :nth-child(5) { animation-delay: 0.24s; }

/* Trzy fakty pod przyciskiem: mono, kropki w kolorze różu */
.cert-hero__facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  margin: 1.25rem 0 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-blue);
}

.cert-hero__facts li + li::before {
  content: '';
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin: 0 0.7rem 0.1rem;
  border-radius: 50%;
  background-color: var(--color-pink);
  vertical-align: middle;
}

.cert-hero__lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 34rem;
  margin-bottom: 2rem;
}

/* Makieta bonu jak na stronie głównej: warstwa pod zdjęciem i lekki obrót; zdjęcie powoli „oddycha” (cert-float) */
.cert-hero__media {
  --tilt: -1.5deg;
  position: relative;
  width: 100%;
  max-width: 34rem;
  justify-self: center;
}

.cert-hero__media::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background-color: var(--color-pink);
  opacity: 0.4;
  transform: rotate(-4deg) translate(-4px, 8px);
}

.cert-hero__img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: rotate(var(--tilt));
  /* Bon lekko „oddycha” (tylko transform: element LCP widoczny od początku) */
  animation: cert-float 7s 1s ease-in-out infinite;
}

.cert-hero__sparkle,
.cert-hero__heart {
  position: absolute;
  z-index: 1;
}

.cert-hero__sparkle {
  width: clamp(2.25rem, 6vw, 3.25rem);
  aspect-ratio: 243 / 320;
  top: -1.1rem;
  right: -0.4rem;
  color: var(--color-red);
  animation: cert-pop 0.6s 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both,
             cert-twinkle 3.2s 1.6s ease-in-out infinite;
}

.cert-hero__heart {
  width: clamp(2.5rem, 7vw, 3.75rem);
  aspect-ratio: 262 / 320;
  bottom: -1.25rem;
  left: -0.6rem;
  color: var(--color-blue);
  transform-origin: 50% 100%;
  animation: cert-pop 0.6s 1.05s cubic-bezier(0.34, 1.56, 0.64, 1) both,
             cert-sway 4.2s 1.8s ease-in-out infinite;
}

/* === DOODLE Z BRANDBOOKA (maski: kształt z pliku, kolor z `color`) === */

.cert-doodle {
  display: block;
  background-color: currentColor;
  -webkit-mask: var(--doodle) center / contain no-repeat;
  mask: var(--doodle) center / contain no-repeat;
  pointer-events: none;
}

.cert-doodle--brush    { --doodle: url('../images/doodles/brush.webp'); }
.cert-doodle--flower   { --doodle: url('../images/doodles/flower.webp'); }
.cert-doodle--gift     { --doodle: url('../images/doodles/gift.webp'); }
.cert-doodle--envelope { --doodle: url('../images/doodles/envelope.webp'); }
.cert-doodle--cup      { --doodle: url('../images/doodles/cup.webp'); }
.cert-doodle--heart    { --doodle: url('../images/doodles/heart.webp'); }
.cert-doodle--sparkle  { --doodle: url('../images/doodles/sparkle.webp'); }

/* === SEKCJE PODSTRONY === */

.cert-section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  scroll-margin-top: calc(var(--nav-height) + 8px);
}

.cert-section .section-heading { margin-bottom: 2rem; text-wrap: balance; }

.cert-lead, .cert-note { max-width: 40rem; line-height: 1.7; margin-bottom: 1rem; }

/* === NOMINAŁY: granatowa sekcja z kremowym tekstem (wzorzec .gift-card) === */

.cert-amounts-section { background-color: var(--color-blue); color: var(--color-cream); }

.cert-amounts-section .label { color: var(--color-label-on-blue); }

.cert-amounts-section .label::before { background-color: var(--color-pink); }

.cert-amounts-section .section-heading { color: var(--color-white); }

.cert-amounts-section .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
}

/* Karty informacyjne (nie przyciski); zakup tylko przez przycisk otwierający modal */
.cert-amounts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: 36rem;
  margin: 0.75rem 0 2rem;
  padding: 1rem 0 0;
}

/* Karta = bon z brandbooka: falisty brzeg z boków (maska), kolory druków — 100 róż, 150 krem (najpopularniejszy), 200 czerwień */
.cert-amount {
  position: relative;
  display: block;
}

.cert-amount__ticket {
  --r: 9px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.45rem;
  min-height: 6.25rem;
  padding: 1rem calc(var(--r) + 0.4rem);
  border-radius: 4px;
  background-color: var(--color-pink);
  color: var(--color-blue);
  -webkit-mask:
    linear-gradient(#000 0 0) center / calc(100% - 2 * var(--r)) 100% no-repeat,
    radial-gradient(circle closest-side, #000 96%, #0000) left top / calc(2 * var(--r)) calc(2 * var(--r)) no-repeat round,
    radial-gradient(circle closest-side, #000 96%, #0000) right top / calc(2 * var(--r)) calc(2 * var(--r)) no-repeat round;
  mask:
    linear-gradient(#000 0 0) center / calc(100% - 2 * var(--r)) 100% no-repeat,
    radial-gradient(circle closest-side, #000 96%, #0000) left top / calc(2 * var(--r)) calc(2 * var(--r)) no-repeat round,
    radial-gradient(circle closest-side, #000 96%, #0000) right top / calc(2 * var(--r)) calc(2 * var(--r)) no-repeat round;
  transform: rotate(-2deg);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cert-amount--popular .cert-amount__ticket {
  background-color: var(--color-cream);
  transform: rotate(1deg) scale(1.05);
}

.cert-amount--200 .cert-amount__ticket {
  background-color: var(--color-red);
  color: var(--color-cream);
  transform: rotate(2.5deg);
}

@media (hover: hover) {
  .cert-amount:hover .cert-amount__ticket { transform: translateY(-6px) rotate(0deg) scale(1.06); }
}

.cert-amount__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}

.cert-amount__value {
  font-family: var(--font-primary);
  font-size: clamp(1.375rem, 5.5vw, 2.25rem);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.cert-amount__badge {
  position: absolute;
  top: -0.9rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: var(--color-red-dark);
  color: var(--color-white);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  z-index: 1;
}

.cert-amounts-section .cert-note { color: var(--color-cream); opacity: 0.92; margin-bottom: 2rem; }

/* === KROKI === */

.cert-steps-section { background-color: var(--paper); }

.cert-steps {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.cert-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 0.4rem;
  align-items: start;
}

/* Ikona kroku: doodle z brandbooka + mały numer w kółku */
.cert-step__icon {
  grid-row: 1 / span 2;
  position: relative;
  display: block;
  width: 4rem;
  height: 4rem;
}

.cert-step__icon .cert-doodle {
  width: 100%;
  height: 100%;
  color: var(--color-blue);
}

.cert-step.visible .cert-doodle {
  animation: cert-wiggle 0.9s calc(var(--stagger-delay, 0ms) + 0.25s) ease-out both;
}

.cert-step__num {
  position: absolute;
  right: -0.4rem;
  bottom: -0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background-color: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.cert-step__title {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-blue);
  margin: 0.45rem 0 0;
}

.cert-step__text { margin: 0; line-height: 1.65; color: var(--ink-muted); }

/* === OPINIE GOŚCI: różowo-kremowe tło, białe karty z cytatami === */

.cert-reviews { background-color: color-mix(in srgb, var(--color-pink) 30%, var(--color-cream)); }

.cert-reviews__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.cert-reviews__head .section-heading { margin-bottom: 0; }

.cert-reviews__heart {
  flex: none;
  width: 2.75rem;
  aspect-ratio: 262 / 320;
  color: var(--color-red);
  transform-origin: 50% 100%;
  animation: cert-sway 4s ease-in-out infinite;
}

.cert-reviews__rating {
  margin: 0 0 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-blue);
}

.cert-quotes {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.cert-quote {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 1.25rem;
  padding: 2.25rem 1.5rem 1.5rem;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.cert-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.35rem;
  left: 1.25rem;
  font-family: var(--font-primary);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-pink);
}

.cert-quote__text { margin: 0; font-size: 1.0625rem; line-height: 1.65; color: var(--ink, var(--color-black)); }

.cert-quote__author {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-blue);
}

/* === LOKALE === */

.cert-where { background-color: var(--color-cream); }

.cert-locations { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin-top: 2rem; }

.cert-location {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  align-content: start;
  padding: 1.75rem 1.5rem;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.cert-location:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.cert-location__city { font-family: var(--font-primary); font-size: 1.625rem; font-weight: 400; line-height: 1.15; color: var(--color-blue); margin: 0; }

.cert-location__address { margin: 0 0 1rem; color: var(--ink-muted); }

.cert-location__cta { max-width: 100%; min-height: 2.75rem; white-space: normal; text-align: center; line-height: 1.25; }

/* === FAQ: biała sekcja, pytania na kremie (baza ma je białe na kremie) === */

.cert-page .faq { background-color: var(--color-white); }

.cert-page .faq__item { background-color: var(--color-cream); }

.cert-page .faq__answer p { color: var(--ink-muted); }

.cert-section .fr-accordion__heading { margin: 0; font: inherit; }

/* === FOKUS (widoczny na kremie, bieli i granacie) === */

.cert-page .cert-section a:focus-visible,
.cert-page .cert-section button:not(.faq__question):focus-visible { outline: var(--focus-ring-light); outline-offset: 3px; }

/* Pytania FAQ zostają przy obrysie z bazy (wewnątrz kadru: .faq__item ma overflow: hidden) */

.cert-page .cert-amounts-section a:focus-visible,
.cert-page .cert-amounts-section button:focus-visible { outline: var(--focus-ring-dark); }

/* === UKŁAD ŚREDNI I DUŻY === */

@media (min-width: 768px) {
  .cert-hero__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; }
  .cert-hero__media { --tilt: -2deg; }
  /* Szerszy wiersz hasła: pętelki na całą szerokość ostatniego wersu, pędzel za nim, kwiatek nad hasłem */
  .cert-hero__heading { --loops-w: min(27rem, 80%); }
  .cert-hero__flower { top: -3rem; right: 1rem; }
  .cert-hero__media::before { transform: rotate(-6deg) translate(-6px, 10px); }
  .cert-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; }
  .cert-locations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  /* Nominały: tekst i przycisk po lewej, karty po prawej */
  .cert-amounts-section .container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 4rem;
    align-items: start;
  }
  .cert-amounts-section .container > :not(.cert-amounts) { grid-column: 1; }
  .cert-amounts-section .cert-amounts {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
    margin: 0;
  }
  .cert-amount__ticket { min-height: 8rem; }
  .cert-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .cert-step { grid-template-columns: minmax(0, 1fr); row-gap: 0.75rem; }
  .cert-step__icon { grid-row: auto; width: 4.75rem; height: 4.75rem; }
  .cert-quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cert-step__title { margin-top: 0; }
}

@media (min-width: 1280px) {
  .cert-locations { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* === ANIMACJE PODSTRONY === */

@keyframes cert-rise {
  from { transform: translateY(24px); }
  to   { transform: translateY(0); }
}

@keyframes cert-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes cert-pop {
  from { opacity: 0; scale: 0.4; rotate: -20deg; }
  to   { opacity: 1; scale: 1; rotate: 0deg; }
}

@keyframes cert-sway {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(-7deg); }
}

@keyframes cert-spin {
  to { transform: rotate(360deg); }
}

@keyframes cert-twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(0.75) rotate(18deg); }
}

@keyframes cert-float {
  0%, 100% { transform: rotate(var(--tilt)) translateY(0); }
  50%      { transform: rotate(calc(var(--tilt) + 1deg)) translateY(-10px); }
}

@keyframes cert-wiggle {
  0%   { transform: scale(0.6) rotate(-14deg); }
  60%  { transform: scale(1.08) rotate(6deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* Reduced motion: wszystko stoi w pozycji końcowej (nieskończone animacje 0,01 ms z base.css migotałyby) */
@media (prefers-reduced-motion: reduce) {
  .cert-hero__text > *,
  .cert-hero__img,
  .cert-doodle,
  .cert-step.visible .cert-doodle { animation: none; }
  .cert-hero__loops path { animation: none; stroke-dashoffset: 0; }
  .cert-amount__ticket { transition: none; }
}

/* === GIFT CARD MODAL === */

.gift-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  visibility: hidden;
  pointer-events: none;
}

.gift-modal.is-open {
  visibility: visible;
  pointer-events: auto;
}

.gift-modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gift-modal.is-open .gift-modal__overlay {
  opacity: 1;
}

.gift-modal__dialog {
  position: relative;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  width: 100%;
  max-width: 520px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.46, 0.64, 1),
              opacity 0.25s ease;
}

.gift-modal.is-open .gift-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.gift-modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: var(--color-cream);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue);
  transition: background var(--transition), transform var(--transition);
}

.gift-modal__close:hover {
  background: var(--color-blue);
  color: var(--color-white);
  transform: rotate(90deg);
}

.gift-modal__title {
  font-family: var(--font-primary);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  color: var(--color-blue);
  margin: 0.5rem 0 0.75rem;
}

.gift-modal__subtitle {
  font-size: 0.9375rem;
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.gift-modal__options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.25rem;
}

.gift-modal__option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 5rem;
  border: 2px solid var(--color-blue);
  border-radius: var(--radius-lg);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              transform var(--transition), box-shadow var(--transition);
}

.gift-modal__option:hover {
  background: var(--color-blue);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-dark);
}

.gift-modal__option--popular {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
  box-shadow: var(--shadow-dark);
}

.gift-modal__option--popular:hover {
  background: var(--color-red);
  border-color: var(--color-red);
}

.gift-modal__amount {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.gift-modal__popular-badge {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--color-red);
  color: var(--color-white);
  padding: 0.25rem 0.7rem;
  border-radius: 2rem;
}

/* === REDUCED MOTION === */

@media (prefers-reduced-motion: reduce) {
  /* Kontener dialogu bez przejść: animowane `visibility` sprawiało, że w chwili focus() element był jeszcze „hidden” */

  .gift-modal { transition: none !important; }
}

/* === STOPKA: grupa linków social z zawijaniem (kopia z home.css, pz1) === */

/* Grupa linków social: zawijanie w wąskiej kolumnie; row-gap 26 px = 11 + 15 px wysunięcia ::after (cele dotyku 44 px się stykają, nie nakładają). */
.footer__social--wrap {
  flex-wrap: wrap;
  column-gap: 1.25rem;
  row-gap: 1.625rem;
}

.footer__social--wrap .footer__social-link--location { margin-top: 0; }

.footer__location .footer__social--wrap { margin-top: 0.75rem; }

/* === REDUCED MOTION: wygląd strony (bez przejść i bez obrotu makiety) === */

@media (prefers-reduced-motion: reduce) {
  .cert-location { transition: none; }
  .cert-location:hover { transform: none; }
  .cert-hero__img, .cert-hero__media::before { transform: none; }
}
