/*
 * MRIYA visual refinement — one presentation layer for the landing,
 * WooCommerce surfaces and service pages. Existing tokens and business UI
 * remain the source of truth; this file changes composition and polish only.
 */

:root {
  --mriya-editorial-section-gap: var(--mriya-space-800);
}

body {
  background:
    radial-gradient(circle at 14% 2%, rgba(167, 223, 238, 0.2), transparent 24rem),
    linear-gradient(180deg, #f6f9fa 0%, var(--mriya-color-bg-canvas) 38%, #eef4f5 100%);
}

.site-header {
  border-bottom: 1px solid rgba(255, 255, 247, 0.14);
  background:
    radial-gradient(circle at 82% -80%, rgba(54, 136, 230, 0.72), transparent 38%),
    linear-gradient(112deg, var(--mriya-blue-950) 0%, var(--mriya-blue-900) 48%, var(--mriya-blue-700) 100%);
  box-shadow: 0 12px 32px rgba(1, 44, 99, 0.18);
}

.site-header__inner {
  width: min(var(--mriya-container-wide), calc(100% - 48px));
}

body.admin-bar .site-header {
  top: 32px;
}

body.admin-bar #benefits,
body.admin-bar #comparison,
body.admin-bar #model-preview,
body.admin-bar #reviews,
body.admin-bar #delivery,
body.admin-bar #order-form {
  scroll-margin-top: calc(var(--mriya-header-height) + 48px);
}

.site-logo {
  font-size: 38px;
  letter-spacing: -0.035em;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.22);
}

.site-nav {
  gap: 30px;
  margin-left: clamp(40px, 5vw, 72px);
  font-size: 15px;
}

.site-nav a {
  opacity: 0.86;
}

.header-call,
.header-buy {
  border-color: rgba(255, 255, 247, 0.54);
  background: rgba(255, 255, 247, 0.06);
  backdrop-filter: blur(12px);
}

.header-call:hover,
.header-buy:hover {
  border-color: rgba(255, 255, 247, 0.88);
  background: rgba(255, 255, 247, 0.13);
}

/* Premium product stage: the GLB stays transparent and poster-sized from the
   first paint, preventing layout shift while the model is parsed. */
.hero-scroll-stage {
  position: relative;
  display: flow-root;
  background: var(--mriya-blue-950);
}

html.mriya-hero-scroll-js .hero-scroll-stage[data-scroll-enabled="true"] {
  --mriya-hero-header-offset: var(--mriya-header-height, 88px);
  --mriya-hero-flow-offset: var(--mriya-header-height, 88px);
  --mriya-hero-expanded-height: max(
    var(--mriya-hero-compact-height-desktop),
    calc(100svh - var(--mriya-hero-header-offset))
  );
  height: calc(var(--mriya-hero-expanded-height) + var(--mriya-hero-scroll-distance-desktop) - var(--mriya-hero-flow-offset));
}

html.mriya-hero-scroll-js .hero-scroll-stage[data-scroll-enabled="true"] > .hero {
  position: fixed;
  z-index: 1;
  top: var(--mriya-hero-scene-top, var(--mriya-hero-header-offset));
  right: 0;
  left: 0;
  width: 100%;
  height: var(--mriya-hero-scene-height, var(--mriya-hero-expanded-height));
  min-height: 0;
  will-change: height, top;
}

html.mriya-hero-scroll-js .hero-scroll-stage[data-scroll-enabled="true"][data-scroll-phase="departed"] > .hero {
  visibility: hidden;
}

html.mriya-hero-scroll-js .hero-scroll-stage[data-scroll-enabled="true"] .hero__inner {
  height: 100%;
  min-height: 0;
  transform: translateY(var(--mriya-hero-content-shift, 0px));
  will-change: transform;
}

.mriya-hero-following-section {
  transform: translateY(var(--mriya-hero-follow-offset, 0px));
}

.hero {
  position: relative;
  isolation: isolate;
  height: auto;
  min-height: 720px;
  overflow: clip;
  background: var(--mriya-blue-950);
}

.hero::before {
  position: absolute;
  z-index: -3;
  inset: 0;
  display: block;
  height: auto;
  content: "";
  background:
    radial-gradient(ellipse 50% 100% at 82% 50%, rgba(202, 240, 248, 0.94) 0%, rgba(167, 223, 238, 0.8) 24%, rgba(54, 136, 230, 0.3) 54%, transparent 75%),
    linear-gradient(90deg, rgba(1, 31, 70, 0.97) 0%, rgba(2, 62, 138, 0.91) 45%, rgba(2, 80, 155, 0.72) 100%),
    url("../images/hero-background.png") center / cover no-repeat;
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: -18%;
  bottom: -46%;
  display: block;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(202, 240, 248, 0.13);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(202, 240, 248, 0.18), rgba(54, 136, 230, 0.06) 42%, transparent 70%);
  box-shadow: 0 0 0 84px rgba(202, 240, 248, 0.035), 0 0 0 168px rgba(202, 240, 248, 0.022);
  content: "";
  pointer-events: none;
}

.hero__grain {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  background:
    radial-gradient(circle at 77% 47%, rgba(202, 240, 248, 0.12), transparent 34%),
    linear-gradient(180deg, transparent 80%, rgba(1, 44, 99, 0.25) 100%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(500px, 1.06fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  width: min(var(--mriya-container-wide), calc(100% - 64px));
  min-height: 720px;
  margin: 0 auto;
  padding: 56px 0 64px;
}

.hero__content {
  position: relative;
  z-index: 2;
  order: 1;
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 620px;
  margin: 0;
  color: var(--mriya-color-text-inverse, var(--mriya-neutral-0));
  text-align: center;
}

/* Give the sales copy a consistent breathable frame in both the expanded
 * first view and its compact scroll state. */
@media (min-width: 821px) {
  .hero__content {
    padding-block: clamp(28px, 3vw, 56px);
  }
}

@media (max-width: 820px) {
  .hero h1 {
    margin-top: 16px;
  }

  .hero__actions {
    margin-top: 26px;
  }
}

/* Shared title-to-content rhythm for content sections that use the standard
 * heading component. Product and CTA sections keep their intentional layouts. */
#benefits > .section-title,
#reviews > .section-title,
#feed-calculator > .section-title,
#delivery > .section-title,
#accessories .section-title {
  margin-bottom: clamp(32px, 3vw, 48px);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--mriya-yellow-400);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  color: var(--mriya-white);
  font-family: var(--mriya-font-brand);
  font-size: clamp(50px, 4.55vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero .hero__tagline {
  max-width: 520px;
  margin: 24px 0 0;
  color: rgba(255, 255, 247, 0.78);
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 500;
  line-height: 1.55;
}

.hero__meta {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin-top: clamp(34px, 3vw, 48px);
}

.hero__price {
  margin: 0;
  color: var(--mriya-yellow-400);
  font-size: clamp(44px, 3.6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.hero__delivery-badge {
  min-height: 40px;
  margin: 0;
  border-color: rgba(255, 255, 247, 0.28);
  padding: 9px 14px;
  background: rgba(255, 255, 247, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 247, 0.08);
  backdrop-filter: blur(10px);
  font-size: 14px;
}

.hero__actions {
  grid-template-columns: 1fr;
  gap: 12px;
  width: min(520px, 100%);
  margin-top: clamp(34px, 3vw, 46px);
}

.hero__actions .button {
  min-height: 58px;
  border-radius: var(--mriya-radius-md);
  padding-inline: 22px;
  font-size: 15px;
  font-weight: 800;
}

.hero__actions .button--primary {
  box-shadow: 0 14px 28px rgba(250, 204, 21, 0.2);
}

.hero__actions .button--ghost {
  border-color: rgba(255, 255, 247, 0.52);
  background: rgba(255, 255, 247, 0.04);
}

.hero__made-in-ukraine {
  position: absolute;
  z-index: 0;
  top: 2%;
  right: 7%;
  display: block;
  width: clamp(90px, 9vw, 129px);
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 25, 61, 0.22));
  transform: rotate(10deg) translateY(var(--mriya-hero-sticker-drop, 0px));
  transform-origin: center;
  will-change: transform;
  pointer-events: none;
}

@media (max-width: 767px) {
  .hero__heading-tail {
    white-space: normal;
  }

  .hero__made-in-ukraine {
    top: 4%;
    right: 5%;
    width: 82px;
  }
}

.hero__product {
  position: relative;
  order: 2;
  display: grid;
  width: 100%;
  min-height: 600px;
  height: 600px;
  place-items: center;
  overflow: visible;
}

.hero__product::before {
  position: absolute;
  right: 7%;
  bottom: 6%;
  left: 7%;
  height: 14%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 12, 29, 0.46), transparent 68%);
  content: "";
  filter: blur(12px);
  pointer-events: none;
}

.hero__model,
.hero__model-fallback {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
}

.hero__model {
  --poster-color: transparent;
  display: block;
  pointer-events: none;
  touch-action: auto;
  user-select: none;
  outline: 0;
  transform: scale(var(--mriya-hero-model-scale, 1));
  transform-origin: center;
  will-change: transform;
}

.hero__model--interactive {
  pointer-events: auto;
  touch-action: pan-y;
}

.hero__model--interactive:focus-visible {
  border-radius: var(--mriya-radius-xl);
  box-shadow: inset 0 0 0 3px var(--mriya-yellow-400), 0 0 0 4px rgba(255, 255, 247, 0.72);
}

.hero__model-control-copy {
  position: absolute;
  z-index: 3;
  right: 50%;
  bottom: 18px;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0;
  color: rgba(255, 255, 247, 0.88);
  font-size: 12px;
  font-weight: 700;
  transform: translateX(50%);
}

.hero__model::part(default-progress-bar) {
  display: none;
}

.hero__model[hidden],
.hero__model-fallback[hidden],
.hero__model-status[hidden],
.hero__model-hint[hidden] {
  display: none !important;
}

.hero__model-fallback {
  display: block;
  padding: 16px 16px 62px;
  text-align: center;
}

.hero__model-fallback img {
  position: absolute;
  inset: 16px 16px 62px;
  width: calc(100% - 32px);
  max-width: 100%;
  height: calc(100% - 78px);
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(0, 15, 38, 0.32));
}

.hero__model-fallback figcaption {
  position: absolute;
  bottom: 14px;
  left: 50%;
  width: min(360px, calc(100% - 32px));
  margin: 0;
  color: rgba(255, 255, 247, 0.78);
  font-size: 13px;
  line-height: 1.45;
  transform: translateX(-50%);
}

.hero__noscript-product {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(0, 15, 38, 0.32));
}

.hero__model-status,
.hero__model-hint {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 247, 0.2);
  border-radius: var(--mriya-radius-pill);
  background: rgba(1, 44, 99, 0.62);
  color: rgba(255, 255, 247, 0.88);
  box-shadow: 0 8px 24px rgba(0, 12, 29, 0.16);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.hero__model-status {
  top: 18px;
  left: 18px;
  gap: 9px;
  min-height: 38px;
  padding: 0 13px;
}

.hero__model-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 247, 0.28);
  border-top-color: var(--mriya-yellow-400);
  border-radius: 50%;
  animation: mriya-hero-model-spin 0.8s linear infinite;
}

@keyframes mriya-hero-model-spin {
  to { transform: rotate(360deg); }
}

.hero__model-hint {
  right: 50%;
  bottom: 18px;
  min-height: 34px;
  padding: 0 14px;
  opacity: 0;
  transform: translate(50%, 8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.hero__product.is-ready .hero__model-hint {
  opacity: 1;
  transform: translate(50%, 0);
}

.hero__model-hint::before,
.hero__model-hint::after {
  color: var(--mriya-yellow-400);
  content: "↔";
}

.hero__model-hint::before { margin-right: 7px; }
.hero__model-hint::after { display: none; }

.hero__model-instructions {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

/* Editorial rhythm. */
.section {
  width: min(var(--mriya-container-wide), calc(100% - 48px));
  padding-top: clamp(80px, 8vw, 116px);
}

.benefits {
  padding-top: clamp(72px, 7vw, 96px);
}

.section-title {
  max-width: 760px;
}

.section-title h2 {
  color: var(--mriya-blue-950);
  font-family: var(--mriya-font-brand);
  font-size: clamp(38px, 4.2vw, 56px);
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}

.section-title p {
  color: var(--mriya-color-text-secondary);
  font-size: 17px;
  line-height: 1.55;
}

.benefits__grid {
  gap: 18px;
}

.benefit-card {
  display: grid;
  align-content: start;
  min-height: 260px;
  border-color: var(--mriya-color-border-default);
  border-radius: var(--mriya-radius-xl);
  padding: 30px 28px;
  background: var(--mriya-color-bg-surface);
  box-shadow: none;
  text-align: left;
}

.benefit-card:hover {
  border-color: var(--mriya-color-border-default);
  box-shadow: none;
  transform: none;
}

.benefit-card:focus-visible {
  border-color: var(--mriya-color-border-strong);
  outline: 0;
  box-shadow: var(--mriya-focus-ring);
  transform: translateY(-2px);
}

.benefit-card__icon {
  width: 60px;
  height: 60px;
  margin: 0 0 22px;
}

.benefit-card h3 {
  color: var(--mriya-blue-950);
  font-size: 19px;
  line-height: 1.2;
}

.benefit-card p {
  color: var(--mriya-color-text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

@media (hover: hover) and (pointer: fine) {
  .benefit-card:hover {
    border-color: var(--mriya-color-border-strong);
    box-shadow: 0 8px 20px rgba(1, 44, 99, 0.06);
    transform: translateY(-3px);
  }
}

.video-card__media {
  overflow: hidden;
  border: 1px solid rgba(2, 80, 155, 0.14);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(1, 44, 99, 0.14);
}

.video-section {
  overflow: hidden;
}

.video-carousel {
  width: 100%;
}

.video-carousel__viewport {
  overflow: hidden;
  padding: 24px 0 36px;
  overscroll-behavior-x: contain;
  touch-action: pan-y pinch-zoom;
}

.video-carousel__track {
  display: grid;
  place-items: start center;
  width: 100%;
}

.video-carousel__slide {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  width: min(780px, 68vw);
  opacity: 0.64;
  transform: translateX(-128%) scale(0.78);
  transform-origin: center center;
  transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1), opacity 360ms ease;
}

.video-carousel__slide[data-position="active"] {
  z-index: 3;
  opacity: 1;
  transform: translateX(0) scale(1);
}

.video-carousel__slide[data-position="previous"] {
  z-index: 2;
  transform: translateX(-78%) scale(0.78);
}

.video-carousel__slide[data-position="next"] {
  z-index: 2;
  transform: translateX(78%) scale(0.78);
}

.video-carousel__slide:focus-visible {
  border-radius: 24px;
  outline: 3px solid var(--mriya-yellow-500);
  outline-offset: 5px;
}

.video-carousel.is-dragging,
.video-carousel.is-dragging .video-carousel__preview {
  cursor: grabbing;
  user-select: none;
}

.video-carousel__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 4px solid rgba(236, 248, 255, 0.96);
  border-radius: 24px;
  background: var(--mriya-blue-950);
  box-shadow: 0 24px 60px rgba(1, 44, 99, 0.14);
}

.video-carousel__player,
.video-carousel__preview,
.video-carousel__preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-carousel__player {
  border: 0;
  background: #0f0f0f;
  object-fit: contain;
}

.video-carousel__player[hidden] {
  display: none;
}

.video-carousel__preview {
  display: block;
  margin: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: var(--mriya-blue-950);
  cursor: pointer;
}

.video-carousel__preview::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 44, 99, 0.08), rgba(1, 44, 99, 0.36));
  content: "";
  transition: background 180ms ease;
}

.video-carousel__preview img {
  object-fit: cover;
  transition: transform 360ms ease;
}

.video-carousel__preview:hover::after {
  background: linear-gradient(180deg, rgba(1, 44, 99, 0), rgba(1, 44, 99, 0.2));
}

.video-carousel__preview:hover img {
  transform: scale(1.035);
}

.video-carousel__preview:focus-visible {
  outline: 4px solid var(--mriya-yellow-500);
  outline-offset: -6px;
}

.video-carousel__fallback {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  color: var(--mriya-white);
  text-align: center;
  background: linear-gradient(135deg, var(--mriya-blue-950), var(--mriya-blue-800));
}

.video-carousel__fallback[hidden] {
  display: none;
}

.video-carousel__fallback a {
  color: var(--mriya-yellow-400);
  font-weight: 800;
}

.video-carousel__descriptor {
  display: grid;
  gap: 5px;
  width: min(680px, calc(100% - 32px));
  margin: 18px auto 0;
  color: var(--mriya-color-text-secondary);
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}

.video-carousel__descriptor[hidden] {
  display: none;
}

.video-carousel__descriptor strong {
  color: var(--mriya-blue-950);
  font-size: 17px;
}

.comparison-table {
  border-color: rgba(2, 80, 155, 0.14);
  border-radius: 22px;
  box-shadow: 0 20px 48px rgba(1, 44, 99, 0.1);
}

.comparison-table__row > div:nth-child(2) {
  background: linear-gradient(180deg, #f7fcfd, var(--mriya-blue-50));
}

.comparison-table__head > div:nth-child(2) {
  background: linear-gradient(135deg, var(--mriya-blue-900), var(--mriya-blue-700));
}

.comparison__button {
  margin-top: 22px;
  box-shadow: 0 12px 24px rgba(250, 204, 21, 0.16);
}

.model-preview {
  margin-top: clamp(80px, 8vw, 112px);
  border: 1px solid rgba(2, 80, 155, 0.1);
  border-radius: 28px;
  padding: clamp(48px, 6vw, 76px);
  background:
    radial-gradient(circle at 84% 14%, rgba(167, 223, 238, 0.38), transparent 28%),
    var(--mriya-color-bg-surface-raised);
  box-shadow: 0 22px 56px rgba(1, 44, 99, 0.1);
}

.model-preview__grid {
  width: 100%;
}

.model-preview__stage {
  border-color: rgba(2, 80, 155, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 44%, var(--mriya-blue-50), var(--mriya-white) 64%);
  box-shadow: 0 24px 54px rgba(1, 44, 99, 0.12);
}

.reviews__panel {
  border: 1px solid rgba(255, 255, 247, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 0, rgba(54, 136, 230, 0.56), transparent 42%),
    linear-gradient(135deg, var(--mriya-blue-900), var(--mriya-blue-950));
  box-shadow: 0 24px 60px rgba(1, 44, 99, 0.18);
}

.review-card {
  border-color: rgba(255, 255, 247, 0.12);
  box-shadow: 0 12px 24px rgba(0, 21, 48, 0.12);
}

.delivery__steps {
  gap: 18px;
  padding: 0;
}

.delivery-step {
  align-content: start;
  gap: 18px;
  min-height: 300px;
  border: 1px solid rgba(2, 80, 155, 0.12);
  border-radius: var(--mriya-radius-xl);
  padding: 30px 24px;
  background: var(--mriya-color-bg-surface-raised);
  box-shadow: 0 12px 34px rgba(1, 44, 99, 0.07);
}

.delivery-step:not(:last-child)::after {
  top: 50%;
  left: calc(100% + 5px);
  z-index: 2;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mriya-yellow-500);
}

.delivery-step__icon {
  width: 92px;
  height: 92px;
}

.delivery-step__icon img,
.delivery-step:nth-child(3) .delivery-step__icon img {
  width: 92px;
  height: 92px;
  max-width: 100%;
}

.delivery-step h3 {
  color: var(--mriya-blue-950);
  font-size: 20px;
}

.delivery-step p {
  color: var(--mriya-color-text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

.offer {
  width: min(980px, calc(100% - 48px));
  margin-top: var(--mriya-editorial-section-gap);
  margin-bottom: 0;
  border: 1px solid rgba(184, 137, 0, 0.34);
  border-radius: 24px;
  padding: 52px 48px 42px;
  background:
    radial-gradient(circle at 10% 0, rgba(250, 204, 21, 0.28), transparent 30%),
    linear-gradient(135deg, var(--mriya-yellow-50), #fff4c2 55%, #fff9e7);
  box-shadow: 0 22px 54px rgba(184, 137, 0, 0.12);
}

.offer__badge {
  top: -17px;
  border-radius: var(--mriya-radius-pill);
  padding: 8px 18px;
  background: var(--mriya-blue-900);
  color: var(--mriya-white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.offer h2 {
  color: var(--mriya-blue-950);
  font-family: var(--mriya-font-brand);
  font-size: clamp(30px, 3vw, 42px);
}

.faq {
  margin-top: var(--mriya-editorial-section-gap);
  padding-top: 0;
}

.faq__list {
  gap: 14px;
}

.faq-item {
  border-radius: var(--mriya-radius-xl);
  box-shadow: 0 10px 28px rgba(1, 44, 99, 0.06);
}

.faq-item summary {
  min-height: 86px;
  color: var(--mriya-blue-950);
}

.faq-item summary::after {
  border-radius: 50%;
  background: var(--mriya-blue-900);
}

.lead-form {
  margin-top: 96px;
  border: 1px solid rgba(255, 255, 247, 0.14);
  border-radius: 26px;
  padding: clamp(36px, 5vw, 64px);
  background:
    radial-gradient(circle at 8% 0, rgba(250, 204, 21, 0.2), transparent 34%),
    radial-gradient(circle at 96% 100%, rgba(54, 136, 230, 0.52), transparent 40%),
    linear-gradient(135deg, var(--mriya-blue-950), var(--mriya-blue-900));
  box-shadow: 0 28px 68px rgba(1, 44, 99, 0.2);
}

.lead-form::after {
  border-style: solid;
  opacity: 0.54;
}

.lead-form__info h2 {
  font-family: var(--mriya-font-brand);
  font-size: clamp(34px, 3vw, 46px);
  letter-spacing: -0.025em;
}

.lead-form input,
.lead-form textarea,
.lead-form select {
  border-color: rgba(255, 255, 247, 0.28);
  box-shadow: 0 8px 22px rgba(0, 21, 48, 0.1);
}

/* One shared footer card for editorial, commerce, service and confirmation. */
.site-footer,
.site-footer--commerce {
  width: min(var(--mriya-container-wide), calc(100% - 48px));
  margin: 72px auto 32px;
  border: 1px solid rgba(255, 255, 247, 0.1);
  border-radius: 22px;
  padding: 28px 30px;
  background:
    radial-gradient(circle at 92% -120%, rgba(54, 136, 230, 0.68), transparent 46%),
    linear-gradient(135deg, var(--mriya-blue-950), var(--mriya-blue-900));
  color: rgba(255, 255, 247, 0.72);
  box-shadow: 0 18px 46px rgba(1, 44, 99, 0.14);
}

.site-footer__copy span,
.site-footer--commerce .site-footer__copy span,
.site-footer__made,
.site-footer--commerce .site-footer__made {
  color: var(--mriya-white);
}

.site-footer__copy p {
  color: rgba(255, 255, 247, 0.72);
}

.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 247, 0.12);
  padding-top: 18px;
  color: rgba(255, 255, 247, 0.72);
}

.site-footer__legal a:hover {
  color: var(--mriya-white);
}

/* Compact legal hierarchy: brand and links share the first line; the factual
 * disclaimer follows a clear divider instead of competing with navigation. */
.site-footer__top {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}

.site-footer__top .site-footer__legal {
  flex: 0 1 auto;
  margin: 0;
  padding: 0;
  border: 0;
}

.site-footer__checkout-cta {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-width: 0;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 247, 0.12);
}

.site-footer__bottom p {
  min-width: 0;
  margin: 0;
  white-space: normal;
}

@media (max-width: 640px) {
  .site-footer__top {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer__checkout-cta {
    width: 100%;
    margin-left: 0;
  }
}

/* Product, cart, checkout, order-received and service pages use the same
   brand surface without changing Woo blocks or their state. */
body.mriya-demo-product-page,
body.mriya-cart-page,
body.mriya-checkout-page,
body.mriya-order-received-page {
  background:
    radial-gradient(circle at 12% 0, rgba(167, 223, 238, 0.28), transparent 26rem),
    linear-gradient(180deg, #f8fbfc, var(--mriya-color-bg-canvas));
}

body.mriya-demo-product-page .mriya-commerce-placeholder {
  overflow: hidden;
  border-color: rgba(2, 80, 155, 0.14);
  border-radius: 26px;
  padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(135deg, rgba(255, 255, 247, 0.98), rgba(247, 252, 253, 0.98));
  box-shadow: 0 26px 64px rgba(1, 44, 99, 0.14);
}

body.mriya-demo-product-page .mriya-commerce-placeholder div.product {
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

body.mriya-demo-product-page .woocommerce-product-gallery__wrapper {
  border: 1px solid rgba(2, 80, 155, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 34%, rgba(202, 240, 248, 0.92), rgba(240, 251, 253, 0.82) 44%, rgba(2, 80, 155, 0.08) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

body.mriya-demo-product-page .woocommerce-product-gallery__image {
  min-height: 530px;
}

body.mriya-demo-product-page .woocommerce-product-gallery__image img {
  filter: drop-shadow(0 22px 28px rgba(1, 44, 99, 0.18));
}

body.mriya-demo-product-page .product_title {
  color: var(--mriya-blue-950);
  font-size: clamp(42px, 4.2vw, 62px);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

body.mriya-demo-product-page .summary .price,
.woocommerce body.mriya-demo-product-page .summary p.price {
  letter-spacing: -0.025em;
}

body.mriya-demo-product-page .woocommerce-product-details__short-description {
  border-color: rgba(2, 80, 155, 0.12);
  border-radius: var(--mriya-radius-lg);
  padding: 18px 20px;
  background: var(--mriya-color-bg-surface-subtle);
}

body.mriya-demo-product-page .mriya-variation-tile {
  border-radius: var(--mriya-radius-xl);
  background: var(--mriya-color-bg-surface-raised);
}

body.mriya-demo-product-page .mriya-variation-tile.is-selected {
  background: linear-gradient(135deg, var(--mriya-blue-100), var(--mriya-blue-50));
}

.mriya-cart-page__intro,
.mriya-checkout-page__intro,
.mriya-order-page__intro {
  position: relative;
  max-width: none;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 247, 0.12);
  border-radius: 22px;
  padding: clamp(28px, 4vw, 44px);
  background:
    radial-gradient(circle at 90% 0, rgba(54, 136, 230, 0.58), transparent 34%),
    linear-gradient(135deg, var(--mriya-blue-950), var(--mriya-blue-900));
  box-shadow: 0 20px 48px rgba(1, 44, 99, 0.14);
}

.mriya-cart-page__eyebrow,
.mriya-checkout-page__eyebrow {
  color: var(--mriya-yellow-400);
}

.mriya-cart-page__intro h1,
.mriya-checkout-page__intro h1 {
  color: var(--mriya-white);
  font-family: var(--mriya-font-brand);
  font-size: clamp(42px, 4vw, 58px);
  letter-spacing: -0.035em;
}

.mriya-cart-page__intro > p:last-child,
.mriya-checkout-page__intro > p:last-child {
  color: rgba(255, 255, 247, 0.76);
}

.mriya-cart-shell .wc-block-cart-items__row td {
  border-color: rgba(2, 80, 155, 0.12) !important;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 30px rgba(1, 44, 99, 0.07);
}

.mriya-cart-shell .wc-block-cart-items__row td:first-child {
  border-radius: var(--mriya-radius-xl) 0 0 var(--mriya-radius-xl);
}

.mriya-cart-shell .wc-block-cart-items__row td:last-child {
  border-radius: 0 var(--mriya-radius-xl) var(--mriya-radius-xl) 0;
}

.mriya-cart-shell .wc-block-cart-item__image img {
  border-radius: var(--mriya-radius-lg);
  background: linear-gradient(135deg, var(--mriya-blue-100), var(--mriya-blue-50));
}

.mriya-cart-shell .mriya-cart-item--gift .wc-block-cart-item__image a {
  position: relative;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border-radius: var(--mriya-radius-lg);
  background: var(--mriya-yellow-50);
}

.mriya-cart-shell .mriya-cart-item--gift .wc-block-cart-item__image a::before {
  position: absolute;
  width: 44px;
  height: 44px;
  background: url("../images/icon-gift-fill.svg") center / contain no-repeat;
  content: "";
}

.mriya-cart-shell .mriya-cart-item--gift .wc-block-cart-item__image img {
  opacity: 0;
}

.mriya-cart-summary {
  border-color: rgba(2, 80, 155, 0.14);
  border-top: 4px solid var(--mriya-yellow-500);
  border-radius: 20px;
  background: rgba(255, 255, 247, 0.98);
  box-shadow: 0 22px 52px rgba(1, 44, 99, 0.13);
}

.mriya-cart-summary .wc-block-cart__totals-title {
  color: var(--mriya-blue-950);
  font-family: var(--mriya-font-brand);
  font-size: 28px;
}

.mriya-order-section__title {
  color: var(--mriya-blue-950);
  font-size: clamp(24px, 2.2vw, 30px);
}

.mriya-order-section__title::before {
  background: var(--mriya-yellow-100);
  color: var(--mriya-blue-950);
  box-shadow: inset 0 0 0 1px rgba(184, 137, 0, 0.24);
}

body.mriya-order-page .mriya-order-shell .mriya-checkout-block .wc-block-checkout__contact-fields,
body.mriya-order-page .mriya-order-shell .mriya-checkout-block .wc-block-checkout__shipping-fields,
body.mriya-order-page .mriya-order-shell .mriya-checkout-block .wc-block-checkout__order-fields,
body.mriya-order-page .mriya-order-shell .mriya-checkout-block .wc-block-checkout__shipping-option,
body.mriya-order-page .mriya-order-shell .mriya-checkout-block .wc-block-checkout__payment-method,
.mriya-checkout-block .wc-block-checkout__contact-fields,
.mriya-checkout-block .wc-block-checkout__shipping-fields,
.mriya-checkout-block .wc-block-checkout__order-fields,
.mriya-checkout-block .wc-block-checkout__shipping-option,
.mriya-checkout-block .wc-block-checkout__payment-method {
  border-color: rgba(2, 80, 155, 0.12) !important;
  border-radius: var(--mriya-radius-xl);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 32px rgba(1, 44, 99, 0.07);
}

.mriya-order-section--checkout {
  border-top-color: rgba(2, 80, 155, 0.12);
}

.mriya-order-received__hero {
  max-width: none;
  border: 1px solid rgba(255, 255, 247, 0.12);
  border-radius: 24px;
  padding: clamp(34px, 5vw, 58px);
  background:
    radial-gradient(circle at 88% 0, rgba(54, 136, 230, 0.58), transparent 34%),
    linear-gradient(135deg, var(--mriya-blue-950), var(--mriya-blue-900));
  box-shadow: 0 22px 54px rgba(1, 44, 99, 0.16);
}

.mriya-order-received__mark {
  border-color: rgba(250, 204, 21, 0.46);
  background: var(--mriya-yellow-500);
  color: var(--mriya-blue-950);
}

.mriya-order-received h1 {
  color: var(--mriya-white);
  font-family: var(--mriya-font-brand);
  letter-spacing: -0.035em;
}

.mriya-order-received__hero .mriya-cart-page__eyebrow {
  color: var(--mriya-yellow-400);
}

.mriya-order-received__hero > p:last-child {
  color: rgba(255, 255, 247, 0.76);
}

.mriya-order-received__card {
  border-color: rgba(2, 80, 155, 0.12);
  border-radius: 20px;
  background: var(--mriya-color-bg-surface-raised);
  box-shadow: 0 16px 38px rgba(1, 44, 99, 0.08);
}

/* Remove the nested-card bug while keeping the single editorial surface. */
.mriya-service-shell {
  width: min(var(--mriya-container-wide), calc(100% - 48px));
  min-height: 0;
  margin: 48px auto 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.mriya-service-page {
  position: relative;
  max-width: 980px;
  overflow: hidden;
  border-color: rgba(2, 80, 155, 0.14);
  border-radius: 24px;
  padding: clamp(36px, 6vw, 72px);
  background:
    linear-gradient(180deg, rgba(240, 251, 253, 0.74), rgba(255, 255, 247, 0.98) 18%),
    var(--mriya-color-bg-surface);
  box-shadow: 0 22px 56px rgba(1, 44, 99, 0.11);
}

.mriya-service-page::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--mriya-yellow-500) 0 18%, var(--mriya-blue-700) 18% 100%);
  content: "";
}

.mriya-service-page h1 {
  color: var(--mriya-blue-950);
  font-size: clamp(44px, 5vw, 68px);
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.mriya-service-page h2 {
  color: var(--mriya-blue-950);
  font-size: 26px;
}

.mriya-service-page ul {
  border-color: rgba(2, 80, 155, 0.12);
  border-radius: var(--mriya-radius-xl);
  background: var(--mriya-color-bg-surface-raised);
  box-shadow: 0 10px 26px rgba(1, 44, 99, 0.05);
}

@media (max-width: 1180px) {
  .hero__inner {
    grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
    gap: 28px;
    width: min(1040px, calc(100% - 48px));
  }

  .hero__product {
    min-height: 560px;
    height: 560px;
  }

  .hero h1 {
    font-size: clamp(46px, 5.3vw, 64px);
  }

  .reviews__panel {
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  }
}

@media (max-width: 1023px) {
  .site-header__inner {
    width: calc(100% - 32px);
  }

  .hero {
    min-height: 650px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
    min-height: 650px;
    padding: 40px 0 48px;
  }

  .hero__product {
    min-height: 500px;
    height: 500px;
  }

  .hero__eyebrow {
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: clamp(40px, 5.5vw, 54px);
  }

  .hero .hero__tagline {
    margin-top: 18px;
    font-size: 16px;
  }

  .hero__meta,
  .hero__actions {
    margin-top: 22px;
  }

  .hero__actions {
    grid-template-columns: 1fr;
  }

  .model-preview {
    padding: 48px 36px;
  }

  .delivery-step {
    min-height: 280px;
    padding: 26px 18px;
  }

  body.mriya-demo-product-page .woocommerce-product-gallery__image {
    min-height: 430px;
  }
}

@media (max-width: 820px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  body.admin-bar #benefits,
  body.admin-bar #comparison,
  body.admin-bar #model-preview,
  body.admin-bar #reviews,
  body.admin-bar #delivery,
  body.admin-bar #order-form {
    scroll-margin-top: calc(var(--mriya-header-height) + 62px);
  }

  .hero {
    min-height: 0;
  }

  /* The mobile model sits below the copy: keep its light field below the CTA. */
  .hero::before {
    background:
      radial-gradient(ellipse 100% 40% at 50% 84%, rgba(202, 240, 248, 0.92) 0%, rgba(167, 223, 238, 0.72) 28%, rgba(54, 136, 230, 0.2) 60%, transparent 85%),
      linear-gradient(180deg, var(--mriya-blue-950) 0%, var(--mriya-blue-900) 56%, var(--mriya-blue-800) 100%),
      url("../images/hero-background.png") center / cover no-repeat;
  }

  html.mriya-hero-scroll-js .hero-scroll-stage[data-scroll-enabled="true"] {
    --mriya-hero-header-offset: 0px;
    --mriya-hero-expanded-height: max(
      var(--mriya-hero-compact-height-mobile),
      100svh
    );
    height: calc(var(--mriya-hero-expanded-height) + var(--mriya-hero-scroll-distance-mobile));
    margin-top: calc(-1 * var(--mriya-hero-flow-offset));
  }

  html.mriya-hero-scroll-js .hero-scroll-stage[data-scroll-enabled="true"] > .hero {
    top: var(--mriya-hero-scene-top, 0px);
  }

  html.mriya-hero-scroll-js .hero-scroll-stage[data-scroll-enabled="true"] .hero__inner {
    align-content: center;
    padding-top: calc(var(--mriya-hero-header-safe, var(--mriya-header-height, 88px)) + 12px);
    padding-bottom: 16px;
  }

  html.mriya-hero-scroll-js .hero-scroll-stage[data-scroll-enabled="true"] .hero__product {
    min-height: clamp(220px, 32vw, 280px);
    height: clamp(220px, 32vw, 280px);
  }

  .hero::after {
    right: -48%;
    bottom: -20%;
    width: 130%;
  }

  .hero__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: min(640px, calc(100% - 32px));
    min-height: 0;
    padding: 32px 0 42px;
  }

  .hero__content {
    display: contents;
    max-width: none;
  }

  .hero__eyebrow,
  .hero h1,
  .hero .hero__tagline,
  .hero__meta,
  .hero__actions {
    justify-self: center;
    text-align: center;
  }

  .hero__eyebrow { order: 1; }
  .hero h1 { order: 2; }
  .hero .hero__tagline { order: 3; }
  .hero .hero__meta { order: 3; }
  .hero .hero__actions { order: 4; }
  .hero .hero__product { order: 5; }

  .hero .hero__tagline {
    max-width: 480px;
  }

  .hero__product {
    width: min(540px, 100%);
    min-height: clamp(330px, 48vw, 410px);
    height: clamp(330px, 48vw, 410px);
    margin: 8px auto 0;
  }

  .hero__meta {
    justify-content: center;
    margin-top: 10px;
  }

  .hero__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(540px, 100%);
  }

  .hero__model-status {
    top: 8px;
    left: 8px;
  }

  .hero__model-hint {
    display: none;
  }

  .video-carousel__viewport {
    padding-top: 10px;
  }

  .video-carousel__slide {
    width: min(640px, calc(100% - 96px));
  }

  .model-preview {
    border-radius: 22px;
  }

  .delivery__steps {
    grid-template-columns: 1fr;
  }

  .delivery-step {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px 20px;
    min-height: 0;
    align-items: center;
    justify-items: start;
    text-align: left;
  }

  .delivery-step__icon {
    grid-row: 1 / 3;
  }

  .delivery-step:not(:last-child)::after {
    display: none;
  }

  .site-footer,
  .site-footer--commerce {
    align-items: flex-start;
    text-align: left;
  }

  .site-footer__copy,
  .site-footer--commerce .site-footer__copy {
    flex-basis: 100%;
  }
}

@media (max-width: 768px) {
  .section {
    width: calc(100% - 32px);
  }

  .benefits__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .benefit-card {
    min-height: 224px;
    padding: 24px 18px;
  }

  .benefit-card__icon {
    width: 58px;
    height: 58px;
  }

  .benefit-card h3 {
    font-size: 17px;
  }

.benefit-card p {
    font-size: 14px;
    line-height: 1.45;
  }

  .model-preview {
    width: calc(100% - 32px);
    padding: 36px 24px;
  }

  .offer {
    width: calc(100% - 32px);
    padding: 46px 22px 30px;
  }

  .faq {
    width: calc(100% - 32px);
  }

  .lead-form {
    width: calc(100% - 32px);
    padding: 34px 24px;
  }

  .site-footer,
  .site-footer--commerce {
    width: calc(100% - 32px);
    padding: 24px;
  }

  body.mriya-demo-product-page .mriya-commerce-placeholder {
    padding: 20px;
  }

  body.mriya-demo-product-page .woocommerce-product-gallery__image {
    height: clamp(340px, 52vw, 380px);
    min-height: 0;
    padding: 24px;
  }

  body.mriya-demo-product-page .woocommerce-product-gallery__image > a {
    display: block;
    width: 100%;
    height: 100%;
  }

  body.mriya-demo-product-page .woocommerce-product-gallery__image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .mriya-cart-page__intro,
  .mriya-checkout-page__intro,
  .mriya-order-page__intro {
    border-radius: 18px;
    padding: 26px 24px;
  }

  .mriya-cart-shell .wc-block-cart-items__row {
    border-radius: var(--mriya-radius-xl);
    box-shadow: 0 12px 30px rgba(1, 44, 99, 0.07);
  }

  .mriya-cart-shell .wc-block-cart-items__row td {
    box-shadow: none;
  }

  .mriya-service-shell {
    width: calc(100% - 32px);
    margin-top: 28px;
  }

  .mriya-service-page {
    margin: 0;
    padding: 34px 24px;
  }
}

/* Nova Post checkout UX: keep the native Woo city and shipping fieldsets,
 * but present them as one dependent delivery step. */
body.mriya-order-page .mriya-order-shell .mriya-checkout-block #shipping-fields.mriya-nova-post-delivery__city {
  margin-bottom: 0 !important;
  border-bottom: 0 !important;
  border-radius: var(--mriya-radius-xl) var(--mriya-radius-xl) 0 0 !important;
  padding-bottom: var(--mriya-space-200) !important;
  box-shadow: var(--mriya-shadow-100) !important;
}

body.mriya-order-page .mriya-order-shell .mriya-checkout-block #shipping-option.mriya-nova-post-delivery__carrier {
  position: relative;
  margin-top: 0 !important;
  border-top: 0 !important;
  border-radius: 0 0 var(--mriya-radius-xl) var(--mriya-radius-xl) !important;
  padding-top: var(--mriya-space-200) !important;
  box-shadow: var(--mriya-shadow-100) !important;
}

body.mriya-order-page .mriya-order-shell .mriya-checkout-block #shipping-option.mriya-nova-post-delivery__carrier::before {
  content: "";
  position: absolute;
  top: 0;
  right: var(--mriya-space-300);
  left: var(--mriya-space-300);
  height: 1px;
  background: var(--mriya-color-border-subtle);
}

.mriya-checkout-block .mriya-nova-post-delivery__carrier .wc-block-components-checkout-step__heading {
  margin: 0 0 var(--mriya-space-150);
}

.mriya-checkout-block .mriya-nova-post-delivery__carrier .wc-block-components-checkout-step__title {
  color: var(--mriya-color-text-primary);
  font-family: var(--mriya-font-ui);
  font-size: var(--mriya-font-size-400) !important;
  font-weight: 800;
  line-height: var(--mriya-line-heading);
}

.mriya-nova-post-delivery__hint {
  min-height: 20px;
  margin: var(--mriya-space-150) 0 var(--mriya-space-100);
  color: var(--mriya-color-text-subdued);
  font-family: var(--mriya-font-ui);
  font-size: var(--mriya-font-size-200);
  line-height: 20px;
}

.mriya-checkout-block .mriya-nova-post-logo-mark {
  display: block;
  flex: 0 0 32px;
  width: 32px !important;
  height: 32px !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.mriya-checkout-block .mriya-nova-post-logo-mark > svg {
  display: none !important;
}

.mriya-checkout-block .mriya-nova-post-widget--awaiting-city {
  opacity: 0.62;
}

.mriya-checkout-block .mriya-nova-post-widget--awaiting-city input:disabled,
.mriya-checkout-block .mriya-nova-post-widget--awaiting-city button:disabled {
  cursor: not-allowed;
}

.mriya-checkout-block .mriya-nova-post-delivery__carrier .nova-post-widget__container button:focus-visible,
.mriya-checkout-block .mriya-nova-post-delivery__carrier #division-input:focus-visible {
  outline: 2px solid var(--mriya-color-focus);
  outline-offset: 3px;
  box-shadow: var(--mriya-focus-ring);
}

@media (max-width: 768px) {
  body.mriya-order-page .mriya-order-shell .mriya-checkout-block #shipping-fields.mriya-nova-post-delivery__city {
    padding-bottom: var(--mriya-space-150) !important;
  }

  body.mriya-order-page .mriya-order-shell .mriya-checkout-block #shipping-option.mriya-nova-post-delivery__carrier {
    padding-top: var(--mriya-space-150) !important;
  }

  body.mriya-order-page .mriya-order-shell .mriya-checkout-block #shipping-option.mriya-nova-post-delivery__carrier::before {
    right: var(--mriya-space-200);
    left: var(--mriya-space-200);
  }

  .mriya-checkout-block .mriya-nova-post-logo-mark {
    flex-basis: 28px;
    width: 28px !important;
    height: 28px !important;
  }
}

@media (hover: hover) and (pointer: fine) {
  .benefit-card {
    position: relative;
    overflow: hidden;
    cursor: default;
  }

  .benefit-card__icon,
  .benefit-card h3 {
    transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .benefit-card p {
    position: absolute;
    inset: 50% 28px auto;
    margin: 0;
    opacity: 0;
    transform: translateY(calc(-50% + 10px));
    transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .benefit-card:hover .benefit-card__icon,
  .benefit-card:hover h3,
  .benefit-card:focus-visible .benefit-card__icon,
  .benefit-card:focus-visible h3,
  .benefit-card.is-expanded .benefit-card__icon,
  .benefit-card.is-expanded h3 {
    opacity: 0;
    transform: translateY(-10px);
  }

  .benefit-card:hover p,
  .benefit-card:focus-visible p,
  .benefit-card.is-expanded p {
    opacity: 1;
    transform: translateY(-50%);
  }
}

@media (hover: none), (pointer: coarse) {
  .benefit-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
  }

  .benefit-card__icon,
  .benefit-card h3,
  .benefit-card p {
    transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .benefit-card p {
    position: absolute;
    inset: 50% 18px auto;
    margin: 0;
    opacity: 0;
    transform: translateY(calc(-50% + 10px));
  }

  .benefit-card.is-expanded .benefit-card__icon,
  .benefit-card.is-expanded h3 {
    opacity: 0;
    transform: translateY(-10px);
  }

  .benefit-card.is-expanded p {
    opacity: 1;
    transform: translateY(-50%);
  }
}

@media (max-width: 520px) {
  .site-header__inner {
    width: calc(100% - 24px);
  }

  .site-logo {
    font-size: 34px;
  }

  .hero__inner {
    width: calc(100% - 24px);
    padding-top: 24px;
  }

  .hero__eyebrow {
    margin-bottom: 12px;
    font-size: 11px;
  }

  .hero h1 {
    width: 100%;
    font-size: clamp(34px, 10vw, 43px);
  }

  .hero .hero__tagline {
    width: min(330px, 100%);
    margin-top: 14px;
    font-size: 15px;
  }

  .hero__product {
    min-height: 300px;
    height: 300px;
    margin-top: 4px;
  }

  .hero__model-status {
    min-height: 32px;
    font-size: 10px;
  }

  .hero__meta {
    display: grid;
    justify-items: center;
    gap: 10px;
  }

  .hero__price {
    font-size: 34px;
  }

  .hero__delivery-badge {
    width: auto;
    min-height: 36px;
    font-size: 13px;
  }

  .hero__actions {
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 18px;
  }

  .hero__actions .button {
    min-height: 54px;
  }

  .hero__made-in-ukraine {
    min-height: 68px;
  }

  .hero__made-in-ukraine img {
    width: 84px;
  }

  .video-carousel__viewport {
    padding-bottom: 24px;
  }

  .video-carousel__slide {
    width: calc(100% - 40px);
  }

  .video-carousel__slide[data-position="previous"] {
    transform: translateX(-86%) scale(0.78);
  }

  .video-carousel__slide[data-position="next"] {
    transform: translateX(86%) scale(0.78);
  }

  .video-carousel__media {
    border-radius: 16px;
  }

  .video-carousel__descriptor {
    width: 100%;
    margin-top: 14px;
    font-size: 13px;
  }

  .video-carousel__descriptor strong {
    font-size: 15px;
  }

  .section-title h2 {
    font-size: clamp(34px, 10vw, 42px);
  }

  .section-title p {
    font-size: 15px;
  }

  .benefits__grid {
    gap: 10px;
  }

  .benefit-card {
    min-height: 214px;
    padding: 20px 14px;
  }

  .benefit-card__icon {
    width: 50px;
    height: 50px;
    margin-bottom: 14px;
  }

  .benefit-card h3 {
    margin-bottom: 10px;
    font-size: 15px;
  }

  .benefit-card p {
    font-size: 14px;
    line-height: 1.45;
  }

  .video-card__media,
  .comparison-table,
  .reviews__panel {
    border-radius: 16px;
  }

  .model-preview {
    margin-top: 72px;
    padding: 28px 18px;
  }

  .delivery-step {
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 22px 18px;
  }

  .delivery-step__icon,
  .delivery-step__icon img,
  .delivery-step:nth-child(3) .delivery-step__icon img {
    width: 76px;
    height: 76px;
  }

  .faq-item summary {
    min-height: 76px;
    padding: 14px 68px 14px 18px;
    font-size: 16px;
  }

  .faq-item summary::after {
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
  }

  .lead-form {
    margin-top: 72px;
  }

  .site-footer__copy,
  .site-footer--commerce .site-footer__copy {
    display: grid;
    gap: 10px;
  }

  .site-footer p {
    white-space: normal;
  }

  .site-footer__made {
    white-space: normal;
  }

  body.mriya-demo-product-page .mriya-commerce-placeholder {
    width: calc(100% - 16px);
    margin-top: 12px;
    border-radius: 18px;
    padding: 14px;
  }

  body.mriya-demo-product-page .woocommerce-product-gallery__wrapper {
    border-radius: 16px;
  }

  body.mriya-demo-product-page .woocommerce-product-gallery__image {
    min-height: 0;
    padding: 18px;
  }

  body.mriya-demo-product-page .product_title {
    font-size: clamp(36px, 11vw, 46px);
  }

  .mriya-cart-page__intro,
  .mriya-checkout-page__intro,
  .mriya-order-page__intro {
    padding: 24px 20px;
  }

  .mriya-cart-page__intro h1,
  .mriya-checkout-page__intro h1 {
    font-size: clamp(38px, 12vw, 48px);
  }

  .mriya-cart-summary {
    border-radius: var(--mriya-radius-xl);
  }

  .mriya-cart-shell .mriya-cart-item--gift .wc-block-cart-item__image a {
    width: 74px;
    height: 74px;
  }

  .mriya-cart-shell .mriya-cart-item--gift .wc-block-cart-item__image a::before {
    width: 34px;
    height: 34px;
  }

  .mriya-order-received__hero {
    border-radius: 18px;
    padding: 30px 20px;
  }

  .mriya-order-received__card {
    border-radius: var(--mriya-radius-xl);
  }

  .mriya-service-shell {
    width: calc(100% - 16px);
    margin-top: 16px;
  }

  .mriya-service-page {
    border-radius: 18px;
    padding: 30px 20px;
  }

  .mriya-service-page h1 {
    font-size: clamp(34px, 10.5vw, 42px);
    hyphens: auto;
    overflow-wrap: normal;
    word-break: normal;
  }

  .mriya-service-page h2 {
    font-size: 23px;
  }

  .mriya-service-page ul {
    padding: 20px 22px;
  }
}

@media (hover: none) {
  .hero__model-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-stage[data-scroll-enabled="true"] {
    height: auto !important;
  }

  .hero-scroll-stage[data-scroll-enabled="true"] > .hero {
    position: relative !important;
    top: auto !important;
    height: auto !important;
  }

  .hero__model-spinner {
    animation: none;
  }

  .hero__model-hint,
  .video-carousel__slide,
  .video-carousel__preview img,
  .benefit-card,
  .review-card,
  .faq-item,
  .hero__actions .button {
    transition: none;
  }

  .video-carousel__preview:hover img {
    transform: none;
  }

  .benefit-card:hover,
  .benefit-card:focus-visible,
  .review-card:hover,
  .faq-item:hover,
  .hero__actions .button:hover {
    transform: none;
  }
}

/* Consistent icon slots; optical offsets below account for each PNG's alpha. */
.benefit-card__icon {
  width: 240px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.benefit-card {
  justify-items: center;
  text-align: center;
}

.delivery-step__icon,
.delivery-step__icon img,
.delivery-step:nth-child(3) .delivery-step__icon img {
  width: 220px;
  height: 220px;
  max-width: 100%;
}

/* Hero hierarchy: the product name leads, while the application line aligns
 * visually with the primary action without becoming a cramped third line. */
.hero__heading-tail {
  display: block;
  width: 100%;
  max-width: min(520px, 100%);
  margin-top: 0.16em;
  font-size: clamp(30px, 2.45vw, 44px);
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-align: center;
  white-space: nowrap;
}

.hero__actions .hero__delivery-badge {
  margin-top: 12px;
}

@media (max-width: 767px) {
  .hero__heading-tail {
    font-size: clamp(25px, 7.4vw, 36px);
    white-space: normal;
  }
}

/* Preserve readable icons within the existing two-column benefit grid. */
@media (max-width: 768px) {
  .benefit-card__icon {
    width: 100px !important;
    height: 100px !important;
  }

  .delivery-step {
    grid-template-columns: 152px minmax(0, 1fr);
    width: 100%;
    max-width: none;
    min-height: 206px;
  }

  .delivery-step__icon,
  .delivery-step__icon img,
  .delivery-step:nth-child(3) .delivery-step__icon img {
    width: 152px !important;
    height: 152px !important;
  }
}

/* Small phones need full-width delivery copy below the centered illustration. */
@media (max-width: 480px) {
  .delivery-step {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    min-height: 336px;
    gap: 16px;
    text-align: center;
  }

  .delivery-step__icon {
    grid-row: auto;
  }

  .delivery-step__icon,
  .delivery-step__icon img,
  .delivery-step:nth-child(3) .delivery-step__icon img {
    width: 168px !important;
    height: 168px !important;
  }
}

/* Center the visible artwork and normalize its longest edge to 80% of its
 * slot. Individual translate/scale keep the existing card transitions intact. */
img[src*="/assets/images/icons-20260913/"] {
  translate: var(--mriya-icon-x, 0%) var(--mriya-icon-y, 0%);
  scale: var(--mriya-icon-scale, 1);
}

img[src$="/icons-20260913/01-throughput.png"] {
  --mriya-icon-scale: 0.9299;
  --mriya-icon-x: 0.953%;
  --mriya-icon-y: -2.588%;
}

img[src$="/icons-20260913/02-compact.png"] {
  --mriya-icon-scale: 1.0503;
  --mriya-icon-x: -7.179%;
  --mriya-icon-y: -2.359%;
}

img[src$="/icons-20260913/03-motor.png"] {
  --mriya-icon-scale: 1.0981;
  --mriya-icon-x: -2.359%;
  --mriya-icon-y: -3.217%;
}

img[src$="/icons-20260913/04-metal.png"] {
  --mriya-icon-scale: 1.1554;
  --mriya-icon-x: 1.354%;
  --mriya-icon-y: -3.216%;
}

img[src$="/icons-20260913/05-service.png"] {
  --mriya-icon-scale: 1.1055;
  --mriya-icon-x: -3.833%;
  --mriya-icon-y: -1.242%;
}

img[src$="/icons-20260913/06-warranty.png"] {
  --mriya-icon-scale: 1.0695;
  --mriya-icon-x: -0.157%;
  --mriya-icon-y: -2.924%;
}

img[src$="/icons-20260913/07-order.png"] {
  --mriya-icon-scale: 0.9604;
  --mriya-icon-x: 1.641%;
  --mriya-icon-y: 0.516%;
}

img[src$="/icons-20260913/08-preparation.png"] {
  --mriya-icon-scale: 0.9416;
  --mriya-icon-x: 0.046%;
  --mriya-icon-y: -1.011%;
}

img[src$="/icons-20260913/09-delivery.png"] {
  --mriya-icon-scale: 1.0202;
  --mriya-icon-x: -1.445%;
  --mriya-icon-y: -3.138%;
}
