/* ─── Квиз «С чего начать» на главной (14.10.2026) ───
   Токены — site-theme.css (Onest, --accent #3A3DD4, --text #11253E). Отступы только из шкалы сайта 4/8/12/16/20/24/32/40/56/96 (20 — как поля .pk-panel на телефоне, замер /praktikum),
   панель как .pk-panel Практикума (фон #F0F4FA, радиус 32, поля 56 → на телефоне 32/20). */
.hq { padding: 24px 0 var(--section-y, 96px); }
.hq-head { text-align: center; margin: 0 auto 40px; max-width: 720px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hq-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 600; }
.hq-kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(58, 61, 212, .18); }
.hq-title { margin: 0; font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }

.hq-panel { position: relative; }
.hq-panel::before { content: ''; position: absolute; right: -80px; top: -120px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, #DCE6FF 0%, rgba(220, 230, 255, 0) 70%); pointer-events: none; }
.hq-app { position: relative; }

/* Без JS: три ссылки */
.hq-fallback { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hq-fb { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--text); text-decoration: none; }
.hq-fb span { color: var(--accent); font-weight: 600; }

/* Левая колонка */
.hq-quiz { background: #fff; border: 1px solid var(--line); border-radius: 32px; padding: 56px; box-shadow: 0 24px 50px -30px rgba(17, 37, 62, .45); min-height: 440px; display: flex; flex-direction: column; }
.hq-progress { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.hq-bar { flex: 1; height: 8px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.hq-bar-fill { display: block; height: 100%; width: 12%; border-radius: 4px; background: var(--accent); transition: width .45s cubic-bezier(0, 0, .2, 1); }
.hq-bar-t { flex: none; font-size: 14px; font-weight: 600; color: var(--text-3); min-width: 88px; text-align: right; }
.hq-step { display: flex; flex-direction: column; flex: 1; }
.hq-step.is-in { animation: hqIn .36s cubic-bezier(0, 0, .2, 1) both; }
@keyframes hqIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hq-num { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--text-3); }
.hq-q { margin: 0; font-size: 38px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.hq-sub { margin: 16px 0 0; font-size: 18px; line-height: 1.5; color: var(--text-2); }

.hq-opts { display: grid; gap: 24px; margin-top: 40px; }
.hq-opts--2 { grid-template-columns: 1fr 1fr; }
.hq-opts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hq-opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hq-opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; padding: 32px; background: #fff; border: 2px solid var(--line); border-radius: 24px; font: inherit; color: var(--text); cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease; }
.hq-opt:hover { border-color: rgba(58, 61, 212, .45); transform: translateY(-2px); box-shadow: 0 16px 34px -26px rgba(26, 55, 92, .42); }
.hq-opt:focus-visible { outline: 3px solid rgba(58, 61, 212, .35); outline-offset: 2px; }
.hq-opt::after { content: '✓'; position: absolute; top: 24px; right: 24px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.6); transition: opacity .2s ease, transform .2s ease; }
.hq-opt.is-picked { border-color: var(--accent); background: var(--accent-soft); }
.hq-opt.is-picked::after { opacity: 1; transform: none; }
.hq-opt--row { flex-direction: row; align-items: center; justify-content: center; padding: 32px 24px; text-align: center; }
.hq-opt--row .hq-opt-t { font-size: 26px; }
.hq-ic { width: 64px; height: 64px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; transition: background .2s ease, color .2s ease; }
.hq-opt.is-picked .hq-ic { background: var(--accent); color: #fff; }
.hq-opt-t { font-size: 24px; font-weight: 600; line-height: 1.25; }
.hq-opt-d { font-size: 16px; line-height: 1.45; color: var(--text-2); }

.hq-back { align-self: flex-start; margin-top: auto; padding: 24px 0 0; background: none; border: 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--text-3); cursor: pointer; }
.hq-back:hover { color: var(--accent); }

.hq-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: auto; padding-top: 40px; }
.hq-proof-i { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.hq-proof-i b { font-size: 32px; font-weight: 600; letter-spacing: -.01em; color: var(--accent); line-height: 1.1; }
.hq-proof-i span { font-size: 15px; line-height: 1.4; color: var(--text-2); }

/* Итог */
.hq-tag { align-self: flex-start; margin-bottom: 16px; padding: 8px 16px; border-radius: 999px; background: var(--text); color: #fff; font-size: 14px; font-weight: 600; }
.hq-tag.is-free { background: var(--green-soft); color: var(--green); }
.hq-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.hq-list li { position: relative; padding-left: 36px; font-size: 17px; line-height: 1.45; color: var(--text); }
.hq-list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.hq-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 40px; }
.hq-link { font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: none; }
.hq-link:hover { text-decoration: underline; }


@media (max-width: 960px) {
  .hq-quiz { padding: 40px; border-radius: 24px; }
  .hq-q { font-size: 32px; }
  .hq-opts--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hq { padding-top: 16px; }
  .hq-head { margin-bottom: 24px; }
  .hq-fallback { grid-template-columns: 1fr; }
  .hq-quiz { padding: 32px 20px; border-radius: 24px; }
  .hq-progress { margin-bottom: 24px; }
  .hq-q { font-size: 24px; }
  .hq-opts { margin-top: 24px; gap: 12px; }
  .hq-opts--2, .hq-opts--3 { grid-template-columns: 1fr; }
  .hq-list { grid-template-columns: 1fr; gap: 12px; }
  .hq-sub { font-size: 16px; }
  .hq-opt { padding: 24px; border-radius: 20px; }
  .hq-opt::after { top: 16px; right: 16px; }
  .hq-opts--2 .hq-opt { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-items: center; padding: 20px 48px 20px 20px; }
  .hq-opts--2 .hq-ic { grid-row: span 2; width: 48px; height: 48px; margin: 0; border-radius: 12px; }
  .hq-opts--2 .hq-ic svg { width: 24px; height: 24px; }
  .hq-opts--2 .hq-opt-t { font-size: 18px; }
  .hq-opts--2 .hq-opt-d { font-size: 14px; }
  .hq-opt-t { font-size: 20px; }
  .hq-opt--row { padding: 20px 16px; }
  .hq-opt--row .hq-opt-t { font-size: 18px; }
  .hq-proof { grid-template-columns: 1fr; gap: 12px; padding-top: 24px; }
  .hq-proof-i { flex-direction: row; align-items: baseline; gap: 12px; padding-top: 12px; }
  .hq-proof-i b { font-size: 20px; min-width: 64px; }
  .hq-quiz { min-height: 0; }
  .hq-cta .pill { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hq-step.is-in { animation: none; }
  .hq-opt, .hq-bar-fill { transition: none; }
}
