.brand-card,
.home-brand-card {
    display: grid;
    gap: 1rem;
    align-items: start;
    grid-template-columns: 1fr;
    min-height: 100%;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid var(--rw-line);
    background: #fff;
    text-decoration: none;
    color: inherit;
}

.home-brand-card,
.home-brand-card__body {
    min-width: 0;
}

.home-brand-card--dark,
.brand-card--dark {
    background: linear-gradient(180deg, #16304d 0%, #10263b 100%);
    border-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.brand-card__media,
.home-brand-card__logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 220px;
}

.brand-card__media img,
.home-brand-card__logo img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center top;
    border-radius: 14px;
}

.brand-card__media .cp-card-placeholder,
.home-brand-card__logo .cp-card-placeholder {
    display: grid;
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: 220px;
    box-sizing: border-box;
    align-self: stretch;
}

.brand-card--logo .brand-card__media,
.brand-card--logo .home-brand-card__logo {
    min-height: 180px;
    justify-content: center;
}

.brand-card--logo .brand-card__media img,
.brand-card--logo .home-brand-card__logo img {
    height: 180px;
    object-fit: contain;
    object-position: center center;
    background: #f7fbff;
    padding: 0.75rem;
}

.brand-card--logo .brand-card__media .cp-card-placeholder,
.brand-card--logo .home-brand-card__logo .cp-card-placeholder {
    width: 100%;
    max-width: 100%;
    min-height: 180px;
}

.home-trusted-brands-section .brand-card--logo .brand-card__media img {
    background: #fff;
}

.cp-section--supported-brands .brand-card--logo .brand-card__media img,
.cp-section--supported-brands .brand-card--logo .home-brand-card__logo img {
    background: #fff;
}

.home-brand-card__wordmark {
    display: inline-flex;
    align-items: center;
    min-height: 3rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
}

.brand-card__content > :first-child {
    margin-top: 0;
}

.brand-card h3,
.home-brand-card__body h3 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.5rem, 2vw, 1.625rem);
    line-height: 1.2;
}

.cp-section--supported-brands .home-brand-card__body h3 {
    font-size: clamp(1.1rem, 1.4vw, 1.25rem);
    line-height: 1.18;
    letter-spacing: 0.005em;
}

.cp-section--supported-brands .home-brand-card.brand-card--logo .home-brand-card__logo.brand-card__media {
    display: grid;
    place-items: center;
    justify-content: stretch;
    background: #fff;
}

.cp-section--supported-brands .home-brand-card.brand-card--logo .home-brand-card__logo.brand-card__media img {
    width: auto;
    max-width: min(100%, 210px);
    object-fit: contain;
    object-position: center center;
}

.cp-section--supported-brands .home-brand-card.brand-card--logo .home-brand-card__logo.brand-card__media > .cp-card-placeholder {
    width: 92%;
    max-width: 92%;
    margin: 0 auto;
    justify-self: center;
}

.home-brand-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.home-brand-card__tags span {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.65rem;
    border-radius: 999px;
    background: #e8f1fb;
    color: #123f74;
    font-size: 0.84rem;
    font-weight: 700;
}

.home-brand-card--dark .home-brand-card__tags span {
    background: rgba(255, 255, 255, 0.12);
    color: #f8fbff;
}

.home-brand-card__tags a {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.65rem;
    border-radius: 999px;
    background: #e8f1fb;
    color: #123f74;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.home-brand-card__trust-copy {
    margin: 0;
    color: #415066;
    line-height: 1.45;
}

.home-brand-card__tag-link {
    color: inherit;
    text-decoration: none;
}

.home-brand-card__tag-link:hover,
.home-brand-card__tag-link:focus-visible {
    text-decoration: underline;
}

.home-brand-card__link {
    display: inline-flex;
    margin-top: 1rem;
    font-weight: 700;
    color: #123f74;
}

.home-brand-card--dark .home-brand-card__link {
    color: #9fd4ff;
}

.home-brand-card.home-brand-card--authorized-dealer {
    position: relative;
    overflow: hidden;
}

.home-brand-card__ribbon {
    display: inline-block;
    position: absolute;
    top: 14px;
    left: -46px;
    z-index: 2;
    width: 170px;
    padding: 0.3rem 0.55rem;
    background: #0f3f74;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(-45deg);
    box-shadow: 0 3px 10px rgba(15, 63, 116, 0.35);
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .brand-card__media img,
    .home-brand-card__logo img {
        height: 200px;
    }
    .brand-card--logo .brand-card__media,
    .brand-card--logo .home-brand-card__logo {
        min-height: 160px;
    }
    .brand-card--logo .brand-card__media img,
    .brand-card--logo .home-brand-card__logo img {
        height: 160px;
    }
    .brand-card--logo .brand-card__media .cp-card-placeholder,
    .brand-card--logo .home-brand-card__logo .cp-card-placeholder {
        min-height: 160px;
    }
}

@media (min-width: 992px) {
    .cp-section--supported-brands .cp-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
    }

    .cp-section--supported-brands .cp-card-item.cp-card-item--media.brand-card--logo {
        height: 100%;
        display: grid;
        grid-template-rows: 110px 1fr;
    }

    .cp-section--supported-brands .cp-card-item.cp-card-item--media.brand-card--logo .home-brand-card__body.brand-card__content {
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
        align-content: stretch;
        height: 100%;
    }

    .cp-section--supported-brands .cp-card-item.cp-card-item--media.brand-card--logo .home-brand-card__logo.brand-card__media {
        min-height: 110px;
        display: grid;
        place-items: center;
        justify-content: stretch;
    }

    .cp-section--supported-brands .cp-card-item.cp-card-item--media.brand-card--logo .home-brand-card__logo.brand-card__media img,
    .cp-section--supported-brands .cp-card-item.cp-card-item--media.brand-card--logo .home-brand-card__logo.brand-card__media .cp-card-placeholder {
        min-height: 110px;
        height: 110px;
    }

    .cp-section--supported-brands .cp-card-item.cp-card-item--media.brand-card--logo .home-brand-card__trust-copy {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .cp-section--supported-brands .cp-card-item.cp-card-item--media.brand-card--logo .home-brand-card__tags {
        margin-top: 0.65rem;
        align-content: start;
        overflow: visible;
        max-height: none;
    }

    .cp-section--supported-brands .cp-card-item.cp-card-item--media.brand-card--logo.home-brand-card--gerber .home-brand-card__logo.brand-card__media {
        min-height: 121px;
    }

    .cp-section--supported-brands .cp-card-item.cp-card-item--media.brand-card--logo.home-brand-card--gerber .home-brand-card__logo.brand-card__media img {
        min-height: 121px;
        height: 121px;
    }
}

@media (min-width: 520px) and (max-width: 991.98px) {
    .cp-section--supported-brands .cp-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cp-section--supported-brands .cp-card-item.cp-card-item--media.brand-card--logo {
        height: 100%;
        display: grid;
        grid-template-rows: 100px 1fr;
    }

    .cp-section--supported-brands .cp-card-item.cp-card-item--media.brand-card--logo .home-brand-card__body.brand-card__content {
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
        align-content: stretch;
        height: 100%;
    }

    .cp-section--supported-brands .cp-card-item.cp-card-item--media.brand-card--logo .home-brand-card__logo.brand-card__media {
        min-height: 100px;
        display: grid;
        place-items: center;
        justify-content: stretch;
    }

    .cp-section--supported-brands .cp-card-item.cp-card-item--media.brand-card--logo .home-brand-card__logo.brand-card__media img,
    .cp-section--supported-brands .cp-card-item.cp-card-item--media.brand-card--logo .home-brand-card__logo.brand-card__media .cp-card-placeholder {
        min-height: 100px;
        height: 100px;
    }

    .cp-section--supported-brands .cp-card-item.cp-card-item--media.brand-card--logo.home-brand-card--gerber .home-brand-card__logo.brand-card__media {
        min-height: 110px;
    }

    .cp-section--supported-brands .cp-card-item.cp-card-item--media.brand-card--logo.home-brand-card--gerber .home-brand-card__logo.brand-card__media img {
        min-height: 110px;
        height: 110px;
    }
}

@media (max-width: 519.98px) {
    .cp-section--supported-brands .cp-card-item.cp-card-item--media.brand-card--logo .home-brand-card__logo.brand-card__media {
        min-height: 88px;
        display: grid;
        place-items: center;
        justify-content: stretch;
    }

    .cp-section--supported-brands .cp-card-item.cp-card-item--media.brand-card--logo .home-brand-card__logo.brand-card__media img,
    .cp-section--supported-brands .cp-card-item.cp-card-item--media.brand-card--logo .home-brand-card__logo.brand-card__media .cp-card-placeholder {
        min-height: 88px;
        height: 88px;
    }

    .cp-section--supported-brands .cp-card-item.cp-card-item--media.brand-card--logo.home-brand-card--gerber .home-brand-card__logo.brand-card__media {
        min-height: 97px;
    }

    .cp-section--supported-brands .cp-card-item.cp-card-item--media.brand-card--logo.home-brand-card--gerber .home-brand-card__logo.brand-card__media img {
        min-height: 97px;
        height: 97px;
    }
}
