/* Уникальные раскладки hero по дизайну: сетка, картинки, анимации */

/* ── Общие утилиты ── */
.hero__img {
  display: none;
}

html[data-design] .hero__float {
  display: none;
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   CLASSIC — текст слева, фото справа + накладка hero-sub
   ══════════════════════════════════════════════════════════════ */
html[data-design="classic"] .hero__grid {
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (min-width: 901px) {
  html[data-design="classic"] .hero__content {
    order: 1;
  }

  html[data-design="classic"] .hero__visual {
    order: 2;
  }
}

html[data-design="classic"] .hero__stage {
  position: relative;
  min-height: 380px;
}

html[data-design="classic"] .hero__img--classic {
  display: block;
  width: 100%;
  max-height: 420px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  border: 3px solid var(--surface);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

html[data-design="classic"] .hero__photo--sub {
  display: block;
  position: absolute;
  bottom: -1rem;
  left: -1.5rem;
  width: 45%;
  max-width: 200px;
  border-radius: var(--radius-lg);
  border: 3px solid var(--accent);
  box-shadow: var(--shadow-lg);
  transform: rotate(-4deg);
  object-fit: cover;
}

html[data-design="classic"] .hero__badge {
  display: inline-block;
}

html[data-design="classic"] .hero__stats {
  display: flex;
}

html[data-design="classic"] .hero__actions .btn--ghost {
  display: inline-flex;
}

@media (prefers-reduced-motion: no-preference) {
  html[data-design="classic"] .hero__img--classic {
    animation: classic-photo-in 0.7s ease-out both;
  }

  html[data-design="classic"] .hero__photo--sub {
    animation: classic-sub-in 0.9s ease-out 0.15s both;
  }
}

@keyframes classic-photo-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes classic-sub-in {
  from {
    opacity: 0;
    transform: rotate(-4deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: rotate(-4deg) scale(1);
  }
}

/* ══════════════════════════════════════════════════════════════
   BRICK — визуал слева крупно, текст справа, «кладка» снизу
   ══════════════════════════════════════════════════════════════ */
html[data-design="brick"] .hero__eyebrow,
html[data-design="brick"] .hero__rings,
html[data-design="brick"] .hero__wave,
html[data-design="brick"] .hero__pedestal,
html[data-design="brick"] .hero__cta-thumb,
html[data-design="brick"] .hero__cta-arrow {
  display: block;
}

html[data-design="brick"] .hero__img--brick {
  display: block;
}

html[data-design="brick"] .hero__float--brick,
html[data-design="brick"] .hero__float--cement {
  display: block;
}

html[data-design="brick"] .hero__grid {
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem 3rem;
  align-items: end;
}

html[data-design="brick"] .hero__visual {
  order: -1;
}

html[data-design="brick"] .hero__content {
  align-self: center;
  padding-bottom: 1rem;
}

html[data-design="brick"] .hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  width: 100%;
}

html[data-design="brick"] .hero__stats li {
  text-align: center;
  padding: 0.65rem 0.5rem;
}

html[data-design="brick"] .hero__badge {
  display: none;
}

html[data-design="brick"] .hero__actions .btn--ghost {
  display: none;
}

html[data-design="brick"] .hero__stage {
  position: relative;
  min-height: clamp(340px, 44vw, 500px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2.5rem;
}

html[data-design="brick"] .hero__img--brick {
  width: 100%;
  max-height: none;
  border: none;
  box-shadow: none;
  object-fit: contain;
  transform: perspective(800px) rotateY(-6deg);
}

html[data-design="brick"] .hero__float--brick {
  bottom: 8%;
  left: -6%;
  width: clamp(80px, 16vw, 130px);
  animation: brick-tumble 5s ease-in-out infinite;
}

html[data-design="brick"] .hero__float--cement {
  top: 2%;
  right: -4%;
  width: clamp(70px, 13vw, 110px);
  animation: brick-tumble 4.2s ease-in-out infinite 0.6s reverse;
}

html[data-design="brick"] .hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
}

@keyframes brick-tumble {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(8deg);
  }
}

/* ══════════════════════════════════════════════════════════════
   FOREST — колонка: круглое фото сверху, текст по центру
   ══════════════════════════════════════════════════════════════ */
html[data-design="forest"] .hero__eyebrow,
html[data-design="forest"] .hero__rings,
html[data-design="forest"] .hero__wave,
html[data-design="forest"] .hero__pedestal,
html[data-design="forest"] .hero__cta-thumb,
html[data-design="forest"] .hero__cta-arrow {
  display: block;
}

html[data-design="forest"] .hero__img--forest {
  display: block;
}

html[data-design="forest"] .hero__float--lumber {
  display: block;
}

html[data-design="forest"] .hero__grid {
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
}

html[data-design="forest"] .hero__visual {
  order: -1;
  min-height: auto;
}

html[data-design="forest"] .hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

html[data-design="forest"] .hero__lead {
  margin-inline: auto;
}

html[data-design="forest"] .hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  order: -1;
  margin-bottom: 1rem;
}

html[data-design="forest"] .hero__stats li {
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

html[data-design="forest"] .hero__stats strong {
  font-size: 1rem;
}

html[data-design="forest"] .hero__stats span::before {
  content: "· ";
}

html[data-design="forest"] .hero__badge {
  display: none;
}

html[data-design="forest"] .hero__actions {
  justify-content: center;
}

html[data-design="forest"] .hero__actions .btn--ghost {
  display: none;
}

html[data-design="forest"] .hero__stage {
  width: min(280px, 72vw);
  margin: 0 auto;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: visible;
  position: relative;
}

html[data-design="forest"] .hero__img--forest {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 4px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 16px 40px rgba(21, 128, 61, 0.2);
  background: var(--surface);
  padding: 1.5rem;
}

html[data-design="forest"] .hero__float--lumber {
  bottom: -8%;
  right: -12%;
  width: clamp(72px, 18vw, 110px);
  animation: forest-sway 6s ease-in-out infinite;
}

html[data-design="forest"] .hero__rings {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  right: auto;
}

@keyframes forest-sway {
  0%,
  100% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(6deg) translateY(-8px);
  }
}

/* ══════════════════════════════════════════════════════════════
   STEEL — узкая колонка текста, широкий визуал с «уголком» металла
   ══════════════════════════════════════════════════════════════ */
html[data-design="steel"] .hero__eyebrow,
html[data-design="steel"] .hero__frame,
html[data-design="steel"] .hero__cta-thumb,
html[data-design="steel"] .hero__cta-arrow {
  display: block;
}

html[data-design="steel"] .hero__img--steel {
  display: block;
}

html[data-design="steel"] .hero__float--metal {
  display: block;
}

html[data-design="steel"] .hero__grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: stretch;
}

html[data-design="steel"] .hero__content {
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
}

html[data-design="steel"] .hero__visual {
  order: 2;
  margin-right: -2rem;
}

html[data-design="steel"] .hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

html[data-design="steel"] .hero__stats li {
  padding: 0.5rem;
  border-radius: var(--radius);
  text-align: center;
}

html[data-design="steel"] .hero__stats strong {
  font-size: 1.1rem;
}

html[data-design="steel"] .hero__badge {
  display: none;
}

html[data-design="steel"] .hero__actions .btn--ghost:last-child {
  display: none;
}

html[data-design="steel"] .hero__stage {
  position: relative;
  min-height: 400px;
  height: 100%;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
  background: var(--bg-alt);
}

html[data-design="steel"] .hero__frame {
  display: block;
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  opacity: 0.35;
  pointer-events: none;
  z-index: 3;
}

html[data-design="steel"] .hero__img--steel {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: contain;
  padding: 2rem;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

html[data-design="steel"] .hero__float--metal {
  top: 8%;
  right: 5%;
  width: clamp(64px, 12vw, 100px);
  animation: steel-slide 4s ease-in-out infinite;
}

html[data-design="steel"] h1 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
}

@keyframes steel-slide {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-12px);
  }
}

/* ══════════════════════════════════════════════════════════════
   CONCRETE — фото на весь блок, текст в «плите» поверх
   ══════════════════════════════════════════════════════════════ */
html[data-design="concrete"] .hero__eyebrow,
html[data-design="concrete"] .hero__cta-arrow {
  display: block;
}

html[data-design="concrete"] .hero__img--concrete {
  display: block;
}

html[data-design="concrete"] .hero {
  padding-bottom: 3rem;
}

html[data-design="concrete"] .hero__grid {
  display: block;
  position: relative;
  min-height: clamp(420px, 55vh, 560px);
}

html[data-design="concrete"] .hero__visual {
  position: absolute;
  inset: 0;
  min-height: 100%;
  z-index: 0;
}

html[data-design="concrete"] .hero__content {
  position: relative;
  z-index: 2;
  max-width: min(520px, 92%);
  margin: 2rem 0 2rem 1.5rem;
  padding: 1.75rem 2rem;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

html[data-design="concrete"] .hero__stage {
  min-height: 100%;
  height: 100%;
}

html[data-design="concrete"] .hero__img--concrete {
  width: 100%;
  height: 100%;
  min-height: clamp(420px, 55vh, 560px);
  object-fit: cover;
  border: none;
  border-radius: 0;
  filter: grayscale(0.85) contrast(1.05);
  opacity: 0.55;
}

html[data-design="concrete"] .hero__stats {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

html[data-design="concrete"] .hero__stats li {
  flex: 1 1 auto;
  flex-direction: row;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: var(--bg-alt);
}

html[data-design="concrete"] .hero__badge,
html[data-design="concrete"] .hero__actions .btn--ghost {
  display: none;
}

html[data-design="concrete"] h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

html[data-design="concrete"] .hero__bg::after {
  display: none;
}

/* ══════════════════════════════════════════════════════════════
   ROOF — диагональ: визуал наклонён, текст внизу слева
   ══════════════════════════════════════════════════════════════ */
html[data-design="roof"] .hero__eyebrow,
html[data-design="roof"] .hero__rings,
html[data-design="roof"] .hero__wave,
html[data-design="roof"] .hero__pedestal,
html[data-design="roof"] .hero__cta-thumb,
html[data-design="roof"] .hero__cta-arrow {
  display: block;
}

html[data-design="roof"] .hero__img--roof {
  display: block;
}

html[data-design="roof"] .hero__float--roof,
html[data-design="roof"] .hero__float--brick {
  display: block;
}

html[data-design="roof"] .hero__grid {
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.5rem 2rem;
  align-items: center;
}

html[data-design="roof"] .hero__visual {
  order: 2;
}

html[data-design="roof"] .hero__content {
  order: 1;
  align-self: end;
  padding-bottom: 1rem;
}

html[data-design="roof"] .hero__badge {
  display: inline-block;
}

html[data-design="roof"] .hero__stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 12rem;
}

html[data-design="roof"] .hero__stats li {
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
}

html[data-design="roof"] .hero__actions .btn--ghost {
  display: none;
}

html[data-design="roof"] .hero__stage {
  transform: rotate(-8deg);
  margin-top: 1rem;
  min-height: 360px;
}

html[data-design="roof"] .hero__img--roof {
  width: 110%;
  margin-left: -5%;
  object-fit: contain;
  border: none;
  box-shadow: 0 20px 50px rgba(30, 58, 138, 0.25);
}

html[data-design="roof"] .hero__float--roof {
  top: 0;
  right: 0;
  width: clamp(80px, 14vw, 120px);
  animation: roof-wind 5s ease-in-out infinite;
}

html[data-design="roof"] .hero__float--brick {
  bottom: 15%;
  left: -8%;
  width: clamp(56px, 10vw, 90px);
  animation: roof-wind 6.5s ease-in-out infinite 1s reverse;
}

@keyframes roof-wind {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  50% {
    transform: translateX(8px) rotate(4deg);
  }
}

/* ══════════════════════════════════════════════════════════════
   WAREHOUSE — полоса статистики сверху, узкий текст / широкий склад
   ══════════════════════════════════════════════════════════════ */
html[data-design="warehouse"] .hero__eyebrow,
html[data-design="warehouse"] .hero__rings,
html[data-design="warehouse"] .hero__frame,
html[data-design="warehouse"] .hero__cta-thumb,
html[data-design="warehouse"] .hero__cta-arrow {
  display: block;
}

html[data-design="warehouse"] .hero__img--warehouse {
  display: block;
}

html[data-design="warehouse"] .hero__float--brick,
html[data-design="warehouse"] .hero__float--cement,
html[data-design="warehouse"] .hero__float--metal {
  display: block;
}

html[data-design="warehouse"] .hero__grid {
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 1.25rem 2rem;
  align-items: center;
}

html[data-design="warehouse"] .hero__content {
  display: flex;
  flex-direction: column;
}

html[data-design="warehouse"] .hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  order: -1;
}

html[data-design="warehouse"] .hero__stats li {
  text-align: center;
  border: 2px dashed var(--accent);
  background: var(--surface);
}

html[data-design="warehouse"] .hero__badge {
  display: none;
}

html[data-design="warehouse"] .hero__actions {
  flex-direction: column;
  align-items: stretch;
}

html[data-design="warehouse"] .hero__actions .btn--ghost {
  display: none;
}

html[data-design="warehouse"] .hero__stage {
  position: relative;
  min-height: 320px;
  border: 4px solid var(--accent);
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    color-mix(in srgb, var(--accent) 12%, transparent) 8px,
    color-mix(in srgb, var(--accent) 12%, transparent) 16px
  );
  padding: 1rem;
}

html[data-design="warehouse"] .hero__frame {
  display: block;
  position: absolute;
  inset: 0.5rem;
  border: 2px solid var(--accent-2);
  pointer-events: none;
  z-index: 2;
  animation: warehouse-blink 2s step-end infinite;
}

html[data-design="warehouse"] .hero__img--warehouse {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: none;
  box-shadow: none;
}

html[data-design="warehouse"] .hero__float--brick {
  bottom: 5%;
  left: -10%;
  width: clamp(64px, 12vw, 100px);
  animation: warehouse-bounce 3s ease-in-out infinite;
}

html[data-design="warehouse"] .hero__float--cement {
  top: 0;
  right: -5%;
  animation: warehouse-bounce 2.5s ease-in-out infinite 0.4s;
}

html[data-design="warehouse"] .hero__float--metal {
  bottom: 40%;
  right: -8%;
  animation: warehouse-bounce 3.2s ease-in-out infinite 0.8s;
}

@keyframes warehouse-blink {
  50% {
    border-color: var(--accent);
  }
}

@keyframes warehouse-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ══════════════════════════════════════════════════════════════
   NORDIC — минимализм: крупный текст, маленький круглый визуал справа внизу
   ══════════════════════════════════════════════════════════════ */
html[data-design="nordic"] .hero__eyebrow,
html[data-design="nordic"] .hero__rings,
html[data-design="nordic"] .hero__cta-arrow {
  display: block;
}

html[data-design="nordic"] .hero__img--nordic {
  display: block;
}

html[data-design="nordic"] .hero__float--plumbing {
  display: block;
}

html[data-design="nordic"] .hero {
  padding-top: 4rem;
  padding-bottom: 6rem;
}

html[data-design="nordic"] .hero__grid {
  grid-template-columns: 1fr minmax(140px, 22%);
  gap: 2rem;
  align-items: end;
}

html[data-design="nordic"] .hero__content {
  padding-right: 0;
}

html[data-design="nordic"] .hero__visual {
  align-self: end;
  min-height: auto;
}

html[data-design="nordic"] .hero__stats {
  display: none;
}

html[data-design="nordic"] .hero__badge {
  display: inline-block;
}

html[data-design="nordic"] .hero__actions .btn--ghost {
  display: none;
}

html[data-design="nordic"] h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.05;
  max-width: 14ch;
}

html[data-design="nordic"] .hero__lead {
  max-width: 28rem;
  font-size: 1rem;
}

html[data-design="nordic"] .hero__stage {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1;
  margin-left: auto;
}

html[data-design="nordic"] .hero__img--nordic {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
}

html[data-design="nordic"] .hero__float--plumbing {
  bottom: -15%;
  left: -20%;
  width: 56px;
  opacity: 0.5;
  animation: nordic-drift 10s ease-in-out infinite;
}

@keyframes nordic-drift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-6px, -10px);
  }
}

/* ══════════════════════════════════════════════════════════════
   SUNSET — визуал наезжает на текст слева
   ══════════════════════════════════════════════════════════════ */
html[data-design="sunset"] .hero__eyebrow,
html[data-design="sunset"] .hero__perks,
html[data-design="sunset"] .hero__rings,
html[data-design="sunset"] .hero__wave,
html[data-design="sunset"] .hero__pedestal,
html[data-design="sunset"] .hero__cta-thumb,
html[data-design="sunset"] .hero__cta-arrow {
  display: block;
}

html[data-design="sunset"] .hero__img--sunset {
  display: block;
}

html[data-design="sunset"] .hero__float--roof,
html[data-design="sunset"] .hero__float--lumber {
  display: block;
}

html[data-design="sunset"] .hero__grid {
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  align-items: center;
}

html[data-design="sunset"] .hero__visual {
  order: -1;
  margin-right: -3rem;
  z-index: 2;
}

html[data-design="sunset"] .hero__content {
  position: relative;
  z-index: 3;
  padding: 1.5rem;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}

html[data-design="sunset"] .hero__stats {
  display: none;
}

html[data-design="sunset"] .hero__badge {
  display: none;
}

html[data-design="sunset"] .hero__perks {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 100%;
  margin-bottom: 1.5rem;
}

html[data-design="sunset"] .hero__perk {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  max-width: none;
}

html[data-design="sunset"] .hero__perk-icon {
  display: flex;
  margin: 0;
  flex-shrink: 0;
}

html[data-design="sunset"] .hero__actions .btn--ghost {
  display: none;
}

html[data-design="sunset"] .hero__stage {
  min-height: 400px;
  padding: 1rem;
}

html[data-design="sunset"] .hero__img--sunset {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/5;
  box-shadow: 0 24px 48px rgba(225, 29, 72, 0.25);
}

html[data-design="sunset"] .hero__float--roof {
  top: 5%;
  right: 5%;
  animation: sunset-pulse 4s ease-in-out infinite;
}

html[data-design="sunset"] .hero__float--lumber {
  bottom: 10%;
  left: 5%;
  animation: sunset-pulse 5s ease-in-out infinite 0.7s;
}

html[data-design="sunset"] .hero__cta {
  animation: sunset-cta-glow 2.5s ease-in-out infinite;
}

@keyframes sunset-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes sunset-cta-glow {
  0%,
  100% {
    box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 35%, transparent);
  }
  50% {
    box-shadow: 0 12px 36px color-mix(in srgb, var(--accent) 55%, transparent);
  }
}

/* ══════════════════════════════════════════════════════════════
   OCEAN — bento-сетка: картинка на 2 ряда, статистика плитками
   ══════════════════════════════════════════════════════════════ */
html[data-design="ocean"] .hero__eyebrow,
html[data-design="ocean"] .hero__rings,
html[data-design="ocean"] .hero__wave,
html[data-design="ocean"] .hero__pedestal,
html[data-design="ocean"] .hero__cta-thumb,
html[data-design="ocean"] .hero__cta-arrow {
  display: block;
}

html[data-design="ocean"] .hero__img--ocean {
  display: block;
}

html[data-design="ocean"] .hero__float--cement,
html[data-design="ocean"] .hero__float--plumbing {
  display: block;
}

html[data-design="ocean"] .hero__grid {
  grid-template-columns: 1fr 1.15fr;
  gap: 1.25rem 2rem;
  align-items: stretch;
}

html[data-design="ocean"] .hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  align-content: start;
}

html[data-design="ocean"] .hero__eyebrow,
html[data-design="ocean"] .hero h1,
html[data-design="ocean"] .hero__lead,
html[data-design="ocean"] .hero__actions {
  grid-column: 1 / -1;
}

html[data-design="ocean"] .hero__stats {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0;
}

html[data-design="ocean"] .hero__stats li {
  padding: 1rem;
  border-radius: var(--radius-lg);
}

html[data-design="ocean"] .hero__stats li:nth-child(3) {
  grid-column: 1 / -1;
}

html[data-design="ocean"] .hero__actions {
  margin: 0;
}

html[data-design="ocean"] .hero__badge {
  display: none;
}

html[data-design="ocean"] .hero__actions .btn--ghost {
  display: none;
}

html[data-design="ocean"] .hero__stage {
  height: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

html[data-design="ocean"] .hero__img--ocean {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  box-shadow: none;
}

html[data-design="ocean"] .hero__float--cement {
  top: 8%;
  left: 8%;
  width: clamp(56px, 10vw, 88px);
  animation: ocean-drift 8s ease-in-out infinite;
}

html[data-design="ocean"] .hero__float--plumbing {
  bottom: 12%;
  right: 10%;
  animation: ocean-drift 9s ease-in-out infinite 1.2s reverse;
}

@keyframes ocean-drift {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(6px, -10px) rotate(3deg);
  }
  66% {
    transform: translate(-4px, 6px) rotate(-2deg);
  }
}

/* ══════════════════════════════════════════════════════════════
   SHOWCASE — витрина (картинка showcase, perks, пьедестал)
   ══════════════════════════════════════════════════════════════ */
html[data-design="showcase"] .hero__img--showcase {
  display: block;
}

html[data-design="showcase"] .hero__float--brick,
html[data-design="showcase"] .hero__float--cement,
html[data-design="showcase"] .hero__float--roof {
  display: block;
}

html[data-design="showcase"] .hero__grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

html[data-design="showcase"] .hero__visual {
  order: 0;
}

html[data-design="showcase"] .hero__content {
  order: 0;
}

/* ── Мобильная адаптация ── */
@media (max-width: 900px) {
  html[data-design="showcase"] .hero__grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto;
  }

  html[data-design="showcase"] .hero__visual {
    order: -1 !important;
  }

  html[data-design="showcase"] .hero__content {
    order: 0 !important;
  }

  html[data-design="brick"] .hero__grid,
  html[data-design="steel"] .hero__grid,
  html[data-design="roof"] .hero__grid,
  html[data-design="warehouse"] .hero__grid,
  html[data-design="sunset"] .hero__grid,
  html[data-design="ocean"] .hero__grid,
  html[data-design="nordic"] .hero__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  html[data-design="brick"] .hero__visual,
  html[data-design="forest"] .hero__visual,
  html[data-design="sunset"] .hero__visual {
    order: -1;
    margin-right: 0;
  }

  html[data-design="concrete"] .hero__content {
    margin: 1rem;
    max-width: none;
  }

  html[data-design="concrete"] .hero__img--concrete {
    min-height: 320px;
  }

  html[data-design="roof"] .hero__stage {
    transform: none;
  }

  html[data-design="ocean"] .hero__content {
    grid-template-columns: 1fr;
  }

  html[data-design="ocean"] .hero__stats {
    grid-template-columns: 1fr;
  }

  html[data-design="steel"] .hero__visual {
    margin-right: 0;
  }

  html[data-design="steel"] .hero__stage {
    clip-path: none;
    min-height: 280px;
  }

  html[data-design="sunset"] .hero__content {
    margin-top: 0;
  }

  html[data-design="showcase"] .hero__visual {
    order: -1;
    min-height: 200px;
  }

  html[data-design="showcase"] .hero__perks {
    flex-direction: column;
    align-items: stretch;
  }

  html[data-design="nordic"] .hero__visual {
    min-height: 200px;
  }
}

@media (max-width: 560px) {
  html[data-design="concrete"] .hero__content {
    margin: 0.75rem;
  }

  html[data-design="concrete"] .hero__img--concrete {
    min-height: 240px;
  }

  html[data-design="brick"] .hero__float,
  html[data-design="forest"] .hero__float,
  html[data-design="ocean"] .hero__float {
    display: none;
  }
}

/* ── Стили CTA по дизайнам ── */
html[data-design="brick"] .hero__cta,
html[data-design="forest"] .hero__cta,
html[data-design="steel"] .hero__cta,
html[data-design="roof"] .hero__cta,
html[data-design="warehouse"] .hero__cta,
html[data-design="sunset"] .hero__cta,
html[data-design="ocean"] .hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.35rem 0.55rem 0.35rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 900;
  font-size: 0.82rem;
  box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 35%, transparent);
}

html[data-design="brick"] .hero__cta-thumb,
html[data-design="forest"] .hero__cta-thumb,
html[data-design="steel"] .hero__cta-thumb,
html[data-design="roof"] .hero__cta-thumb,
html[data-design="warehouse"] .hero__cta-thumb,
html[data-design="sunset"] .hero__cta-thumb,
html[data-design="ocean"] .hero__cta-thumb {
  flex-shrink: 0;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0.35rem;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

html[data-design="concrete"] .hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
  font-size: 0.78rem;
}

html[data-design="nordic"] .hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
  font-size: 0.78rem;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  box-shadow: none;
}

@media (prefers-reduced-motion: no-preference) {
  html[data-design="brick"] .hero__visual.is-inview .hero__img--brick,
  html[data-design="forest"] .hero__visual.is-inview .hero__img--forest,
  html[data-design="steel"] .hero__visual.is-inview .hero__img--steel,
  html[data-design="ocean"] .hero__visual.is-inview .hero__img--ocean,
  html[data-design="showcase"] .hero__visual.is-inview .hero__img--showcase {
    animation: hero-img-enter 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes hero-img-enter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-design] .hero__float,
  html[data-design] .hero__img,
  html[data-design] .hero__photo--sub,
  html[data-design] .hero__cta,
  html[data-design="warehouse"] .hero__frame {
    animation: none !important;
  }
}
