/* City+brand service template isolation (tpl-city_brand_service) */
.tpl-city_brand_service .service-page {
    display: grid;
    gap: 16px;
    margin: 0;
}

.tpl-city_brand_service .service-page > section {
    margin: 0;
    scroll-margin-top: 96px;
}

.tpl-city_brand_service .service-page h2 {
    text-wrap: balance;
}

.tpl-city_brand_service .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tpl-city_brand_service .brand-models-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
}

.tpl-city_brand_service .brand-model-card {
    display: inline-flex;
    align-items: center;
    width: auto;
    max-width: 100%;
    min-height: 52px;
    padding: 13px 18px;
    flex: 0 1 auto;
}

.tpl-city_brand_service .brand-model-card strong {
    white-space: nowrap;
}

.tpl-city_brand_service .brand-context-summary {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #d3e0f3;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    color: #173b73;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 700;
}

.tpl-city_brand_service .brand-issues-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tpl-city_brand_service .brand-final-cta-row .button {
    min-width: 320px;
}

@media (max-width: 980px) {
    .tpl-city_brand_service .service-page {
        gap: 14px;
    }

    .tpl-city_brand_service .service-page > section {
        scroll-margin-top: 86px;
    }

    .tpl-city_brand_service .brand-issues-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tpl-city_brand_service .service-page {
        gap: 12px;
    }

    .tpl-city_brand_service .service-page > section {
        scroll-margin-top: 76px;
    }

    .tpl-city_brand_service .brand-model-card {
        width: auto;
    }

    .tpl-city_brand_service .brand-model-card strong {
        white-space: normal;
    }

    .tpl-city_brand_service .brand-issues-grid {
        grid-template-columns: 1fr;
    }

    .tpl-city_brand_service .brand-final-cta-row .button {
        width: 100%;
        min-width: 0;
    }
}
