:root {
  --color-page: #f4f4f1;
  --color-surface: #ffffff;
  --color-text: #151515;
  --color-muted: #686864;
  --color-border: rgba(21, 21, 21, 0.1);
  --color-border-strong: rgba(21, 21, 21, 0.18);
  --color-accent: #111111;
  --color-accent-hover: #343434;
  --color-dark: #10100f;
  --color-whatsapp: #18b857;
  --color-whatsapp-hover: #119948;
  --shadow-soft: 0 18px 50px rgba(16, 16, 16, 0.08);
  --shadow-cta: 0 18px 36px rgba(24, 184, 87, 0.3);
  --content-max: 1020px;
  --header-height: 72px;
  --ease-standard: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--color-page);
  color: var(--color-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(24, 184, 87, 0.42);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--color-accent);
  color: #ffffff;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 700;
  transition: transform 180ms var(--ease-standard);
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-whatsapp), #7ee7a7);
  transform-origin: left center;
}

/* Header */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 100;
  width: min(calc(100% - 32px), var(--content-max));
  height: var(--header-height);
  transform: translateX(-50%);
  transition: top 240ms var(--ease-standard), box-shadow 240ms var(--ease-standard);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 40%, rgba(255, 255, 255, 0.08) 100%), rgba(16, 16, 15, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 2px 0 rgba(255, 255, 255, 0.1),
    0 20px 48px -10px rgba(0, 0, 0, 0.45);
  padding: 0 10px 0 18px;
  backdrop-filter: blur(28px) saturate(180%) contrast(102%);
  -webkit-backdrop-filter: blur(28px) saturate(180%) contrast(102%);
  transition: background 240ms var(--ease-standard), box-shadow 240ms var(--ease-standard), border-color 240ms var(--ease-standard);
}

.site-header.is-scrolled .site-header__inner,
.site-header.is-open .site-header__inner {
  border-color: rgba(255, 255, 255, 0.32);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.14) 100%), rgba(16, 16, 15, 0.88);
  box-shadow: 
    inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.5),
    0 24px 60px -10px rgba(0, 0, 0, 0.6);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffffff;
}

.brand__logo {
  height: 32px;
  width: auto;
  max-height: 36px;
  display: block;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 650;
  transition: background-color 180ms var(--ease-standard), color 180ms var(--ease-standard), transform 180ms var(--ease-standard);
}

.primary-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.primary-nav a:active {
  transform: scale(0.98);
}

.primary-nav .nav-cta {
  margin-left: 4px;
  background: var(--color-whatsapp);
  color: #ffffff;
  padding-inline: 20px;
}

.primary-nav .nav-cta:hover {
  background: var(--color-whatsapp-hover);
  color: #ffffff;
}

.cta-with-icon {
  gap: 8px;
}

.cta-with-icon img {
  display: block;
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
}

.header-mobile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-wa-btn {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #18b857 0%, #119948 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.4),
    0 6px 16px rgba(24, 184, 87, 0.35);
  transition: transform 180ms var(--ease-standard), box-shadow 180ms var(--ease-standard);
}

.mobile-wa-btn img {
  display: block;
  width: 20px;
  height: 20px;
  margin: auto;
}

.mobile-wa-btn:active {
  transform: scale(0.94);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  color: #ffffff;
  cursor: pointer;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px auto;
  border-radius: 99px;
  background: currentColor;
  transition: transform 180ms var(--ease-standard), opacity 180ms var(--ease-standard);
}

.site-header.is-open .menu-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.site-header.is-open .menu-toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-header.is-open .menu-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Image stack */
.page-shell {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding-top:46px;
  background: #000000;
  box-shadow: 0 0 0 1px rgba(21, 21, 21, 0.04);
}



.image-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  scroll-margin-top: calc(var(--header-height) + 28px);
  background: #ffffff;
}

.image-section > img {
  display: block;
  width: 100%;
  max-width: var(--content-max);
  min-height: 180px;
  margin: 0 auto;
  border: 0;
  object-fit: cover;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-standard), transform 700ms var(--ease-standard), filter 700ms var(--ease-standard);
}

.image-section > img.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.image-section > img.is-missing {
  aspect-ratio: 1020 / 1320;
  background: linear-gradient(135deg, rgba(21, 21, 21, 0.05), transparent 42%), #fbfbfa;
  object-fit: contain;
}

.image-section::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--color-muted);
  font-size: clamp(0.78rem, 2vw, 0.95rem);
  font-weight: 700;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  content: attr(data-missing-label);
}

.image-section.is-missing-image::after {
  opacity: 1;
}


/* Modern Smartphone-Optimized Testimonial Section */
.testimonial-section {
  position: relative;
  background: linear-gradient(180deg, #120b0d 0%, #220e14 50%, #100a0c 100%);
  color: #ffffff;
  padding: 64px 0 72px;
  overflow: hidden;
}

.testimonial-section::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  height: 350px;
  background: radial-gradient(circle, rgba(229, 169, 60, 0.12) 0%, rgba(18, 11, 13, 0) 70%);
  pointer-events: none;
}

.testimonial-container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header & Social Proof */
.testimonial-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 32px;
}

.testimonial-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 16px;
}

.testimonial-badge .stars {
  color: #f59e0b;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.testimonial-badge .badge-text {
  color: #fbbf24;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.testimonial-header h2 {
  font-size: clamp(1.65rem, 5.5vw, 2.25rem);
  font-weight: 850;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.testimonial-header p {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.9rem, 2.8vw, 1.05rem);
  margin: 0 0 24px;
  line-height: 1.5;
}

.social-proof-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 6px 16px 6px 8px;
  backdrop-filter: blur(10px);
}

.avatar-group {
  display: flex;
  align-items: center;
}

.avatar-group .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #1a0c10;
  background-size: cover;
  background-position: center;
  margin-left: -8px;
}

.avatar-group .avatar:first-child {
  margin-left: 0;
}

.social-proof-bar .proof-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}

.social-proof-bar .proof-text strong {
  color: #18b857;
}

/* Carousel Layout */
.testimonial-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.testimonial-slider {
  display: flex;
  gap: 16px;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 12px 4px 20px;
}

.testimonial-slider::-webkit-scrollbar {
  display: none;
}

/* Testimonial Cards */
.testimonial-card {
  flex: 0 0 85%;
  max-width: 340px;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  transition: transform 220ms var(--ease-standard), border-color 220ms var(--ease-standard);
}

.testimonial-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

/* Card User Header */
.card-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-initial {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.user-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-name {
  font-size: 0.95rem;
  font-weight: 750;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(24, 184, 87, 0.15);
  border: 1px solid rgba(24, 184, 87, 0.3);
  color: #34d399;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.user-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-meta .stars {
  color: #f59e0b;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.user-meta .location {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.76rem;
}

/* Card Media (Chat Image + Zoom Overlay) */
.card-media-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 14px;
  overflow: hidden;
  background: #0d0e12;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.card-media-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: transform 300ms var(--ease-standard);
}

.card-media-wrapper:hover img,
.card-media-wrapper:active img {
  transform: scale(1.03);
}

.zoom-overlay {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 16, 15, 0.82);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.74rem;
  font-weight: 650;
  backdrop-filter: blur(10px);
  pointer-events: none;
}

/* Card Body Quote */
.card-body .quote {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.86rem;
  line-height: 1.48;
  font-style: italic;
}

/* Navigation Arrows */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(16, 16, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  transition: background 180ms var(--ease-standard), transform 180ms var(--ease-standard);
}

.carousel-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.08);
}

.carousel-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-nav--prev {
  left: -10px;
}

.carousel-nav--next {
  right: -10px;
}

/* Footer Controls (Dots & Counter) */
.testimonial-footer-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 220ms var(--ease-standard), background-color 220ms var(--ease-standard);
}

.carousel-dot.is-active {
  width: 24px;
  background: var(--color-whatsapp);
}

.carousel-counter {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms var(--ease-standard), visibility 250ms var(--ease-standard);
}

.lightbox-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: min(90vw, 480px);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-hint {
  margin-top: 12px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
  .testimonial-card {
    flex: 0 0 320px;
  }
  .carousel-nav--prev {
    left: -20px;
  }
  .carousel-nav--next {
    right: -20px;
  }
}

@media (max-width: 480px) {
  .carousel-nav {
    display: none;
  }
  .social-proof-bar {
    width: 100%;
    justify-content: center;
  }
}

/* Footer */
.site-footer {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.64);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__inner {
  display: grid;
  gap: 22px;
  padding: 44px 28px calc(92px + env(safe-area-inset-bottom));
}

.footer-brand {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 850;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-nav a {
  min-height: 32px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 180ms var(--ease-standard);
}

.footer-nav a:hover {
  color: #ffffff;
}

.copyright {
  margin: 0;
  font-size: 0.84rem;
}

/* Floating actions */
.floating-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 999px;
  background: var(--color-whatsapp);
  color: #ffffff;
  box-shadow: var(--shadow-cta);
  padding: 0 26px;
  font-size: 0.98rem;
  font-weight: 800;
  transition: transform 180ms var(--ease-standard), background-color 180ms var(--ease-standard), box-shadow 180ms var(--ease-standard);
  animation: ctaPulse 2.8s ease-in-out infinite;
}

.floating-cta:hover {
  background: var(--color-whatsapp-hover);
  box-shadow: 0 24px 44px rgba(24, 184, 87, 0.36);
  transform: translateY(-2px);
}

.floating-cta:active {
  transform: translateY(0) scale(0.99);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 89;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 30px rgba(16, 16, 16, 0.12);
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: opacity 180ms var(--ease-standard), transform 180ms var(--ease-standard), visibility 180ms var(--ease-standard);
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.back-to-top span {
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--color-text);
  border-left: 2px solid var(--color-text);
  transform: translateY(3px) rotate(45deg);
}

@keyframes ctaPulse {
  0%,
  100% {
    box-shadow: var(--shadow-cta), 0 0 0 0 rgba(24, 184, 87, 0.26);
  }
  55% {
    box-shadow: var(--shadow-cta), 0 0 0 12px rgba(24, 184, 87, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 62px;
  }

  .site-header {
    top: 10px;
    width: min(calc(100% - 20px), var(--content-max));
  }

  .site-header__inner {
    padding: 0 8px 0 14px;
  }

  .brand__logo {
    height: 28px;
  }

  .mobile-wa-btn {
    display: grid;
    place-items: center;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .primary-nav {
    position: fixed;
    top: calc(var(--header-height) + 18px);
    left: 0;
    right: 0;
    display: grid;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 100%), rgba(16, 16, 15, 0.94);
    box-shadow: 
      inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.35),
      0 24px 60px rgba(0, 0, 0, 0.6);
    padding: 10px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    transition: opacity 180ms var(--ease-standard), transform 180ms var(--ease-standard);
  }

  .site-header.is-open .primary-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .primary-nav a {
    justify-content: flex-start;
    min-height: 48px;
    padding-inline: 16px;
    font-size: 1rem;
  }

  .primary-nav .nav-cta {
    justify-content: center;
    margin: 6px 0 0;
  }


  .page-shell,
  .site-footer {
    width: 100%;
    box-shadow: none;
  }

  .floating-cta {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
    min-height: 58px;
    padding: 0 20px;
    font-size: 1rem;
  }

  .back-to-top {
    right: 18px;
    bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .site-footer__inner {
    padding-inline: 20px;
  }
}

@media (max-width: 520px) {
  .card-media-wrapper {
    height: 320px;
  }

  .site-footer__inner {
    gap: 18px;
    padding-top: 34px;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
  }
}