body.page-id-522 .elementor-522 .e-con-boxed > .e-con-inner {
    max-width: min(1560px, calc(100vw - 48px));
}

body.page-id-522 .elementor-522 .elementor-widget-shortcode {
    width: 100%;
}

body.page-id-522 .elementor-522 .elementor-shortcode {
    width: 100%;
}

body.page-id-522 .brands-page-head {
    width: min(920px, 100%);
    margin: -92px auto 68px;
    text-align: center;
}

body.page-id-522 .brands-page-head__title {
    margin: 0;
    color: #000 !important;
    font-size: clamp(34px, 4.3vw, 64px);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -0.035em;
}

body.page-id-522 .brands-page-head__subtitle {
    display: none;
    max-width: 720px;
    margin: 16px auto 0;
    color: rgba(0, 0, 0, 0.62) !important;
    font-size: 16px;
    line-height: 1.65;
}

body.page-id-522 .brands-grid,
body.page-id-522 .brands-grid.cols-2,
body.page-id-522 .brands-grid.cols-3,
body.page-id-522 .brands-grid.cols-4,
body.page-id-522 .brands-grid.cols-5 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    width: 100%;
}

body.page-id-522 .brand-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid rgba(24, 34, 56, 0.12);
    background: #fff;
    color: #000;
    text-decoration: none;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

body.page-id-522 .brand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    border-color: rgba(24, 34, 56, 0.18);
}

body.page-id-522 .brand-card__image {
    position: relative;
    display: block;
    min-height: 300px;
    aspect-ratio: 1.46 / 1;
    overflow: hidden;
    background: #fff;
}

body.page-id-522 .brand-logo {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
    box-sizing: border-box;
}

body.page-id-522 .brand-logo--placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: rgba(0, 0, 0, 0.76);
    font-size: 48px;
    font-weight: 400;
}

body.page-id-522 .brand-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 68%, rgba(255, 255, 255, 0.34) 84%, rgba(255, 255, 255, 0.72) 100%);
    pointer-events: none;
}

body.page-id-522 .brand-card__hero-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    max-width: none;
    padding: 30px 22px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.28) 46%, rgba(255, 255, 255, 0.72) 100%);
}

body.page-id-522 .brand-card__title {
    margin: 0 0 6px;
    color: #050505 !important;
    font-size: 34px;
    line-height: 1.08;
    font-weight: 400;
    letter-spacing: -0.02em;
    text-shadow: none;
}

body.page-id-522 .brand-card__location {
    position: relative;
    margin: 0;
    padding-left: 18px;
    color: rgba(0, 0, 0, 0.72) !important;
    font-size: 13px;
    line-height: 1.4;
}

body.page-id-522 .brand-card__location::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 10px;
    height: 10px;
    border: 1.5px solid currentColor;
    border-radius: 999px 999px 999px 0;
    transform: rotate(-45deg);
    box-sizing: border-box;
}

body.page-id-522 .brand-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 18px 24px 24px;
}

body.page-id-522 .brand-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 26px;
    padding: 4px 14px;
    margin-bottom: 14px;
    background: rgba(255, 205, 240, 0.35);
    color: rgba(67, 57, 63, 0.9);
    font-size: 12px;
    line-height: 1.2;
}

body.page-id-522 .brand-card__text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin: 0;
    color: rgba(30, 41, 59, 0.78);
    font-size: 14px;
    line-height: 1.75;
}

body.page-id-522 .brand-card__cta {
    margin-top: auto;
    padding-top: 16px;
    color: #d7b0c1;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

@media (max-width: 1199px) {
    body.page-id-522 .elementor-522 .e-con-boxed > .e-con-inner {
        max-width: min(1320px, calc(100vw - 40px));
    }

    body.page-id-522 .brands-grid,
    body.page-id-522 .brands-grid.cols-2,
    body.page-id-522 .brands-grid.cols-3,
    body.page-id-522 .brands-grid.cols-4,
    body.page-id-522 .brands-grid.cols-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.page-id-522 .brand-card__image {
        min-height: 280px;
    }

    body.page-id-522 .brand-card__title {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    body.page-id-522 .elementor-522 .e-con-boxed > .e-con-inner {
        max-width: calc(100vw - 24px);
    }

    body.page-id-522 .brands-page-head {
        margin: -18px auto 24px;
        text-align: left;
    }

    body.page-id-522 .brands-page-head__subtitle {
        margin-top: 12px;
        font-size: 14px;
        line-height: 1.55;
    }

    body.page-id-522 .brands-grid,
    body.page-id-522 .brands-grid.cols-2,
    body.page-id-522 .brands-grid.cols-3,
    body.page-id-522 .brands-grid.cols-4,
    body.page-id-522 .brands-grid.cols-5 {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    body.page-id-522 .brand-card__image {
        min-height: 230px;
    }

    body.page-id-522 .brand-card__hero-copy {
        padding: 26px 16px 14px;
    }

    body.page-id-522 .brand-card__title {
        font-size: 24px;
    }

    body.page-id-522 .brand-card__body {
        padding: 16px 16px 18px;
    }
}
