.estimate-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f6f9ff;
  background: #070d1f;
}

.estimate-backdrop {
  position: absolute;
  z-index: -2;
  inset: -40px 0;
  transform: translate3d(0,var(--motion-shift,0px),0);
}

.estimate-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  opacity: .41;
}

.estimate-hero::before {
  position: absolute;
  z-index: -1;
  content: "";
  inset: 0;
  background:
    linear-gradient(180deg,#08112449 0%,#080f20a6 52%,#080f20 100%),
    linear-gradient(90deg,#0a142a 5%,#0b1529ab 46%,#0b15294a);
}

.estimate-layout {
  display: grid;
  grid-template-columns: minmax(0,1.04fr) minmax(0,.96fr);
  gap: clamp(32px,6vw,82px);
  align-items: start;
  padding-block: clamp(49px,6vw,90px) clamp(66px,7vw,108px);
}

.estimate-intro .eyebrow,
.offer-section .eyebrow { color: var(--cyan); }

.estimate-intro h1 {
  margin: 12px 0 0;
  max-width: 11ch;
  color: #f6f9ff;
  font-size: clamp(4rem,7.5vw,7.8rem);
  line-height: .92;
  letter-spacing: -.082em;
}

.estimate-intro h1 em { color: var(--cyan); font-style: normal; }

.estimate-intro > p:not(.eyebrow) {
  margin: 19px 0 0;
  max-width: 42ch;
  color: #cbd7ea;
  font-size: clamp(1rem,1.36vw,1.19rem);
}

.estimate-preview {
  margin: 26px 0 0;
  overflow: hidden;
  border: 1px solid #8fbdff36;
  border-radius: 20px;
  background: #0b152bda;
  box-shadow: 0 16px 52px #02050e65;
}

.estimate-scene {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(120px, 16vw, 180px);
  overflow: hidden;
  background: radial-gradient(ellipse at center, #2464a14d, transparent 68%), #0b162c;
}

.estimate-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(#a6c8f22e 1px, transparent 1px);
  background-size: 13px 13px;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 83%, transparent);
}

.estimate-parcel {
  position: relative;
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  perspective: 490px;
}

.estimate-parcel::before {
  content: "";
  position: absolute;
  width: 92%;
  aspect-ratio: 1;
  border: 1px solid #7dcefa32;
  border-radius: 50%;
  box-shadow: inset 0 0 30px #4a7eff29, 0 0 23px #4a7eff17;
}

.estimate-box {
  position: relative;
  width: 62px;
  height: 55px;
  transform-style: preserve-3d;
  transform: translateZ(0) rotateX(-23deg) rotateY(-35deg) scale(.92);
}

.estimate-face {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  border: 1px solid #9ec7ff93;
  background: linear-gradient(155deg,#7aabfb,#345de8 54%,#17358d);
  backface-visibility: hidden;
}

.estimate-face--front { width: 62px; height: 55px; transform: translateZ(27px); }
.estimate-face--side {
  left: 4px;
  width: 54px;
  height: 55px;
  background: linear-gradient(160deg,#4976ee,#1a307c);
  transform: rotateY(90deg) translateZ(31px);
}
.estimate-face--top {
  top: .5px;
  width: 62px;
  height: 54px;
  background: linear-gradient(160deg,#a5ccfe,#5f80eb);
  transform: rotateX(90deg) translateZ(27.5px);
}

.estimate-face--front::before,
.estimate-face--top::before {
  position: absolute;
  content: "";
  inset: 0 22px 0 auto;
  width: 11px;
  background: #e7f5ffb8;
}

.estimate-face--front::before { bottom: 34px; }

.estimate-face--front::after {
  position: absolute;
  content: "";
  right: 6px;
  bottom: 8px;
  width: 19px;
  height: 8px;
  border: 3px solid #cfe5fe;
  border-radius: 1px;
  background: repeating-linear-gradient(90deg,#244485 0 1px,#d0e5ff 1px 2.5px);
}

.estimate-panel {
  position: relative;
  z-index: 1;
  min-width: 0;
  margin-top: 11px;
  padding: clamp(21px,3.1vw,37px);
  color: #f3f7ff;
  border: 1px solid #93b9ef37;
  border-radius: 25px;
  background: linear-gradient(153deg,#142441f2,#0d182cf8 64%);
  box-shadow: 0 22px 75px #0106157d,inset 0 1px #e0f1ff15;
  backdrop-filter: blur(12px);
}

.estimate-panel h2 { margin: 0; letter-spacing: -.035em; }
.estimate-panel > .estimate-note { margin: 0; color: #c9d7eb; font-size: .92rem; line-height: 1.55; }
.estimate-result {
  display: grid;
  gap: 3px;
  padding: clamp(13px, 3vw, 20px);
  background: #102949;
  border: 1px solid #77b9ef60;
  border-radius: 13px;
}
.estimate-result[data-state="unavailable"] { background: #172237; border-color: #8aacca52; }
.estimate-status { margin: 0; color: #c1d2e8; font-size: .9rem; }
.estimate-price {
  margin: 0;
  color: var(--cyan);
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.15;
  font-weight: 760;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.estimate-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.estimate-refresh { min-height: 46px; justify-content: space-between; }
.estimate-refresh:disabled { opacity: .58; cursor: wait; }
.estimate-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #a0eaff;
  font-size: .9rem;
  font-weight: 660;
}
.estimate-guide-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.estimate-package {
  padding: 10px 12px;
  border: 1px solid #78b6ed3f;
  border-radius: 9px;
  background: #132643;
  color: #d8e9fc;
  font-size: .84rem;
}
.estimate-package p { margin: 0; }
.estimate-package p:first-child { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.estimate-package p + p { margin-top: 3px; color: #aabed7; }
[data-quote-package-dimensions] { color: var(--cyan); font-variant-numeric: tabular-nums; }

.offer-section { padding-block: clamp(63px,8vw,115px); color: #eaf3ff; background: #080f20; }
.offer-intro h2 { margin: 9px 0 0; max-width: 14ch; color: #f5f8ff; font-size: clamp(2.6rem,6vw,5.35rem); letter-spacing: -.07em; line-height: .96; }
.offer-intro p:last-child { color: #b9c9df; max-width: 56ch; }
.offer-layout {
  display: grid;
  grid-template-columns: minmax(0,1.04fr) minmax(0,.96fr);
  align-items: start;
  gap: clamp(25px,7vw,94px);
  margin-top: clamp(29px,5vw,59px);
}
.offer-scene {
  position: sticky;
  top: calc(var(--header,75px) + 30px);
  margin: 0;
  min-width: 0;
  aspect-ratio: 1.28;
  overflow: hidden;
  border: 1px solid #88c3fd49;
  border-radius: 22px;
  background: #0c182e;
  box-shadow: 0 20px 58px #02071078;
}
.offer-pictures {
  position: absolute;
  inset: -38px 0;
  transform: translate3d(0,var(--motion-shift,0px),0);
}
.offer-pictures img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  scale: 1.055;
  transition: opacity .65s ease,scale .75s ease;
}
.offer-pictures img:first-child,
.offer-layout[data-active="1"] .offer-pictures img:nth-child(2),
.offer-layout[data-active="2"] .offer-pictures img:nth-child(3) { opacity: 1; scale: 1; }
.offer-layout[data-active="1"] .offer-pictures img:first-child,
.offer-layout[data-active="2"] .offer-pictures img:first-child { opacity: 0; scale: 1.055; }
.offer-scene::after {
  position: absolute;
  content: "";
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,transparent 50%,#081126ad);
}
.offer-scene-light {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  transform: scaleX(var(--offer-progress,0));
  transform-origin: left;
  background: #aceeff;
  box-shadow: 0 0 15px #65cbff;
}
.offer-steps {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
}
.offer-steps::before,.offer-steps::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #8bb7e038;
}
.offer-steps::after {
  transform: scaleY(var(--offer-progress,0));
  transform-origin: top;
  background: var(--cyan);
  box-shadow: 0 0 12px #9ceaff8b;
}
.offer-steps li {
  position: relative;
  min-height: clamp(170px,22vw,267px);
  padding: 16px 3px 36px clamp(24px,3.8vw,47px);
}
.offer-steps li::before {
  position: absolute;
  z-index: 1;
  top: 24px;
  left: 0;
  width: 11px;
  height: 11px;
  content: "";
  border: 1px solid #678fba;
  border-radius: 50%;
  background: #152744;
  transition: background .28s,box-shadow .28s,border-color .28s;
}
.offer-steps li.is-past::before,
.offer-steps li.is-active::before { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 16px #71dfff83; }
.offer-steps h3 { margin: 0 0 10px; color: #f4f7ff; font-size: clamp(1.5rem,3vw,2.5rem); letter-spacing: -.046em; }
.offer-steps p { max-width: 38ch; margin: 0; color: #b8cbe3; }
.offer-steps .card-link { margin-top: 13px; color: var(--cyan); }
.offer-cta { margin-top: clamp(22px,5vw,56px); scroll-margin-top: calc(var(--header, 75px) + 16px); }

@media (prefers-reduced-motion: no-preference) {
  .estimate-intro { animation: estimate-enter .64s cubic-bezier(.21,.73,.25,1) both; }
  .estimate-panel { animation: estimate-enter .74s .09s cubic-bezier(.21,.73,.25,1) both; }
}
@keyframes estimate-enter {
  from { opacity: 0; translate: 0 22px; }
  to { opacity: 1; translate: 0 0; }
}

@media (max-width: 880px) {
  .estimate-layout { gap: 25px; }
  .estimate-intro h1 { font-size: clamp(3.45rem,8.5vw,5rem); }
  .estimate-panel { padding: 19px; }
}
@media (max-width: 740px), (orientation: landscape) and (max-width: 1024px) and (max-height: 520px) {
  .estimate-hero {
    background: radial-gradient(ellipse at 6% 0%, #1b3c55, transparent 82%), #0a1729;
  }
  .estimate-backdrop, .estimate-hero::before,
  .estimate-intro > p, .estimate-preview { display: none; }
  .estimate-layout {
    gap: clamp(12px, 3.5vw, 22px);
    padding-block: clamp(18px, 4.8vw, 32px) clamp(24px, 5.7vw, 42px);
  }
  .estimate-intro h1 {
    max-width: none;
    margin: 0;
    font-size: clamp(1.95rem, 8.2vw, 3.6rem);
    line-height: 1;
  }
  .estimate-panel {
    gap: 9px;
    margin-top: 0;
    padding: clamp(14px, 3.8vw, 24px);
    border-color: #a7d4ff45;
    border-radius: 14px;
    background: #102137;
    backdrop-filter: none;
    box-shadow: none;
  }
  .estimate-panel h2 { font-size: 1.2rem; }
  .estimate-result {
    align-content: center;
    min-block-size: 78px;
    padding: 10px 13px;
    border-radius: 10px;
  }
  .estimate-result[data-state="available"] {
    border-color: #91e1f17d;
    background: linear-gradient(140deg, #18415c, #132d49);
  }
  .estimate-price { color: #bcf5ff; font-size: clamp(2rem, 8.8vw, 3.15rem); line-height: 1.04; }
  .estimate-status { line-height: 1.4; }
  .estimate-panel > .estimate-note { font-size: .86rem; line-height: 1.47; }
  .estimate-actions { gap: 2px 12px; }
  .estimate-refresh {
    min-height: 44px;
    gap: 6px;
    padding-inline: 10px;
    border-color: #91b6db65;
    background: #183048;
    color: #e8f5ff;
    font-size: .78rem;
  }
  .estimate-refresh:hover { border-color: #91d8ee; background: #24425d; box-shadow: none; }
  .estimate-guide-link { font-size: .8rem; }

  .offer-scene { position: relative; top: auto; }
}
@media (max-width: 740px) {
  .estimate-layout { grid-template-columns: minmax(0,1fr); }
  .offer-section { padding-block: clamp(44px, 9.6vw, 78px); }
  .offer-layout { display: block; margin-top: 22px; }
  .offer-scene {
    height: clamp(116px, 34vw, 192px);
    margin-bottom: 17px;
    aspect-ratio: auto;
    border-radius: 14px;
  }
  .offer-steps li { min-height: auto; padding-block: 14px 28px; }
  .offer-steps li::before { top: 20px; }
  .offer-steps .card-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 3px; }
}
@media (max-width: 420px) and (max-height: 720px) {
  .estimate-layout { gap: 13px; padding-block: 19px 25px; }
}
@media (orientation: landscape) and (max-width: 1024px) and (max-height: 520px) {
  .estimate-layout { gap: 17px; padding-block: 18px 24px; }
  .estimate-intro h1 { font-size: clamp(2.55rem, 6vw, 4.15rem); }
  .estimate-panel { padding: 16px; }
}
@media (orientation: landscape) and (min-width: 620px) and (max-width: 740px) and (max-height: 520px) {
  .estimate-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}
@media (prefers-reduced-motion: reduce) {
  .estimate-backdrop,.offer-pictures { transform: none; }
  .offer-pictures img,.offer-steps li::before { transition: none; }
  .offer-scene-light,.offer-steps::after { transform: none; }
  .offer-scene { position: relative; top: auto; }
}
