:root {
  --bg: #090807;
  --white: #fff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.3);
  --gold: #e8b66e;
  --gold-deep: #bd7d35;
  --green: #2c8d61;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--white);
  background: var(--bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.site-shell { min-height: 100dvh; }
.page-width { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }

.hero, .quiz {
  position: relative;
  min-height: 100dvh;
  isolation: isolate;
  overflow: hidden;
}

.hero__backdrop, .quiz__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/interior-clean.jpg") center right / cover no-repeat;
}

.hero__backdrop::after, .quiz__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.82) 35%, rgba(0,0,0,.20) 78%, rgba(0,0,0,.08) 100%),
    linear-gradient(0deg, rgba(0,0,0,.48) 0%, transparent 48%, rgba(0,0,0,.18) 100%);
}

.hero__content { padding: 28px 0 52px; }
.brand-row, .quiz__header { display: flex; align-items: center; justify-content: space-between; }
.brand { display: block; width: 180px; height: auto; mix-blend-mode: screen; }
.brand-row__note { display: flex; align-items: center; gap: 10px; margin: 0; color: rgba(255,255,255,.8); font-size: 14px; }
.brand-row__note span { width: 8px; height: 8px; border-radius: 50%; background: #55ba73; box-shadow: 0 0 0 5px rgba(85,186,115,.16); }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 70px; align-items: center; margin-top: 26px; }
.hero__copy { max-width: 720px; }
.eyebrow { display: inline-flex; margin: 0 0 24px; padding: 11px 18px; border-radius: 12px; color: #14100b; background: linear-gradient(110deg, #edc786, #d99e58); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.hero h1 { max-width: 700px; margin: 0; font-size: clamp(40px, 5.2vw, 68px); line-height: .99; letter-spacing: -.045em; text-wrap: balance; }
.hero__subtitle { margin: 18px 0 0; font-size: clamp(19px, 2vw, 25px); color: var(--muted); }
.hero__price { margin: 28px 0 0; color: var(--gold); font-size: clamp(30px, 3.2vw, 44px); line-height: 1; font-weight: 800; }
.hero__price-note { margin: 8px 0 0; font-size: 18px; color: rgba(255,255,255,.82); }

.benefits { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 28px; margin: 30px 0; padding: 0; list-style: none; }
.benefits li { display: flex; align-items: center; gap: 13px; color: rgba(255,255,255,.9); font-size: 15px; line-height: 1.35; }
.benefit-icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border: 1.5px solid var(--gold); border-radius: 12px; color: var(--gold); font-weight: 800; }

.hero__action > p { margin: 0 0 18px; max-width: 500px; font-size: 19px; line-height: 1.45; }
.hero__action > p strong { color: var(--gold); }
.hero__action small { display: block; margin-top: 10px; color: rgba(255,255,255,.55); font-size: 13px; }
.button { border: 0; border-radius: 18px; cursor: pointer; font-weight: 800; transition: transform .2s var(--ease), box-shadow .2s var(--ease), opacity .2s; }
.button:focus-visible, .icon-button:focus-visible, .option:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.button--gold { min-width: 310px; padding: 20px 26px; color: #17110b; background: linear-gradient(110deg, #ecc887, #dca45f); box-shadow: 0 16px 40px rgba(192,126,50,.25); font-size: 20px; text-transform: uppercase; }
.button--gold span { display: inline-block; margin-left: 14px; transition: transform .2s; }
.button--gold:hover span { transform: translateX(5px); }

.result-preview {
  position: relative;
  align-self: end;
  min-height: 610px;
  padding: 28px 22px;
  color: #17211c;
  background: linear-gradient(145deg, rgba(245,249,245,.96), rgba(221,231,222,.92));
  border: 8px solid #252726;
  border-radius: 46px;
  box-shadow: 0 32px 80px rgba(0,0,0,.45);
  transform: rotate(2deg);
}
.result-preview::after { content: ""; position: absolute; top: 10px; left: 50%; width: 95px; height: 20px; border-radius: 14px; background: #151716; transform: translateX(-50%); }
.result-preview__top { display: flex; align-items: center; gap: 10px; padding: 18px 2px 12px; border-bottom: 1px solid rgba(0,0,0,.08); }
.result-preview__top strong, .result-preview__top small { display: block; }
.result-preview__top small { color: #6c746f; font-size: 11px; }
.result-preview__top i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #4dae73; }
.result-preview__time { margin-left: auto; font-size: 12px; color: #69706c; }
.manager-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: #346e52; font-family: Georgia, serif; font-size: 22px; }
.message-bubble, .product-card { margin-top: 12px; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.88); box-shadow: 0 8px 24px rgba(27,51,36,.08); }
.message-bubble p { margin: 5px 0; font-size: 13px; line-height: 1.35; }
.message-bubble__title { font-size: 15px !important; font-weight: 800; }
.message-bubble__title span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: white; background: var(--green); }
.product-card h2 { margin: 0 0 11px; font-size: 16px; }
.product-row { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(0,0,0,.06); }
.product-row p { margin: 0; font-size: 11px; line-height: 1.25; }
.swatch { display: block; flex: 0 0 82px; width: 82px; height: 67px; border: 1px solid rgba(32,36,33,.08); border-radius: 9px; object-fit: cover; object-position: center; box-shadow: 0 5px 12px rgba(23,33,27,.12); }
.swatch--room { object-position: center 76%; }
.product-total { display: flex; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(0,0,0,.12); font-size: 11px; }

.quiz[hidden] { display: none; }
.quiz { min-height: 100dvh; }
.quiz__backdrop::after { background: linear-gradient(90deg, rgba(0,0,0,.96) 0%, rgba(0,0,0,.86) 48%, rgba(0,0,0,.36) 100%), linear-gradient(0deg, rgba(0,0,0,.48), transparent 50%); }
.quiz__frame { display: grid; grid-template-rows: auto auto 1fr auto; min-height: 100dvh; padding-block: 22px 26px; }
.brand--quiz { width: 150px; }
.icon-button { display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; color: #fff; background: rgba(255,255,255,.08); cursor: pointer; font-size: 42px; font-weight: 200; line-height: 1; }
.icon-button:hover { background: rgba(255,255,255,.16); }
.progress { position: relative; margin-top: 34px; padding-top: 48px; }
.progress__track { position: relative; height: 4px; background: rgba(255,255,255,.28); }
.progress__track span { display: block; width: 0; height: 100%; background: #fff; transition: width .45s var(--ease); }
.progress__bubble { position: absolute; top: 0; left: 0; min-width: 62px; padding: 10px 11px; color: #111; background: #fff; border-radius: 10px; font-size: 20px; font-weight: 800; text-align: center; transform: translateX(-4%); transition: left .45s var(--ease), transform .45s var(--ease); }
.progress__bubble::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 18px; height: 18px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }

.quiz__body { display: flex; align-items: center; padding: 30px 0 24px; }
.step { width: min(820px, 100%); animation: enter .35s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.step__count { margin: 0 0 8px; color: var(--gold); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.step__title { margin: 0 0 28px; max-width: 850px; font-size: clamp(38px, 5vw, 64px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.step__title:focus { outline: none; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; border: 0; }
.option { position: relative; display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 14px 18px; border: 1px solid rgba(255,255,255,.24); border-radius: 17px; color: rgba(255,255,255,.86); background: rgba(10,10,10,.34); cursor: pointer; font-size: 19px; transition: background .2s, border-color .2s, transform .2s; backdrop-filter: blur(8px); }
.option:hover { border-color: rgba(255,255,255,.6); transform: translateY(-1px); }
.option:has(input:checked) { color: #fff; border-color: var(--gold); background: rgba(209,147,78,.16); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option__radio { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border: 2px solid #fff; border-radius: 50%; }
.option__radio::after { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .2s var(--ease); }
.option input:checked + .option__radio::after { transform: scale(1); }

.phone-step { width: min(800px, 100%); }
.phone-step .step__title { margin-bottom: 18px; }
.step__lead { max-width: 720px; margin: 0 0 28px; color: var(--muted); font-size: 20px; line-height: 1.5; }
.phone-field { display: block; }
.phone-field__label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.phone-input-shell { display: flex; align-items: center; width: min(650px, 100%); height: 84px; padding-left: 24px; border: 2px solid transparent; border-radius: 18px; color: #121212; background: #fff; transition: border-color .2s, box-shadow .2s; }
.phone-input-shell:focus-within { border-color: var(--gold); box-shadow: 0 0 0 5px rgba(232,182,110,.2); }
.phone-input-shell .phone-prefix { display: block; flex: 0 0 auto; margin: 0; font-size: clamp(26px, 4vw, 38px); font-weight: 500; letter-spacing: .03em; }
.phone-field input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0 24px 0 10px; border: 0; border-radius: 0 18px 18px 0; color: #121212; background: transparent; font-size: clamp(26px, 4vw, 38px); letter-spacing: .03em; outline: none; }
.phone-field input::placeholder { color: #888; opacity: 1; }
.field-error { min-height: 22px; margin: 8px 0 0; color: #ff9999; font-size: 14px; }
.consent { display: flex; align-items: flex-start; gap: 10px; max-width: 650px; margin-top: 14px; color: rgba(255,255,255,.66); font-size: 13px; line-height: 1.4; cursor: pointer; }
.consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--gold-deep); }

.success-step { width: min(900px, 100%); }
.success-step .step__title { margin-bottom: 16px; }
.summary { max-width: 760px; margin: 26px 0 0; padding: 24px; border: 1px solid rgba(255,255,255,.24); border-radius: 20px; background: rgba(13,10,8,.56); backdrop-filter: blur(12px); }
.summary h3 { margin: 0 0 16px; color: var(--gold); font-size: 20px; }
.summary__row { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.summary__row + .summary__row { border-top: 1px solid rgba(255,255,255,.09); }
.summary__icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid #fff; border-radius: 50%; font-size: 15px; }
.summary__row p { margin: 0; color: rgba(255,255,255,.8); font-size: 16px; }
.summary__row strong { color: #fff; }
.success-note { margin: 22px 0 0; font-size: 18px; }

.quiz__footer { display: grid; grid-template-columns: 84px minmax(220px, 580px); gap: 16px; width: min(820px, 100%); }
.button--back { min-height: 70px; color: #fff; background: rgba(255,255,255,.12); font-size: 34px; }
.button--light { min-height: 70px; color: #111; background: #fff; font-size: 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .page-width { width: min(100% - 40px, 760px); }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .result-preview { width: min(390px, 92%); min-height: 590px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .page-width { width: calc(100% - 36px); }
  .hero { overflow: visible; }
  .hero__backdrop, .quiz__backdrop { position: fixed; background-position: 61% center; }
  .hero__backdrop::after { background: linear-gradient(90deg, rgba(0,0,0,.96), rgba(0,0,0,.46)), linear-gradient(0deg, rgba(0,0,0,.74), rgba(0,0,0,.06) 72%); }
  .hero__content { padding-top: max(14px, env(safe-area-inset-top)); }
  .brand { width: 132px; }
  .brand-row__note { display: none; }
  .hero__grid { margin-top: 16px; }
  .eyebrow { margin-bottom: 20px; padding: 9px 13px; border-radius: 10px; font-size: 12px; }
  .hero h1 { font-size: clamp(36px, 11.8vw, 54px); line-height: 1.03; }
  .hero__subtitle { font-size: 18px; line-height: 1.35; }
  .hero__price { margin-top: 23px; font-size: 32px; }
  .hero__price-note { font-size: 16px; }
  .benefits { grid-template-columns: 1fr; gap: 14px; margin: 26px 0; }
  .benefits li { font-size: 15px; }
  .benefit-icon { flex-basis: 38px; width: 38px; height: 38px; border-radius: 10px; }
  .hero__action > p { font-size: 17px; }
  .button--gold { width: 100%; min-width: 0; padding: 19px 14px; font-size: 18px; }
  .result-preview { display: none; }

  .quiz { overflow: auto; }
  .quiz__frame { grid-template-rows: auto auto 1fr auto; padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .brand--quiz { width: 128px; }
  .icon-button { width: 44px; height: 44px; font-size: 34px; background: transparent; }
  .progress { margin-top: 20px; padding-top: 42px; }
  .progress__bubble { min-width: 52px; padding: 8px; font-size: 17px; }
  .quiz__body { align-items: flex-start; padding: 42px 0 24px; }
  .step__count { display: none; }
  .step__title { margin-bottom: 24px; font-size: clamp(34px, 10.3vw, 46px); line-height: 1.08; }
  .options { grid-template-columns: 1fr; gap: 10px; }
  .option { min-height: 63px; padding: 11px 12px; border-color: transparent; background: transparent; font-size: 18px; backdrop-filter: none; }
  .option:hover { transform: none; }
  .option:has(input:checked) { border-color: rgba(232,182,110,.42); background: rgba(232,182,110,.09); }
  .option__radio { flex-basis: 32px; width: 32px; height: 32px; }
  .step__lead { font-size: 17px; }
  .phone-input-shell { height: 72px; padding-left: 18px; }
  .phone-input-shell .phone-prefix, .phone-field input { font-size: 25px; }
  .phone-field input { padding: 0 14px 0 8px; }
  .summary { margin-top: 20px; padding: 16px; }
  .summary__row { align-items: flex-start; gap: 10px; }
  .summary__row p { font-size: 15px; line-height: 1.4; }
  .quiz__footer { position: sticky; bottom: 0; grid-template-columns: 62px 1fr; gap: 10px; padding-top: 10px; background: linear-gradient(0deg, #090807 20%, rgba(9,8,7,.93) 65%, transparent); }
  .button--back, .button--light { min-height: 60px; border-radius: 15px; }
  .button--back { font-size: 28px; }
  .button--light { font-size: 20px; }
}

@media (max-height: 720px) and (min-width: 641px) {
  .quiz__body { padding-block: 20px; }
  .step__title { margin-bottom: 18px; font-size: 42px; }
  .option { min-height: 60px; }
  .progress { margin-top: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
