/* Квиз «Выезд на природу» — яркая промо-страница.
   Все цвета и отступы в переменных: правки не ломают вёрстку. */

.qz {
  --ink: #1b0e2e;
  --ink-soft: #4a3a63;
  --cream: #fff8f1;
  --pink: #ff2d78;
  --orange: #ff7a18;
  --yellow: #ffd21e;
  --violet: #7a3bff;
  --mint: #00d9a6;
  --radius: 28px;
  --shadow: 0 34px 90px rgba(64, 22, 94, .22);
  --pad: clamp(20px, 4vw, 64px);
  margin: 0;
  padding: 0 0 72px;
  min-height: 100%;
  color: var(--ink);
  background: linear-gradient(150deg, #ffe9c7 0%, #ffd9ec 42%, #e4dbff 100%);
  background-attachment: fixed;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.qz *,
.qz *::before,
.qz *::after { box-sizing: border-box; }

.qz h1, .qz h2, .qz h3 { margin: 0; font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.qz p { margin: 0; }
.qz img { display: block; max-width: 100%; }

/* ——— фон: цветные пятна ——— */
.qz-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.qz-bg i { position: absolute; display: block; border-radius: 50%; filter: blur(48px); opacity: .55; }
.qz-bg i:nth-child(1) { width: 44vw; height: 44vw; left: -10vw; top: -8vw; background: var(--pink); animation: qz-float 17s ease-in-out infinite; }
.qz-bg i:nth-child(2) { width: 38vw; height: 38vw; right: -8vw; top: 18vh; background: var(--orange); animation: qz-float 21s ease-in-out infinite reverse; }
.qz-bg i:nth-child(3) { width: 42vw; height: 42vw; left: 28vw; bottom: -14vw; background: var(--violet); animation: qz-float 25s ease-in-out infinite; }

/* ——— прогресс и шапка ——— */
.qz-progress {
  position: fixed; z-index: 40; inset: 0 0 auto 0; height: 7px;
  background: rgba(255, 255, 255, .55);
}
.qz-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--yellow), var(--orange) 45%, var(--pink));
  border-radius: 0 99px 99px 0;
  transition: width .5s cubic-bezier(.2, .8, .2, 1);
}
.qz-top {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 26px var(--pad) 6px;
}
.qz-home {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 99px;
  background: rgba(255, 255, 255, .82); color: var(--ink);
  font-size: 14px; font-weight: 600; text-decoration: none;
  box-shadow: 0 10px 30px rgba(64, 22, 94, .14);
  transition: transform .25s ease, background .25s ease;
}
.qz-home:hover { background: #fff; transform: translateY(-2px); }
.qz-counter { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.qz-counter b { color: var(--ink); }

/* ——— сцена и карточки ——— */
.qz-stage { position: relative; z-index: 10; padding: 18px var(--pad) 0; }
@media (min-width: 901px) {
  .qz-stage { min-height: calc(100svh - 120px); display: flex; flex-direction: column; justify-content: safe center; }
}
.qz-screen { display: none; }
.qz-screen.is-active { display: block; }

.qz-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(24px, 3vw, 56px);
  align-items: center;
  margin: 0 auto; max-width: 1180px;
  padding: clamp(22px, 3vw, 44px);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .94);
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.qz-copy { min-width: 0; }

.qz-photo {
  position: relative; margin: 0; min-width: 0;
  border-radius: 22px; overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #ffe9c7, #ffd9ec 55%, #e4dbff);
  box-shadow: 0 22px 50px rgba(64, 22, 94, .22);
}
.qz-photo img { width: 100%; height: 100%; object-fit: cover; }
.qz-card > .qz-photo { order: 2; }

/* ——— типографика ——— */
.qz-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 18px; padding: 8px 16px;
  border-radius: 99px; background: rgba(122, 59, 255, .1);
  color: var(--violet); font-size: 13px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.qz-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 122, 24, .22); }
.qz-title { font-size: clamp(38px, 5.4vw, 74px); }
.qz-q { font-size: clamp(28px, 3.4vw, 46px); }
.qz-sub { margin: 34px 0 14px; font-size: 20px; letter-spacing: -.02em; }
.qz-mark {
  background: linear-gradient(96deg, var(--pink), var(--orange) 55%, var(--yellow));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.qz-lead { margin-top: 20px; max-width: 46ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-soft); }
.qz-form-lead { margin-bottom: 20px; color: var(--ink-soft); font-size: 16px; }

/* ——— кнопки ——— */
.qz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px; padding: 0 30px; margin-top: 26px;
  border: 0; border-radius: 99px; cursor: pointer;
  font: inherit; font-weight: 700; text-align: center;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, background .25s ease;
}
.qz-btn--primary {
  background: linear-gradient(96deg, var(--pink), var(--orange));
  color: #fff; box-shadow: 0 18px 40px rgba(255, 45, 120, .34);
}
.qz-btn--primary:hover { transform: translateY(-3px); box-shadow: 0 24px 52px rgba(255, 45, 120, .42); }
.qz-btn--ghost {
  min-height: 48px; margin-top: 0; padding: 0 22px;
  background: rgba(122, 59, 255, .1); color: var(--violet); box-shadow: none;
}
.qz-btn--ghost:hover { background: rgba(122, 59, 255, .18); transform: translateY(-2px); }
.qz-btn span[aria-hidden] { transition: transform .25s ease; }
.qz-btn:hover span[aria-hidden] { transform: translateX(4px); }

.qz-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.qz-facts li {
  padding: 9px 16px; border-radius: 99px;
  background: rgba(0, 217, 166, .14); color: #0a7d63;
  font-size: 14px; font-weight: 600;
}

/* ——— варианты ответа ——— */
.qz-options { display: grid; gap: 12px; margin-top: 26px; }
.qz-option {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  width: 100%; padding: 20px 22px; text-align: left; cursor: pointer;
  border: 2px solid rgba(122, 59, 255, .16); border-radius: 18px;
  background: #fff; color: var(--ink);
  font: inherit; font-size: 17px; font-weight: 600;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.qz-option:hover,
.qz-option:focus-visible {
  transform: translateX(6px);
  border-color: var(--orange);
  background: #fff6ec;
  box-shadow: 0 14px 32px rgba(255, 122, 24, .18);
}
.qz-option-arrow { flex: 0 0 auto; font-size: 20px; color: var(--pink); opacity: 0; transform: translateX(-8px); transition: opacity .22s ease, transform .22s ease; }
.qz-option:hover .qz-option-arrow,
.qz-option:focus-visible .qz-option-arrow,
.qz-option.is-picked .qz-option-arrow { opacity: 1; transform: none; }
.qz-option.is-picked { border-color: var(--mint); background: rgba(0, 217, 166, .1); }
.qz-nav { margin-top: 22px; }

/* ——— результат ——— */
.qz-q--result { max-width: 20ch; }
.qz-archetypes { margin-top: 8px; }
.qz-archetype { display: none; margin-top: 18px; padding: 20px 22px; border-radius: 18px; background: rgba(255, 210, 30, .18); }
.qz-archetype.is-active { display: block; }
.qz-archetype h3 { font-size: 22px; margin-bottom: 8px; }
.qz-archetype p { color: var(--ink-soft); }

.qz-summary { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: qz; }
.qz-summary li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 12px 16px; border-radius: 14px; background: rgba(122, 59, 255, .07);
  font-size: 15px;
}
.qz-summary b { flex: 0 0 auto; color: var(--violet); }
.qz-summary span { color: var(--ink-soft); }

/* ——— форма ——— */
.qz-form { margin-top: 30px; padding: 24px; border-radius: 20px; background: rgba(255, 45, 120, .06); }
.qz-field { display: grid; gap: 8px; margin-bottom: 16px; }
.qz-field label { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.qz-field input {
  width: 100%; min-height: 56px; padding: 0 18px;
  border: 2px solid rgba(122, 59, 255, .18); border-radius: 14px;
  background: #fff; color: var(--ink); font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.qz-field input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(122, 59, 255, .14); }
.qz-form-error { margin: 0 0 6px; color: #c8174f; font-size: 14px; font-weight: 600; }

.qz-done { margin-top: 30px; padding: 24px; border-radius: 20px; background: rgba(0, 217, 166, .14); }
.qz-done-text {
  margin: 0 0 18px; padding: 18px; max-height: 340px; overflow: auto;
  border-radius: 14px; background: #fff; color: var(--ink);
  font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word;
}
.qz-done-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ——— появление ——— */
@keyframes qz-card-in { from { opacity: 0; transform: translate3d(0, 42px, 0) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes qz-photo-in { from { opacity: 0; transform: translate3d(34px, 18px, 0) scale(.96) rotate(1.2deg); } to { opacity: 1; transform: none; } }
@keyframes qz-line-in { from { opacity: 0; transform: translate3d(-26px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes qz-float { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(4%, 5%, 0) scale(1.08); } }
@keyframes qz-pop { 0% { transform: scale(.9); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }

.qz-screen.is-active .qz-card { animation: qz-card-in .55s cubic-bezier(.2, .8, .2, 1) both; }
.qz-screen.is-active .qz-photo { animation: qz-photo-in .7s cubic-bezier(.2, .8, .2, 1) both .06s; }
.qz-screen.is-active .qz-kicker,
.qz-screen.is-active .qz-title,
.qz-screen.is-active .qz-q,
.qz-screen.is-active .qz-lead { animation: qz-line-in .5s cubic-bezier(.2, .8, .2, 1) both; }
.qz-screen.is-active .qz-lead { animation-delay: .08s; }
.qz-screen.is-active .qz-btn,
.qz-screen.is-active .qz-facts,
.qz-screen.is-active .qz-nav,
.qz-screen.is-active .qz-form,
.qz-screen.is-active .qz-done,
.qz-screen.is-active .qz-summary,
.qz-screen.is-active .qz-sub { animation: qz-line-in .5s cubic-bezier(.2, .8, .2, 1) both .14s; }
.qz-screen.is-active .qz-option { animation: qz-card-in .5s cubic-bezier(.2, .8, .2, 1) both; }
.qz-screen.is-active .qz-option:nth-child(1) { animation-delay: .14s; }
.qz-screen.is-active .qz-option:nth-child(2) { animation-delay: .2s; }
.qz-screen.is-active .qz-option:nth-child(3) { animation-delay: .26s; }
.qz-screen.is-active .qz-option:nth-child(4) { animation-delay: .32s; }
.qz-screen.is-active .qz-archetype.is-active { animation: qz-pop .45s cubic-bezier(.2, .8, .2, 1) both; }

/* ——— адаптив ——— */
@media (max-width: 900px) {
  .qz-card { grid-template-columns: minmax(0, 1fr); }
  .qz-card > .qz-photo { order: 0; aspect-ratio: 16 / 10; }
  .qz-card--intro > .qz-photo { order: 0; }
  .qz-title { font-size: clamp(34px, 8vw, 54px); }
  .qz-q { font-size: clamp(26px, 6vw, 38px); }
  .qz-stage { padding-top: 12px; }
}
@media (max-width: 560px) {
  .qz { font-size: 16px; }
  .qz-card { padding: 18px; border-radius: 22px; }
  .qz-photo { border-radius: 16px; }
  .qz-btn { width: 100%; }
  .qz-option { padding: 17px 18px; font-size: 16px; }
  .qz-form, .qz-done { padding: 18px; }
  .qz-top { padding-top: 20px; }
  .qz-summary li { flex-direction: column; gap: 4px; }
}

.qz-credit {
  position: relative; z-index: 10;
  margin: 34px auto 0; max-width: 1180px; padding: 0 var(--pad);
  font-size: 12px; color: rgba(27, 14, 46, .55);
}
.qz-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ——— доступность ——— */
.qz :focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .qz *, .qz *::before, .qz *::after { animation: none !important; transition: none !important; }
  .qz-bg i { animation: none !important; }
}
