/* MegaHoist quote funnel. Navy, steel blue, orange. Manrope. */
:root {
  --navy: #102B45;
  --blue: #1A6AAB;
  --orange: #FF8200;
  --orange-press: #E67600;
  --sky: #EAF3FA;
  --sky-2: #d7eaf6;
  --sky-3: #c5d7e6;
  --grey: #4E6373;
  --white: #ffffff;
  --line: rgba(16, 43, 69, 0.12);
  --line-strong: rgba(16, 43, 69, 0.18);
  --footer-muted: #9BB0C3;
  --error: #8E2F12;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Manrope", system-ui, sans-serif;
  --header: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
  scroll-padding-bottom: 112px;
}
body {
  margin: 0;
  background: var(--sky);
  color: var(--navy);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
}
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p, h1, h2, h3, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
::selection { background: var(--orange); color: var(--navy); }
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
h1, h2 { text-wrap: balance; }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}
@media (min-width: 900px) {
  .wrap { width: min(1120px, calc(100% - 80px)); }
}

.visually-hidden,
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 30;
  background: var(--navy);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 8px; }

.icon { width: 16px; height: 16px; flex: none; }

.kicker__mark {
  width: 8px;
  height: 8px;
  background: var(--orange);
  display: inline-block;
  margin-right: 8px;
  vertical-align: 1px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  border: 0;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  touch-action: manipulation;
  transition: background-color 180ms var(--ease), transform 120ms var(--ease);
}
.btn--primary {
  background: var(--orange);
  color: var(--navy);
}
.btn--primary:disabled {
  background: var(--sky-3);
  color: var(--navy);
  cursor: not-allowed;
}
.btn--ghost {
  background: transparent;
  color: var(--navy);
  padding-inline: 12px;
}
@media (hover: hover) and (pointer: fine) {
  .btn--primary:not(:disabled):hover { background: var(--orange-press); }
  .btn--ghost:hover { background: rgba(16, 43, 69, 0.06); }
}
.btn--primary:not(:disabled):active { transform: scale(0.98); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--sky);
  border-bottom: 1px solid var(--line);
}
.header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  min-height: var(--header);
  padding: 12px 0;
}
.logo-plate {
  display: inline-flex;
  align-items: center;
  background: var(--navy);
  border-radius: 12px;
  padding: 8px 12px;
  line-height: 0;
  text-decoration: none;
}
.logo-plate img { height: 36px; width: auto; }
.header__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}
.header__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.header__contacts a:hover { color: var(--blue); }

.noscript { padding: 16px 0; }
.noscript a { font-weight: 500; }

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px 0 40px;
}
@media (min-width: 900px) {
  .hero {
    min-height: calc(100svh - var(--header));
    padding-bottom: 32px;
  }
}
.hero__top { display: block; }
@media (min-width: 900px) {
  .hero__top {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.7fr);
    gap: 48px;
    align-items: center;
  }
}
.hero h1 {
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 12px 0 16px;
}
.kicker {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--grey);
}
.hero__lead {
  max-width: 36rem;
  font-size: 18px;
  line-height: 1.5;
  color: var(--grey);
}
.hero__areas {
  margin-top: 12px;
  color: var(--grey);
  max-width: 36rem;
}
.hero__copy .btn { margin-top: 24px; }
.hero__where {
  display: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: 16px;
  padding: 16px 20px 8px;
}
.where__label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}
.hero__where li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-weight: 500;
}
@media (min-width: 900px) {
  .hero__areas { display: none; }
  .hero__where { display: block; }
}

.hero__cards {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .hero__cards {
    flex: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 380px;
  }
}

.machine {
  --rx: 0deg;
  --ry: 0deg;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  text-align: left;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 180ms var(--ease), border-color 180ms var(--ease);
  touch-action: manipulation;
}
.machine::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .machine:hover { border-color: var(--navy); }
  .machine:hover::after { transform: scaleX(1); }
}
.machine:active {
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) scale(0.985);
}
.machine:active::after { transform: scaleX(1); }
@media (min-width: 900px) {
  .machine { height: 100%; }
}
.machine__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 220px;
  background: var(--sky-3);
}
@media (min-width: 900px) {
  .machine__photo { aspect-ratio: auto; flex: 1; min-height: 200px; }
}
.machine__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.machine__body {
  display: block;
  padding: 16px;
}
.machine__name {
  display: block;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.machine__hint {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--grey);
}
.machine__go {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
}

/* Wizard */
.wizard { padding: 24px 0 32px; }
.progress { margin-bottom: 24px; }
.progress__list { display: flex; }
.progress__list li {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.progress__list li:last-child { flex: 0 0 auto; }
.progress__list button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--grey);
  font-weight: 400;
}
.progress__list button:disabled { cursor: default; }
.progress__list li.is-current button,
.progress__list li.is-done button { color: var(--navy); font-weight: 500; }
.progress__n {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.progress__check { display: none; width: 16px; height: 16px; }
.progress__list li.is-current .progress__n {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--navy);
}
.progress__list li.is-done .progress__n {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.progress__list li.is-done .progress__num { display: none; }
.progress__list li.is-done .progress__check { display: block; }
.progress__list li:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 2px;
  min-width: 8px;
  margin: 0 8px;
  background: var(--sky-3);
}
.progress__list li.is-done:not(:last-child)::after { background: var(--blue); }
@media (max-width: 699px) {
  .progress__l {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}
@media (hover: hover) and (pointer: fine) {
  .progress__list button:not(:disabled):hover .progress__l { color: var(--blue); }
}

.wizard__grid { display: flex; flex-direction: column; gap: 24px; }
.wizard__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.docket { order: -1; }
@media (min-width: 900px) {
  .wizard__grid {
    display: grid;
    grid-template-columns: minmax(0, 640px) 300px;
    justify-content: space-between;
    gap: 32px;
    align-items: start;
  }
  .docket { order: 0; position: sticky; top: 96px; }
}

.step__kicker {
  font-size: 14px;
  color: var(--grey);
  margin-bottom: 8px;
}
.view h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.step__lead {
  color: var(--grey);
  max-width: 40rem;
  margin-bottom: 24px;
}
.view h2:focus { outline: none; }
.view.is-enter { animation: rise 280ms var(--ease); }
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.tiles { display: grid; gap: 8px; }
@media (min-width: 700px) {
  .tiles--pair { grid-template-columns: 1fr 1fr; }
}
.tile__name { overflow-wrap: break-word; }
.change-machine {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.thanks__mail { margin: 0 0 16px; }
.thanks__mail a { font-weight: 500; }
.tile, .choice {
  font-weight: 500;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  touch-action: manipulation;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), transform 120ms var(--ease);
}
.tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 16px 16px 16px 20px;
  border-radius: 12px;
  font-size: 18px;
}
.tile__name, .tile__hint { display: block; }
.tile__hint {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 400;
  color: var(--grey);
}
.tile--machine { padding: 8px 16px 8px 8px; }
.tile__thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  flex: none;
  background: var(--sky-3);
}
.tick {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--grey);
  flex: none;
}
.tile[aria-checked="true"] {
  background: var(--sky-2);
  border-color: var(--navy);
  box-shadow: inset 4px 0 0 var(--orange);
}
.tile[aria-checked="true"] .tick {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: inset 0 0 0 3px var(--sky-2);
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choice {
  min-height: 48px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 15px;
}
.choice[aria-checked="true"] {
  background: var(--sky-2);
  border-color: var(--navy);
  box-shadow: inset 0 -3px 0 var(--orange);
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover, .choice:hover { border-color: var(--blue); }
}
.tile:active, .choice:active { transform: scale(0.985); }

.q {
  border: 0;
  padding: 0;
  margin: 24px 0 0;
  min-inline-size: 0;
}
.q legend {
  padding: 0;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 500;
}
.detail-title {
  margin-top: 32px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.docket {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: 16px;
  padding: 20px;
}
.docket__kicker {
  font-size: 14px;
  font-weight: 500;
}
.docket dl { margin-top: 8px; }
.docket div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.docket dt { color: var(--grey); font-size: 14px; }
.docket dd {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: break-word;
}
.docket dd.is-empty { color: var(--grey); font-weight: 400; }
@media (max-width: 899px) {
  .docket.is-blank { display: none; }
  .docket div.is-empty { display: none; }
  .docket { padding: 12px 16px; }
  .docket__kicker { display: none; }
  .docket dl {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
  }
  .docket div {
    display: flex;
    align-items: baseline;
    gap: 8px;
    width: auto;
    border-top: 0;
    padding: 0;
  }
  .docket div.is-empty { display: none; }
}

.choice, .tile, .q, .field { scroll-margin-bottom: 112px; }
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 5;
  margin-top: 32px;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: var(--sky);
  border-top: 1px solid var(--line);
}
@media (max-width: 699px) {
  .header__bar { padding: 8px 0 4px; gap: 4px 16px; }
  .logo-plate { padding: 6px 10px; }
  .logo-plate img { height: 32px; }
}
@media (max-width: 899px) {
  html { scroll-padding-top: 160px; scroll-padding-bottom: 24px; }
  .wizard { padding-bottom: 8px; }
  .actions {
    position: static;
    margin-top: 24px;
    padding: 16px 0 calc(16px + env(safe-area-inset-bottom));
  }
}
.actions .btn--primary { margin-left: auto; white-space: nowrap; }

/* Form */
#quote-form { position: relative; max-width: none; }
.field { margin-bottom: 16px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 700px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}
.opt { color: var(--grey); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--navy);
  font-size: 16px;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--blue);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--error); }
.hint, .field-error { font-size: 14px; margin-top: 4px; }
.hint { color: var(--grey); }
.field-error { color: var(--error); }

/* Saving and thanks */
#view-saving { padding-top: 24px; max-width: 36rem; }
.saving__meta { margin-top: 8px; color: var(--grey); }
.saving__track {
  margin-top: 24px;
  height: 4px;
  width: min(100%, 360px);
  background: var(--sky-3);
  overflow: hidden;
}
.saving__bar {
  display: block;
  height: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
}
.saving__bar.is-run { animation: fill 2.5s var(--ease) forwards; }
@keyframes fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.summary { margin: 8px 0 24px; max-width: 560px; }
.summary div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.summary dt { color: var(--grey); font-size: 14px; }
.summary dd { margin: 0; font-weight: 500; overflow-wrap: break-word; }
@media (max-width: 500px) {
  .summary div { grid-template-columns: 1fr; gap: 2px; }
}
.thanks__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0 32px;
}
.site-footer a { color: var(--white); }
.footer__grid { display: grid; gap: 32px; }
@media (min-width: 700px) {
  .footer__grid { grid-template-columns: 1.4fr 0.8fr; align-items: start; }
}
.footer__lede {
  margin-top: 16px;
  max-width: 36rem;
}
.footer__site { margin-top: 12px; }
.footer__label {
  margin: 16px 0 0;
  color: var(--footer-muted);
  font-size: 14px;
}
.footer__contact a:first-of-type,
.footer__label:first-child { margin-top: 0; }
.footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.footer__contact a:hover { color: var(--orange); }
.legal {
  margin-top: 32px;
  color: var(--footer-muted);
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .machine, .machine:active { transform: none; }
}
