/* Подбор аромата (assets/features/podbor.js): экраны вопросов и результат внутри панели .finder__quiz.
   Наследует вид старого квиза: вопросы — Source Serif 4 300 с курсивным акцентом, подписи — Jost капителью с разрядкой,
   волосяные линии 1 px, полоса прогресса .quiz__bar. Только тёплый монохром сайта: чернила, кость, камень.
   Выбранное — инверсия (чернила и бумага). Без цвета, точек, градиентов, свечения и украшений. Префикс классов — .pb-. */

/* пока идёт подбор, вводная строка над ним не нужна */
.finder__quiz.pb-on .finder__start { display: none; }

.pb { min-width: 0; }
.pb--still { animation: none; }
.quiz[aria-busy="true"] .pb { cursor: progress; }

/* ---------- Заголовок экрана ---------- */
.pb-top { min-height: 11px; }
.pb-eyebrow {
  margin-top: clamp(28px, 3vw, 44px);
  font: 500 .75rem/1.3 var(--f-text); letter-spacing: .26em; text-transform: uppercase; color: var(--mute);
}
.pb-q--tight { margin-top: 12px; }
.pb-sub {
  margin: calc(clamp(22px, 2.4vw, 32px) * -.5) 0 clamp(20px, 2.2vw, 28px); max-width: 32rem;
  font-size: 1rem; line-height: 1.6; color: var(--mute); text-wrap: pretty;
}
.pb-label {
  margin: 28px 0 10px;
  font: 500 .75rem/1.3 var(--f-text); letter-spacing: .24em; text-transform: uppercase; color: var(--mute);
}
.pb-label--first { margin-top: 0; }

/* ---------- Сегменты: равные ячейки в рамке, выбранная — инверсия ---------- */
.pb-seg {
  display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
  max-width: 360px; border: 1px solid var(--line-2);
}
.pb-seg__b {
  position: relative; min-width: 0; min-height: 48px; padding: 8px 6px;
  border: 0; border-left: 1px solid var(--line-2); border-radius: 0; background: none;
  font: 400 1rem/1.2 var(--f-text); color: var(--ink-3); text-align: center;
  transition: background-color .3s var(--ease), color .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.pb-seg__b:first-child { border-left: 0; }
@media (hover: hover) {
  .pb-seg__b:hover { background: var(--paper-2); color: var(--ink); }
}
.pb-seg__b[aria-checked="true"] { background: var(--ink); color: var(--white); }
.pb-seg__b:focus-visible { z-index: 1; outline: 1.5px solid var(--ink); outline-offset: 2px; }
/* у выбранного (инверсия) текст светлый — рамка фокуса всё равно чернилами, иначе её не видно на светлой панели */
.pb-opt:focus-visible, .pb-card:focus-visible, .pb-alt:focus-visible, .pb-chip__w:focus-visible, .pb-note__dk:focus-visible { outline-color: var(--ink); }

/* ---------- Варианты списком (вид старого квиза, выбранный — инверсия) ---------- */
.pb-opts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.pb-opts li { animation: optIn .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 80ms); }
.pb-body--still .pb-opts li { animation: none; }
.pb-opt { transition: padding .5s var(--ease), color .3s, background-color .3s; -webkit-tap-highlight-color: transparent; }
.pb-opt[aria-checked="true"] { padding-inline: 14px; background: var(--ink); color: var(--white); border-bottom-color: var(--ink); }
.pb-opt[aria-checked="true"] .ico { opacity: 1; transform: none; }

/* ---------- Низ экрана: назад, пропустить, результат сейчас ---------- */
.pb-why { margin-top: 22px; }
.pb-why__b {
  position: relative; padding: 0; border: 0; background: none; text-align: left;
  font: 400 .875rem/1.4 var(--f-text); color: var(--mute);
  text-decoration: underline 1px var(--line-2); text-underline-offset: .32em;
  transition: color .3s, text-decoration-color .3s;
}
.pb-why__b::before { content: ""; position: absolute; inset: -12px -6px; }
.pb-why__b:hover, .pb-why__b[aria-expanded="true"] { color: var(--ink); text-decoration-color: currentColor; }
.pb-why__t { margin-top: 10px; max-width: 30rem; font: italic 300 1.0625rem/1.45 var(--f-display); color: var(--ink-3); text-wrap: pretty; }

.pb-nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-top: auto; padding-top: 28px; min-height: 66px;
}
.pb-back { color: var(--ink); }
.pb-skip {
  position: relative; margin-left: auto; padding: 6px 0; border: 0; background: none;
  font: 500 .75rem/1 var(--f-text); letter-spacing: .24em; text-transform: uppercase; color: var(--mute);
  transition: color .3s;
}
.pb-skip::before { content: ""; position: absolute; inset: -12px -8px; }
.pb-skip:hover { color: var(--ink); }
.pb-next { margin-left: auto; }
.pb-finish { display: flex; justify-content: flex-end; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.pb-finish .link { padding-block: 12px; }

/* ---------- Вступление ---------- */
.pb-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.pb-cta--stack { margin-top: 4px; }
.pb-cta--go { margin-top: 26px; }
.pb-cta__meta { font: 500 .75rem/1.3 var(--f-text); letter-spacing: .24em; text-transform: uppercase; color: var(--mute); }
.pb-cta .btn[aria-busy="true"] { opacity: .55; pointer-events: none; }
.pb-resume { padding-top: 22px; border-top: 1px solid var(--line); }
.pb-resume__q { font: 300 1.5rem/1.2 var(--f-display); letter-spacing: -.01em; }
.pb-resume__note { margin: 6px 0 20px; font-size: .875rem; line-height: 1.5; color: var(--mute); }

/* ---------- Тройка нот ---------- */
.pb-notes { border-top: 1px solid var(--line-2); }
.pb-note { padding: 12px 0 14px; border-bottom: 1px solid var(--line); }
.pb-note__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.pb-note__name { min-width: 0; font: 300 1.375rem/1.1 var(--f-display); letter-spacing: -.01em; }
.pb-note__dk {
  position: relative; flex: none; padding: 5px 8px; margin: -5px -8px; border: 0; background: none;
  font: 400 .875rem/1 var(--f-text); color: var(--mute);
  text-decoration: underline 1px var(--line-2); text-underline-offset: .3em;
  transition: color .3s, background-color .3s;
}
.pb-note__dk::before { content: ""; position: absolute; inset: -9px -4px; }
.pb-note__dk:hover { color: var(--ink); text-decoration-color: currentColor; }
.pb-note__dk[aria-pressed="true"] { background: var(--ink); color: var(--white); text-decoration: none; }
.pb-note__hint { margin: 3px 0 10px; font-size: .9375rem; line-height: 1.4; color: var(--mute); }
.pb-note .pb-seg { transition: opacity .3s; }
.pb-note.is-dk .pb-seg { opacity: .38; }

/* ---------- Пары: две карточки в рамке, «или» на волосяной линии ---------- */
.pb-pair { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); align-items: stretch; }
.pb-card {
  min-width: 0; min-height: 176px; padding: 22px 22px 24px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 16px;
  border: 1px solid var(--line-2); border-radius: 0; background: none; color: var(--ink); text-align: left;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .pb-card:hover { border-color: var(--ink); }
}
.pb-card[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.pb-card__t { font: 300 clamp(1.5rem, 2vw, 1.875rem)/1.12 var(--f-display); letter-spacing: -.014em; text-wrap: balance; }
.pb-card__notes { display: grid; gap: 1px; font: 300 clamp(1.375rem, 1.75vw, 1.625rem)/1.18 var(--f-display); letter-spacing: -.01em; }
.pb-card__who { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid currentColor; animation: quizIn .6s var(--ease) both; }
.pb-card__brand { font: 500 .6875rem/1.3 var(--f-text); letter-spacing: .22em; text-transform: uppercase; opacity: .72; }
.pb-card__name { font: italic 300 1.125rem/1.2 var(--f-display); }
.pb-pair__or { position: relative; display: grid; place-items: center; }
.pb-pair__or::before { content: ""; position: absolute; top: 16px; bottom: 16px; left: 50%; width: 1px; background: var(--line-2); }
.pb-pair__or span { position: relative; padding: 10px 0; background: var(--white); font: italic 300 1.0625rem/1 var(--f-display); color: var(--mute); }
.pb-alts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 10px; margin-top: 12px; }
.pb-alt {
  min-height: 44px; padding: 0 10px; border: 0; background: none;
  font: 400 .9375rem/1 var(--f-text); color: var(--ink-3);
  text-decoration: underline 1px var(--line-2); text-underline-offset: .32em;
  transition: color .3s, background-color .3s;
  -webkit-tap-highlight-color: transparent;
}
.pb-alt:hover { color: var(--ink); text-decoration-color: currentColor; }
.pb-alt[aria-pressed="true"] { background: var(--ink); color: var(--white); text-decoration: none; }
.pb-alts__dot { color: var(--mute); }
.pb-reveal { margin-top: 10px; text-align: center; font: italic 300 1.125rem/1.4 var(--f-display); color: var(--ink-3); animation: quizIn .6s var(--ease) both; }

/* ---------- Сноски вопросов-ассоциаций и консультанта ---------- */
.pb-foot { margin-top: 18px; max-width: 32rem; font-size: .875rem; line-height: 1.55; color: var(--mute); text-wrap: pretty; }
.pb-foot--after { font: italic 300 1.125rem/1.45 var(--f-display); color: var(--ink-3); animation: quizIn .6s var(--ease) both; }

/* ---------- «Какие ароматы вы уже знаете?» ---------- */
.pb-search__bar { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--ink); transition: box-shadow .3s; }
.pb-search__bar:focus-within { box-shadow: 0 1px 0 var(--ink); }
.pb-search__bar .ico { width: 18px; height: 18px; color: var(--mute); stroke-width: 1.25; }
.pb-search__in {
  flex: 1; min-width: 0; padding: 12px 0 11px; border: 0; border-radius: 0; background: none; outline: none;
  font: 300 1.25rem/1.2 var(--f-display); letter-spacing: -.01em; color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.pb-search__in::placeholder { color: var(--mute); opacity: 1; }
.pb-search__in::-webkit-search-cancel-button, .pb-search__in::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.pb-none { padding: 14px 0 2px; font-size: .9375rem; line-height: 1.5; color: var(--mute); }

.pb-rows { list-style: none; margin: 0; padding: 0; }
.pb-rows--known { border-top: 1px solid var(--line-2); }
.pb-row { border-bottom: 1px solid var(--line); }
.pb-row__b {
  width: 100%; min-height: 52px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 15px 2px 13px; border: 0; border-radius: 0; background: none; color: var(--ink); text-align: left;
  transition: padding .45s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .pb-row__b:hover { padding-left: 10px; }
  .pb-row__b:hover .pb-row__name { font-style: italic; }
}
.pb-row.is-open > .pb-row__b { padding-left: 2px; }
.pb-row__t { min-width: 0; }
.pb-row__brand { margin-right: 6px; font: 500 .75rem/1 var(--f-text); letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.pb-row__name { font: 300 1.125rem/1.25 var(--f-display); letter-spacing: -.005em; }
.pb-row__year { margin-left: 4px; font: 400 .875rem/1 var(--f-text); font-variant-numeric: tabular-nums lining-nums; color: var(--mute); }
.pb-row__v { flex: none; font: 500 .6875rem/1 var(--f-text); letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.pb-row__x { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 0 14px; animation: quizIn .45s var(--ease) both; }
.pb-row__x .pb-seg { flex: 1 1 260px; }

.pb-picked { margin-top: 22px; }
.pb-picked .pb-label { margin: 0 0 10px; }
.pb-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pb-chip { display: inline-flex; align-items: center; max-width: 100%; min-height: 44px; padding-left: 14px; border: 1px solid var(--line-2); }
.pb-chip__n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 300 1.0625rem/1.2 var(--f-display); }
.pb-chip__v { margin-left: 10px; font: 500 .6875rem/1 var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.pb-chip__w {
  margin-left: 12px; padding: 7px 9px; border: 1px solid var(--line-2); border-radius: 0; background: none;
  font: 400 .8125rem/1 var(--f-text); color: var(--ink-3); white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s;
}
.pb-chip__w:hover { border-color: var(--ink); color: var(--ink); }
.pb-chip__w[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.pb-chip__w--row { margin-left: 0; min-height: 44px; padding-inline: 12px; }
.pb-chip__x { display: grid; place-items: center; width: 44px; height: 42px; padding: 0; border: 0; background: none; color: var(--mute); transition: color .3s; }
.pb-chip__x .ico { width: 14px; height: 14px; }
.pb-chip__x:hover { color: var(--ink); }
.pb-label--known { margin-top: 30px; }
.pb-more { display: none; }
.pb-links { display: flex; flex-direction: column; align-items: flex-start; margin-top: 16px; }
.pb-link {
  min-height: 44px; padding: 0; border: 0; background: none; text-align: left;
  font: 400 1rem/1.35 var(--f-text); color: var(--ink-3);
  text-decoration: underline 1px var(--line-2); text-underline-offset: .32em;
  transition: color .3s, text-decoration-color .3s;
}
.pb-link:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ---------- Результат ---------- */
.pb-head {
  max-width: 30rem; margin-top: -6px;
  font: 300 clamp(1.25rem, 1.6vw, 1.4375rem)/1.35 var(--f-display); letter-spacing: -.008em; color: var(--ink-3); text-wrap: pretty;
}
.pb-head em { font-style: italic; color: var(--ink); }
.pb-base { margin-top: 12px; max-width: 32rem; font-size: .875rem; line-height: 1.55; color: var(--mute); text-wrap: pretty; }
.pb-base--gift { margin-top: 6px; }
.pb-how { margin-top: 12px; }
.pb-how__b .ico, .pb-more-b .ico { width: 14px; height: 14px; transition: transform .5s var(--ease); }
.link.pb-how__b::after, .link.pb-more-b::after { right: 26px; }
.pb-how__b[aria-expanded="true"] .ico, .pb-more-b[aria-expanded="true"] .ico { transform: rotate(180deg); }
.pb-how__b:hover .ico, .pb-more-b:hover .ico { transform: translateY(2px); }
.pb-how__b[aria-expanded="true"]:hover .ico, .pb-more-b[aria-expanded="true"]:hover .ico { transform: rotate(180deg) translateY(2px); }
.pb-how__body { max-width: 34rem; margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line); animation: quizIn .5s var(--ease) both; }
.pb-how__body > p:not(.pb-label) { font-size: .9375rem; line-height: 1.62; color: var(--ink-3); text-wrap: pretty; }
.pb-how__body > p + p:not(.pb-label) { margin-top: 10px; }
.pb-how__body .pb-label { margin-top: 24px; }
.pb-infl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pb-infl li { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); align-items: center; gap: 18px; }
.pb-infl__n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; color: var(--ink-3); }
.pb-infl__bar { position: relative; height: 9px; }
.pb-infl__bar::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--line); }
.pb-infl__bar i { position: absolute; left: 0; top: 3.5px; height: 2px; background: var(--ink); }

.pb-banner { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.55; color: var(--ink-3); text-wrap: pretty; }
.pb-inline {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
  font: inherit; color: var(--ink); text-align: left;
  text-decoration: underline 1px var(--line-2); text-underline-offset: .26em;
  transition: text-decoration-color .3s;
}
.pb-inline::before { content: ""; position: absolute; inset: -10px -4px; }
.pb-inline .ico { width: 15px; height: 15px; }
.pb-inline--owned + .pb-inline--owned { margin-left: 14px; }
.pb-inline:hover { text-decoration-color: currentColor; }

.pb-picks { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.pb-pick { padding: 20px 0 8px; border-bottom: 1px solid var(--line); animation: optIn .8s var(--ease) both; }
.pb-pick:nth-child(2) { animation-delay: .1s; }
.pb-pick:nth-child(3) { animation-delay: .2s; }
.pb--still .pb-pick { animation: none; }
.pb-pick__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.pb-pick__label { font: 500 .6875rem/1.2 var(--f-text); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); }
.pb-freq { flex: none; font: 400 1rem/1 var(--f-display); font-variant-numeric: tabular-nums lining-nums; letter-spacing: .01em; color: var(--ink-3); white-space: nowrap; }
.pb-pick__body { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 22px; align-items: start; }
.pb-pick__thumb { width: 100%; }
.pb-pick__info { min-width: 0; display: grid; justify-items: start; }
.pb-pick__brand { font: 500 .75rem/1.3 var(--f-text); letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.pb-pick__name {
  margin-top: 5px; padding: 0; border: 0; background: none; text-align: left; color: var(--ink);
  font: 300 1.625rem/1.08 var(--f-display); letter-spacing: -.014em;
  text-decoration: underline 1px transparent; text-underline-offset: .18em; transition: text-decoration-color .35s;
}
.pb-pick__name:hover { text-decoration-color: currentColor; }
.pb-pick__why { margin-top: 10px; font-size: .9375rem; line-height: 1.5; color: var(--ink-3); text-wrap: pretty; }
.pb-pick__note { margin-top: 6px; font: italic 300 1rem/1.4 var(--f-display); color: var(--ink-3); }
.pb-pick__caution { margin-top: 8px; padding-left: 12px; border-left: 1px solid var(--ink); font-size: .875rem; line-height: 1.5; color: var(--ink-3); }
.pb-pick__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.pb-pick__buy .card__add { margin-left: auto; }
.pb-pick__twin { flex: 1 1 14rem; min-width: 0; font-size: .875rem; line-height: 1.45; color: var(--mute); }
.pb-tried { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin-top: 4px; }
.pb-tried__q { margin-right: 4px; font-size: .875rem; color: var(--mute); }
.pb-tried__b {
  min-height: 44px; padding: 0 2px; border: 0; background: none;
  font: 400 .875rem/1 var(--f-text); color: var(--ink-3);
  text-decoration: underline 1px var(--line-2); text-underline-offset: .32em;
  transition: color .3s, text-decoration-color .3s;
}
.pb-tried__b:hover { color: var(--ink); text-decoration-color: currentColor; }
.pb-tried__dot { color: var(--mute); font-size: .875rem; }

.pb-sec { margin-top: clamp(44px, 4.6vw, 64px); }
.pb-sec__t { font: 500 .75rem/1.3 var(--f-text); letter-spacing: .26em; text-transform: uppercase; color: var(--ink); }
.pb-sec__sub { margin-top: 6px; font-size: .9375rem; line-height: 1.5; color: var(--mute); }
.pb-sec__t--picks { margin-top: clamp(44px, 4.6vw, 64px); }
.pb-sec__t--picks + .pb-picks { margin-top: 16px; }
.pb-fine { margin-top: 16px; font-size: .8125rem; line-height: 1.5; color: var(--mute); text-wrap: pretty; }
.pb-refs { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.pb-ref { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 18px; padding: 14px 0 13px; border-bottom: 1px solid var(--line); }
.pb-ref__main { min-width: 0; display: grid; gap: 6px; }
.pb-ref__brand { font: 500 .6875rem/1.3 var(--f-text); letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.pb-ref__name { font: 300 1.25rem/1.15 var(--f-display); letter-spacing: -.008em; }
.pb-ref__side { display: grid; justify-items: end; gap: 7px; text-align: right; }
.pb-ref__go {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
  font: 500 .6875rem/1 var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
.pb-ref__go::before { content: ""; position: absolute; inset: -14px -8px; }
.pb-ref__go .ico { width: 14px; height: 14px; transition: transform .5s var(--ease); }
.pb-ref__go:hover .ico { transform: translateX(4px); }
.pb-ref__ask { font-size: .8125rem; color: var(--mute); white-space: nowrap; }
.pb-look { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: .9375rem; line-height: 1.5; color: var(--ink-3); }
.pb-nfy { margin-top: 26px; }
.pb-nfy .pb-label { margin: 0 0 4px; }
.pb-nfy ul { list-style: none; margin: 0; padding: 0; }
.pb-nfy li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; border-bottom: 1px solid var(--line); }
.pb-nfy__n { min-width: 0; padding: 8px 0; font: 300 1.0625rem/1.3 var(--f-display); color: var(--ink-3); }
.pb-nfy__b { margin-right: 4px; font: 500 .6875rem/1 var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.pb-nfy__btn {
  min-height: 44px; padding: 0; border: 0; background: none;
  font: 400 .875rem/1 var(--f-text); color: var(--ink-3);
  text-decoration: underline 1px var(--line-2); text-underline-offset: .32em;
  transition: color .3s, text-decoration-color .3s;
}
.pb-nfy__btn:hover { color: var(--ink); text-decoration-color: currentColor; }

.pb-arch { margin-top: 12px; font: italic 300 clamp(1.75rem, 2.4vw, 2.125rem)/1.1 var(--f-display); letter-spacing: -.014em; text-wrap: balance; }
.pb-dl { margin: 18px 0 0; border-top: 1px solid var(--line); }
.pb-dl > div { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: 4px 18px; padding: 11px 0 12px; border-bottom: 1px solid var(--line); }
.pb-dl dt { padding-top: .3em; font: 500 .6875rem/1.4 var(--f-text); letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.pb-dl dd { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--ink); }
.pb-more-b { margin-top: 16px; }
.pb-details { margin-top: 18px; animation: quizIn .5s var(--ease) both; }

/* ---------- Шкалы фасетов: ось [−3; 3], отрезок x ± sd (2 px), риска в x (1 px), ноль — короткий штрих ---------- */
.pb-scales { --pb-sc-n: 9.5rem; }
.pb-scales ul { list-style: none; margin: 0; padding: 0; }
.pb-scales__axis { display: grid; grid-template-columns: var(--pb-sc-n) minmax(0, 1fr); gap: 18px; margin-bottom: 4px; }
.pb-scales__ends { display: flex; justify-content: space-between; font: 500 .6875rem/1 var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.pb-scale { display: grid; grid-template-columns: var(--pb-sc-n) minmax(0, 1fr); align-items: center; gap: 18px; min-height: 28px; }
.pb-scale__n { min-width: 0; font: 400 .875rem/1.25 var(--f-text); color: var(--ink-3); transition: color .6s; }
.pb-scale.is-yours .pb-scale__n { color: var(--ink); font-weight: 500; }
.pb-scale.is-notYours .pb-scale__n, .pb-scale.is-unclear .pb-scale__n { color: var(--mute); }
.pb-scale__t { position: relative; height: 15px; }
.pb-scale__t::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-2); }
.pb-scale__t::after { content: ""; position: absolute; left: 50%; top: 4px; width: 1px; height: 7px; background: var(--line-2); }
.pb-scale__band { position: absolute; top: 6.5px; height: 2px; background: var(--ink); transition: left .9s var(--ease), width .9s var(--ease); }
.pb-scale__tick { position: absolute; top: 0; width: 1px; height: 15px; margin-left: -.5px; background: var(--ink); transition: left .9s var(--ease); }

/* ---------- Действия ---------- */
.pb-actions { margin-top: clamp(44px, 4.6vw, 64px); }
.pb-actions__main { width: 100%; }
.pb-acts { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.pb-acts > li { border-bottom: 1px solid var(--line); }
.pb-act {
  width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 2px; border: 0; border-radius: 0; background: none; color: var(--ink); text-align: left; text-decoration: none;
  font: 500 .75rem/1.35 var(--f-text); letter-spacing: .2em; text-transform: uppercase;
  transition: padding .5s var(--ease);
}
.pb-act .ico { width: 18px; height: 18px; flex: none; transition: transform .5s var(--ease); }
@media (hover: hover) {
  .pb-act:hover { padding-left: 12px; }
}
.pb-add { padding: 0 0 18px; animation: quizIn .45s var(--ease) both; }

/* ---------- Карточка «Показать в магазине»: на весь экран, крупно — показать консультанту ---------- */
.pb-shop {
  position: fixed; inset: 0; z-index: 110; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  background: var(--paper); color: var(--ink);
  opacity: 0; transform: translateY(18px); transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.pb-shop.is-open { opacity: 1; transform: none; }
.pb-shop__in {
  width: 100%; max-width: 780px; margin-inline: auto;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 48px);
}
.pb-shop__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; border-bottom: 1px solid var(--line-2); }
.pb-shop__t { font: 500 .75rem/1.3 var(--f-text); letter-spacing: .26em; text-transform: uppercase; }
.pb-shop__x { color: var(--ink); }
.pb-shop__x::after { right: 0; }
.pb-shop__picks { list-style: none; margin: 0; padding: 0; }
.pb-shop__picks li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 6px 14px; padding: 24px 0 22px; border-bottom: 1px solid var(--line); }
.pb-shop__no { grid-row: span 2; padding-top: .1em; font: 300 1.75rem/1 var(--f-display); font-variant-numeric: lining-nums; color: var(--mute); }
.pb-shop__brand { font: 500 .8125rem/1.3 var(--f-text); letter-spacing: .24em; text-transform: uppercase; color: var(--mute); }
.pb-shop__name { font: 300 clamp(2.1rem, 6.4vw, 3.25rem)/1.02 var(--f-display); letter-spacing: -.022em; overflow-wrap: anywhere; }
.pb-shop__dl { margin: 28px 0 0; border-top: 1px solid var(--line-2); }
.pb-shop__dl > div { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); gap: 6px 22px; padding: 14px 0 15px; border-bottom: 1px solid var(--line); }
.pb-shop__dl dt { padding-top: .35em; font: 500 .75rem/1.4 var(--f-text); letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.pb-shop__dl dd { margin: 0; font-size: 1.1875rem; line-height: 1.45; }
.pb-shop__foot { margin-top: 30px; max-width: 34rem; font: italic 300 clamp(1.25rem, 3vw, 1.5rem)/1.35 var(--f-display); color: var(--ink-3); text-wrap: pretty; }
.pb-shop__share { margin-top: 28px; }

/* ---------- Телефон ---------- */
@media (max-width: 760px) {
  .pb-seg { max-width: none; }
  .pb-seg__b { min-height: 46px; }
  .pb-nav { padding-top: 22px; min-height: 58px; }
  .pb-sub { margin-top: -10px; }
  .pb-pair { grid-template-columns: minmax(0, 1fr); }
  .pb-pair__or { height: 42px; }
  .pb-pair__or::before { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 1px; }
  .pb-pair__or span { padding: 0 14px; }
  .pb-card { min-height: 92px; padding: 18px 18px 20px; }
  .pb-card__t { font-size: clamp(1.25rem, 5.8vw, 1.5rem); }
  .pb-card__notes { font-size: clamp(1.25rem, 5.6vw, 1.5rem); }
  .pb-rows--known:not(.is-all) .pb-row--extra { display: none; }
  .pb-more {
    position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none;
    font: 500 .75rem/1 var(--f-text); letter-spacing: .22em; text-transform: uppercase; color: var(--ink);
  }
  .pb-row__x .pb-seg { flex-basis: 100%; }
  .pb-pick__body { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; }
  .pb-pick__twin { order: 3; flex-basis: 100%; }
  .pb-pick__name { font-size: 1.4375rem; }
  .pb-dl > div { grid-template-columns: minmax(0, 7.6rem) minmax(0, 1fr); gap: 4px 14px; }
  .pb-scales { --pb-sc-n: 8.6rem; }
  .pb-scale, .pb-scales__axis { gap: 12px; }
  .pb-infl li { grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 14px; }
  .pb-shop__dl > div { grid-template-columns: minmax(0, 1fr); }
  .pb-shop__dl dd { font-size: 1.125rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pb, .pb-opts li, .pb-pick, .pb-card__who, .pb-reveal, .pb-foot--after, .pb-row__x, .pb-how__body, .pb-details, .pb-add { animation: none !important; }
  .pb-scale__band, .pb-scale__tick, .pb-shop { transition: none !important; }
}

/* ===================== Раздел подбора: витрина слева, вопросы справа ===================== */
/* Витрина — тёмная, как магазин вечером: три арочные ниши, как резные витрины на Паркенте.
   До старта ниши перебирают флаконы полки; во время подбора в них стоит текущая тройка движка, под ними — что изменилось
   после ответа и шанс попадания. Цвет дают только фотографии флаконов. */
.finder__head { margin-bottom: clamp(48px, 5.4vw, 88px); }
.finder__stage {
  grid-column: 1 / span 6; min-width: 0;
  position: sticky; top: calc(var(--hdr-h) + 24px);
  display: flex; flex-direction: column; gap: clamp(30px, 3.4vw, 48px);
  padding: clamp(26px, 3.2vw, 48px);
  background: var(--ink); color: var(--white);
}
.finder__quiz { grid-column: 7 / -1; }

/* знак «25+» и критерии консультанта — внизу витрины */
.finder__seal { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 28px; padding-top: 20px; border-top: 1px solid var(--line-inv); }
.finder__stage .finder__years { margin: 0; display: flex; align-items: center; gap: 16px; justify-self: auto; }
.finder__stage .finder__num { margin: 0; font-size: clamp(2.6rem, 3.6vw, 3.6rem); color: var(--white); }
.finder__stage .finder__cap { margin: 0; padding: 0; border: 0; max-width: 11rem; font-size: .6875rem; line-height: 1.6; color: var(--mute-inv); }
.finder__stage .finder__crit { margin: 0; clip-path: none; row-gap: 8px; font-size: .6875rem; color: var(--mute-inv); }
.finder__stage .finder__crit li { padding: 2px 12px; border-left-color: var(--line-inv-2); }
.finder__stage .finder__crit li:first-child { padding-left: 0; border-left: 0; }

.pbv { display: grid; gap: clamp(24px, 2.8vw, 36px); }
.pbv__head { display: grid; gap: 12px; }
.pbv__k { color: var(--mute-inv); }
.pbv__t { font: 300 clamp(2rem, 3.2vw, 3.3rem)/1.02 var(--f-display); letter-spacing: -.022em; text-wrap: balance; }
.pbv__t em { font-style: italic; font-weight: 250; }
.pbv__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); align-items: end; }
.pbv__n { display: grid; gap: 14px; min-width: 0; }
/* ниша: арка со светлым камнем внутри и полкой; флакон стоит на полке */
.pbv__arch {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4.3; padding: 0; overflow: hidden;
  border: 0; border-radius: 999px 999px 0 0; background: var(--paper-2); color: var(--ink); cursor: default;
  transition: background-color .6s var(--ease), box-shadow .6s var(--ease);
}
.pbv__arch[data-pdp] { cursor: pointer; }
.pbv__arch:focus-visible { outline: 1.5px solid var(--white); outline-offset: 4px; }
.pbv__arch::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8%; height: 1px; background: rgba(18, 17, 15, .16); }
.pbv__img { position: absolute; inset: 20% 9% 8.4%; }
.pbv__ph {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  opacity: 0; transform: translateY(12px) scale(.96); transition: opacity .8s var(--ease), transform 1s var(--ease);
}
.pbv__ph.is-in { opacity: 1; transform: none; }
/* снимок на белом фоне (позиции каталога из базы doevent/perfume): белое растворяется в камне ниши */
.pbv__ph.is-white, .pb-probe__ph img.is-white { mix-blend-mode: multiply; }
.pbv__arch[data-pdp]:hover .pbv__ph.is-in { transform: translateY(-4px); }
.pbv__no { position: absolute; z-index: 2; top: 8.5%; left: 50%; transform: translateX(-50%); font: italic 300 1.0625rem/1 var(--f-display); color: var(--mute); }
.pbv__n.is-empty .pbv__arch { background: transparent; box-shadow: inset 0 0 0 1px var(--line-inv-2); }
.pbv__n.is-empty .pbv__arch::after { background: var(--line-inv); }
.pbv__n.is-empty .pbv__no { color: var(--mute-inv); }
/* новый флакон в нише: арка коротко вспыхивает рамкой */
.pbv__n.is-pop .pbv__arch { animation: pbvPop 1.1s var(--ease); }
@keyframes pbvPop { 0% { box-shadow: inset 0 0 0 0 var(--white); } 25% { box-shadow: inset 0 0 0 3px var(--white); } 100% { box-shadow: inset 0 0 0 0 transparent; } }
.pbv__cap { display: grid; align-content: start; gap: 3px; min-height: 5.4em; }
.pbv__lab { font: 500 .6875rem/1.5 var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: var(--white); }
.pbv__brand { font: 500 .6875rem/1.5 var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: var(--mute-inv); }
.pbv__name { font: 300 clamp(1.05rem, 1.35vw, 1.3rem)/1.12 var(--f-display); letter-spacing: -.008em; text-wrap: balance; }
.pbv__p { font-size: .8125rem; color: var(--mute-inv); font-variant-numeric: tabular-nums lining-nums; }
.pbv__lab:empty, .pbv__brand:empty, .pbv__name:empty, .pbv__p:empty { display: none; }
.pbv[data-mode="intro"] .pbv__cap { display: none; }

.pbv__foot { display: grid; gap: 14px; }
.pbv__delta { font: italic 300 clamp(1.0625rem, 1.3vw, 1.25rem)/1.35 var(--f-display); color: var(--white); text-wrap: balance; }
.pbv__delta:empty, .pbv__sig:empty, .pbv__hint:empty { display: none; }
.pbv__meter { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.pbv__meter[hidden] { display: none; }
.pbv__ml { color: var(--mute-inv); }
.pbv__bar { position: relative; height: 1px; background: var(--line-inv-2); }
.pbv__bar i { position: absolute; left: 0; top: -1px; height: 3px; width: calc(var(--v, 0) * 100%); background: var(--white); transition: width 1.1s var(--ease); }
.pbv__meter b { min-width: 3ch; font: 200 1.625rem/1 var(--f-display); text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.pbv__sig { font-size: .9375rem; line-height: 1.5; color: var(--mute-inv); }
.pbv__sig em { font: italic 300 1.125rem/1.2 var(--f-display); color: var(--white); }
.pbv__hint { max-width: 30rem; font-size: 1rem; line-height: 1.6; color: var(--mute-inv); text-wrap: pretty; }

/* ===================== Вопросы: варианты с буквой, как в анкете консультанта ===================== */
/* «Как вам …?» с фото флакона в маленькой нише — такой же, как на витрине */
.pb-probe { display: grid; grid-template-columns: clamp(76px, 7vw, 96px) minmax(0, 1fr); align-items: end; gap: 22px; margin: clamp(28px, 3vw, 44px) 0 clamp(22px, 2.4vw, 32px); }
.pb-probe .pb-eyebrow { margin-top: 0; }
.pb-probe .quiz__q { margin: 10px 0 0; }
.pb-probe__ph { position: relative; display: block; aspect-ratio: 3 / 4.3; overflow: hidden; border-radius: 999px 999px 0 0; background: var(--paper-2); animation: quizIn .7s var(--ease) both; }
.pb-probe__ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8%; height: 1px; background: rgba(18, 17, 15, .16); }
.pb-probe__ph img { position: absolute; left: 9%; right: 9%; top: 20%; bottom: 8.4%; width: 82%; height: 71.6%; object-fit: contain; object-position: 50% 100%; }

.pb-opts { counter-reset: pbopt; }
.pb-opt { counter-increment: pbopt; }
.pb-opt::before {
  content: counter(pbopt, upper-alpha); flex: none; width: 1.6em;
  font: italic 300 1.25rem/1 var(--f-display); color: var(--mute); transition: color .3s;
}
.pb-opt:hover::before { color: var(--ink); }
.pb-opt[aria-checked="true"]::before { color: var(--white); }
.pb-card { min-height: 200px; }
@media (hover: hover) {
  .pb-card:hover { background: var(--paper-2); }
  .pb-card[aria-checked="true"]:hover { background: var(--ink); }
}

@media (max-width: 1100px) {
  .finder__stage { grid-column: 1 / -1; position: relative; top: auto; }
  .finder__quiz { grid-column: 1 / -1; }
  .finder__grid { row-gap: 0; }
  /* во время подбора витрина сжимается в строку и держится под шапкой: ниши видно, пока отвечаете */
  .finder.pb-on .finder__stage { position: sticky; top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px)); z-index: 4; gap: 0; padding-block: 12px; }
  .finder.pb-on .pbv { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 16px; }
  .finder.pb-on .pbv__head, .finder.pb-on .finder__seal, .finder.pb-on .pbv__sig, .finder.pb-on .pbv__hint, .finder.pb-on .pbv__cap, .finder.pb-on .pbv__ml, .finder.pb-on .pbv__no { display: none; }
  .finder.pb-on .pbv__row { grid-template-columns: repeat(3, 46px); gap: 6px; }
  .finder.pb-on .pbv__foot { gap: 6px; }
  .finder.pb-on .pbv__delta { font-size: 1rem; line-height: 1.3; }
  .finder.pb-on .pbv__meter { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .finder.pb-on .pbv__meter b { font-size: 1.25rem; }
}
@media (max-width: 760px) {
  .finder__stage { margin-inline: calc(var(--gutter) * -1); padding: 30px var(--gutter) 26px; }
  .pbv__t { font-size: clamp(2rem, 9vw, 2.5rem); }
  .pbv__row { gap: 10px; }
  .pbv__name { font-size: 1rem; }
  .pbv__cap { min-height: 4.8em; }
  .finder__seal { gap: 12px; }
  .finder__stage .finder__crit { display: none; }
  .pbv__hint { display: none; }
  .pb-card { min-height: 120px; }
  .finder.pb-on .finder__stage { padding-inline: var(--gutter); }
}
@media (prefers-reduced-motion: reduce) {
  .pbv__ph, .pbv__bar i { transition: none; }
  .pbv__n.is-pop .pbv__arch { animation: none; }
}
