/* Мишины Игрушки — первый экран главной: переключатель дорог, карусель хитов, панель печати на заказ.
   Только токены: работает в обеих темах. Дополняет pages/home.css (заголовок, кнопки, цифры). */

.hh-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hh-top .hero-badge { margin: 0; }

/* ---------- Переключатель дорог ---------- */
.hh-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); }
.hh-tab {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 0; border-radius: 999px; background: transparent;
    color: var(--muted); font-weight: 700; font-size: .92rem; cursor: pointer; transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.hh-tab:hover { color: var(--text); }
.hh-tab.is-active { background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: var(--white); box-shadow: 0 6px 18px var(--brand-a35); }

/* ---------- Панели ---------- */
.hh-panel[hidden] { display: none; }
.hh-panel.is-active { animation: hh-in .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes hh-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hh .hero-title { margin-top: 0; font-size: clamp(1.9rem, 3.3vw, 3rem); }
.hh .hero-stats { margin-top: 34px; }

/* ---------- Карусель ---------- */
.hh-slider-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hh-chips { display: inline-flex; gap: 6px; }
.hh-chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; font-size: .84rem; cursor: pointer; }
.hh-chip.is-active { background: var(--accent-a14); border-color: var(--accent-a70); color: var(--accent-hot); }
.hh-arrows { display: inline-flex; gap: 6px; }
.hh-arrow { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.hh-arrow:hover { border-color: var(--accent-a70); color: var(--accent-hot); }
.hh-arrow[disabled] { opacity: .35; cursor: default; }
.hh-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 14px; }
.hh-track::-webkit-scrollbar { display: none; }
.hh-track[hidden] { display: none; }
.hh-track:focus-visible { outline: 2px solid var(--accent-a70); outline-offset: 2px; border-radius: 16px; }
.hh-card { flex: 0 0 clamp(190px, 42%, 250px); scroll-snap-align: start; }
.hh-card .p-card { height: 100%; }

/* ---------- Печать на заказ ---------- */
.hh-print { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 18px; padding: 18px; border-radius: 28px; background: linear-gradient(160deg, var(--surface-high), var(--glass-to)); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--white-a06), 0 14px 40px var(--shadow-a35); }
.hh-print-img { width: 100%; max-height: 380px; object-fit: contain; filter: drop-shadow(0 16px 28px var(--shadow-a35)); }
.hh-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hh-steps li { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.hh-steps b { grid-row: span 2; align-self: center; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: var(--white); font-family: var(--font-display); font-weight: 800; }
.hh-steps span { font-weight: 700; color: var(--text); }
.hh-steps small { color: var(--muted); font-size: .78rem; }
.hh-print-card { padding: 40px 20px; text-align: center; }

/* ---------- 3D-сканирование ---------- */
.hh-new { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; background: var(--ok-a12); border: 1px solid var(--ok-a35); color: var(--ok-text); font-size: .78rem; font-weight: 800; }
.hh-scan-facts { list-style: none; margin: 18px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hh-scan-facts li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: .9rem; }
.hh-scan-facts li i { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-a14); color: var(--accent-hot); }
.hh-scan-facts b { display: block; color: var(--text); }
.hh-scan-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.hh-scan-shots img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); }
.hh-scan-form { margin: 0; }
.hh-scan-form-title { margin: 0 0 6px; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }

@media (max-width: 991.98px) {
    .hh-top { margin-bottom: 16px; }
    .hh-print { grid-template-columns: 1fr; }
    .hh-print-img { max-height: 240px; }
}
@media (max-width: 575.98px) {
    .hh-switch { width: 100%; }
    .hh-tab { flex: 1; justify-content: center; padding: 10px 8px; font-size: .86rem; }
    .hh .hero-actions .btn-hero { width: 100%; }
    .hh-arrows { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hh-panel.is-active { animation: none; } .hh-track { scroll-behavior: auto; } }
