/* Дизайн-схемы сайта: html[data-design="…"] × data-theme light/dark */

/* 1. Классический — значения по умолчанию в styles.css */

/* 2. Кирпич */
html[data-design="brick"] {
  --accent: #c2410c;
  --accent-hover: #ea580c;
  --accent-2: #b45309;
  --accent-3: #d97706;
  --accent-soft: rgba(194, 65, 12, 0.14);
  --radius: 8px;
  --radius-lg: 14px;
  --font: "Manrope", Georgia, serif;
  --hero-gradient: radial-gradient(ellipse 70% 55% at 85% 15%, rgba(194, 65, 12, 0.22), transparent),
    radial-gradient(ellipse 50% 45% at 8% 85%, rgba(180, 83, 9, 0.16), transparent);
}

html[data-design="brick"][data-theme="light"] {
  --bg: #faf5f2;
  --bg-alt: #f5ebe4;
  --surface-hover: #fdeee4;
}

html[data-design="brick"][data-theme="dark"] {
  --bg: #1c1410;
  --bg-alt: #2a1f18;
  --surface: #2a1f18;
  --surface-hover: #3d2c22;
}

/* 3. Лес */
html[data-design="forest"] {
  --accent: #15803d;
  --accent-hover: #16a34a;
  --accent-2: #0d9488;
  --accent-3: #65a30d;
  --accent-soft: rgba(21, 128, 61, 0.14);
  --radius: 14px;
  --radius-lg: 22px;
  --hero-gradient: radial-gradient(ellipse 75% 60% at 90% 10%, rgba(21, 128, 61, 0.2), transparent),
    radial-gradient(ellipse 55% 50% at 5% 90%, rgba(13, 148, 136, 0.15), transparent);
}

html[data-design="forest"][data-theme="light"] {
  --bg: #f4faf6;
  --bg-alt: #ecfdf3;
  --surface-hover: #dcfce7;
}

html[data-design="forest"][data-theme="dark"] {
  --bg: #0c1812;
  --bg-alt: #142820;
  --surface: #142820;
  --surface-hover: #1e3a2c;
}

/* 4. Сталь */
html[data-design="steel"] {
  --accent: #2563eb;
  --accent-hover: #3b82f6;
  --accent-2: #64748b;
  --accent-3: #475569;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --radius: 4px;
  --radius-lg: 8px;
  --font: "Manrope", system-ui, sans-serif;
  --hero-gradient: radial-gradient(ellipse 80% 50% at 100% 0%, rgba(37, 99, 235, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(100, 116, 139, 0.2), transparent);
}

html[data-design="steel"][data-theme="light"] {
  --bg: #f1f5f9;
  --bg-alt: #e2e8f0;
  --surface-hover: #e2e8f0;
}

html[data-design="steel"][data-theme="dark"] {
  --bg: #0f1419;
  --bg-alt: #1a2332;
  --surface: #1a2332;
  --surface-hover: #243044;
}

/* 5. Бетон */
html[data-design="concrete"] {
  --accent: #52525b;
  --accent-hover: #71717a;
  --accent-2: #78716c;
  --accent-3: #a8a29e;
  --accent-soft: rgba(82, 82, 91, 0.12);
  --radius: 2px;
  --radius-lg: 4px;
  --hero-gradient: radial-gradient(ellipse 90% 70% at 50% 100%, rgba(82, 82, 91, 0.12), transparent);
}

html[data-design="concrete"][data-theme="light"] {
  --bg: #f4f4f5;
  --bg-alt: #e4e4e7;
  --surface: #ffffff;
  --surface-hover: #f4f4f5;
}

html[data-design="concrete"][data-theme="dark"] {
  --bg: #18181b;
  --bg-alt: #27272a;
  --surface: #27272a;
  --surface-hover: #3f3f46;
}

/* 6. Кровля */
html[data-design="roof"] {
  --accent: #b45309;
  --accent-hover: #d97706;
  --accent-2: #1e3a8a;
  --accent-3: #1d4ed8;
  --accent-soft: rgba(30, 58, 138, 0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --hero-gradient: radial-gradient(ellipse 70% 55% at 95% 5%, rgba(30, 58, 138, 0.25), transparent),
    radial-gradient(ellipse 50% 45% at 10% 95%, rgba(180, 83, 9, 0.2), transparent);
}

html[data-design="roof"][data-theme="light"] {
  --bg: #f0f4ff;
  --bg-alt: #e8eef9;
  --surface-hover: #fff7ed;
}

html[data-design="roof"][data-theme="dark"] {
  --bg: #0f172a;
  --bg-alt: #1e293b;
}

/* 7. Склад */
html[data-design="warehouse"] {
  --accent: #eab308;
  --accent-hover: #facc15;
  --accent-2: #f97316;
  --accent-3: #ca8a04;
  --accent-soft: rgba(234, 179, 8, 0.18);
  --radius: 6px;
  --radius-lg: 10px;
  --btn-primary-text: #1e293b;
  --hero-gradient: radial-gradient(ellipse 65% 50% at 80% 20%, rgba(234, 179, 8, 0.25), transparent),
    radial-gradient(ellipse 50% 50% at 15% 80%, rgba(249, 115, 22, 0.15), transparent);
}

html[data-design="warehouse"][data-theme="light"] {
  --bg: #fafaf9;
  --bg-alt: #f5f5f4;
  --text: #1c1917;
}

html[data-design="warehouse"][data-theme="dark"] {
  --bg: #1a1a1a;
  --bg-alt: #292524;
  --surface: #292524;
  --surface-hover: #44403c;
  --btn-primary-text: #1e293b;
}

html[data-design="warehouse"] .btn--primary {
  color: #1e293b;
}

/* 8. Северный */
html[data-design="nordic"] {
  --accent: #0369a1;
  --accent-hover: #0284c7;
  --accent-2: #94a3b8;
  --accent-3: #64748b;
  --accent-soft: rgba(3, 105, 161, 0.1);
  --radius: 16px;
  --radius-lg: 24px;
  --hero-gradient: radial-gradient(ellipse 80% 60% at 70% 0%, rgba(3, 105, 161, 0.12), transparent),
    radial-gradient(ellipse 60% 50% at 20% 100%, rgba(148, 163, 184, 0.15), transparent);
}

html[data-design="nordic"][data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: rgba(15, 23, 42, 0.08);
  --surface-hover: #f1f5f9;
}

html[data-design="nordic"][data-theme="dark"] {
  --bg: #111827;
  --bg-alt: #1f2937;
}

/* 9. Закат */
html[data-design="sunset"] {
  --accent: #e11d48;
  --accent-hover: #f43f5e;
  --accent-2: #f97316;
  --accent-3: #fb923c;
  --accent-soft: rgba(225, 29, 72, 0.12);
  --radius: 18px;
  --radius-lg: 28px;
  --hero-gradient: radial-gradient(ellipse 75% 55% at 100% 0%, rgba(244, 63, 94, 0.2), transparent),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(249, 115, 22, 0.22), transparent);
}

html[data-design="sunset"][data-theme="light"] {
  --bg: #fff7ed;
  --bg-alt: #ffedd5;
  --surface-hover: #ffe4e6;
}

html[data-design="sunset"][data-theme="dark"] {
  --bg: #1f1215;
  --bg-alt: #2d1a20;
  --surface: #2d1a20;
  --surface-hover: #3f2430;
}

/* 10. Океан */
html[data-design="ocean"] {
  --accent: #0891b2;
  --accent-hover: #06b6d4;
  --accent-2: #2dd4bf;
  --accent-3: #14b8a6;
  --accent-soft: rgba(8, 145, 178, 0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --hero-gradient: radial-gradient(ellipse 70% 60% at 85% 15%, rgba(8, 145, 178, 0.22), transparent),
    radial-gradient(ellipse 55% 50% at 10% 85%, rgba(45, 212, 191, 0.18), transparent);
}

html[data-design="ocean"][data-theme="light"] {
  --bg: #f0fdfa;
  --bg-alt: #ecfeff;
  --surface-hover: #ccfbf1;
}

html[data-design="ocean"][data-theme="dark"] {
  --bg: #0c1929;
  --bg-alt: #134e4a;
  --surface: #134e4a;
  --surface-hover: #115e59;
}

/* Декоративные акценты по дизайну */
html[data-design="brick"] .hero__badge,
html[data-design="forest"] .hero__badge,
html[data-design="steel"] .hero__badge {
  letter-spacing: 0.06em;
}

html[data-design="concrete"] .category-card,
html[data-design="steel"] .category-card {
  border-radius: var(--radius);
}

html[data-design="nordic"] .btn,
html[data-design="sunset"] .btn {
  border-radius: 999px;
}

html[data-design="warehouse"] .header {
  border-bottom-width: 3px;
  border-bottom-color: var(--accent);
}

/* ── Прокрутка по шаблонам ── */
html[data-design="classic"],
html[data-design="brick"],
html[data-design="forest"],
html[data-design="roof"],
html[data-design="ocean"],
html[data-design="frankenstein"] {
  scroll-behavior: smooth;
  scroll-padding-top: 5.75rem;
}

/* Резкая прокрутка — «техничные» темы */
html[data-design="steel"],
html[data-design="concrete"],
html[data-design="warehouse"] {
  scroll-behavior: auto;
  scroll-padding-top: 6rem;
}

/* Мягкая «страничная» прокрутка с привязкой к секциям */
@media (prefers-reduced-motion: no-preference) {
  html[data-design="nordic"],
  html[data-design="sunset"] {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    scroll-padding-top: 5.5rem;
  }

  html[data-design="nordic"] main > .section,
  html[data-design="sunset"] main > .section {
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-design="nordic"],
  html[data-design="sunset"] {
    scroll-snap-type: none;
  }
}

/* 11. Витрина — премиальная главная в стиле продуктовой витрины */
html[data-design="showcase"] {
  --accent: #ea580c;
  --accent-hover: #f97316;
  --accent-2: #78716c;
  --accent-3: #a8a29e;
  --accent-soft: rgba(234, 88, 12, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Manrope", system-ui, sans-serif;
  --hero-font: "Playfair Display", Georgia, serif;
  --hero-gradient: radial-gradient(ellipse 65% 50% at 78% 18%, rgba(234, 88, 12, 0.08), transparent),
    radial-gradient(ellipse 45% 40% at 12% 88%, rgba(120, 113, 108, 0.06), transparent);
}

html[data-design="showcase"][data-theme="light"] {
  --bg: #faf7f2;
  --bg-alt: #f5f0e8;
  --surface: #ffffff;
  --surface-hover: #fff8f0;
  --text: #1c1917;
  --text-muted: #78716c;
  --border: rgba(28, 25, 23, 0.08);
  --header-bg: rgba(250, 247, 242, 0.92);
}

html[data-design="showcase"][data-theme="dark"] {
  --bg: #141210;
  --bg-alt: #1c1917;
  --surface: #292524;
  --surface-hover: #3f3a36;
  --header-bg: rgba(20, 18, 16, 0.94);
}

/* Показать элементы витрины */
html[data-design="showcase"] .hero__eyebrow,
html[data-design="showcase"] .hero__perks,
html[data-design="showcase"] .hero__rings,
html[data-design="showcase"] .hero__wave,
html[data-design="showcase"] .hero__float,
html[data-design="showcase"] .hero__pedestal,
html[data-design="showcase"] .hero__cta-thumb,
html[data-design="showcase"] .hero__cta-arrow,
html[data-design="showcase"] .logo__tagline,
html[data-design="showcase"] .header__contact-block,
html[data-design="showcase"] .header__phone--main {
  display: block;
}

html[data-design="showcase"] .header__contact-block {
  display: flex;
}

html[data-design="showcase"] .hero__perks {
  display: flex;
}

html[data-design="showcase"] .hero__float {
  display: block;
  position: absolute;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.12));
}

html[data-design="showcase"] .hero {
  padding: 2rem 0 4.5rem;
}

html[data-design="showcase"] .hero__bg::after {
  display: none;
}

html[data-design="showcase"] .hero__rings {
  position: absolute;
  top: 12%;
  right: 6%;
  width: min(380px, 42vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(28, 25, 23, 0.07);
  opacity: 0.85;
}

html[data-design="showcase"][data-theme="dark"] .hero__rings {
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-design="showcase"] .hero__rings::before,
html[data-design="showcase"] .hero__rings::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(28, 25, 23, 0.05);
}

html[data-design="showcase"] .hero__rings::after {
  inset: 24%;
}

html[data-design="showcase"] .hero__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: var(--bg);
  border-radius: 100% 100% 0 0 / 60% 60% 0 0;
  transform: scaleX(1.15);
  transform-origin: bottom center;
}

html[data-design="showcase"] .hero__grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem 3.5rem;
}

html[data-design="showcase"] .hero__stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: clamp(320px, 42vw, 480px);
  padding: 0 1rem 2rem;
}

html[data-design="showcase"] .hero__pedestal {
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: 58%;
  max-width: 340px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(180deg, #d6c4a8 0%, #a68b5c 100%);
  box-shadow: 0 12px 28px rgba(28, 25, 23, 0.18);
}

html[data-design="showcase"] .hero__img--showcase {
  position: relative;
  z-index: 2;
  width: 92%;
  max-height: none;
  aspect-ratio: auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  object-fit: contain;
}

html[data-design="showcase"] .hero__float--brick {
  bottom: 6%;
  left: -2%;
  width: clamp(72px, 14vw, 120px);
  animation: showcase-float 6s ease-in-out infinite;
}

html[data-design="showcase"] .hero__float--cement {
  top: 4%;
  right: 0;
  width: clamp(64px, 12vw, 100px);
  animation: showcase-float 5s ease-in-out infinite 0.8s;
}

html[data-design="showcase"] .hero__float--roof {
  bottom: 38%;
  right: 4%;
  width: clamp(56px, 10vw, 88px);
  animation: showcase-float 7s ease-in-out infinite 1.4s;
}

@keyframes showcase-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

html[data-design="showcase"] .hero__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 500;
}

html[data-design="showcase"] .hero__badge,
html[data-design="showcase"] .hero__stats,
html[data-design="showcase"] .hero__actions .btn--ghost {
  display: none !important;
}

html[data-design="showcase"] .hero h1 {
  font-family: var(--hero-font);
  font-weight: 700;
  font-size: clamp(2.35rem, 4.8vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  background: none;
  -webkit-text-fill-color: var(--text);
  color: var(--text);
}

html[data-design="showcase"] .hero__accent {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

html[data-design="showcase"] .hero__lead {
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

html[data-design="showcase"] .hero__perks {
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-bottom: 2rem;
  padding: 0;
  list-style: none;
}

html[data-design="showcase"] .hero__perk {
  flex: 1 1 140px;
  max-width: 200px;
  text-align: center;
}

html[data-design="showcase"] .hero__perk-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(28, 25, 23, 0.06);
}

html[data-design="showcase"] .hero__perk-icon img {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
}

html[data-design="showcase"] .hero__perk-text {
  display: block;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--text-muted);
}

html[data-design="showcase"] .hero__perk-text strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
}

html[data-design="showcase"] .hero__actions {
  margin-bottom: 0;
}

html[data-design="showcase"] .hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem 0.5rem 0.35rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 8px 28px rgba(234, 88, 12, 0.35);
}

html[data-design="showcase"] .hero__cta-thumb {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.35rem;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

html[data-design="showcase"] .hero__cta-arrow {
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0.9;
}

html[data-design="showcase"] .header__inner {
  padding: 0.65rem 0;
}

html[data-design="showcase"] .nav a {
  font-size: 0.875rem;
}

html[data-design="showcase"] .scroll-progress {
  background: linear-gradient(90deg, var(--accent), #fb923c);
}

@media (max-width: 900px) {
  html[data-design="showcase"] .hero__grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  html[data-design="showcase"] .hero__visual {
    order: -1 !important;
    min-height: 200px;
  }

  html[data-design="showcase"] .hero__content {
    order: 0 !important;
    width: 100%;
    min-width: 0;
  }

  html[data-design="showcase"] .hero__stage {
    min-height: 200px;
    max-height: min(42vh, 320px);
    padding-bottom: 1rem;
  }

  html[data-design="showcase"] .hero__img--showcase {
    width: 100%;
    max-height: min(38vh, 280px);
    object-fit: contain;
  }

  html[data-design="showcase"] .hero__float {
    display: none !important;
  }

  html[data-design="showcase"] .hero__rings {
    width: min(200px, 50vw);
    top: 6%;
    right: 50%;
    transform: translateX(50%);
  }

  html[data-design="showcase"] .hero h1 {
    font-size: clamp(1.65rem, 7.5vw, 2.35rem);
    text-align: left;
  }

  html[data-design="showcase"] .hero__eyebrow,
  html[data-design="showcase"] .hero__lead {
    text-align: left;
    max-width: none;
  }

  html[data-design="showcase"] .hero__perks {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
  }

  html[data-design="showcase"] .hero__perk {
    flex: 1 1 auto;
    max-width: none;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  html[data-design="showcase"] .hero__perk-icon {
    margin: 0;
    flex-shrink: 0;
  }

  html[data-design="showcase"] .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  html[data-design="showcase"] .hero__actions .btn,
  html[data-design="showcase"] .hero__cta {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  html[data-design="showcase"] .header__contact-block,
  html[data-design="showcase"] .logo__tagline {
    display: none !important;
  }

  html[data-design="showcase"] .header__phone--compact {
    display: inline-flex !important;
  }

  html[data-design="showcase"] .header__phone--main {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-design="showcase"] .hero__float {
    animation: none;
  }
}
