.section--quick-estimate {
  scroll-margin-top: 96px;
  padding-block: clamp(50px, 5vw, 76px);
  background:
    radial-gradient(circle at 76% 28%, rgb(129 42 215 / 15%), transparent 34rem),
    linear-gradient(180deg, #050a13, #02070f);
}

.quick-estimate-shell {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(34px, 4vw, 64px);
}

.quick-estimate-copy > p:not(.kicker) {
  max-width: 570px;
  color: var(--muted);
}

.quick-estimate-actions {
  display: grid;
  justify-items: start;
  gap: 18px;
  margin-top: 26px;
}

.quick-estimate-actions .button {
  min-height: 50px;
  justify-content: center;
  text-align: center;
}

.callback-dialog {
  width: min(calc(100% - 32px), 650px);
  max-width: none;
  max-height: min(90dvh, 780px);
  padding: 0;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 20px;
  color: var(--text);
  background: #080d16;
  box-shadow: 0 30px 100px rgb(0 0 0 / 58%);
  overflow: auto;
}

.callback-dialog::backdrop {
  background: rgb(1 5 12 / 78%);
  backdrop-filter: blur(8px);
}

.callback-dialog__surface {
  position: relative;
  padding: clamp(26px, 4vw, 42px);
  background:
    radial-gradient(circle at 90% 0%, rgb(132 42 224 / 18%), transparent 23rem),
    #080d16;
}

.callback-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 50%;
  color: #fff;
  background: rgb(4 8 15 / 78%);
  cursor: pointer;
}

.callback-dialog__close span {
  font-size: 28px;
  line-height: 1;
}

.callback-dialog__close:hover,
.callback-dialog__close:focus-visible {
  border-color: rgb(232 76 142 / 72%);
}

.callback-form h2 {
  max-width: 500px;
  margin: 10px 48px 10px 0;
  font-size: clamp(27px, 4vw, 38px);
}

.callback-form__lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.callback-form__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.callback-form .field--wide {
  grid-column: 1 / -1;
}

.callback-form .field input {
  min-height: 48px;
}

.callback-form .consent-field {
  margin: 18px 0;
}

.callback-form .consent-field a {
  color: #d9dce4;
  text-underline-offset: 3px;
}

.callback-form .button {
  min-height: 48px;
}

html:has(.callback-dialog[open]),
body:has(.callback-dialog[open]) {
  overflow: hidden;
}

.quiz--quick {
  min-height: 460px;
}

.quiz--quick .quiz-field[data-field-id="consent"] > .consent-field {
  margin: 10px 0 18px;
}

.quiz-field[hidden] {
  display: none !important;
}

.quiz-field input[type="file"] {
  width: 100%;
  min-height: 52px;
  padding: 13px;
  border: 1px dashed rgb(255 255 255 / 24%);
  border-radius: 10px;
  color: var(--muted);
  background: rgb(255 255 255 / 3%);
}

.section--budget {
  background: linear-gradient(180deg, rgb(6 11 20 / 92%), rgb(2 7 15 / 96%));
}

.budget-panel {
  padding: clamp(24px, 2.5vw, 36px);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 0%, rgb(122 41 222 / 18%), transparent 30rem),
    rgb(8 13 22 / 90%);
}

.budget-panel__intro {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, .8fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: end;
}

.budget-panel__intro h2,
.budget-panel__intro > div > .kicker {
  margin-bottom: 0;
}

.budget-panel__intro > p:last-child {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
}

.budget-factors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
  background: rgb(255 255 255 / 12%);
}

.budget-factors li {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 126px;
  padding: 18px;
  background: #080d16;
}

.budget-factors strong {
  color: #fff;
  font-size: 16px;
}

.budget-factors span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.home-articles-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section--checklist {
  background:
    radial-gradient(circle at 18% 28%, rgb(238 84 118 / 12%), transparent 28rem),
    linear-gradient(180deg, #030912, #050a13);
}

.checklist-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
  gap: clamp(38px, 7vw, 110px);
  align-items: center;
  padding-block: clamp(18px, 3vw, 48px);
}

.checklist-panel__copy > p:not(.kicker) {
  max-width: 680px;
  color: var(--muted);
}

.checklist-form {
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 20px;
  background: rgb(8 13 22 / 88%);
  box-shadow: 0 24px 70px rgb(0 0 0 / 28%);
}

.checklist-form h3 {
  margin: 0 0 8px;
}

.checklist-form > p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.checklist-form .consent-field {
  margin: 18px 0;
}

.checklist-form .button,
.form-download {
  min-height: 48px;
}

.form-download {
  width: fit-content;
  margin-top: 16px;
  text-decoration: none;
}

.video-grid--home-compact {
  grid-template-columns: minmax(0, 860px);
}

.video-carousel {
  width: 100%;
}

.video-carousel__viewport {
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, rgb(14 20 31 / 96%), rgb(5 9 17 / 98%));
  box-shadow: 0 22px 70px rgb(0 0 0 / 24%);
}

.video-carousel__slide[hidden] {
  display: none;
}

.video-carousel__slide.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
}

.video-carousel__preview {
  width: 100%;
  padding: 0;
  border: 0;
  aspect-ratio: 16 / 9;
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 50% 50%, #182035, #03060c);
  cursor: pointer;
}

.video-carousel__preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(1.05) saturate(1.04);
  transition: transform 220ms ease, filter 220ms ease;
}

.video-carousel__preview::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 60%, rgb(1 5 12 / 54%));
}

.video-carousel__preview:hover img {
  filter: brightness(1.1) saturate(1.06);
  transform: scale(1.012);
}

.video-carousel__preview:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

.video-carousel__play {
  width: 66px;
  height: 66px;
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-left: 4px;
  color: #fff;
  background: linear-gradient(135deg, rgb(255 122 75 / 92%), rgb(220 59 139 / 92%) 55%, rgb(122 43 238 / 94%));
  box-shadow: 0 14px 44px rgb(124 37 210 / 38%);
  transform: translate(-50%, -50%);
}

.video-carousel__body {
  min-height: 126px;
  padding: 20px 24px 22px;
  align-self: center;
}

.video-carousel__body h3 {
  margin-bottom: 8px;
}

.video-carousel__body > p:last-child:not(.video-card__type) {
  margin: 0;
  color: var(--muted);
}

.video-carousel__controls {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.video-carousel__arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  color: #fff;
  background: rgb(8 13 22 / 90%);
  cursor: pointer;
}

.video-carousel__arrow:hover,
.video-carousel__arrow:focus-visible {
  border-color: rgb(233 75 143 / 66%);
}

.video-carousel__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-carousel__dot {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  position: relative;
  background: transparent;
  cursor: pointer;
}

.video-carousel__dot::before {
  width: 8px;
  height: 8px;
  position: absolute;
  inset: 50% auto auto 50%;
  border-radius: 50%;
  content: "";
  background: rgb(255 255 255 / 30%);
  transform: translate(-50%, -50%);
}

.video-carousel__dot.is-active::before {
  width: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff794b, #e74888, #852cf0);
}

.video-review-dialog {
  width: min(calc(100% - 30px), 1040px);
  max-width: none;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 18px;
  color: #fff;
  background: #050a13;
  box-shadow: 0 30px 100px rgb(0 0 0 / 65%);
}

.video-review-dialog::backdrop {
  background: rgb(1 5 12 / 86%);
  backdrop-filter: blur(9px);
}

.video-review-dialog__surface {
  position: relative;
  padding: 62px 18px 18px;
}

.video-review-dialog__surface h2 {
  margin: 0 58px 18px 4px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.video-review-dialog__close {
  width: 44px;
  height: 44px;
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  color: #fff;
  background: #080d16;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

html:has(.video-review-dialog[open]),
body:has(.video-review-dialog[open]) {
  overflow: hidden;
}

.brief-hero {
  padding: clamp(72px, 8vw, 132px) 0 clamp(54px, 6vw, 96px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 20%, rgb(121 41 224 / 22%), transparent 31rem),
    linear-gradient(135deg, #02070f, #080c17 58%, #040814);
}

.brief-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .55fr);
  align-items: end;
  gap: clamp(40px, 7vw, 110px);
}

.brief-hero h1 {
  max-width: 900px;
  margin: 12px 0 20px;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.brief-hero__layout > div > p:not(.kicker) {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 20px);
}

.brief-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.brief-points li {
  display: grid;
  gap: 7px;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / 16%);
}

.brief-points strong {
  color: #fff;
  font-size: 14px;
}

.brief-points span,
.brief-hero__aside p,
.brief-help p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.brief-hero__aside {
  padding: 26px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 16px;
  background: rgb(8 13 22 / 84%);
}

.brief-hero__aside .button {
  width: 100%;
  margin-top: 12px;
}

.brief-quiz-section {
  background: radial-gradient(circle at 18% 42%, rgb(232 76 142 / 9%), transparent 32rem);
}

.brief-quiz-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  align-items: start;
  gap: clamp(34px, 6vw, 90px);
}

.quiz--detailed {
  min-height: 620px;
}

.brief-help {
  position: sticky;
  top: 118px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgb(8 13 22 / 80%);
}

.brief-help h2 {
  font-size: clamp(24px, 3vw, 34px);
}

@media (max-width: 1050px) {
  .quick-estimate-shell,
  .checklist-panel,
  .brief-hero__layout,
  .brief-quiz-shell {
    grid-template-columns: 1fr;
  }

  .brief-help {
    position: static;
  }

  .budget-factors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .checklist-panel {
    grid-template-columns: 1fr;
  }

  .checklist-form {
    padding: 22px;
  }

  .checklist-form .button,
  .form-download {
    width: 100%;
  }
  .callback-form__fields,
  .budget-panel__intro,
  .home-articles-grid,
  .brief-points {
    grid-template-columns: 1fr;
  }

  .budget-factors {
    grid-template-columns: 1fr;
  }

  .budget-factors li {
    min-height: 0;
  }

  .budget-panel .button-row,
  .brief-hero__aside .button {
    width: 100%;
  }

  .brief-hero {
    padding-top: 46px;
  }

  .brief-hero h1 {
    font-size: clamp(39px, 12vw, 58px);
  }

  .quiz--quick,
  .quiz--detailed {
    min-height: 0;
  }

  .quick-estimate-actions,
  .quick-estimate-actions .button {
    width: 100%;
  }

  .video-carousel__body {
    min-height: 0;
    padding: 17px 18px 19px;
  }

  .video-carousel__slide.is-active {
    grid-template-columns: 1fr;
  }

  .video-carousel__play {
    width: 56px;
    height: 56px;
  }

  .video-review-dialog__surface {
    padding: 56px 10px 10px;
  }
}

@media (min-width: 1761px) {
  .brief-hero__layout,
  .brief-quiz-shell,
  .quick-estimate-shell {
    width: min(calc(100% - 96px), 1600px);
  }
}
