/*
 * The placement page's two ways (the online test, the advisor in Telegram) and the test itself, drawn over the page
 * (page-placement.php, assets/js/placement-quiz.js). Big answers to tap, a bar of progress, a green or red line after
 * each answer and the result with the courses to start with. Tokens only, so it follows «روشن / تاریک».
 */

/* ---------- The two ways in the hero ---------- */
.ypq-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); }
.ypq-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.ypq-way { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px 18px 16px; border: 1px solid var(--ye-border); border-radius: 20px; background: var(--ye-surface); color: var(--ye-text); }
.ypq-way--advisor { border-color: transparent; background: linear-gradient(160deg, var(--ye-fill-mid) 0%, var(--ye-fill-deep) 100%); color: rgba(255, 255, 255, .88); box-shadow: 0 16px 34px rgba(67, 22, 143, .24); }
.ypq-way__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; border-radius: 14px; background: var(--ye-tint); color: var(--ye-accent); font-size: 19px; }
.ypq-way--advisor .ypq-way__icon { background: rgba(255, 255, 255, .14); color: var(--ye-sun); }
.ypq-way__badge { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 5px; padding: 0 11px; border-radius: 999px; background: var(--ye-sun); color: var(--ye-sun-ink); font-size: 12.5px; font-weight: var(--ye-w-bold); line-height: 2.1; }
.ypq-way__badge i { font-size: 11px; }
.ysp .ypq-way__title { margin: 0; color: var(--ye-ink); font-size: 18.5px; font-weight: var(--ye-w-heading); line-height: 1.6; }
.ysp .ypq-way--advisor .ypq-way__title { color: #fff; }
.ypq-way__text { margin: 0; font-size: 14.5px; line-height: 1.95; }
.ypq-way__facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.ypq-way__facts li { display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; border-radius: 999px; background: var(--ye-tint); color: var(--ye-deep); font-size: 12.5px; font-weight: var(--ye-w-bold); line-height: 2.1; }
.ypq-way__facts i { color: var(--ye-accent); }
.ypq-way--advisor .ypq-way__facts li { background: rgba(255, 255, 255, .13); color: #fff; }
.ypq-way--advisor .ypq-way__facts i { color: var(--ye-sun); }
.ypq-way__go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: auto; padding-top: 12px; }
.ypq-way__go .ysp-btn { flex: 1 1 auto; }
.ypq-way__zero, .ypq-way__zero:visited { color: var(--ye-accent); font-size: 14px; font-weight: var(--ye-w-bold); text-decoration: underline !important; text-decoration-color: var(--ye-border-accent) !important; text-underline-offset: 5px; }
.ypq-way__zero:hover, .ypq-way__zero:focus { color: var(--ye-deep); }
.ypq-way__last { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--ye-border); color: var(--ye-muted); font-size: 13.5px; line-height: 1.9; }
.ypq-way__last strong { color: var(--ye-ink); }
.ypq-way__again { padding: 0; border: 0; background: none; color: var(--ye-accent); font: inherit; font-weight: var(--ye-w-bold); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* ---------- The test over the page ---------- */
html.ypq-open, html.ypq-open body { overflow: hidden; }
.ypq { position: fixed; inset: 0; z-index: 100000; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--ye-surface); color: var(--ye-ink); direction: rtl; text-align: right; -webkit-overflow-scrolling: touch; }
.ypq[hidden] { display: none; }
.ypq:not([hidden]) { display: block; }
.ypq *, .ypq *::before, .ypq *::after { box-sizing: border-box; }
.ypq__box { display: flex; flex-direction: column; min-height: 100%; }
.ypq__box:focus { outline: none; }

.ypq__top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; width: 100%; max-width: 760px; margin: 0 auto; padding: 14px 16px 10px; background: var(--ye-surface); }
.ypq__close { display: inline-grid; flex: 0 0 auto; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ye-muted); font-size: 21px; cursor: pointer; }
.ypq__close:hover, .ypq__close:focus-visible { background: var(--ye-tint); color: var(--ye-ink); }
.ypq__bar { position: relative; flex: 1 1 auto; height: 14px; overflow: hidden; border-radius: 999px; background: var(--ye-tint-strong); }
.ypq__bar span { position: relative; display: block; width: 0; height: 100%; border-radius: inherit; background: var(--ye-fill-accent); transition: width .45s cubic-bezier(.3, .9, .4, 1); }
.ypq__bar span::after { content: ""; position: absolute; top: 3px; right: 8px; left: 8px; height: 3px; border-radius: 999px; background: rgba(255, 255, 255, .32); }
.ypq__stop { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border: 1px solid var(--ye-border-strong); border-radius: 999px; background: var(--ye-surface); color: var(--ye-deep); font: inherit; font-size: 13.5px; font-weight: var(--ye-w-bold); line-height: 1.5; white-space: nowrap; cursor: pointer; }
.ypq__stop:hover, .ypq__stop:focus-visible { border-color: var(--ye-border-accent); background: var(--ye-tint); }
.ypq__stop[hidden] { display: none; }

.ypq__body { flex: 1 0 auto; width: 100%; max-width: 640px; margin: 0 auto; padding: 10px 18px 28px; }
.ypq__body[hidden] { display: none; }
.ypq-q { display: flex; flex-direction: column; align-items: stretch; animation: ypq-in .28s ease both; }
.ypq-q__count { margin: 0 0 2px; color: var(--ye-faint); font-size: 13px; font-weight: var(--ye-w-bold); text-align: center; }
.ypq .ypq-q__ask { margin: 0 0 12px; color: var(--ye-ink); font-size: 21px; font-weight: var(--ye-w-display); line-height: 1.7; text-align: center; }
.ypq-q__ask:focus { outline: none; }
.ypq-picture { align-self: center; display: grid; place-items: center; width: min(260px, 72vw); margin: 2px 0 14px; padding: 10px 16px; border-radius: 26px; background: var(--ye-tint); }
.ypq-picture__svg { display: block; width: 100%; height: auto; }
.ypq-q__fa { align-self: center; max-width: 100%; margin: 0 0 6px; padding: 10px 18px; border: 2px solid var(--ye-border); border-radius: 18px; color: var(--ye-ink); font-size: 18px; font-weight: var(--ye-w-semibold); line-height: 1.9; text-align: center; }
.ypq-q__read { margin: 0 0 14px; padding: 14px 18px; border: 0; border-left: 4px solid var(--ye-border-accent); border-radius: 14px; background: var(--ye-paper); color: var(--ye-text); font-size: 16.5px; line-height: 1.8; text-align: left; }
.ypq-q__text { margin: 0 0 4px; color: var(--ye-ink); font-size: 20px; font-weight: var(--ye-w-semibold); line-height: 1.9; text-align: center; }
.ypq-gap { display: inline-block; min-width: 3.4em; margin: 0 4px; padding: 0 6px; border-bottom: 3px solid var(--ye-border-accent); line-height: 1.5; text-align: center; transition: color .2s ease, border-color .2s ease; }
/* After an answer the gap shows the right word. */
.ypq-gap.is-filled { border-color: var(--ye-buy); color: var(--ye-green); }

.ypq-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.ypq-options.is-long { grid-template-columns: minmax(0, 1fr); }
.ypq-opt { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 14px; border: 2px solid var(--ye-border-strong); border-bottom-width: 4px; border-radius: 16px; background: var(--ye-surface); color: var(--ye-ink); font: inherit; font-size: 17px; font-weight: var(--ye-w-bold); line-height: 1.5; cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .08s ease; -webkit-tap-highlight-color: transparent; }
.ypq-opt:hover:not(:disabled), .ypq-opt:focus-visible { border-color: var(--ye-border-accent); background: var(--ye-tint-soft); }
.ypq-opt:active:not(:disabled) { transform: translateY(2px); border-bottom-width: 2px; }
.ypq-opt__key { display: inline-grid; flex: 0 0 auto; place-items: center; width: 28px; height: 28px; border: 2px solid var(--ye-border); border-radius: 9px; color: var(--ye-faint); font-size: 13px; line-height: 1; }
.ypq-opt__text { flex: 1 1 auto; min-width: 0; text-align: left; }
.ypq-options:not(.is-long) .ypq-opt__text { text-align: center; }
.ypq-opt:disabled { cursor: default; }
.ypq-opt:disabled:not(.is-right):not(.is-wrong) { opacity: .55; }
.ypq-opt.is-right { border-color: var(--ye-buy); background: var(--ye-green-tint); color: var(--ye-green); }
.ypq-opt.is-right .ypq-opt__key { border-color: var(--ye-buy); background: var(--ye-buy); color: #fff; }
.ypq-opt.is-wrong { border-color: var(--ye-danger); background: var(--ye-danger-tint); color: var(--ye-danger); animation: ypq-shake .32s ease; }
.ypq-opt.is-wrong .ypq-opt__key { border-color: var(--ye-danger); color: var(--ye-danger); }

.ypq-line { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; min-height: 66px; margin-top: 14px; padding: 8px 2px 10px; border-bottom: 2px solid var(--ye-border-strong); background-image: linear-gradient(var(--ye-border) 2px, transparent 2px); background-position: 0 50%; background-size: 100% 2px; background-repeat: no-repeat; }
.ypq-line__hint { width: 100%; align-self: center; color: var(--ye-faint); font-size: 14px; text-align: center; direction: rtl; }
.ypq-line__hint[hidden] { display: none; }
.ypq-line.is-right { border-color: var(--ye-buy); }
.ypq-line.is-wrong { border-color: var(--ye-danger); }
.ypq-bank { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-height: 54px; margin-top: 18px; }
.ypq-word { padding: 8px 15px; border: 2px solid var(--ye-border-strong); border-bottom-width: 4px; border-radius: 13px; background: var(--ye-surface); color: var(--ye-ink); font: inherit; font-size: 17px; font-weight: var(--ye-w-bold); line-height: 1.5; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ypq-word:hover:not(:disabled), .ypq-word:focus-visible { border-color: var(--ye-border-accent); background: var(--ye-tint-soft); }
.ypq-word:disabled { cursor: default; opacity: .75; }

/* The line under the question: the buttons, then whether the answer was right */
.ypq__foot { position: sticky; bottom: 0; z-index: 2; border-top: 2px solid var(--ye-border); background: var(--ye-surface); padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); transition: background .2s ease, border-color .2s ease; }
.ypq__foot[hidden] { display: none; }
.ypq__foot.is-right { border-color: var(--ye-green-line); background: var(--ye-green-tint); }
.ypq__foot.is-wrong { border-color: var(--ye-sale-line); background: var(--ye-danger-tint); }
.ypq__foot-in, .ypq__confirm { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; max-width: 640px; margin: 0 auto; }
.ypq__foot-in[hidden], .ypq__confirm[hidden] { display: none; }
.ypq__feedback { flex: 1 1 260px; min-width: 0; }
.ypq__feedback:empty { display: none; }
.ypq-feedback__title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: var(--ye-w-display); line-height: 1.6; }
.ypq-feedback__title i { font-size: 22px; }
.is-right .ypq-feedback__title { color: var(--ye-green); }
.is-wrong .ypq-feedback__title { color: var(--ye-danger); }
.ypq-feedback__answer { margin: 2px 0 0; color: var(--ye-ink); font-size: 15px; font-weight: var(--ye-w-semibold); line-height: 1.8; }
.ypq-feedback__answer span { font-weight: var(--ye-w-bold); }
.ypq-feedback__note { margin: 2px 0 0; color: var(--ye-muted); font-size: 13.5px; line-height: 1.8; }
.ypq__buttons { display: flex; flex: 0 0 auto; gap: 10px; margin-right: auto; }
.ypq__confirm p { flex: 1 1 260px; margin: 0; color: var(--ye-muted); font-size: 14px; line-height: 1.85; }
.ypq__confirm strong { display: block; color: var(--ye-ink); font-size: 17px; font-weight: var(--ye-w-display); }

.ypq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 120px; min-height: 50px; padding: 8px 22px; border: 2px solid transparent; border-bottom-width: 4px; border-radius: 15px; font: inherit; font-size: 16px; font-weight: var(--ye-w-bold); line-height: 1.4; text-decoration: none !important; white-space: nowrap; cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .08s ease; -webkit-tap-highlight-color: transparent; }
.ypq-btn[hidden] { display: none; }
.ypq-btn:active:not(:disabled) { transform: translateY(2px); border-bottom-width: 2px; }
.ypq-btn--go { border-color: var(--ye-fill-accent-strong); border-bottom-color: var(--ye-fill-deep); background: var(--ye-fill-accent); color: #fff; }
.ypq-btn--go:hover:not(:disabled), .ypq-btn--go:focus-visible { background: var(--ye-fill-accent-strong); color: #fff; }
.is-right .ypq-btn--go { border-color: var(--ye-buy); border-bottom-color: var(--ye-buy-strong); background: var(--ye-buy); }
.is-right .ypq-btn--go:hover, .is-right .ypq-btn--go:focus-visible { background: var(--ye-buy-strong); }
.ypq-btn--go:disabled { border-color: var(--ye-border); background: var(--ye-tint-strong); color: var(--ye-faint); cursor: default; }
.ypq-btn--skip, .ypq-btn--line, .ypq-btn--line:visited { border-color: var(--ye-border-strong); background: var(--ye-surface); color: var(--ye-muted); }
.ypq-btn--line, .ypq-btn--line:visited { color: var(--ye-deep); }
.ypq-btn--skip:hover, .ypq-btn--skip:focus-visible, .ypq-btn--line:hover, .ypq-btn--line:focus-visible { border-color: var(--ye-border-accent); background: var(--ye-tint); color: var(--ye-deep); }
.ypq-btn--again { border-color: var(--ye-tint-strong); border-bottom-color: var(--ye-border-accent); background: var(--ye-tint-strong); color: var(--ye-deep); }
.ypq-btn--again:hover, .ypq-btn--again:focus-visible { background: var(--ye-border-accent); color: var(--ye-deep); }

/* ---------- The result ---------- */
.ypq-result { width: 100%; max-width: 760px; margin: 0 auto; padding: 4px 18px 48px; animation: ypq-in .35s ease both; }
.ypq-result[hidden], .ypq-out[hidden], .ypq-review[hidden] { display: none; }
.ypq-result:focus { outline: none; }
.ypq-result__kicker { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 14px; color: var(--ye-accent); font-size: 14px; font-weight: var(--ye-w-bold); }
.ypq-out__head { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 20px; align-items: center; padding: 16px; border: 1px solid var(--ye-border); border-radius: 24px; background: linear-gradient(180deg, var(--ye-tint-soft) 0%, var(--ye-surface) 100%); }
.ypq-out__art .ysp-scene { border-radius: 18px; }
.ypq-out__name { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.ypq-out__label { color: var(--ye-muted); font-size: 14px; font-weight: var(--ye-w-bold); }
.ypq .ypq-out__name h2 { margin: 0; color: var(--ye-ink); font-size: 32px; font-weight: var(--ye-w-display); line-height: 1.45; }
.ypq-out__name h2 small { color: var(--ye-muted); font-size: 14px; font-weight: var(--ye-w-bold); }
.ypq-out__tag { padding: 0 12px; border-radius: 999px; background: var(--ye-tint-strong); color: var(--ye-deep); font-size: 13px; font-weight: var(--ye-w-bold); line-height: 2.1; }
.ypq-out__score { margin: 6px 0 0; padding: 0 12px; border-radius: 999px; background: var(--ye-green-tint); color: var(--ye-green); font-size: 13.5px; font-weight: var(--ye-w-bold); line-height: 2.1; }
.ypq-out__score[hidden] { display: none; }
.ypq-out__text { margin: 16px 0 0; color: var(--ye-text); font-size: 16px; line-height: 2.05; }

.ypq-ladder { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 20px 0 0; padding: 0; list-style: none; }
.ypq-ladder li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
/* Each step's line runs back to the step before it (on the right in Persian), so it never hangs past the last step. */
.ypq-ladder li::before { content: ""; position: absolute; top: 17px; inset-inline-start: -50%; inset-inline-end: 50%; height: 4px; background: var(--ye-tint-strong); }
.ypq-ladder li:first-child::before { display: none; }
.ypq-ladder li.is-done::before, .ypq-ladder li.is-here::before { background: var(--ye-fill-accent); }
.ypq-ladder__dot { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 38px; height: 38px; border: 3px solid var(--ye-tint-strong); border-radius: 50%; background: var(--ye-surface); color: var(--ye-faint); font-size: 15px; font-weight: var(--ye-w-bold); }
.is-done .ypq-ladder__dot { border-color: var(--ye-fill-accent); background: var(--ye-fill-accent); color: #fff; }
.is-here .ypq-ladder__dot { border-color: var(--ye-sun); background: var(--ye-sun); color: var(--ye-sun-ink); box-shadow: 0 0 0 6px rgba(245, 200, 98, .3); }
.ypq-ladder__name { color: var(--ye-muted); font-size: 13.5px; font-weight: var(--ye-w-bold); line-height: 1.6; }
.is-here .ypq-ladder__name { color: var(--ye-ink); }
.ypq-ladder__here { padding: 0 8px; border-radius: 999px; background: var(--ye-gold-tint); color: var(--ye-gold-ink); font-size: 12px; font-weight: var(--ye-w-bold); line-height: 1.9; }

.ypq .ypq-out__h { margin: 26px 0 10px; color: var(--ye-ink); font-size: 18px; font-weight: var(--ye-w-heading); line-height: 1.6; }
.ypq-out__picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ypq-out__picks > :only-child { grid-column: 1 / -1; }
.ypq-course, .ypq-course:visited { display: grid; grid-template-columns: 132px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--ye-border); border-radius: 18px; background: var(--ye-surface); color: inherit; text-decoration: none !important; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.ypq-course:hover, .ypq-course:focus-visible { border-color: var(--ye-border-accent); box-shadow: var(--ye-shadow); transform: translateY(-2px); }
.ypq-course--pack, .ypq-course--pack:visited { border-color: var(--ye-gold-line); background: var(--ye-gold-tint); }
.ypq-course__cover { position: relative; display: block; min-height: 100%; background: var(--ye-tint); }
.ypq-course__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ypq-course__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px; }
.ypq-course__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ye-accent); font-size: 12.5px; font-weight: var(--ye-w-bold); line-height: 1.8; }
.ypq-course--pack .ypq-course__kicker { color: var(--ye-gold-ink); }
.ypq-course__save { padding: 0 8px; border-radius: 999px; background: var(--ye-sale-tint); color: var(--ye-sale); font-size: 12px; }
.ypq-course__title { display: -webkit-box; overflow: hidden; color: var(--ye-ink); font-size: 15.5px; font-weight: var(--ye-w-heading); line-height: 1.75; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ypq-course__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin-top: auto; padding-top: 4px; }
.ypq-course__price { color: var(--ye-ink); font-size: 14px; font-weight: var(--ye-w-bold); }
.ypq-course__price del { color: var(--ye-faint); font-weight: var(--ye-w-medium); }
.ypq-course__price ins { text-decoration: none; }
.ypq-course__state { display: inline-flex; align-items: center; gap: 5px; color: var(--ye-green); font-size: 13.5px; font-weight: var(--ye-w-bold); }
.ypq-course__state--full { color: var(--ye-muted); }
.ypq-course__go { display: inline-flex; align-items: center; gap: 5px; color: var(--ye-accent); font-size: 13.5px; font-weight: var(--ye-w-bold); }

.ypq-out__groups { display: flex; flex-wrap: wrap; gap: 8px; }
.ypq-out__groups a, .ypq-out__groups a:visited { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 6px 16px; border: 1px solid var(--ye-border-strong); border-radius: 999px; background: var(--ye-surface); color: var(--ye-deep); font-size: 14.5px; font-weight: var(--ye-w-bold); text-decoration: none !important; }
.ypq-out__groups a:hover, .ypq-out__groups a:focus-visible { border-color: var(--ye-border-accent); background: var(--ye-tint); }
.ypq-out__all, .ypq-out__all:visited { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--ye-accent); font-size: 15px; font-weight: var(--ye-w-bold); text-decoration: none !important; }
.ypq-out__all:hover, .ypq-out__all:focus-visible { color: var(--ye-deep); }
.ypq-out__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
.ypq-out__all--path, .ypq-out__all--path:visited { color: var(--ye-green); }
.ypq-out__all--path:hover, .ypq-out__all--path:focus-visible { color: var(--ye-green); text-decoration: underline !important; text-underline-offset: 4px; }
.ypq-out__alt { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--ye-gold-tint); color: var(--ye-text); font-size: 14.5px; line-height: 1.95; }
.ypq-out__alt i { margin-top: 6px; color: var(--ye-gold-ink); }
.ypq-out__alt a, .ypq-out__alt a:visited { color: var(--ye-deep); font-weight: var(--ye-w-bold); text-decoration: underline !important; text-underline-offset: 4px; }

.ypq-review { margin-top: 24px; border: 1px solid var(--ye-border); border-radius: 18px; background: var(--ye-surface); }
.ypq-review summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; color: var(--ye-ink); font-size: 15.5px; font-weight: var(--ye-w-bold); list-style: none; cursor: pointer; }
.ypq-review summary::-webkit-details-marker { display: none; }
.ypq-review summary i { color: var(--ye-muted); transition: transform .2s ease; }
.ypq-review[open] summary i { transform: rotate(180deg); }
.ypq-review ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; margin: 0; padding: 0 18px 16px; list-style: none; }
.ypq-review li { display: flex; align-items: center; gap: 8px; color: var(--ye-text); font-size: 14px; line-height: 1.8; }
.ypq-review li i { display: inline-grid; flex: 0 0 auto; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; }
.ypq-review li.is-right i { background: var(--ye-green-tint); color: var(--ye-green); }
.ypq-review li.is-wrong i { background: var(--ye-danger-tint); color: var(--ye-danger); }
.ypq-result__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

@keyframes ypq-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ypq-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

@media (max-width: 1199px) {
	.ypq-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); }
}
@media (max-width: 991px) {
	.ypq-hero { grid-template-columns: minmax(0, 1fr); }
	.ypq-hero .ysp-hero__art { max-width: 440px; }
}
@media (max-width: 767px) {
	.ypq-hero .ysp-hero__art { display: none; }
	.ypq-ways { grid-template-columns: minmax(0, 1fr); }
	.ypq-way__go .ysp-btn { flex: 1 1 100%; }
	.ypq__top { gap: 8px; padding: 10px 12px 8px; }
	.ypq__close { width: 38px; height: 38px; }
	.ypq__stop { padding: 4px 10px; font-size: 12.5px; }
	.ypq__body { padding: 6px 16px 22px; }
	.ypq .ypq-q__ask { font-size: 19px; }
	.ypq-q__text { font-size: 18.5px; }
	.ypq-options { gap: 8px; }
	.ypq-opt { min-height: 54px; padding: 8px 10px; font-size: 16px; }
	.ypq__foot-in, .ypq__confirm { gap: 10px; }
	.ypq__buttons { flex: 1 1 100%; }
	.ypq__buttons .ypq-btn { flex: 1 1 0; min-width: 0; }
	.ypq-picture { width: min(200px, 56vw); margin-bottom: 10px; padding: 6px 12px; border-radius: 22px; }
	.ypq-out__head { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 12px; }
	.ypq-out__art .ysp-scene { aspect-ratio: 5 / 2; }
	.ypq-out__art .ysp-scene__layer { object-fit: cover; object-position: 50% 100%; }
	.ypq .ypq-out__name h2 { font-size: 27px; }
	.ypq-out__picks { grid-template-columns: minmax(0, 1fr); }
	.ypq-course, .ypq-course:visited { grid-template-columns: 112px minmax(0, 1fr); }
	.ypq-review ol { grid-template-columns: minmax(0, 1fr); }
	.ypq-result__actions .ypq-btn { flex: 1 1 100%; }
}
@media (max-width: 380px) {
	.ypq-options:not(.is-long) { grid-template-columns: minmax(0, 1fr); }
	.ypq__stop span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.ypq-q, .ypq-result, .ypq-opt.is-wrong { animation: none; }
	.ypq__bar span, .ypq-course { transition: none; }
}
