/* Фон и контраст. Тексты страниц не меняются. */
html {
  background-color: #efe6d4 !important;
}

body {
  background-color: #efe6d4 !important;
  background-image:
    radial-gradient(rgba(47, 74, 60, 0.045) 1px, transparent 1.2px),
    linear-gradient(180deg, #f6f0e4 0%, #efe6d4 48%, #eadfb8 100%) !important;
  background-size: 22px 22px, 100% 100% !important;
  background-attachment: scroll !important;
  background-repeat: repeat, no-repeat !important;
}

.hero-grid {
  background-color: #0b1712 !important;
  background-image:
    radial-gradient(720px 380px at 78% 18%, rgba(232, 196, 110, 0.2), transparent 62%),
    linear-gradient(115deg, rgba(6, 16, 12, 0.28) 0%, rgba(6, 16, 12, 0.05) 46%, transparent 70%),
    url("/hero-scene.svg") !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.hero-grid > .absolute.inset-0 {
  background: linear-gradient(
    105deg,
    rgba(6, 14, 11, 0.9) 0%,
    rgba(6, 14, 11, 0.72) 36%,
    rgba(6, 14, 11, 0.38) 62%,
    rgba(6, 14, 11, 0.18) 100%
  ) !important;
}

.hero-grid h1,
.hero-grid p,
.hero-grid li,
.hero-grid span {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.md-nav-plan {
  font-weight: 600 !important;
  color: #2f4a3c !important;
  box-shadow: inset 0 0 0 1px rgba(47, 74, 60, 0.35);
}

.md-plan-mobile {
  display: inline-flex;
  align-items: center;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2f4a3c;
  box-shadow: inset 0 0 0 1px rgba(47, 74, 60, 0.35);
  background: rgba(243, 234, 217, 0.7);
}

@media (min-width: 1024px) {
  .md-plan-mobile {
    display: none !important;
  }
}

.md-native-select,
.md-native-range {
  width: 100%;
  height: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in oklab, var(--input, #cbbca3) 80%, #2f4a3c);
  background: #fff;
  padding: 0 0.7rem;
  font-size: 0.9rem;
  color: inherit;
}

.md-native-range {
  height: 2.2rem;
  padding: 0;
  accent-color: #2f4a3c;
}

.md-estimate-3d {
  transform-style: preserve-3d;
  perspective: 1100px;
}

.md-estimate-flip {
  animation: mdFlip 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes mdFlip {
  0% {
    transform: translateY(8px);
    opacity: 0.35;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}

.md-iso-stage {
  height: 188px;
  margin-top: 18px;
  perspective: 640px;
  overflow: hidden;
}

.md-iso-scene {
  width: 110px;
  height: 110px;
  margin: 52px auto 0;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(62deg) rotateZ(-36deg);
  animation: mdOrbit 14s linear infinite;
}

@keyframes mdOrbit {
  from {
    transform: rotateX(62deg) rotateZ(-36deg);
  }
  to {
    transform: rotateX(62deg) rotateZ(324deg);
  }
}

.md-iso-floor,
.md-iso-wall,
.md-iso-roof {
  position: absolute;
  box-sizing: border-box;
}

.md-iso-floor {
  inset: 0;
  background: linear-gradient(135deg, rgba(243, 234, 217, 0.55), rgba(184, 137, 46, 0.38));
  border: 1px solid rgba(243, 234, 217, 0.55);
  transform: translateZ(0);
}

.md-iso-wall.a {
  left: 0;
  right: 0;
  bottom: 0;
  height: 62px;
  background: rgba(243, 234, 217, 0.28);
  border: 1px solid rgba(243, 234, 217, 0.4);
  transform-origin: bottom;
  transform: rotateX(-90deg);
}

.md-iso-wall.b {
  top: 0;
  bottom: 0;
  right: 0;
  width: 62px;
  background: rgba(240, 212, 138, 0.22);
  border: 1px solid rgba(243, 234, 217, 0.4);
  transform-origin: right;
  transform: rotateY(90deg);
}

.md-iso-roof {
  left: 8px;
  right: 8px;
  top: -6px;
  height: 36px;
  background: linear-gradient(90deg, #f0d48a, #b8892e);
  border: 1px solid rgba(243, 234, 217, 0.55);
  transform: translateZ(62px) rotateX(12deg);
}

.md-iso-scene.is-e .md-iso-floor {
  background: rgba(243, 234, 217, 0.12);
}
.md-iso-scene.is-t .md-iso-roof {
  background: linear-gradient(90deg, #f3e0a8, #c9a45a);
}

.md-iso-glow {
  position: absolute;
  inset: 40% 20% auto;
  height: 40px;
  background: radial-gradient(circle, rgba(240, 212, 138, 0.45), transparent 70%);
  filter: blur(8px);
  animation: mdPulse 2.4s ease-in-out infinite;
}

@keyframes mdPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .md-estimate-flip,
  .md-iso-scene,
  .md-iso-glow {
    animation: none !important;
  }
}
