/* ============================================================
   Ensley — /products (обзор). Стили страницы.
   После colors_and_type.css + site.css.
   ============================================================ */

/* ---- hero страницы: мягко переливающееся «аврора»-свечение за заголовком ---- */
.phero--blob { position: relative; overflow: hidden; isolation: isolate; }
.phero--blob .wrap { position: relative; z-index: 1; }
.phero__blob { position: absolute; inset: -30% -14% -30% 26%; z-index: 0; pointer-events: none;
  opacity: .62; filter: blur(30px);
  -webkit-mask: radial-gradient(74% 80% at 64% 50%, #000 10%, transparent 82%);
          mask: radial-gradient(74% 80% at 64% 50%, #000 10%, transparent 82%); }
.phero__blob::before, .phero__blob::after { content: ""; position: absolute; inset: 0; }
.phero__blob::before {
  background:
    radial-gradient(44% 50% at 64% 34%, rgba(157,170,134,0.98), rgba(157,170,134,0) 70%),
    radial-gradient(36% 42% at 84% 64%, rgba(197,205,184,0.92), rgba(197,205,184,0) 72%);
  animation: auroraA 14s ease-in-out infinite; }
.phero__blob::after {
  background:
    radial-gradient(42% 48% at 48% 70%, rgba(110,117,88,0.78), rgba(110,117,88,0) 72%),
    radial-gradient(32% 38% at 36% 38%, rgba(157,170,134,0.66), rgba(157,170,134,0) 70%);
  animation: auroraB 19s ease-in-out infinite; }
@keyframes auroraA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1);       opacity: .45; }
  35%      { transform: translate3d(-13%, 7%, 0) scale(1.22); opacity: 1; }
  68%      { transform: translate3d(9%, -5%, 0) scale(1.08);  opacity: .7; }
}
@keyframes auroraB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.08);    opacity: .9; }
  45%      { transform: translate3d(13%, -8%, 0) scale(1.26); opacity: .4; }
  72%      { transform: translate3d(-7%, 6%, 0) scale(1.12);  opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .phero__blob::before, .phero__blob::after { animation: none; }
}
@media (max-width: 700px) {
  .phero__blob { inset: -20% -15% 0 5%; opacity: .45; }
}

/* отступ первого блока витрины под hero */
#explore { padding-top: clamp(40px, 5vw, 64px); }

/* ---- модельный ряд: компактная витрина из 4 карточек ---- */
.lineup4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pcard { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-h); }

.pcard__media { position: relative; aspect-ratio: 4 / 5; background: var(--cream); overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.pcard:hover .pcard__media img { transform: scale(1.045); }
.pcard__badge { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--graphite); color: var(--cream);
  font-family: var(--font-ui); font-size: 11.5px; text-transform: lowercase; padding: 6px 13px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm); }
.pcard__badge--sage { background: var(--sage); color: #fff; }

.pcard__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard__name { font-family: var(--font-display); font-weight: 300; font-size: 27px; line-height: 1.04; letter-spacing: -.01em;
  color: var(--graphite); margin: 0; }
.pcard__name::first-letter { text-transform: uppercase; }
.pcard__mood { font-family: var(--font-body); font-size: 14.5px; line-height: 1.45; color: var(--fg-secondary); margin: 2px 0 0; flex: 1; }
.pcard__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 16px; }
.pcard__price { font-family: var(--font-ui); font-size: 15px; color: var(--graphite); white-space: nowrap; }
.pcard__price b { font-weight: 600; }
.pcard__cta { font-family: var(--font-ui); font-size: 13.5px; color: var(--olive); display: inline-flex; align-items: center; gap: 5px; }
.pcard__cta .arr { transition: transform 250ms var(--ease-out); }
.pcard:hover .pcard__cta .arr { transform: translateX(5px); }
.lineup4__foot { margin-top: 30px; font-family: var(--font-body); font-size: 13px; color: var(--warm-gray); text-align: center; }

@media (max-width: 980px) {
  .lineup4 { grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 620px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .lineup4 { gap: 14px; }
  .pcard__body { padding: 16px 16px 18px; }
  .pcard__name { font-size: 20px; hyphens: auto; overflow-wrap: anywhere; }
  .pcard__mood { font-size: 13.5px; }
}
@media (max-width: 420px) {
  .pcard__foot { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 12px; }
}

/* ---- квиз-подбор «Какой ваш Ensley?» ---- */
.quiz { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.quiz__options { display: flex; flex-direction: column; gap: 11px; }
.qopt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; width: 100%;
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 17px 22px;
  cursor: pointer; transition: border-color 200ms var(--ease-out), transform 200ms, box-shadow 200ms; }
.qopt:hover { border-color: var(--sage); transform: translateX(3px); }
.qopt.is-active { background: var(--sage); border-color: var(--sage); box-shadow: var(--shadow-card); transform: translateX(3px); }
.qopt__q { font-family: var(--font-display); font-weight: 400; font-size: 18.5px; line-height: 1.18; color: var(--graphite); }
.qopt__q::first-letter { text-transform: uppercase; }
.qopt__hint { font-family: var(--font-ui); font-size: 12.5px; text-transform: lowercase; color: var(--warm-gray); }
.qopt.is-active .qopt__q, .qopt.is-active .qopt__hint { color: #fff; }

.quiz__result { position: sticky; top: 104px; }
.qresult { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-card); min-height: 460px; }
.qresult__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 460px; padding: 40px; text-align: center; }
.qresult__empty svg { width: 38px; height: 38px; color: var(--sage); stroke-width: 1.4; }
.qresult__empty p { font-family: var(--font-body); font-size: 16px; color: var(--warm-gray); margin: 0; max-width: 26ch; }
.qresult__filled { display: none; }
.qresult.is-shown .qresult__empty { display: none; }
.qresult.is-shown .qresult__filled { display: block; }

.qresult__media { position: relative; height: 300px; background: var(--cream); overflow: hidden; }
.qresult__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qresult__body { padding: 26px 30px 30px; }
.qresult__rec { font-family: var(--font-ui); font-size: 13px; text-transform: lowercase; letter-spacing: .02em;
  color: var(--sage); margin: 0 0 8px; }
.qresult__title { font-family: var(--font-display); font-weight: 300; font-size: 30px; line-height: 1.06; letter-spacing: -.01em;
  color: var(--graphite); margin: 0 0 12px; }
.qresult__text { font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--fg-secondary); margin: 0 0 22px; text-wrap: pretty; }
.qresult__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.qresult.is-anim .qresult__filled { animation: qIn 460ms var(--ease-out); }
@keyframes qIn { from { opacity: 0; transform: translateY(12px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }

@media (prefers-reduced-motion: reduce) {
  .qresult.is-anim .qresult__filled { animation: none; }
}

/* ---- compare band ---- */
.cband { text-align: center; }
.cband h2 { margin: 0 0 26px; }

/* ---- where to buy ---- */
.wtb { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.wtb__tile { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 38px 36px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-card);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.wtb__tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-h); }
.wtb__mark { font-family: var(--font-display); font-weight: 400; font-size: 30px; color: var(--graphite); }
.wtb__mark .wb { color: #7a3f98; } .wtb__mark .oz { color: #1a6fe0; }
.wtb__desc { font-family: var(--font-body); font-size: 15.5px; line-height: 1.55; color: var(--fg-secondary); margin: 0; flex: 1; }
.wtb__seller { font-family: var(--font-ui); font-size: 13px; color: var(--warm-gray); }
.wtb__foot { font-family: var(--font-body); font-size: 13px; color: var(--warm-gray); text-align: center; margin-top: 24px; }

@media (max-width: 640px) {
  .wtb { grid-template-columns: 1fr; }
  .wtb__tile { padding: 30px 26px; }
}
@media (max-width: 820px) {
  .quiz { grid-template-columns: 1fr; gap: 22px; }
  .quiz__result { position: static; }
  .qresult, .qresult__empty { min-height: 0; }
  .qresult__empty { min-height: 200px; }
  .qresult__media { height: 260px; }
}

/* переключение «слева/справа» → «выше/ниже» когда квиз в стопку */
.q-mb { display: none; }
@media (max-width: 820px) {
  .q-dt { display: none; }
  .q-mb { display: inline; }
}
