/* =========================================================
   BeeFixPro brands page refinement v14
   Centered brand cards, a readable split mobile hero and
   photo-led appliance service cards.
   ========================================================= */

/* ---------- Hero: one coherent surface instead of loose pills ---------- */
body.brands-page .brands-hero {
    min-height: 800px;
    background: linear-gradient(180deg, #f7f2e9 0%, #fffaf2 100%);
}

body.brands-page .brands-hero__media {
    background-image:
        linear-gradient(90deg, rgba(255, 253, 249, .995) 0%, rgba(255, 253, 249, .95) 33%, rgba(255, 253, 249, .67) 50%, rgba(255, 253, 249, .04) 76%),
        linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, rgba(43, 37, 29, .12) 100%),
        url("../images/brands/brands-hero-dmitriy-v3.webp");
    background-position: center;
    background-size: cover;
}

body.brands-page .brands-hero__content {
    width: min(100%, 690px);
}

body.brands-page .brands-hero__lead {
    max-width: 610px;
}

body.brands-page .brands-hero__actions .brands-button {
    min-width: 184px;
}

body.brands-page .brands-hero__facts {
    display: inline-grid;
    gap: 0;
    overflow: hidden;
    margin-top: 28px;
    border: 1px solid rgba(130, 91, 26, .14);
    border-radius: 16px;
    background: rgba(255, 255, 255, .74);
    box-shadow: 0 13px 30px rgba(77, 57, 25, .07), inset 0 1px 0 #fff;
    grid-template-columns: repeat(3, auto);
    backdrop-filter: blur(12px);
}

body.brands-page .brands-hero__facts > div {
    min-height: 56px;
    justify-content: center;
    padding: 10px 17px;
    border: 0;
    border-right: 1px solid rgba(130, 91, 26, .11);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

body.brands-page .brands-hero__facts > div:last-child {
    border-right: 0;
}

/* ---------- Brand directory: a true centered card system ---------- */
body.brands-page .brand-directory__grid {
    align-items: stretch;
}

body.brands-page .brand-directory-card {
    display: flex;
    height: 100%;
    align-items: center;
    flex-direction: column;
    padding: 26px 22px 22px;
    text-align: center;
}

body.brands-page .brand-directory-card__logo {
    width: 100%;
    height: 58px;
    flex: 0 0 58px;
    justify-content: center;
    margin-bottom: 14px;
}

body.brands-page .brand-directory-card__logo img {
    max-width: 150px;
    max-height: 42px;
    mix-blend-mode: multiply;
}

body.brands-page .brand-directory-card__logo--line {
    align-items: center;
    justify-content: center;
}

body.brands-page .brand-directory-card__tier {
    display: flex;
    min-height: 27px;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 6px;
}

body.brands-page .brand-directory-card h4 {
    display: flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
}

body.brands-page .brand-directory-card > p {
    width: 100%;
    max-width: 29ch;
    min-height: 66px;
    margin: 9px auto 15px;
    text-align: center;
}

body.brands-page .brand-directory-card ul {
    justify-content: center;
}

body.brands-page .brand-directory-card__guide {
    justify-content: center;
}

/* ---------- Service by appliance: real product photography ---------- */
body.brands-page .brand-appliances__grid {
    align-items: stretch;
}

body.brands-page .brand-appliances__grid a {
    position: relative;
    display: flex;
    height: 100%;
    min-height: 245px;
    align-items: center;
    flex-direction: column;
    gap: 0;
    justify-content: flex-start;
    padding: 18px 18px 20px;
    text-align: center;
}

body.brands-page .brand-appliances__media {
    position: relative;
    display: grid;
    width: 100%;
    height: 115px;
    flex: 0 0 115px;
    place-items: center;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid rgba(177, 119, 20, .11);
    border-radius: 17px;
    background:
        radial-gradient(circle at 50% 88%, rgba(253, 174, 2, .19), transparent 38%),
        linear-gradient(145deg, #fffdf8 0%, #fff6df 100%);
}

body.brands-page .brand-appliances__media::after {
    position: absolute;
    right: 12%;
    bottom: 9px;
    left: 12%;
    height: 10px;
    border-radius: 50%;
    background: rgba(69, 56, 36, .12);
    filter: blur(7px);
    content: "";
}

body.brands-page .brand-appliances__media img {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: 104px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 9px 7px rgba(51, 43, 31, .18));
    transition: transform .28s ease;
}

/* The cooktop source has a wide product inside a tall transparent canvas. */
body.brands-page .brand-appliances__media img[src$="cooktop.webp"] {
    transform: scale(1.7);
}

body.brands-page .brand-appliances__copy {
    display: flex;
    width: 100%;
    align-items: center;
    flex-direction: column;
}

body.brands-page .brand-appliances__grid strong {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    font-size: 21px;
}

body.brands-page .brand-appliances__grid em {
    margin-top: 2px;
}

body.brands-page .brand-appliances__grid b {
    position: absolute;
    right: 15px;
    bottom: 15px;
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border: 1px solid rgba(176, 113, 8, .15);
    border-radius: 10px;
    background: #fff7e3;
}

@media (hover: hover) {
    body.brands-page .brand-appliances__grid a:hover .brand-appliances__media img {
        transform: translateY(-4px) scale(1.035);
    }

    body.brands-page .brand-appliances__grid a:hover .brand-appliances__media img[src$="cooktop.webp"] {
        transform: translateY(-3px) scale(1.77);
    }
}

@media (max-width: 991px) {
    body.brands-page .brands-hero__media {
        background-image:
            linear-gradient(90deg, rgba(255, 253, 249, .985) 0%, rgba(255, 253, 249, .90) 45%, rgba(255, 253, 249, .26) 100%),
            url("../images/brands/brands-hero-dmitriy-v3.webp");
        background-position: 64% center;
    }
}

@media (max-width: 767px) {
    /* A visible photo first, followed by clean readable copy. */
    body.brands-page .brands-hero {
        min-height: 0;
        overflow: visible;
        background:
            radial-gradient(circle at 10% 4%, rgba(253, 174, 2, .11), transparent 26%),
            linear-gradient(180deg, #f8f3eb 0%, #fffaf2 100%);
    }

    body.brands-page .brands-hero__media {
        position: relative;
        inset: auto;
        width: calc(100% - 30px);
        height: 278px;
        margin: 118px auto 0;
        overflow: hidden;
        border: 1px solid rgba(118, 91, 49, .14);
        border-radius: 25px;
        background-image: url("../images/brands/brands-hero-dmitriy-v3.webp");
        background-position: 69% center;
        background-size: cover;
        box-shadow: 0 20px 46px rgba(68, 52, 29, .15), inset 0 1px 0 rgba(255, 255, 255, .86);
    }

    body.brands-page .brands-hero__media::after {
        position: absolute;
        inset: auto 0 0;
        height: 34%;
        background: linear-gradient(180deg, transparent, rgba(38, 30, 20, .22));
        content: "";
    }

    body.brands-page .brands-hero__container {
        display: block;
        min-height: 0;
        padding-top: 24px;
        padding-bottom: 116px;
    }

    body.brands-page .brands-hero__content {
        width: 100%;
    }

    body.brands-page .brands-breadcrumb {
        margin-bottom: 17px;
        padding: 7px 11px;
        background: rgba(255, 255, 255, .72);
        font-size: 11px;
    }

    body.brands-page .brands-hero .brands-eyebrow {
        gap: 9px;
        margin-bottom: 13px;
        font-size: 11px !important;
        letter-spacing: .12em !important;
        line-height: 1.45 !important;
    }

    body.brands-page .brands-hero .brands-eyebrow > span {
        width: 24px;
    }

    body.brands-page .brands-hero h1 {
        max-width: 12ch;
        font-size: clamp(36px, 10.4vw, 46px) !important;
        letter-spacing: -.045em !important;
        line-height: 1.01 !important;
    }

    body.brands-page .brands-hero h1 em {
        font-weight: 700;
    }

    body.brands-page .brands-hero__lead {
        max-width: 42ch;
        margin-top: 17px;
        font-size: 15px;
        line-height: 1.62;
    }

    body.brands-page .brands-hero__actions {
        display: grid;
        gap: 8px;
        margin-top: 23px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.brands-page .brands-hero__actions .brands-button {
        width: 100%;
        min-width: 0;
        min-height: 54px;
        gap: 8px;
        padding: 12px 9px;
        border-radius: 15px;
        font-size: 12px;
    }

    body.brands-page .brands-hero__facts {
        display: grid;
        width: 100%;
        margin-top: 14px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.brands-page .brands-hero__facts > div {
        min-height: 52px;
        padding: 9px 8px;
        border-right: 1px solid rgba(130, 91, 26, .11);
        font-size: 10px;
    }

    body.brands-page .brands-hero__facts > div:nth-child(2) {
        border-right: 0;
    }

    body.brands-page .brands-hero__facts > div:nth-child(3) {
        min-height: 43px;
        border-top: 1px solid rgba(130, 91, 26, .11);
        border-right: 0;
        grid-column: 1 / -1;
    }

    body.brands-page .brands-hero__logo-deck {
        width: calc(100% - 30px);
    }

    /* Two brand cards per row: less scrolling, still readable. */
    body.brands-page .brand-directory__grid {
        gap: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.brands-page .brand-directory-card {
        min-height: 205px;
        padding: 17px 10px 14px;
        border-radius: 18px;
    }

    body.brands-page .brand-directory-card__logo {
        height: 47px;
        flex-basis: 47px;
        margin-bottom: 9px;
    }

    body.brands-page .brand-directory-card__logo img {
        max-width: 108px;
        max-height: 31px;
    }

    body.brands-page .brand-directory-card__logo--line img {
        max-height: 23px;
    }

    body.brands-page .brand-directory-card__logo--line small {
        font-size: 7px;
    }

    body.brands-page .brand-directory-card__tier {
        min-height: 25px;
        margin-bottom: 3px;
        font-size: 7px;
        letter-spacing: .09em;
        line-height: 1.3;
    }

    body.brands-page .brand-directory-card h4 {
        min-height: 42px;
        font-size: 18px !important;
        line-height: 1.12 !important;
    }

    body.brands-page .brand-directory-card > p {
        display: none;
    }

    body.brands-page .brand-directory-card ul {
        gap: 4px;
        margin-top: auto;
        padding-top: 11px;
    }

    body.brands-page .brand-directory-card li {
        padding: 4px 5px;
        border-radius: 6px;
        font-size: 7px;
        letter-spacing: .025em;
    }

    body.brands-page .brand-directory-card li:nth-child(n + 3) {
        display: none;
    }

    body.brands-page .brand-directory-card__guide {
        gap: 5px;
        margin-top: 9px;
        font-size: 8px;
        letter-spacing: .04em;
    }

    /* Two photo-led service cards per row. */
    body.brands-page .brand-appliances {
        padding: 74px 0;
    }

    body.brands-page .brand-appliances .brands-section-heading {
        gap: 15px;
        margin-bottom: 25px;
    }

    body.brands-page .brand-appliances .brands-section-heading > p {
        font-size: 14px;
        line-height: 1.62;
    }

    body.brands-page .brand-appliances__grid {
        gap: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.brands-page .brand-appliances__grid a {
        min-height: 216px;
        padding: 11px 10px 14px;
        border-radius: 18px;
    }

    body.brands-page .brand-appliances__media {
        height: 96px;
        flex-basis: 96px;
        margin-bottom: 10px;
        border-radius: 14px;
    }

    body.brands-page .brand-appliances__media img {
        max-width: 82px;
        height: 83px;
    }

    body.brands-page .brand-appliances__grid small {
        font-size: 7px;
        letter-spacing: .1em;
    }

    body.brands-page .brand-appliances__grid strong {
        min-height: 39px;
        margin-top: 3px;
        font-size: 16px;
        line-height: 1.12;
    }

    body.brands-page .brand-appliances__grid em {
        margin-top: 1px;
        font-size: 9px;
    }

    body.brands-page .brand-appliances__grid b {
        right: 9px;
        bottom: 9px;
        width: 25px;
        height: 25px;
        border-radius: 8px;
        font-size: 9px;
    }
}

@media (max-width: 575px) {
    body.brands-page .brands-hero__media {
        height: 246px;
        margin-top: 112px;
        background-position: 71% center;
    }

    body.brands-page .brands-hero__container {
        padding-bottom: 108px;
    }

    body.brands-page .brand-directory {
        padding-right: 0;
        padding-left: 0;
    }

    body.brands-page .brand-collection + .brand-collection {
        margin-top: 52px;
    }
}

@media (max-width: 374px) {
    body.brands-page .brands-hero__media {
        height: 224px;
    }

    body.brands-page .brands-hero__actions .brands-button {
        font-size: 11px;
    }

    body.brands-page .brand-directory__grid,
    body.brands-page .brand-appliances__grid {
        gap: 8px;
    }

    body.brands-page .brand-directory-card {
        padding-right: 8px;
        padding-left: 8px;
    }

    body.brands-page .brand-directory-card h4 {
        font-size: 16px !important;
    }

    body.brands-page .brand-appliances__grid a {
        min-height: 206px;
        padding-right: 8px;
        padding-left: 8px;
    }

    body.brands-page .brand-appliances__grid strong {
        font-size: 15px;
    }
}

