/* Стили квиза. Вынесены из quiz.html (строгая CSP). */
/* Manrope — свой файл, без Google Fonts: нет сторонних запросов, IP посетителей не уходит за границу (лицензия OFL) */
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-cyrillic.woff2?v=e58febde") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin.woff2?v=938c6e80") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-ext.woff2?v=6d36d5bd") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }   /* здесь знак ₽ */
@font-face { font-family: "Akony"; src: url("../fonts/AKONY.woff2?v=7ddb511f") format("woff2"), url("../fonts/AKONY.woff?v=ad728d18") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
:root {
  --bg: #07080b; --bg-2: #0d0f14; --line: #1c2028; --text: #f4efe7; --muted: #8b8f98;
  --neon-core: #fff3dd; --neon: #ffc070; --cream: #ffe9c9;
  --glow: 0 0 2px var(--neon-core), 0 0 8px var(--neon), 0 0 22px rgba(255,154,46,.55), 0 0 48px rgba(255,154,46,.25);
  --soft-glow: 0 0 14px rgba(255,170,80,.18);
  --display: "Akony", "Manrope", sans-serif; --body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.22,.7,.2,1);
  --gutter: clamp(16px, 4.5vw, 120px); --radius: clamp(18px, 1.6vw, 32px); --fs-small: clamp(12px, .78vw, 15px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
[hidden] { display: none !important; }   /* скрытое скрывается всегда, даже у кнопок с display */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: radial-gradient(80% 60% at 75% 0%, #101827 0%, var(--bg) 60%); color: var(--text); font-family: var(--body); font-size: clamp(15px, .95vw, 19px); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.wrap { width: 100%; padding-inline: var(--gutter); }

/* шапка */
.q-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: clamp(16px, 2vw, 32px); }
/* логотип DECORPITER: знак и надпись — контуры из фирменного PDF (source/brand), менять только цвет и размер */
.logo { display: inline-flex; align-items: center; gap: .6em; font-size: clamp(13px, 1.1vw, 22px); line-height: 1; color: var(--text); white-space: nowrap; }
.logo svg, .foot-logo svg { display: block; flex: none; fill: currentColor; }
.logo .logo-mark, .foot-logo .logo-mark { height: 1.95em; width: auto; aspect-ratio: 60.83 / 37.35; fill: #DA7747; filter: drop-shadow(0 0 7px rgba(255,154,46,.38)); }
.logo-word { height: .82em; width: auto; aspect-ratio: 151.79 / 16.40; }
.logo-sub { margin-left: .2em; padding-left: .85em; border-left: 1px solid rgba(255,255,255,.2); font-family: var(--body); font-weight: 600; font-size: .68em; letter-spacing: .26em; text-transform: uppercase; line-height: 1.7; color: var(--neon); text-shadow: 0 0 10px rgba(255,154,46,.45); }
.q-head-r { display: flex; align-items: center; gap: clamp(12px, 2vw, 32px); }
.tel { display: inline-flex; align-items: center; gap: .5em; color: var(--cream); font-weight: 600; white-space: nowrap; transition: text-shadow .3s; }
.tel svg { width: 1.05em; height: 1.05em; }
.tel:hover { text-shadow: 0 0 12px rgba(255,170,80,.5); }
.q-close { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); font-size: 22px; transition: color .25s, border-color .25s; }
.q-close:hover { color: var(--text); border-color: rgba(255,233,201,.5); }

/* раскладка */
.q-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 96px); align-items: start; padding-block: clamp(12px, 3vw, 56px) clamp(32px, 5vw, 96px); }
.q-card { position: relative; padding: clamp(24px, 3vw, 56px); border-radius: var(--radius); background: linear-gradient(180deg, #11131a, #0a0b0f); border: 1px solid rgba(255,233,201,.18); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.q-kicker { font-size: var(--fs-small); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

/* прогресс — неоновая лента */
.q-progress { position: relative; height: 3px; margin: 14px 0 clamp(24px, 2.4vw, 40px); border-radius: 3px; background: rgba(255,255,255,.08); overflow: visible; }
.q-progress span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: rgba(255,233,201,.85); box-shadow: 0 0 8px rgba(255,170,80,.5), 0 0 20px rgba(255,154,46,.2); transition: width .5s var(--ease); }

.q-title { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 1.9vw, 40px); line-height: 1.12; overflow-wrap: break-word; }
.q-hint { margin-top: 10px; color: var(--muted); font-size: clamp(14px, .95vw, 17px); }
.q-body { animation: qIn .35s var(--ease); }
#qQuestion { min-height: clamp(380px, 30vw, 460px); }   /* одинаковая высота шагов — ничего не прыгает */
@keyframes qIn { from { opacity: 0; transform: translateY(14px); } }

/* варианты ответа: при выборе загорается контур */
.opts { margin-top: clamp(20px, 2vw, 36px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.opt { position: relative; text-align: left; padding: 18px 20px 18px 54px; border-radius: 18px; cursor: pointer; background: #0a0c11; border: 1px solid rgba(255,255,255,.12); transition: border-color .25s, box-shadow .25s, background .25s, transform .15s; }
.opt:hover { border-color: rgba(255,233,201,.4); }
.opt:active { transform: scale(.985); }
.opt b { display: block; font-weight: 600; font-size: clamp(15px, 1.05vw, 19px); color: var(--text); }
.opt span { display: block; margin-top: 2px; color: var(--muted); font-size: clamp(13px, .85vw, 15px); }
.opt::before { content: ""; position: absolute; left: 20px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3); transition: border-color .25s, box-shadow .25s, background .25s; }
.opt.multi::before { border-radius: 5px; }
.opt[aria-pressed="true"] { border-color: rgba(255,233,201,.8); background: #12110e; box-shadow: var(--soft-glow), inset 0 0 18px rgba(255,170,80,.06); }
.opt[aria-pressed="true"]::before { border-color: var(--cream); background: radial-gradient(circle, var(--cream) 0 38%, transparent 42%); box-shadow: 0 0 8px rgba(255,170,80,.6); }
.opt.multi[aria-pressed="true"]::before { background: var(--cream); }
.opt:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }

#qNext { margin-left: auto; }
.q-nav { margin-top: clamp(24px, 2.4vw, 40px); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: 1em 1.7em; border-radius: 999px; font: 500 clamp(15px, 1vw, 18px)/1.2 var(--body); cursor: pointer; background: transparent; transition: box-shadow .4s var(--ease), border-color .4s, color .4s, opacity .3s; }
.btn-primary { color: var(--cream); border: 1px solid rgba(255,233,201,.7); text-shadow: 0 0 14px rgba(255,170,80,.28); box-shadow: 0 0 14px rgba(255,170,80,.18), inset 0 0 10px rgba(255,170,80,.08); }
.btn-ghost { color: var(--text); border: 1px solid rgba(255,255,255,.22); }
.btn-primary:hover, .btn-ghost:hover { border-color: var(--neon); color: var(--neon-core); box-shadow: var(--glow), inset 0 0 12px rgba(255,154,46,.2); }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn-link { border: 0; padding-inline: 0; color: var(--muted); }
.btn-link:hover { color: var(--text); box-shadow: none; }

/* итог и форма */
.est { margin-top: clamp(16px, 1.6vw, 28px); padding: 18px 20px; border-radius: 18px; border: 1px dashed rgba(255,192,112,.45); }
.est-label { font-size: var(--fs-small); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.est-sum { margin-top: 4px; font-family: var(--display); font-size: clamp(22px, 2.2vw, 44px); line-height: 1.1; color: var(--cream); text-shadow: 0 0 14px rgba(255,170,80,.28); }
.est-note { margin-top: 6px; color: var(--muted); font-size: var(--fs-small); }
.grid2 { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fld > span, .chips legend { display: block; margin-bottom: 6px; font-size: var(--fs-small); color: var(--muted); }
.fld.wide { grid-column: 1 / -1; }
.fld input { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #07080b; color: var(--text); font: inherit; font-size: 16px; transition: border-color .25s, box-shadow .25s; }
.fld input::placeholder { color: #565a63; }
.fld input:focus { outline: none; border-color: rgba(255,233,201,.7); box-shadow: 0 0 0 3px rgba(255,170,80,.14); }
.fld input[aria-invalid="true"] { border-color: #ff8a7a; }
.chips { border: 0; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); color: #cfcac2; font-size: clamp(14px, .9vw, 16px); transition: border-color .25s, color .25s, box-shadow .25s; }
.chip input:checked + span { border-color: rgba(255,233,201,.75); color: var(--cream); box-shadow: 0 0 12px rgba(255,170,80,.2); }
.chip input:focus-visible + span { outline: 2px solid var(--neon); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { margin-top: 18px; display: flex; gap: 10px; align-items: flex-start; color: #a7a39c; font-size: var(--fs-small); line-height: 1.5; cursor: pointer; }
.consent input { margin-top: 2px; width: 18px; height: 18px; flex-shrink: 0; accent-color: #ffc070; }
.consent a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.q-error { margin-top: 14px; color: #ff9a8b; }
.q-submit { margin-top: 20px; width: 100%; }
.q-safe { margin-top: 12px; color: var(--muted); font-size: var(--fs-small); text-align: center; }
.q-done { text-align: center; padding-block: clamp(16px, 3vw, 48px); }
.q-done .q-title { margin-top: 10px; }
.q-done .btn { margin-top: 24px; }

/* схема дома справа — загорается по ответам */
.q-side { position: sticky; top: clamp(16px, 3vw, 48px); }
.q-side .q-kicker { margin-bottom: 14px; }
.schema { width: 100%; height: auto; }
.schema .base { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 2; stroke-linejoin: round; }
.schema .neon { fill: none; stroke: var(--neon-core); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 3px var(--neon)) drop-shadow(0 0 10px rgba(255,154,46,.6)); transition: stroke-dashoffset .6s var(--ease); }
.schema .bol { fill: rgba(255,255,255,.14); transition: fill .3s, filter .3s; }
.schema .bol.on { fill: var(--neon-core); filter: drop-shadow(0 0 4px var(--neon)) drop-shadow(0 0 10px rgba(255,154,46,.6)); }
.side-sum { margin-top: 18px; }
.side-sum .est-sum { font-size: clamp(20px, 1.8vw, 38px); }
.demo-badge { display: inline-block; margin-top: 12px; padding: 5px 12px; border: 1px dashed rgba(255,192,112,.5); border-radius: 999px; font-size: var(--fs-small); color: var(--neon); }

.q-foot { padding-block: 20px 28px; color: var(--muted); font-size: var(--fs-small); border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .q-main { grid-template-columns: minmax(0, 1fr); }
  .q-side { display: none; }
}
@media (max-width: 560px) {
  .grid2 { grid-template-columns: 1fr; }
  .opts { grid-template-columns: minmax(0, 1fr); }
  #qQuestion { min-height: 470px; }
  .q-title { font-size: clamp(16px, 4.9vw, 22px); }
  .est-sum { font-size: clamp(18px, 5.6vw, 26px); }
  .q-head .tel span { display: none; }   /* на телефоне — только значок трубки */
  .q-head .tel { width: 44px; height: 44px; justify-content: center; border-radius: 50%; border: 1px solid rgba(255,233,201,.38); }
  .opt { padding-block: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
}

/* шаг «адрес»: поле ввода + быстрые кнопки популярных мест */
.q-text { display: block; margin-top: clamp(20px, 2vw, 36px); }
.q-text input { font-size: 17px; padding: 16px 18px; }
.quick { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.quick-chip { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: #cfcac2; font: inherit; font-size: clamp(13px, .9vw, 15px); cursor: pointer; transition: border-color .25s, color .25s; }
.quick-chip:hover, .quick-chip:focus-visible { outline: none; border-color: rgba(255,233,201,.7); color: var(--cream); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
