/* Анкета Yangi Chirchiq — полноэкранная, mobile-first. Токены как на сайте (styles.css). */
@font-face { font-family: 'YC Cond'; src: url('assets/fonts/cond.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'YC Sans'; src: url('assets/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'YC Mono'; src: url('assets/fonts/mono.woff2') format('woff2'); font-weight: 400 500; font-display: swap; }

:root {
	--ink: #121110; --ink-2: #1b1915; --ink-3: #27231d; --paper: #f3eee4; --gold: #edcb6e; --gold-deep: #85661c; --brick: #a8472f;
	--muted-d: #b9ae9a; --line-d: rgba(237, 203, 110, .22);
	--cond: 'YC Cond', 'Arial Narrow', Impact, sans-serif;
	--sans: 'YC Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--mono: 'YC Mono', ui-monospace, Consolas, monospace;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--pad: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 16px/1.5 var(--sans); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

.q { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }

/* Фото: на телефоне — полоса сверху, на ПК — левая половина */
.q__side { position: relative; height: 26vh; height: 26dvh; min-height: 150px; overflow: hidden; }
.q__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.q__side::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,17,16,.15) 0%, rgba(18,17,16,.35) 55%, var(--ink) 100%); }
.q__sideIn { display: none; }

.q__main { position: relative; display: flex; flex-direction: column; margin-top: -18vh; margin-top: -18dvh; z-index: 1; padding: 0 var(--pad) max(14px, env(safe-area-inset-bottom)); }
.q__top { position: fixed; inset: 0 0 auto; z-index: 5; display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 var(--pad);
	background: linear-gradient(180deg, rgba(18,17,16,.75), rgba(18,17,16,0)); }
.q__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px/1 var(--cond); letter-spacing: .06em; text-transform: uppercase; }
.q__topEnd { display: flex; align-items: center; gap: 10px; }
.q__call { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--ink); }
.q__call svg { width: 18px; height: 18px; }
.q__lang { display: flex; border: 1px solid rgba(243,238,228,.3); }
.q__lang button { border: 0; background: none; padding: 9px 10px; font: 500 12px/1 var(--mono); letter-spacing: .06em; color: var(--muted-d); }
.q__lang [aria-pressed="true"] { background: var(--paper); color: var(--ink); }

.q__bar { height: 3px; background: rgba(243,238,228,.14); margin-bottom: 22px; }
.q__bar i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }

.q__stage { flex: 1; display: flex; flex-direction: column; opacity: 0; transform: translateX(calc(var(--dir, 1) * 24px)); }
.q__stage.in { opacity: 1; transform: none; transition: opacity .35s var(--ease), transform .45s var(--ease); }

.q__k { color: var(--gold); margin: 0 0 10px; }
.q__h { margin: 0 0 22px; font: 800 clamp(34px, 10vw, 52px)/.94 var(--cond); text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; padding-top: .1em; }
body[data-step="intro"] .q__h { font-size: clamp(40px, 12.4vw, 64px); }
.q__p { margin: 0 0 24px; color: var(--muted-d); max-width: 46ch; }
.q__list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; color: var(--muted-d); }
.q__list li { display: flex; gap: 12px; align-items: baseline; }
.q__list li::before { content: ''; flex: none; width: 14px; height: 2px; background: var(--gold); transform: translateY(-4px); }

.q__opts { display: grid; gap: 10px; margin-bottom: 18px; }
.q__opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 62px; padding: 12px 16px; text-align: left; font-size: 16.5px; line-height: 1.3;
	background: var(--ink-2); border: 1px solid rgba(243,238,228,.12); transition: border-color .2s, background .2s, transform .2s var(--ease); }
.q__opt:hover { border-color: var(--line-d); }
.q__opt:active { transform: scale(.985); }
.q__let { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(243,238,228,.25); color: var(--muted-d); font-size: 12px; }
.q__opt.is-on { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.q__opt.is-on .q__let { background: var(--ink); color: var(--gold); border-color: var(--ink); }
[role="group"] .q__opt.is-on .q__let::before { content: '✓'; }
[role="group"] .q__opt.is-on .q__let { font-size: 0; }
[role="group"] .q__opt.is-on .q__let::before { font-size: 15px; }

.q__btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 60px; padding: 0 26px; border: 0; text-decoration: none;
	background: var(--gold); color: var(--ink); font: 700 16px/1 var(--sans); letter-spacing: .02em; clip-path: polygon(0 10px, 100% 0, 100% 100%, 0 100%);
	transition: background .25s, transform .25s var(--ease), opacity .25s; }
.q__btn:hover { background: #f6da8d; transform: translateY(-2px); }
.q__btn:disabled { opacity: .35; pointer-events: none; }
.q__btn--line { background: transparent; color: var(--paper); clip-path: none; box-shadow: inset 0 0 0 1px rgba(243,238,228,.35); }
.q__btn--line:hover { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.q__done { display: grid; gap: 10px; }

.q__form { display: grid; gap: 14px; }
.q__form > label { display: grid; gap: 6px; }
.q__form > label > span { color: var(--muted-d); }
.q__form input:not([type="radio"]) { width: 100%; height: 58px; padding: 0 16px; background: var(--ink-2); border: 1px solid rgba(243,238,228,.18); font-size: 18px; outline: 0; border-radius: 0; }
.q__form input:focus { border-color: var(--gold); }
.q__form input[aria-invalid="true"] { border-color: #e0785e; }
.q__form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.q__form legend { color: var(--muted-d); margin-bottom: 8px; padding: 0; width: 100%; }
.q__form fieldset label { flex: 1; position: relative; }
.q__form fieldset input { position: absolute; opacity: 0; }
.q__form fieldset span { display: grid; place-items: center; min-height: 50px; border: 1px solid rgba(243,238,228,.2); font-weight: 600; }
.q__form fieldset input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.q__form fieldset input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.q__err { margin: 0; color: #f09a83; font-size: 14px; }
.q__note { margin: 0; color: var(--muted-d); font-size: 13px; text-align: center; }

.q__foot { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin-top: 14px; }
.q__back { border: 0; background: none; padding: 10px 0; color: var(--muted-d); font-size: 15px; }
.q__back:hover { color: var(--paper); }
.q__count { color: var(--muted-d); margin-left: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ПК: две половины на весь экран */
@media (min-width: 960px) {
	.q { grid-template-columns: minmax(0, 1fr) minmax(520px, 46%); grid-template-rows: none; height: 100vh; height: 100dvh; }
	.q__side { height: auto; min-height: 0; clip-path: polygon(0 0, 100% 0, calc(100% - 70px) 100%, 0 100%); }
	.q__side::after { background: linear-gradient(90deg, rgba(18,17,16,.7) 0%, rgba(18,17,16,.15) 60%), linear-gradient(0deg, rgba(18,17,16,.85) 0%, rgba(18,17,16,0) 45%); }
	.q__sideIn { position: absolute; inset: auto 0 0; z-index: 1; display: block; padding: 0 110px 56px 56px; }
	.q__logo { width: 150px; height: auto; margin-bottom: 36px; }
	.q__facts { list-style: none; margin: 0; padding: 26px 0 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 44px; border-top: 1px solid var(--line-d); }
	.q__facts b { display: block; font: 800 54px/1 var(--cond); color: var(--gold); }
	.q__facts span { font: 500 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted-d); }
	.q__main { margin: 0; overflow-y: auto; padding: 96px 64px 28px 48px; }
	.q__top { position: absolute; inset: 0 0 auto 0; padding: 0 64px 0 48px; background: none; height: 78px; }
	.q__stage { justify-content: center; max-width: 560px; }
	.q__h, body[data-step="intro"] .q__h { font-size: clamp(48px, 4.4vw, 72px); }
	.q__opt { min-height: 66px; font-size: 17px; }
	.q__btn { width: auto; min-width: 240px; align-self: flex-start; }
	.q__done .q__btn { width: 100%; }
	.q__foot { max-width: 560px; }
}
@media (prefers-reduced-motion: reduce) { .q__stage, .q__stage.in, .q__bar i { transition: none; transform: none; } }

/* Ссылка «без вопросов», мелкий Telegram, ловушка для ботов */
.q__skip { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; margin-top: 6px; padding: 0 22px; border: 0; background: transparent; color: var(--gold); font-size: 15px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(237,203,110,.55); transition: background .2s, color .2s; }
.q__skip:hover { background: var(--gold); color: var(--ink); }
@media (min-width: 960px) { .q__skip { width: auto; align-self: flex-start; } }
.q__tg { display: block; margin-top: 4px; padding: 8px 0; color: var(--muted-d); font-size: 14px; text-align: center; text-underline-offset: 3px; }
.q__tg:hover { color: var(--paper); }
.q__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (min-width: 960px) { .q__tg { text-align: left; } }
