@font-face { font-family: "Playfair"; font-weight: 700 900; font-style: normal; font-display: swap; src: url(https://bb0537bc-7041-4dcb-948e-d68ec43ede0a.selstorage.ru/p/7b832e7b0adf8ddb51c1a19dd0e846ca/77acb4557140c06e172986a056e84e13-vYSZviVYUb_rj3ij__anPXDTjYgFE_.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair"; font-weight: 700 900; font-style: normal; font-display: swap; src: url(https://bb0537bc-7041-4dcb-948e-d68ec43ede0a.selstorage.ru/p/7b832e7b0adf8ddb51c1a19dd0e846ca/d62397160f77926b27594c23d597d276-vYSZviVYUb_rj3ij__anPXDTzYgA.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Playfair"; font-weight: 400 600; font-style: italic; font-display: swap; src: url(https://bb0537bc-7041-4dcb-948e-d68ec43ede0a.selstorage.ru/p/7b832e7b0adf8ddb51c1a19dd0e846ca/88760f837b47dcdbe4c42d0ec349bf93-vYSZviVYUb_rj3ij__anPXDTnCjmHKM4nYO7KN_pqTXtXA-W2r.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair"; font-weight: 400 600; font-style: italic; font-display: swap; src: url(https://bb0537bc-7041-4dcb-948e-d68ec43ede0a.selstorage.ru/p/7b832e7b0adf8ddb51c1a19dd0e846ca/6e67256c17cdb55dfd41c0982b06c860-vYSZviVYUb_rj3ij__anPXDTnCjmHKM4nYO7KN_pqTXtHA-Q.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url(https://bb0537bc-7041-4dcb-948e-d68ec43ede0a.selstorage.ru/p/7b832e7b0adf8ddb51c1a19dd0e846ca/d7873db300fbb3c68a31435370e469a1-xn7gYHE41ni1AdIRggOxSuXd.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url(https://bb0537bc-7041-4dcb-948e-d68ec43ede0a.selstorage.ru/p/7b832e7b0adf8ddb51c1a19dd0e846ca/678ca12f61f75431be11a594e581fa62-xn7gYHE41ni1AdIRggexSg.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }

:root {
  --bg: #08080a;
  --ink: #f3efe6;
  --muted: #9c978c;
  --line: rgba(243, 239, 230, .12);
  --panel: rgba(20, 19, 22, .72);
  --g1: #d4af37;
  --g2: #f3d98a;
  --serif: "Playfair", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body { font-family: "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* Фон: свечение акцентного цвета, виньетка и плёночное зерно */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 80% at 50% -10%, color-mix(in srgb, var(--g1) 22%, transparent), transparent 60%), radial-gradient(90% 60% at 100% 110%, color-mix(in srgb, var(--g2) 12%, transparent), transparent 60%), var(--bg); transition: background 1s; }
.bg::after { content: ""; position: absolute; inset: -50%; opacity: .07; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1s steps(4) infinite; }
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, 3%); } }

#app { max-width: 640px; margin: 0 auto; padding: 20px 18px calc(36px + env(safe-area-inset-bottom)); }
.screen { animation: in .7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes in { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.accent { background: linear-gradient(100deg, var(--g1), var(--g2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--g1); }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; padding: 16px 24px; border: 0; border-radius: 4px; font: inherit; font-weight: 800; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; color: #0b0a08; text-decoration: none; background: linear-gradient(100deg, var(--g1), var(--g2)); box-shadow: 0 0 40px color-mix(in srgb, var(--g1) 35%, transparent); transition: transform .15s, box-shadow .3s; }
.btn:active { transform: scale(.985); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn-row { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 520px) { .btn-row.two { grid-template-columns: 1fr 1fr; } }

/* ---------- Старт ---------- */
.intro { text-align: center; }
.reel { position: relative; margin: -20px -18px 0; height: 62vh; max-height: 560px; min-height: 380px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 40%, transparent 88%); mask-image: linear-gradient(#000 40%, transparent 88%); }
.reel-track { display: flex; gap: 10px; height: 100%; width: max-content; animation: reel 60s linear infinite; }
.reel img { height: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.9) contrast(1.05); }
@keyframes reel { to { transform: translateX(-50%); } }
.intro-text { position: relative; margin-top: -40px; }
.intro h1 { font-size: clamp(38px, 11vw, 64px); font-weight: 900; margin: 14px 0 0; text-shadow: 0 4px 40px rgba(0,0,0,.8); }
.intro h1 em { font-style: italic; font-weight: 500; display: block; }
.intro p { color: var(--muted); font-size: 16px; margin: 18px auto 28px; max-width: 460px; }
.facts { display: flex; justify-content: center; gap: 0; margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; }
.facts span { flex: 1; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts span + span { border-left: 1px solid var(--line); }
.facts b { display: block; font-family: var(--serif); font-size: 28px; color: var(--ink); letter-spacing: 0; text-transform: none; }

/* ---------- Вопрос ---------- */
.top { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.back { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 18px; cursor: pointer; color: var(--ink); }
.back[disabled] { visibility: hidden; }
.progress { flex: 1; height: 2px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--g1), var(--g2)); box-shadow: 0 0 12px var(--g1); transition: width .5s; }
.count { flex: none; font-size: 13px; letter-spacing: .12em; color: var(--muted); }
.count b { color: var(--ink); }
.qnum { display: block; font-family: var(--serif); font-size: 72px; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--g1) 70%, transparent); margin: 0 0 14px; }
.question h2 { font-size: clamp(25px, 7vw, 34px); margin: 0 0 26px; }
.opts { display: grid; gap: 10px; }
.opt { position: relative; text-align: left; width: 100%; padding: 18px 18px 18px 56px; border-radius: 4px; border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: inherit; font-size: 16px; line-height: 1.45; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .3s, transform .15s; }
.opt::before { content: attr(data-l); position: absolute; left: 18px; top: 17px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--g1); }
@media (hover: hover) { .opt:hover { border-color: color-mix(in srgb, var(--g1) 50%, transparent); } }
.opt:active { transform: scale(.99); }
.opt.sel { border-color: var(--g1); background: color-mix(in srgb, var(--g1) 14%, var(--panel)); box-shadow: 0 0 30px color-mix(in srgb, var(--g1) 30%, transparent), inset 0 0 0 1px var(--g1); }

/* ---------- Форма ---------- */
.lead { text-align: center; padding-top: 10px; }
.lead-teaser { position: relative; width: 170px; margin: 0 auto 26px; }
.lead-teaser img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: blur(14px) brightness(.8); border-radius: 2px; }
.lead-teaser::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 72px; font-style: italic; color: var(--g2); text-shadow: 0 0 30px var(--g1); }
.lead h2 { font-size: 34px; margin: 10px 0 10px; }
.lead p { color: var(--muted); margin: 0 auto 26px; max-width: 420px; }
.field { display: block; margin-bottom: 14px; text-align: left; }
.field span { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input { width: 100%; height: 54px; padding: 0 16px; border-radius: 4px; border: 1px solid var(--line); background: var(--panel); font: inherit; font-size: 16px; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.field input::placeholder { color: #5f5b54; }
.field input:focus { border-color: var(--g1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g1) 20%, transparent); }
.field input.bad { border-color: #e5484d; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 8px 0 14px; cursor: pointer; text-align: left; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--g1); }
.err { color: #ff6b6b; font-size: 14px; min-height: 20px; margin-bottom: 8px; text-align: left; }

/* ---------- Результат ---------- */
.hero-res { position: relative; margin: -20px -18px 0; overflow: hidden; }
.hero-res img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; animation: zoom 14s ease-out both; }
@keyframes zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-res .over { position: absolute; left: 0; right: 0; bottom: 0; padding: 140px 22px 28px; background: linear-gradient(transparent, rgba(8,8,10,.75) 45%, var(--bg)); text-align: center; }
.hero-res h1 { font-size: clamp(48px, 15vw, 84px); font-weight: 900; margin: 10px 0 10px; text-shadow: 0 4px 40px rgba(0,0,0,.9); }
.hero-res .motto { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--g2); }
.hi { color: var(--muted); font-size: 14px; letter-spacing: .04em; }
.sec { margin-top: 14px; padding: 24px 22px; border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 4px; }
.sec h3 { font-size: 24px; margin-bottom: 16px; display: flex; align-items: baseline; gap: 12px; }
.sec h3 .no { font-family: "Manrope", sans-serif; font-size: 11px; letter-spacing: .2em; color: var(--g1); font-weight: 800; }
.sec p { margin: 0; color: #d6d1c6; }
.lead-text { font-size: 17px; }
.list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: #d6d1c6; }
.list li { position: relative; padding-left: 22px; }
.list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 10px; height: 1px; background: var(--g1); box-shadow: 0 0 8px var(--g1); }
.list.risk li::before { background: #ff6b6b; box-shadow: 0 0 8px #ff6b6b; }
.cols { display: grid; gap: 14px; }
@media (min-width: 560px) { .cols { grid-template-columns: 1fr 1fr; } }
.cols { margin-top: 14px; }
.cols .sec { margin-top: 0; }
.sub { font-size: 11px; text-transform: uppercase; letter-spacing: .22em; font-weight: 800; color: var(--muted); margin: 22px 0 10px; }
.sec h3 + .sub { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 12px; border: 1px solid var(--line); border-radius: 2px; font-size: 14px; color: #e6e1d6; }
.palette { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sw i { display: block; aspect-ratio: 1 / 1.2; border-radius: 2px; border: 1px solid var(--line); }
.sw span { display: block; padding-top: 8px; font-size: 11px; color: var(--muted); line-height: 1.3; }
.sw b { display: block; font-size: 12px; color: var(--ink); font-weight: 600; }
.people { display: grid; gap: 0; }
.person { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 20px; }
.person:last-child { border-bottom: 0; }
.person .av { font-family: "Manrope", sans-serif; font-size: 11px; letter-spacing: .15em; color: var(--g1); width: 22px; }
.second { display: flex; gap: 16px; align-items: center; }
.second img { width: 92px; aspect-ratio: 4 / 5; object-fit: cover; flex: none; border-radius: 2px; }
.second b { font-family: var(--serif); font-size: 26px; display: block; font-weight: 700; }
.second em { font-family: var(--serif); color: var(--g2); font-size: 15px; }
.second p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.bars { display: grid; gap: 11px; }
.bar { display: grid; grid-template-columns: 124px 1fr 40px; gap: 12px; align-items: center; font-size: 14px; color: var(--muted); }
.bar.top { color: var(--ink); font-weight: 800; }
.bar .tr { height: 3px; background: var(--line); overflow: hidden; }
.bar .tr i { display: block; height: 100%; width: 0; transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.bar .pc { text-align: right; font-variant-numeric: tabular-nums; }
.cta { margin-top: 14px; padding: 30px 22px; text-align: center; border: 1px solid color-mix(in srgb, var(--g1) 50%, transparent); background: radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--g1) 22%, transparent), transparent 70%), var(--panel); border-radius: 4px; }
.cta h3 { font-size: 26px; margin-bottom: 12px; display: block; }
.cta p { color: #d6d1c6; margin: 0 0 22px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); background: #f3efe6; color: #0b0a08; padding: 12px 18px; border-radius: 4px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .3s; z-index: 10; max-width: 90vw; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
