/* AutoHub: SEO-блоки страницы сравнения */
.ahx-compare-seo,
.ahx-compare-popular {
    box-sizing: border-box;
    width: 100%;
    margin-top: 28px;
    font-family: Montserrat, Arial, sans-serif;
    color: #282828;
}

.ahx-compare-seo[hidden] {
    display: none !important;
}

.ahx-compare-seo__head,
.ahx-compare-popular__head {
    margin-bottom: 16px;
}

.ahx-compare-seo__head h2,
.ahx-compare-popular__head h2 {
    margin: 0 0 8px;
    color: #282828;
    font-family: "Montserrat Alternates", Montserrat, Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.ahx-compare-seo__head p,
.ahx-compare-popular__head p {
    margin: 0;
    color: #5d5d5d;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
}

.ahx-compare-seo__table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

.ahx-compare-seo__table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}

.ahx-compare-seo__table th,
.ahx-compare-seo__table td {
    padding: 14px 16px;
    border-bottom: 1px solid #ededed;
    text-align: left;
    vertical-align: middle;
    color: #282828;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
}

.ahx-compare-seo__table thead th {
    background: #f7f7f7;
    font-weight: 600;
}

.ahx-compare-seo__table tbody th {
    width: 32%;
    background: #fbfbfb;
    font-weight: 500;
}

.ahx-compare-seo__table tr:last-child th,
.ahx-compare-seo__table tr:last-child td {
    border-bottom: 0;
}

.ahx-compare-seo__table a {
    color: #282828;
    font-weight: 600;
    text-decoration: none;
}

.ahx-compare-seo__table a:hover {
    color: #d74a0f;
}

.ahx-compare-seo__rating,
.ahx-compare-seo__metric-with-delta,
.ahx-compare-value-with-delta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.ahx-compare-seo__rating > strong {
    color: #282828;
    font-size: 18px;
    font-weight: 600;
}

.ahx-compare-seo__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.ahx-compare-seo--summary-only .ahx-compare-seo__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ahx-compare-seo__fact {
    padding: 12px 14px;
    border-radius: 10px;
    background: #f6f6f6;
    color: #282828;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.ahx-compare-seo__note {
    margin: 12px 0 0;
    color: #6a6a6a;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
}

.ahx-compare-popular {
    padding: 18px;
    border-radius: 12px;
    background: #f6f6f6;
}

.ahx-compare-popular__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ahx-compare-popular__links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 8px;
    background: #fff;
    color: #282828;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
    transition: .2s ease;
}

.ahx-compare-popular__links a:hover {
    color: #d74a0f;
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .ahx-compare-seo__facts,
    .ahx-compare-seo--summary-only .ahx-compare-seo__facts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .ahx-compare-seo,
    .ahx-compare-popular {
        margin-top: 20px;
    }

    .ahx-compare-seo__head h2,
    .ahx-compare-popular__head h2 {
        font-size: 20px;
    }

    .ahx-compare-seo__head p,
    .ahx-compare-popular__head p {
        font-size: 14px;
    }

    .ahx-compare-seo__table th,
    .ahx-compare-seo__table td {
        padding: 12px;
        font-size: 14px;
    }

    .ahx-compare-popular {
        padding: 14px;
    }

    .ahx-compare-popular__links {
        flex-direction: column;
    }

    .ahx-compare-popular__links a {
        width: 100%;
        box-sizing: border-box;
    }
}
