.pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin: 24px 0 40px;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.pagination a:hover {
    border-color: var(--green);
}
.pagination .active {
    background: var(--green-tint);
    border-color: var(--green-border);
    color: var(--green-deep);
}
.pagination .pagination-gap {
    border: none;
    background: transparent;
    min-width: 0;
    padding: 0 4px;
    color: var(--text-muted);
}
.pagination .pagination-arrow {
    font-size: 18px;
    line-height: 1;
    padding: 0 16px;
}
.pagination .pagination-arrow.is-disabled {
    color: var(--text-light);
    cursor: default;
    pointer-events: none;
}
.metric-empty {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
}
.admin-form label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.admin-form input[type="text"],
.admin-form input[type="password"],
.admin-form input[type="email"],
.admin-form textarea,
.admin-form select {
    width: 100%;
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.admin-table th,
.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 14px;
}
.admin-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
#workshopMap {
    width: 100%;
    height: 100%;
    min-height: 480px;
}

/* ── Crowdsourcing panel ─────────────────────────────────────────────────── */
.crowd-panel {
    border: 2px solid var(--green-border);
    background: linear-gradient(135deg, var(--green-tint) 0%, var(--surface) 60%);
}
.crowd-panel-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.crowd-hook {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.crowd-icon {
    font-size: 36px;
    line-height: 1;
    flex-shrink: 0;
}
.crowd-hook h2 {
    font-size: 22px;
    margin-bottom: 6px;
}
.crowd-sub {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
}
.crowd-social {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--green-deep);
}
.crowd-progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.crowd-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}
.crowd-progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
}
.crowd-progress-fill {
    height: 100%;
    width: 0;
    background: var(--green);
    border-radius: 99px;
    transition: width 0.35s ease;
}
.crowd-question-text {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.4;
}
.crowd-question--highlight {
    outline: 3px solid var(--green);
    border-radius: 16px;
    padding: 12px;
    margin: -12px;
}
.crowd-answers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.crowd-btn {
    min-width: 100px;
    font-weight: 800;
}
.crowd-btn-muted {
    opacity: 0.85;
}
.crowd-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.crowd-thanks p:first-child {
    font-weight: 800;
    color: var(--green-deep);
}
.crowd-inline-vote {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed var(--border);
}
.crowd-inline-label {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 12px;
}
.crowd-schemes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}
.crowd-scheme-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
.crowd-scheme-item input {
    width: 18px;
    height: 18px;
    accent-color: var(--green);
}
.crowd-voted-msg {
    margin-top: 12px;
    color: var(--green-deep);
}

/* ── Workshop status hero (ГдеБЕНЗ rss-card) ───────────────────────────── */
.workshop-status .ws-cap {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.ws-card {
    padding: 18px;
    border-radius: 22px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.workshop-status--ok .ws-card {
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.04)), var(--surface);
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.08);
}
.workshop-status--warn .ws-card {
    background: linear-gradient(145deg, rgba(217, 119, 6, 0.12), rgba(217, 119, 6, 0.04)), var(--surface);
    border-color: rgba(217, 119, 6, 0.35);
}
.workshop-status--risk .ws-card {
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.04)), var(--surface);
    border-color: rgba(239, 68, 68, 0.35);
}
.ws-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.ws-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--green-tint);
    border: 1px solid var(--green-border);
}
.workshop-status--risk .ws-icon {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #dc2626;
}
.workshop-status--warn .ws-icon {
    background: rgba(217, 119, 6, 0.12);
    border-color: rgba(217, 119, 6, 0.3);
    color: #d97706;
}
.workshop-status--muted .ws-icon {
    background: rgba(148, 163, 184, 0.15);
    border-color: rgba(148, 163, 184, 0.3);
    color: #64748b;
}
.ws-label {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.2;
    color: var(--text);
}
.workshop-status--ok .ws-label { color: var(--green-deep); }
.workshop-status--risk .ws-label { color: #dc2626; }
.workshop-status--warn .ws-label { color: #d97706; }
.ws-meta {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}
.ws-sublabel {
    margin: 4px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.35;
}
.ws-conf {
    padding: 14px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border);
}
.ws-conf-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.ws-conf-cap {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-muted);
    line-height: 1.3;
    max-width: 70%;
}
.ws-conf-pct {
    font-size: 18px;
    font-weight: 900;
    flex-shrink: 0;
}
.ws-conf-track {
    height: 10px;
    border-radius: 99px;
    background: #e2e8f0;
    overflow: hidden;
    margin-bottom: 6px;
}
.ws-conf-fill {
    height: 100%;
    border-radius: 99px;
    min-width: 4px;
    transition: width 0.4s ease;
}
.ws-conf-fill--low { background: #94a3b8; }
.ws-conf-fill--medium { background: #d97706; }
.ws-conf-fill--high { background: #16a34a; }
.ws-conf-scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.ws-conf-tier {
    font-size: 14px;
    font-weight: 800;
}
.ws-conf-explain {
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.4;
}
.ws-signals-cap {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.ws-signal {
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border);
}
.ws-signal--ok { border-color: rgba(34, 197, 94, 0.3); background: rgba(34, 197, 94, 0.06); }
.ws-signal--warn { border-color: rgba(217, 119, 6, 0.3); background: rgba(217, 119, 6, 0.06); }
.ws-signal--risk { border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.06); }
.ws-signal-text {
    display: block;
    font-weight: 800;
    font-size: 14px;
}
.ws-signal-meta {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 600;
}
.ws-signal-note {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin: 4px 0 0;
}
.ws-stale {
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}
.ws-stale-q {
    font-weight: 800;
    margin-bottom: 12px;
}
.ws-stale-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ws-cta {
    padding-top: 4px;
}

/* ── Crowd v2 buttons ────────────────────────────────────────────────────── */
.crowd-plea {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.crowd-plea-ic {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}
.crowd-plea-tx {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 600;
}
.crowd-plea-tx strong {
    font-size: 20px;
    color: var(--text);
}
.crowd-v2-main,
.crowd-answers--dual,
.crowd-answers--outcome {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}
.crowd-v2-btn {
    min-height: 104px;
    border-radius: 16px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 800;
    font-size: 15px;
    color: var(--text);
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.crowd-v2-btn:active {
    transform: scale(0.97);
}
.crowd-v2-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.crowd-v2-btn--ok {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.06);
    color: var(--green-deep);
}
.crowd-v2-btn--risk {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.06);
    color: #dc2626;
}
.crowd-v2-btn--warn {
    border-color: rgba(217, 119, 6, 0.4);
    background: rgba(217, 119, 6, 0.06);
    color: #d97706;
}
.crowd-v2-btn--muted {
    opacity: 0.9;
}
.crowd-v2-ic {
    font-size: 28px;
    line-height: 1;
}
.crowd-trust {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
}

/* ── Activity feed ─────────────────────────────────────────────────────────── */
.activity-feed-hd h2 {
    font-size: 18px;
    margin-bottom: 6px;
}
.activity-feed-agg {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.activity-feed-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.activity-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
}
.activity-item-ic {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.activity-item--ok .activity-item-ic { background: rgba(34, 197, 94, 0.12); }
.activity-item--warn .activity-item-ic { background: rgba(217, 119, 6, 0.12); }
.activity-item--risk .activity-item-ic { background: rgba(239, 68, 68, 0.12); }
.activity-item--muted .activity-item-ic { background: rgba(148, 163, 184, 0.12); }
.activity-item-main {
    flex: 1;
    min-width: 0;
}
.activity-item-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: baseline;
}
.activity-item-title {
    font-weight: 800;
    font-size: 14px;
}
.activity-item-time {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
}
.activity-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.activity-chip {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 99px;
    background: var(--green-tint);
    color: var(--green-deep);
    border: 1px solid var(--green-border);
}
.activity-chip--warn {
    background: rgba(217, 119, 6, 0.1);
    color: #d97706;
    border-color: rgba(217, 119, 6, 0.3);
}
.activity-chip--risk {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.3);
}
.activity-feed-more {
    margin-top: 12px;
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
}
.activity-feed-more:hover {
    border-color: var(--green);
}

/* ── Metric groups ─────────────────────────────────────────────────────────── */
.metric-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}
.metric-group-title {
    font-size: 20px;
    margin: 0;
}
.metric-group-chevron {
    font-size: 22px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.metric-group-toggle[aria-expanded="true"] .metric-group-chevron {
    transform: rotate(90deg);
}
.metric-group-body {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.metric-group-body[hidden] {
    display: none;
}
.metric-group-cta a {
    color: var(--green-deep);
    font-weight: 800;
}
.metric-card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.015);
}
.metric-card--empty {
    opacity: 0.85;
}
.metric-card-h2 {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--text);
}
.metric-card-val,
.metric-card-note {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    margin: 8px 0 0;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 800;
    border: 1px solid var(--border);
}
.status-pill--ok {
    background: rgba(34, 197, 94, 0.1);
    color: var(--green-deep);
    border-color: rgba(34, 197, 94, 0.35);
}
.status-pill--warn {
    background: rgba(217, 119, 6, 0.1);
    color: #d97706;
    border-color: rgba(217, 119, 6, 0.35);
}
.status-pill--risk {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.35);
}
.status-pill--muted {
    background: rgba(148, 163, 184, 0.12);
    color: #64748b;
    border-color: rgba(148, 163, 184, 0.3);
}
.metric-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.metric-pill-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.metric-pill-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}
.metric-outcome-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.metric-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 4px;
}
.metric-compact-item {
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
}
.metric-compact-val {
    display: block;
    font-weight: 900;
    font-size: 16px;
}
.metric-compact-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
    line-height: 1.3;
}

/* ── Disclaimer & animations ───────────────────────────────────────────────── */
.workshop-disclaimer {
    background: none;
    box-shadow: none;
    border: none;
    padding-top: 8px;
    padding-bottom: 40px;
}
.workshop-disclaimer-text {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}
@keyframes wsCardIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.ws-animate {
    animation: wsCardIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.workshop-status.ws-animate { animation-delay: 0s; }
.crowd-panel.ws-animate { animation-delay: 0.04s; }
.activity-feed.ws-animate { animation-delay: 0.08s; }
#metricGroup-safety { animation-delay: 0.12s; }
#metricGroup-result { animation-delay: 0.16s; }
#metricGroup-service { animation-delay: 0.20s; }
#metricGroup-price { animation-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
    .ws-animate {
        animation: none !important;
    }
    .crowd-v2-btn {
        transition: none;
    }
}
@media (max-width: 640px) {
    .plant-hero {
        margin-bottom: 8px;
    }
    .ws-label {
        font-size: 19px;
    }
    .crowd-v2-btn {
        min-height: 88px;
    }
}

/* ── Wave A: checklist, fraud encyclopedia, editorial fallbacks ─────────── */
.repair-checklist {
    border: 2px solid var(--green-border);
    background: linear-gradient(135deg, var(--green-tint) 0%, var(--surface) 55%);
}
.repair-checklist-title {
    font-size: 22px;
    margin: 0 0 8px;
}
.repair-checklist-intro {
    margin: 0 0 18px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.45;
}
.repair-checklist-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.repair-checklist-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
}
.repair-checklist-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--green-tint);
    color: var(--green-deep);
    font-weight: 900;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.repair-checklist-q {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}
.repair-checklist-hint {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.4;
}
.repair-checklist-more {
    margin: 14px 0 0;
    font-size: 13px;
    font-weight: 700;
}
.repair-checklist-more a {
    color: var(--green-deep);
}
.repair-checklist-footer {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.repair-checklist-link {
    font-weight: 800;
    color: var(--green-deep);
    font-size: 14px;
}
.repair-checklist--compact .repair-checklist-title {
    font-size: 19px;
}
.repair-checklist-cta {
    margin-left: auto;
}

.home-guide-teaser {
    margin-top: 8px;
}
.home-guide-title {
    font-size: 20px;
    margin-bottom: 16px;
}
.home-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.home-guide-card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
}
.home-guide-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}
.home-guide-card p {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.4;
}
.home-guide-card a {
    font-weight: 800;
    font-size: 13px;
    color: var(--green-deep);
}

.fraud-encyclopedia-lead {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 20px;
}
.fraud-encyclopedia-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.fraud-encyclopedia-nav a {
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: var(--surface);
    text-decoration: none;
    color: var(--text);
}
.fraud-encyclopedia-nav a:hover {
    border-color: var(--green);
    color: var(--green-deep);
}
.fraud-scheme-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface);
    margin-bottom: 16px;
    scroll-margin-top: 80px;
}
.fraud-scheme-title {
    font-size: 18px;
    margin: 0 0 14px;
}
.fraud-scheme-block {
    margin-bottom: 12px;
}
.fraud-scheme-block:last-child {
    margin-bottom: 0;
}
.fraud-scheme-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.fraud-scheme-block p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text);
}
.fraud-scheme-block--say {
    padding: 12px;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.2);
}
.fraud-scheme-quote {
    font-style: italic;
}
.fraud-encyclopedia-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed var(--border);
}
.fraud-encyclopedia-footer p {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-weight: 600;
}

.metric-group-editorial {
    padding: 16px;
    border-radius: 16px;
    border: 1px dashed var(--border);
    background: rgba(34, 197, 94, 0.04);
}
.metric-group-editorial-title {
    font-size: 17px;
    margin: 0 0 8px;
}
.metric-group-editorial-intro {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.45;
}
.metric-group-editorial-list {
    margin: 0 0 14px;
    padding-left: 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}
.metric-group-editorial-list li {
    margin-bottom: 6px;
}
.metric-group-editorial-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    font-size: 14px;
    font-weight: 800;
}
.metric-group-editorial-actions a {
    color: var(--green-deep);
}
.metric-group-editorial-crowd {
    color: var(--text-muted);
}
/* ── Reference prices & failure guides (Wave B) ───────────────────────────── */
.reference-prices-title {
    font-size: 20px;
    margin: 0 0 8px;
}
.reference-prices-intro {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.45;
}
.reference-prices-table-wrap {
    overflow-x: auto;
}
.reference-prices-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.reference-prices-table th,
.reference-prices-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.reference-prices-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    font-weight: 800;
}
.reference-prices-foot {
    margin: 14px 0 0;
    font-size: 13px;
    font-weight: 700;
}
.reference-prices-foot a {
    color: var(--green-deep);
}

.failure-guide-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.failure-guide-card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
}
.failure-guide-card-title {
    font-size: 17px;
    margin: 0 0 12px;
}
.failure-guide-dl {
    margin: 0;
    display: grid;
    gap: 8px;
}
.failure-guide-dl div {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px;
    font-size: 14px;
}
.failure-guide-dl dt {
    font-weight: 800;
    color: var(--text-muted);
    margin: 0;
}
.failure-guide-dl dd {
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}
.failure-guide-warning {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.2);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}
.failure-stats-list {
    margin: 0;
    padding-left: 20px;
    font-weight: 600;
}
.failure-guide-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}
.failure-guide-footer p {
    margin: 0;
    flex: 1;
    min-width: 200px;
    font-weight: 600;
    color: var(--text-muted);
}
@media (max-width: 640px) {
    .failure-guide-dl div {
        grid-template-columns: 1fr;
    }
}
.metric-group-seo-headings {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Home repair funnel */
.home-funnel {
    margin-bottom: 32px;
}
.home-funnel-title {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 8px;
}
.home-funnel-lead {
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 20px;
}
.funnel-steps {
    display: grid;
    gap: 16px;
}
.funnel-step {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 14px;
    padding: 18px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
}
.funnel-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--green-tint);
    color: var(--green-deep);
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.funnel-step-body strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}
.funnel-step-text {
    margin: 0 0 10px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.45;
}
.funnel-device-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.funnel-device-btn {
    padding: 8px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
}
.funnel-device-btn:hover,
.funnel-device-btn.active {
    border-color: var(--green);
    background: var(--green-tint);
    color: var(--green-deep);
}
.funnel-link {
    display: inline-block;
    font-weight: 800;
    font-size: 14px;
    color: var(--green-deep);
}
.funnel-link-primary {
    padding: 10px 16px;
    background: var(--green);
    color: #fff !important;
    border-radius: 12px;
    text-decoration: none;
}

/* List / map filters */
.filter-bar-views {
    margin-bottom: 12px;
}
.workshop-filters {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 24px;
}
.workshop-filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}
.filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.filter-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .3px;
}
.workshop-filters input,
.workshop-filters select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    background: var(--bg);
}
.workshop-filters-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}
.filter-reset {
    color: var(--text-muted);
}
.filter-near-hint {
    font-size: 12px;
    font-weight: 700;
    color: var(--green-deep);
    background: var(--green-tint);
    padding: 6px 10px;
    border-radius: 8px;
}
.hero-meta-sep {
    margin: 0 6px;
    opacity: .5;
}

/* Workshop card crowd badges */
.crowd-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2px;
}
.crowd-badge-muted {
    background: rgba(148, 163, 184, 0.15);
    color: #64748B;
}
.crowd-badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: #1D4ED8;
}
.crowd-badge-positive {
    background: var(--green-tint);
    color: var(--green-deep);
    border: 1px solid var(--green-border);
}

/* Trust chip in listing cards */
.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    border: 1px solid transparent;
    white-space: nowrap;
}
.trust-chip-score {
    font-size: 13px;
    font-weight: 900;
}
.trust-chip-max {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.7;
}
.trust-chip-label {
    margin-left: 4px;
    padding-left: 6px;
    border-left: 1px solid currentColor;
    opacity: 0.85;
}
.trust-chip--ok {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.35);
}
.trust-chip--medium {
    background: rgba(217, 119, 6, 0.12);
    color: #b45309;
    border-color: rgba(217, 119, 6, 0.35);
}
.trust-chip--low {
    background: rgba(148, 163, 184, 0.15);
    color: #475569;
    border-color: rgba(148, 163, 184, 0.35);
}
.trust-chip--muted {
    background: rgba(148, 163, 184, 0.12);
    color: #64748b;
}
@media (max-width: 480px) {
    .trust-chip-label { display: none; }
    .trust-chip { padding: 4px 8px; }
}
.card-distance {
    font-size: 12px;
    font-weight: 700;
    color: var(--green-deep);
    margin-bottom: 4px;
}

/* Map popup badges */
.map-popup-badge {
    display: inline-block;
    margin-bottom: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
}
.map-popup-badge-muted { background: #F1F5F9; color: #64748B; }
.map-popup-badge-info { background: rgba(59,130,246,.12); color: #1D4ED8; }
.map-popup-badge-positive { background: var(--green-tint); color: var(--green-deep); }

/* Nearby SEO landings */
.nearby-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}
.nearby-hero-actions .hero-meta-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}
.nearby-intent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}
.nearby-intent-card {
    padding: 16px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
}
.nearby-intent-card strong {
    display: block;
    margin-bottom: 8px;
}
.nearby-intent-card p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.45;
}
.nearby-city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.nearby-city-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, transform .2s;
}
.nearby-city-card:hover {
    border-color: var(--green);
    transform: translateY(-2px);
}
.nearby-city-card strong {
    font-size: 15px;
}
.nearby-city-card span {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}
.nearby-howto {
    margin: 0;
    padding-left: 22px;
    display: grid;
    gap: 12px;
    font-weight: 600;
    line-height: 1.45;
}
.nearby-metro-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Home — multi-region Russia */
.home-hero-v2 {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: center;
    padding: 40px 0 28px;
}
.hero-main {
    min-width: 0;
}
.hero-title {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.05;
    margin: 0 0 14px;
}
.hero-lead {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    margin: 0 0 8px;
    max-width: 54ch;
}
.hero-seo-intro {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 18px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.hero-actions .btn {
    width: auto;
    min-width: 180px;
}
.hero-side {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    box-shadow: var(--shadow-sm);
}
.hero-side-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
    margin: 0 0 14px;
}
.hero-side-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.hero-side-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
}
.hero-side-ico {
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1.4;
}
.hero-side-link {
    display: inline-block;
    margin-top: 16px;
    font-weight: 800;
    font-size: 13px;
    color: var(--green-deep);
}

/* Value props — cards under the hero */
.value-props {
    margin: 4px 0 28px;
}
.value-props-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.value-prop-card {
    padding: 20px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.value-prop-ico {
    display: block;
    font-size: 26px;
    line-height: 1;
    margin-bottom: 12px;
}
.value-prop-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 800;
}
.value-prop-text {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.5;
}
.value-props-cta {
    margin: 16px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}
.value-props-cta a {
    font-weight: 800;
    color: var(--green-deep);
}

/* Stats bar — counters moved below the hero */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 0 0 32px;
    padding: 18px;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
}
.stats-bar-item {
    text-align: center;
}
.stats-bar-value {
    display: block;
    font-size: 30px;
    font-weight: 900;
    color: var(--green-deep);
    line-height: 1.1;
}
.stats-bar-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

/* ── Responsive: home hero, value props, stats bar ─────────────────────── */
@media (max-width: 900px) {
    .value-props-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .home-hero-v2 {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 32px 0 24px;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-lead {
        font-size: 15px;
    }
    .hero-side {
        order: 2;
    }
}
@media (max-width: 640px) {
    .hero-title {
        font-size: 27px;
        letter-spacing: -1px;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .value-props-grid {
        grid-template-columns: 1fr;
    }
    .stats-bar {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 14px;
    }
    .stats-bar-value {
        font-size: 24px;
    }
}
@media (max-width: 380px) {
    .stats-bar {
        grid-template-columns: 1fr;
    }
}
.home-section-head {
    margin-bottom: 18px;
}
.home-section-head h2 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 900;
}
.home-section-lead {
    margin: 0;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
}
.home-map-section {
    margin-bottom: 36px;
}
.home-map-wrap {
    min-height: 420px;
}
.map-popup-city {
    display: inline-block;
    margin-bottom: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--green-tint);
    color: var(--green-deep);
    font-size: 11px;
    font-weight: 800;
}

.home-links {
    margin-bottom: 28px;
}
.home-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.home-link-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.home-link-card:hover {
    border-color: var(--green);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.home-link-card-primary {
    background: linear-gradient(135deg, var(--green-tint) 0%, var(--surface) 100%);
    border-color: var(--green-border);
}
.home-link-icon {
    font-size: 22px;
    line-height: 1;
}
.home-link-card strong {
    font-size: 16px;
}
.home-link-card span:last-child {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.4;
}
.home-links-devices h3 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 800;
}

.home-directory {
    margin-bottom: 36px;
}
.home-alpha-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    padding: 12px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    position: sticky;
    top: 8px;
    z-index: 5;
}
.home-alpha-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 10px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    color: var(--text);
    transition: all .15s;
}
.home-alpha-link:hover {
    border-color: var(--green);
    color: var(--green-deep);
    background: var(--green-tint);
}
.home-directory-body {
    display: grid;
    gap: 24px;
}
.home-letter-block {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    scroll-margin-top: 72px;
}
.home-letter-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--green);
    color: #fff;
    font-weight: 900;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 64px;
    align-self: start;
}
.home-region-list {
    display: grid;
    gap: 14px;
}
.home-region-card {
    padding: 16px 18px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
}
.home-region-name {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .3px;
}
.home-city-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.home-city-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.home-city-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.home-city-link {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}
.home-city-link:hover .home-city-name {
    color: var(--green-deep);
}
.home-city-name {
    font-size: 16px;
    font-weight: 800;
    transition: color .15s;
}
.home-city-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--green-deep);
    background: var(--green-tint);
    padding: 2px 8px;
    border-radius: 8px;
}
.home-city-count-muted {
    color: var(--text-muted);
    background: var(--bg);
}
.home-city-actions {
    display: flex;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
}
.home-city-actions a {
    color: var(--text-muted);
    text-decoration: none;
}
.home-city-actions a:hover {
    color: var(--green-deep);
}

@media (max-width: 640px) {
    .funnel-step {
        grid-template-columns: 1fr;
    }
    .funnel-step-num {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .home-letter-block {
        grid-template-columns: 1fr;
    }
    .home-letter-badge {
        position: static;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .home-city-item {
        grid-template-columns: 1fr;
    }
    .home-alpha-nav {
        position: static;
    }
}

/* ── Trust explainer («Из чего складывается оценка») ──────────────────── */
.trust-explainer {
    padding: 16px 18px;
    border-radius: 22px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    margin-top: 14px;
}
.trust-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.trust-head-main { flex: 1; min-width: 0; }
.trust-cap {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.trust-sub {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}
.trust-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 99px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
}
.trust-toggle:hover { background: rgba(0, 0, 0, 0.03); }
.trust-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.trust-toggle-label { line-height: 1; }
.trust-toggle svg { transition: transform 0.2s ease; }

.trust-factors {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.trust-factor[hidden],
.trust-factors[hidden] { display: none; }
.trust-factor {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border);
}
.trust-factor-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 4px;
}
.trust-factor-label {
    font-weight: 800;
    font-size: 14px;
    color: var(--text);
}
.trust-factor-points {
    font-size: 13px;
    font-weight: 900;
    flex-shrink: 0;
}
.trust-factor-meta {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 6px;
}
.trust-factor-bar {
    height: 6px;
    border-radius: 99px;
    background: #e2e8f0;
    overflow: hidden;
}
.trust-factor-fill {
    height: 100%;
    border-radius: 99px;
    min-width: 3px;
    transition: width 0.4s ease;
}
.trust-note {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.4;
}

@media (max-width: 540px) {
    .trust-head { flex-direction: column; align-items: stretch; }
    .trust-toggle { align-self: flex-start; }
}

/* ── Workshop device picker ──────────────────────────────────────────── */
.workshop-devices {
    padding: 16px 18px;
    border-radius: 22px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    margin-top: 14px;
}
.wd-supported { margin-bottom: 14px; }
.wd-subhead {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin: 0 0 8px;
}
.wd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.wd-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: var(--green-deep);
}
.wd-tag-meta {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}
.wd-help {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 10px;
}
.wd-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}
.wd-tile {
    text-align: left;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.02);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.wd-tile:hover { background: rgba(34, 197, 94, 0.06); border-color: rgba(34, 197, 94, 0.3); }
.wd-tile:active { transform: scale(0.98); }
.wd-tile-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}
.wd-tile-count {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}
.wd-tile-action {
    font-size: 11px;
    color: var(--green-deep);
    font-weight: 700;
}
.wd-tile-confirmed {
    background: rgba(34, 197, 94, 0.10);
    border-color: rgba(34, 197, 94, 0.4);
}
.wd-tile-flash { animation: wd-flash 0.6s ease; }
@keyframes wd-flash {
    0%, 100% { background: rgba(34, 197, 94, 0.10); }
    50% { background: rgba(34, 197, 94, 0.30); }
}

.wd-search-wrap {
    position: relative;
    margin-bottom: 8px;
}
.wd-search,
.wd-filter-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    box-sizing: border-box;
}
.wd-search:focus,
.wd-filter-input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}
.wd-suggest {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    z-index: 20;
    max-height: 280px;
    overflow-y: auto;
    padding: 4px;
}
.wd-suggest-inline { position: static; box-shadow: none; border-radius: 12px; margin-top: 4px; }
.wd-suggest-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    border: none;
    background: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
}
.wd-suggest-item:hover,
.wd-suggest-item-active {
    background: rgba(34, 197, 94, 0.10);
}
.wd-suggest-brand {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.wd-note {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin: 4px 0 0;
    line-height: 1.4;
}

/* Device filter in catalog */
.wd-filter-field { position: relative; }
.wd-filter-clear {
    position: absolute;
    top: 30px;
    right: 8px;
    width: 22px;
    height: 22px;
    border: none;
    background: var(--border);
    color: var(--text);
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    font-weight: 700;
}
.wd-filter-clear:hover { background: var(--text-muted); color: var(--surface); }

/* Toast */
.wd-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: #16a34a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    max-width: 90vw;
}
.wd-toast-error { background: #dc2626; }
.wd-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Home — "fresh ratings" feed (home_recent_ratings.php) */
.home-recent-ratings {
    margin-bottom: 36px;
}
.home-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}
.home-recent-item {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.home-recent-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.home-recent-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
}
.home-recent-mark {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}
.home-recent-tone--ok .home-recent-mark {
    background: var(--green-tint);
    color: var(--green-deep);
}
.home-recent-tone--risk .home-recent-mark {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}
.home-recent-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.home-recent-name {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-recent-meta {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}
.home-recent-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Honesty distribution chart (honesty_chart.php) — donut + histogram + service tile */
.honesty-chart {
    margin-bottom: 20px;
}
.honesty-grid {
    display: grid;
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}
@media (max-width: 620px) {
    .honesty-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 20px;
    }
}
.honesty-donut-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.honesty-donut {
    position: relative;
    width: 140px;
    height: 140px;
    flex: 0 0 auto;
}
.honesty-donut-val {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
}
.honesty-donut-num {
    font-size: 32px;
    font-weight: 900;
    color: var(--donut-color, var(--green-deep));
}
.honesty-donut-max {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 2px;
}
.honesty-donut-scope {
    margin: 0;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.4;
}
.honesty-bins {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
    width: 100%;
}
.honesty-bin {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px;
}
.honesty-bin-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    white-space: nowrap;
}
.honesty-bin-bar {
    height: 8px;
    border-radius: 99px;
    background: #E2E8ED;
    overflow: hidden;
}
.honesty-bin-fill {
    display: block;
    height: 100%;
    border-radius: 99px;
    min-width: 3px;
    transition: width 0.4s ease;
}
.honesty-bin-count {
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.honesty-service {
    margin-top: 22px;
    padding: 16px 18px;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
}
.honesty-service-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 0 0 auto;
}
.honesty-service-cap {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}
.honesty-service-val {
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}
.honesty-service-max {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    margin-left: 2px;
}
.honesty-service-note {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.45;
    flex: 1 1 220px;
}

/* Workshop status vote — 3 buttons (workshop_status_vote.php) */
.workshop-status-vote {
    margin-bottom: 20px;
}
.status-vote-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 900;
}
.status-vote-sub {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.5;
}
.status-vote-meta {
    color: var(--green-deep);
    margin-left: 4px;
}
.status-vote-btns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}
.status-vote-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    text-align: left;
    transition: border-color .2s, transform .2s, box-shadow .2s, background .2s;
    font: inherit;
    color: var(--text);
}
.status-vote-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.status-vote-btn.is-active {
    border-width: 2px;
}
.status-vote-ic {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}
.status-vote-tx {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.status-vote-tx strong {
    font-size: 15px;
    font-weight: 800;
}
.status-vote-tx small {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}
.status-vote-btn--ok .status-vote-ic { background: rgba(22,163,74,.12); color: #16a34a; }
.status-vote-btn--risk .status-vote-ic { background: rgba(220,38,38,.12); color: #dc2626; }
.status-vote-btn--warn .status-vote-ic { background: rgba(217,119,6,.12); color: #d97706; }
.status-vote-btn--ok:hover { border-color: #16a34a; }
.status-vote-btn--risk:hover { border-color: #dc2626; }
.status-vote-btn--warn:hover { border-color: #d97706; }
.status-vote-btn--ok.is-active { border-color: #16a34a; background: rgba(22,163,74,.06); }
.status-vote-btn--risk.is-active { border-color: #dc2626; background: rgba(220,38,38,.06); }
.status-vote-btn--warn.is-active { border-color: #d97706; background: rgba(217,119,6,.06); }
.status-vote-done {
    margin: 14px 0 0;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--green-tint);
    color: var(--green-deep);
    font-weight: 700;
    font-size: 14px;
}

/* Owner CTA block (workshop page) */
.owner-cta { margin-bottom: 20px; }
.owner-cta-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}
.owner-cta-ic { font-size: 30px; line-height: 1; }
.owner-cta-title { margin: 0 0 4px; font-size: 20px; font-weight: 900; }
.owner-cta-sub { margin: 0; font-size: 13px; color: var(--text-muted); font-weight: 600; line-height: 1.5; }

/* Contact form (reusable) */
.contact-form { display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.contact-form-heading { margin: 0 0 4px; font-size: 18px; font-weight: 900; }
.contact-form-lead { margin: 0 0 6px; font-size: 13px; color: var(--text-muted); font-weight: 600; line-height: 1.5; }
.contact-field { display: flex; flex-direction: column; gap: 5px; }
.contact-field-label { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.contact-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
    background: var(--surface);
    color: var(--text);
    box-sizing: border-box;
}
.contact-input:focus {
    outline: none;
    border-color: var(--green);
}
.contact-textarea { resize: vertical; min-height: 90px; }
.contact-submit { max-width: 280px; }
.contact-form-msg { margin: 0; font-size: 13px; font-weight: 700; }
.contact-form-msg--ok { color: var(--green-deep); }
.contact-form-msg--err { color: #dc2626; }
/* Honeypot — visually hidden but reachable for bots */
.contact-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Header / footer "Связаться" buttons */
.header-contact-btn,
.footer-contact-btn { width: auto; padding: 9px 16px; font-size: 13px; }
.footer-contact-btn { margin-left: auto; }

/* Footer layout tweak: button on the right */
.footer-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Contact modal */
.contact-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 16px;
}
.contact-modal[hidden] { display: none; }
.contact-modal-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 560px;
    width: 100%;
    padding: 26px 28px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.contact-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-alt);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
}
.contact-modal-close:hover { background: var(--border); color: var(--text); }
@media (max-width: 480px) {
    .contact-modal-card { padding: 20px 18px; }
    .header-contact-btn { display: none; }
}

/* Header live-activity widget (sits centered between logo and nav) */
.header-pulse {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px;
    border-radius: 99px;
    background: var(--bg-alt);
    border: 1px solid var(--green-border);
    /* In a space-between flex row with two other items, this widget centers
       itself in the leftover space. */
    flex: 0 1 auto;
}
.header-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    flex: 0 0 auto;
    box-shadow: 0 0 0 0 rgba(76, 203, 112, 0.55);
    animation: header-pulse-anim 2s infinite;
}
@keyframes header-pulse-anim {
    0%   { box-shadow: 0 0 0 0 rgba(76, 203, 112, 0.55); }
    70%  { box-shadow: 0 0 0 9px rgba(76, 203, 112, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 203, 112, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .header-pulse-dot { animation: none; }
}
.header-pulse-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.header-pulse-text strong {
    color: var(--text);
    font-weight: 800;
}
.header-pulse-sep {
    color: var(--text-light);
    margin: 0 2px;
}
@media (max-width: 820px) {
    .header-pulse { display: none; }
}

/* Easter egg: cracked-screen overlay shown after idle (idle-crack.js) */
.idle-crack {
    position: fixed;
    inset: 0;
    z-index: 9998;             /* above content, below contact modal (10000) */
    pointer-events: none;      /* never block clicks — site stays usable */
    color: rgba(15, 23, 42, 0.55);
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.6s ease, transform 0.6s ease, filter 0.8s ease;
}
.idle-crack svg {
    width: 100%;
    height: 100%;
    display: block;
}
/* A subtle drop-shadow filter on the lines makes the cracks read as glass. */
.idle-crack g,
.idle-crack circle {
    filter: drop-shadow(0 0 0.4px rgba(15, 23, 42, 0.6));
}
.idle-crack--in {
    opacity: 1;
    transform: scale(1);
}
.idle-crack--healed {
    opacity: 0;
    transform: scale(1.03);
    filter: blur(2px);
}
.idle-crack-msg {
    position: absolute;
    left: 50%;
    bottom: 9%;
    transform: translate(-50%, 12px);
    padding: 9px 18px;
    border-radius: 99px;
    background: var(--bg-alt);
    border: 1px solid var(--green-border);
    color: var(--green-deep);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    box-shadow: var(--shadow);
}
.idle-crack-msg--in {
    opacity: 1;
    transform: translate(-50%, 0);
}
@media (prefers-reduced-motion: reduce) {
    /* JS bails out for reduced-motion users entirely; this is a safety net. */
    .idle-crack,
    .idle-crack-msg {
        transition-duration: 0.01ms;
    }
}
