/* Блок квестов внизу /quests (partials/quests-showcase), 27.09.2026.
   Шапка — в стиле страницы «Как начать зарабатывать» (жёлтый акцент #ffc107).
   Карточки прежней страницы /prizes: правила перенесены из pages/prizes и
   ограничены блоком .qsh__legacy, чтобы не задеть остальную страницу /quests;
   анимации переименованы по той же причине. Карточки новой страницы берут
   стили из quests.css (всё под .qp). */

.qsh {
    max-width: 1240px;
    margin: 0 auto 70px;
    padding: 0 16px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #e0e0e0;
    scroll-margin-top: 16px;
}
.qsh__head { text-align: center; margin-bottom: 8px; }
.qsh__title { font-size: 30px; font-weight: 900; color: #fff; margin: 0 0 8px; letter-spacing: -0.01em; text-wrap: balance; }
.qsh__lead { color: #9a9a9a; font-size: 15px; margin: 0 auto; max-width: 560px; }
.qsh__more { text-align: center; margin-top: 28px; }
.qsh__more-btn {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid rgba(255, 193, 7, 0.5); color: #ffc107 !important;
    padding: 12px 26px; border-radius: 50px; font-weight: 700; text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.qsh__more-btn:hover, .qsh__more-btn:focus-visible { background: #ffc107; color: #050505 !important; text-decoration: none; }

/* Новые карточки: .qp задаёт свою ширину и отступы — внутри блока они не нужны. */
.qsh .qsh__v2.qp { max-width: none; padding: 0; }
.qsh .qsh__v2 .qp-group:first-child { margin-top: 24px; }

/* ===== Прежние карточки /prizes ===== */
.qsh__legacy {
    --primary-color: #ff9800;
    --primary-dark: #f57c00;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --card-bg: #242424;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    line-height: 1.6;
    margin-top: 24px;
}
@keyframes qshFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes qshAutoGlow { 0%, 100% { border-color: rgba(255, 152, 0, 0.5); } 50% { border-color: rgba(255, 152, 0, 1); } }
@keyframes qshYouthGlow { 0%, 100% { border-color: rgba(76,175,80,0.4); } 50% { border-color: rgba(76,175,80,0.9); } }

.qsh__legacy .prizes-section-title {
    font-size: 18px; font-weight: 700; color: rgba(255,255,255,.6);
    padding: 0 1rem; margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
}
.qsh__legacy .prizes-section-title i { color: var(--primary-color); font-size: 15px; }
.qsh__legacy .prizes-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem; padding: 1rem; margin-bottom: 40px !important;
}
.qsh__legacy .prize-card {
    background: var(--card-bg); border-radius: 1rem; overflow: hidden; position: relative;
    animation: qshFadeIn 0.5s ease-out backwards;
    display: flex; flex-direction: column; height: 100%; text-align: center;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-font-smoothing: antialiased; cursor: pointer;
}
.qsh__legacy .prize-card.is-auto {
    border: 2px solid rgba(255, 152, 0, 0.5);
    animation: qshFadeIn 0.5s ease-out backwards, qshAutoGlow 2.5s ease-in-out infinite !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}
.qsh__legacy .prize-card.hovered { transform: translateY(-8px); }
.qsh__legacy .prize-card.is-auto.hovered { border-color: rgba(255, 152, 0, 1); }
.qsh__legacy .prize-card.is-youth {
    border: 2px solid rgba(76,175,80,0.5) !important;
    animation: qshFadeIn 0.5s ease-out backwards, qshYouthGlow 2.5s ease-in-out infinite !important;
}
.qsh__legacy .auto-label {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    background: rgba(76,175,80,0.12); border-top: 1px solid rgba(76,175,80,0.25);
    color: #81c784; font-size: 12px; font-weight: 600; padding: 8px 16px;
}
.qsh__legacy .auto-label i { font-size: 11px; }
.qsh__legacy .social-status-label {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 12px; font-weight: 600; padding: 8px 16px; border-top: 1px solid rgba(255,255,255,.06);
}
.qsh__legacy .social-status-label.pending  { background: rgba(33,150,243,.08); color: #90caf9; border-top-color: rgba(33,150,243,.15); }
.qsh__legacy .social-status-label.approved { background: rgba(76,175,80,.1);   color: #81c784; border-top-color: rgba(76,175,80,.2); }
.qsh__legacy .social-status-label.rejected { background: rgba(229,57,53,.08);  color: #ef9a9a; border-top-color: rgba(229,57,53,.15); }
.qsh__legacy .social-status-label.none     { background: rgba(76,175,80,.12);  color: #81c784; border-top-color: rgba(76,175,80,.25); }
.qsh__legacy .card-header {
    padding: 1.5rem; background: linear-gradient(135deg, rgba(33,150,243,0.1), rgba(233,30,99,0.1));
    display: flex; align-items: center; justify-content: space-between;
}
.qsh__legacy .logo-img { height: 60px; width: auto; object-fit: contain; }
.qsh__legacy .prize-badge {
    background: var(--gradient-primary); color: var(--text-primary);
    padding: 0.5rem 1.5rem; border-radius: 2rem; font-weight: 600;
    box-shadow: 0 4px 12px rgba(255,152,0,0.3);
}
.qsh__legacy .prize-badge.age-badge {
    background: linear-gradient(135deg, #4caf50, #2e7d32) !important;
    box-shadow: 0 4px 12px rgba(76,175,80,0.3) !important;
    font-size: 0.85rem; padding: 0.5rem 1.2rem;
}
.qsh__legacy .prize-badge.badge-deposit { background: rgba(33,150,243,.2) !important; color: #7cc1f9 !important; border: 1px solid rgba(33,150,243,.5); box-shadow: none !important; }
.qsh__legacy .prize-badge.badge-free { background: rgba(76,175,80,.2) !important; color: #97d49a !important; border: 1px solid rgba(76,175,80,.45); box-shadow: none !important; }
.qsh__legacy .prize-badge.age-badge--violet { background: rgba(156,39,176,.2) !important; color: #ce93d8 !important; border: 1px solid rgba(156,39,176,.5) !important; box-shadow: none !important; }
.qsh__legacy .card-body { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.qsh__legacy .condition { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 1.1rem; }
.qsh__legacy .pc-admin .condition { font-size: 0.92rem; color: rgba(255,255,255,.5); margin-bottom: 1rem; }
.qsh__legacy .reward { font-size: 1.2rem; font-weight: 600; color: var(--primary-color); margin-bottom: 1.5rem; }
.qsh__legacy .prize-image { width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 0.5rem; margin: 1rem 0; }
.qsh__legacy .pc-admin .prize-image { margin: 0.75rem 0; }
.qsh__legacy .prize-image img { width: 100%; height: 100%; object-fit: cover; }
.qsh__legacy .social-icon-wrap { width: 100%; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; margin: 1rem 0; }
.qsh__legacy .social-icon-wrap i { font-size: 56px; opacity: .25; }
.qsh__legacy .pcard-ribbon {
    background: rgba(255,152,0,.1); color: #ffb74d; font-size: 12px; font-weight: 600;
    padding: 7px 12px; border-bottom: 1px solid rgba(255,152,0,.15);
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.qsh__legacy .pcard-ribbon i { font-size: 12px; }
.qsh__legacy .pcard-skinname { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 8px; text-align: center; }
.qsh__legacy .btn-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    width: 100%; padding: 1rem; background: var(--gradient-primary);
    color: var(--text-primary); text-decoration: none; font-weight: 600;
    border: none; cursor: pointer; margin-top: auto; transition: opacity 0.2s;
}
.qsh__legacy .btn-link:hover { opacity: 0.88; color: #fff; text-decoration: none; }

@media (max-width: 768px) {
    .qsh { margin-bottom: 48px; }
    .qsh__title { font-size: 24px; }
    .qsh__legacy .prizes-grid { justify-items: center; gap: 1.25rem; padding: 1rem 0; }
    .qsh__legacy .prizes-section-title { justify-content: center; }
}
@media (max-width: 400px) {
    .qsh__legacy .prizes-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .qsh__legacy .prize-card, .qsh__legacy .prize-card.is-auto, .qsh__legacy .prize-card.is-youth { animation: none !important; }
    .qsh__legacy .prize-card.hovered { transform: none; }
}
