/**
 * VezemZerno — стили раздела «Вопросы и ответы» (/questions).
 * Использует общие дизайн-токены темы (--vz-*), Manrope, vz-* классы.
 * Подключается только на страницах questions (questions-shell.tpl.php).
 */

.vz-questions-main { padding: 20px 0 48px; }

/* Штатные элементы контент-листа, не используемые в брендированной витрине Q&A */
.vz-questions-page .subscribe_wrap,
.vz-questions-page .icms-content-list__styles_btn,
.vz-questions-page .icms-comments-tracking { display: none !important; }

/* ---- Breadcrumbs ---- */
.vz-q-crumbs { font-size: 13px; color: var(--vz-text-muted); margin: 0 0 18px; }
.vz-q-crumbs a { color: var(--vz-text-secondary); text-decoration: none; }
.vz-q-crumbs a:hover { color: var(--vz-green); }
.vz-q-crumbs span { margin: 0 6px; color: var(--vz-border); }

/* ---- Hero ---- */
.vz-q-hero {
    background: linear-gradient(170deg, #f0f7f2 0%, #fafaf6 45%, #fdfaf5 100%);
    border: 1px solid var(--vz-border-light);
    border-radius: var(--vz-radius);
    padding: 28px 28px 26px;
    margin-bottom: 26px;
}
.vz-q-hero__eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 700; color: var(--vz-green-dark);
    background: #fff; border: 1px solid var(--vz-green-bg);
    padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.vz-q-hero h1 {
    font-size: 30px; line-height: 1.15; font-weight: 800;
    color: var(--vz-text); margin: 0 0 10px;
}
.vz-q-hero__lead {
    font-size: 15px; line-height: 1.6; color: var(--vz-text-secondary);
    margin: 0 0 18px; max-width: 640px;
}
.vz-q-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- Section titles ---- */
.vz-q-sec-title {
    font-size: 19px; font-weight: 800; color: var(--vz-text);
    margin: 30px 0 14px;
}

/* ---- Categories grid ---- */
.vz-q-cats {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.vz-q-cat {
    display: flex; gap: 13px; align-items: flex-start;
    background: var(--vz-bg); border: 1px solid var(--vz-border);
    border-radius: var(--vz-radius-sm); padding: 15px 16px;
    text-decoration: none; transition: border-color var(--vz-transition), box-shadow var(--vz-transition), transform var(--vz-transition);
}
.vz-q-cat:hover { border-color: var(--vz-green-light); box-shadow: var(--vz-shadow-sm); transform: translateY(-1px); }
.vz-q-cat__icon {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px;
    background: var(--vz-green-bg); color: var(--vz-green-dark);
    display: flex; align-items: center; justify-content: center;
}
.vz-q-cat__body { min-width: 0; }
.vz-q-cat__name { font-size: 15px; font-weight: 700; color: var(--vz-text); margin: 2px 0 3px; }
.vz-q-cat__desc { font-size: 12.5px; line-height: 1.45; color: var(--vz-text-muted); margin: 0; }
.vz-q-cat__count { font-size: 12px; color: var(--vz-green-dark); font-weight: 600; margin-top: 6px; display: inline-block; }

/* ---- Question cards list ---- */
.vz-q-list { display: flex; flex-direction: column; gap: 12px; }
.vz-q-card {
    display: block; background: var(--vz-bg); border: 1px solid var(--vz-border);
    border-radius: var(--vz-radius-sm); padding: 16px 18px; text-decoration: none;
    transition: border-color var(--vz-transition), box-shadow var(--vz-transition);
}
.vz-q-card:hover { border-color: var(--vz-green-light); box-shadow: var(--vz-shadow-sm); }
.vz-q-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 7px; }
.vz-q-card__cat {
    font-size: 12px; font-weight: 600; color: var(--vz-green-dark);
    background: var(--vz-green-bg); padding: 3px 9px; border-radius: 999px;
}
.vz-q-card__region {
    font-size: 12px; color: var(--vz-text-muted);
    display: inline-flex; align-items: center; gap: 4px;
}
.vz-q-card__title { font-size: 16.5px; font-weight: 700; color: var(--vz-text); margin: 0 0 6px; line-height: 1.35; }
.vz-q-card:hover .vz-q-card__title { color: var(--vz-green-dark); }
.vz-q-card__excerpt { font-size: 13.5px; line-height: 1.55; color: var(--vz-text-secondary); margin: 0 0 10px; }
.vz-q-card__meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
    font-size: 12.5px; color: var(--vz-text-muted);
}
.vz-q-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.vz-q-card__meta .vz-q-card__answers { color: var(--vz-green-dark); font-weight: 600; }

/* ---- Empty state ---- */
.vz-q-empty {
    text-align: center; background: var(--vz-bg-alt);
    border: 1px dashed var(--vz-border); border-radius: var(--vz-radius);
    padding: 40px 24px;
}
.vz-q-empty__icon { color: var(--vz-green-light); margin-bottom: 12px; }
.vz-q-empty__title { font-size: 17px; font-weight: 700; color: var(--vz-text); margin: 0 0 8px; }
.vz-q-empty__text { font-size: 14px; color: var(--vz-text-secondary); margin: 0 auto 18px; max-width: 460px; line-height: 1.55; }

/* ---- CTA block ---- */
.vz-q-cta {
    margin-top: 34px; background: linear-gradient(135deg, var(--vz-green) 0%, var(--vz-green-dark) 100%);
    border-radius: var(--vz-radius); padding: 26px 28px; color: #fff;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.vz-q-cta__text h2 { font-size: 20px; font-weight: 800; margin: 0 0 6px; color: #fff; }
.vz-q-cta__text p { font-size: 14px; margin: 0; color: rgba(255,255,255,0.9); max-width: 520px; line-height: 1.5; }
.vz-q-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.vz-q-cta .vz-btn--primary { background: #fff; color: var(--vz-green-dark); border-color: #fff; }
.vz-q-cta .vz-btn--primary:hover { background: var(--vz-gold-bg); color: var(--vz-green-dark); }
.vz-q-cta .vz-btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.vz-q-cta .vz-btn--outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* ---- Category page header ---- */
.vz-q-cathead { margin-bottom: 20px; }
.vz-q-cathead h1 { font-size: 26px; font-weight: 800; color: var(--vz-text); margin: 0 0 8px; }
.vz-q-cathead__desc { font-size: 14.5px; line-height: 1.6; color: var(--vz-text-secondary); margin: 0 0 14px; max-width: 640px; }

/* ---- Warning / trust note ---- */
.vz-q-warning {
    display: flex; gap: 11px; align-items: flex-start;
    background: var(--vz-warm-light); border: 1px solid #f3d9c2;
    border-radius: var(--vz-radius-sm); padding: 13px 15px;
    font-size: 13px; line-height: 1.5; color: #8a4b22; margin: 18px 0;
}
.vz-q-warning__icon { flex: 0 0 auto; color: var(--vz-warm); margin-top: 1px; }
.vz-q-warning a { color: #8a4b22; font-weight: 700; }

/* ---- Question page ---- */
.vz-q-item { max-width: 820px; }
.vz-q-item__head { margin-bottom: 14px; }
.vz-q-item__cat {
    display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--vz-green-dark);
    background: var(--vz-green-bg); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
    text-decoration: none;
}
.vz-q-item__cat:hover { background: var(--vz-green); color: #fff; }
.vz-q-item h1 { font-size: 26px; line-height: 1.25; font-weight: 800; color: var(--vz-text); margin: 0 0 12px; }
.vz-q-item__meta {
    display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--vz-text-muted);
    padding-bottom: 16px; border-bottom: 1px solid var(--vz-border-light); margin-bottom: 18px;
}
.vz-q-item__meta span { display: inline-flex; align-items: center; gap: 5px; }
.vz-q-item__meta a { color: var(--vz-text-secondary); text-decoration: none; font-weight: 600; }
.vz-q-item__meta a:hover { color: var(--vz-green); }
.vz-q-item__body { font-size: 15.5px; line-height: 1.7; color: var(--vz-text); }
.vz-q-item__body p { margin: 0 0 14px; }
.vz-q-item__moderation {
    background: var(--vz-gold-bg); border: 1px solid var(--vz-gold-light);
    border-radius: var(--vz-radius-sm); padding: 11px 14px; font-size: 13px;
    color: #7a5a12; margin-bottom: 16px;
}
.vz-q-answers { margin-top: 26px; }
.vz-q-answers__title { font-size: 19px; font-weight: 800; color: var(--vz-text); margin: 0 0 8px; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .vz-q-hero { padding: 22px 18px; }
    .vz-q-hero h1 { font-size: 24px; }
    .vz-q-cats { grid-template-columns: 1fr; }
    .vz-q-cta { padding: 22px 18px; }
    .vz-q-cta__text h2 { font-size: 18px; }
    .vz-q-item h1 { font-size: 22px; }
}
