/* Homepage categories — Figma 2022:184 (desktop), 2024:185 (mobile). */
@media (min-width: 1200px) {
    .categories_home .categories_home__container {
        box-sizing: border-box;
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
        padding: 82px clamp(60px, 7.142857vw, 100px) 80px;
    }
    .categories_home .categories_home__head {
        display: flex;
        flex-wrap: nowrap;
        align-items: flex-end;
        justify-content: space-between;
        gap: 24px;
        margin: 0 0 40px;
    }
    .categories_home .categories_home__head-main {
        flex: 1 1 auto;
        min-width: 0;
    }
    .categories_home .categories_home__eyebrow {
        margin: 0 0 10px;
        color: #1766d2;
        font-size: 10px;
        font-weight: 700;
        line-height: 12px;
        letter-spacing: 1.2px;
    }
    .categories_home .categories_home__title {
        margin: 0;
        color: #151c27;
        font-size: 36px;
        font-weight: 700;
        line-height: 44px;
        letter-spacing: 0;
    }
    .categories_home .categories_home__lead {
        max-width: 410px;
        margin: 10px 0 0;
        color: #687384;
        font-size: 13px;
        font-weight: 400;
        line-height: 16px;
    }
    .categories_home .categories_home__catalog-btn {
        box-sizing: border-box;
        flex: 0 0 155px;
        gap: 18px;
        width: 155px;
        min-height: 50px;
        padding: 0 20px;
        border: 1px solid #cbd4e1;
        border-radius: 10px;
        background: #fff;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.2;
        box-shadow: none;
    }
    .categories_home .categories_home__catalog-btn:hover {
        background: #f1f6ff;
        border-color: #9ebeea;
    }
    .categories_home .categories_home__grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }
    .categories_home .categories_home__card {
        box-sizing: border-box;
        position: relative;
        display: block;
        height: 221px;
        min-height: 221px;
        padding: 0;
        overflow: hidden;
        border: 1px solid #e4ebf2;
        border-radius: 10px;
        background: linear-gradient(135deg, #f8fafc 0%, #ebf2f8 100%);
    }
    .categories_home .categories_home__card-media {
        position: absolute;
        inset: 0;
        display: block;
        min-height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }
    .categories_home .categories_home__card-media img {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        margin: 0;
        object-fit: fill;
    }
    .categories_home .categories_home__card[href$="/chemistry/"] .categories_home__card-media img {
        inset: 10px auto auto 50%;
        width: 184px;
        height: 184px;
        transform: translateX(-50%);
        object-fit: contain;
        mix-blend-mode: darken;
    }
    .categories_home .categories_home__card[href$="/parts/"] .categories_home__card-media img {
        inset: -12px auto auto calc(50% - 110px);
        width: 240px;
        height: 240px;
        object-fit: contain;
        mix-blend-mode: darken;
    }
    .categories_home .categories_home__card-title {
        position: absolute;
        z-index: 1;
        left: 20px;
        right: 60px;
        bottom: 18px;
        max-width: 190px;
        margin: 0;
        padding: 0;
        color: #151c27;
        font-size: 14px;
        font-weight: 700;
        line-height: 16px;
        letter-spacing: 0;
    }
    .categories_home .categories_home__card[href$="/washing-vacuum-cleaner/"] .categories_home__card-title,
    .categories_home .categories_home__card[href$="/rustproofing-coating-gun/"] .categories_home__card-title,
    .categories_home .categories_home__card[href$="/nozzles-for-anticorrosive-gun/"] .categories_home__card-title {
        max-width: 155px;
    }
    .categories_home .categories_home__card[href$="/chemistry/"] .categories_home__card-title { max-width: 150px; }
    .categories_home .categories_home__card[href$="/parts/"] .categories_home__card-title { max-width: 175px; }
    .categories_home .categories_home__card[href$="/nozzles-for-anticorrosive-gun/"] .categories_home__card-title { max-width: 130px; }
    .categories_home .categories_home__card[href$="/accessories/"] .categories_home__card-title { max-width: 140px; }
    .categories_home .categories_home__card[href$="/anticorrosive-pistol-spare-parts/"] .categories_home__card-title { max-width: 170px; }
    .categories_home .categories_home__card-arrow {
        right: 20px;
        bottom: 20px;
        width: 28px;
        height: 28px;
        border: 0;
        background: #fff;
        box-shadow: none;
    }
    .categories_home .categories_home__card-arrow svg {
        width: 16px;
        height: 16px;
    }
    .categories_home a:focus-visible {
        outline: 3px solid #75a7ef;
        outline-offset: 3px;
    }
}

@media (max-width: 1199px) {
    .categories_home .categories_home__container {
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 720px;
        margin: 0 auto;
        padding: 80px 24px;
    }
    .categories_home .categories_home__head {
        display: contents;
    }
    .categories_home .categories_home__head-main {
        flex: none;
        order: 1;
        width: 100%;
        min-width: 0;
        margin: 0 0 16px;
    }
    .categories_home .categories_home__eyebrow {
        margin: 0 0 18px;
        color: #1766d2;
        font-size: 10px;
        font-weight: 700;
        line-height: 12px;
        letter-spacing: 1.2px;
    }
    .categories_home .categories_home__title {
        margin: 0;
        color: #151c27;
        font-size: 28px;
        font-weight: 700;
        line-height: 34px;
        letter-spacing: 0;
    }
    .categories_home .categories_home__lead {
        max-width: none;
        margin: 16px 0 0;
        color: #687384;
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
    }
    .categories_home .categories_home__grid {
        display: grid;
        order: 2;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    .categories_home .categories_home__card {
        box-sizing: border-box;
        position: relative;
        display: flex;
        flex-direction: column;
        min-width: 0;
        min-height: 225px;
        height: auto;
        padding: 0;
        overflow: hidden;
        border: 0;
        border-radius: 10px;
        background: #f4f7fb;
    }
    .categories_home .categories_home__card-media {
        box-sizing: border-box;
        position: relative;
        display: block;
        flex: none;
        width: 100%;
        min-height: 0;
        height: auto;
        aspect-ratio: 286 / 221;
        margin: 0;
        padding: 0;
        overflow: hidden;
        border: 1px solid #e4ebf2;
        border-radius: 10px;
        background: linear-gradient(135deg, #f8fafc 0%, #ebf2f8 100%);
    }
    .categories_home .categories_home__card-media img {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        margin: 0;
        object-fit: fill;
    }
    .categories_home .categories_home__card[href$="/chemistry/"] .categories_home__card-media img {
        inset: 7px auto auto 50%;
        width: 120px;
        height: 120px;
        transform: translateX(-50%);
        object-fit: contain;
        mix-blend-mode: darken;
    }
    .categories_home .categories_home__card[href$="/parts/"] .categories_home__card-media img {
        inset: -6px auto auto calc(50% - 69px);
        width: 150px;
        height: 150px;
        object-fit: contain;
        mix-blend-mode: darken;
    }
    .categories_home .categories_home__card-title {
        position: static;
        flex: none;
        max-width: 155px;
        min-width: 0;
        margin: 10px 12px 30px;
        padding: 0;
        color: #151c27;
        font-size: 13px;
        font-weight: 600;
        line-height: 17px;
        letter-spacing: 0;
        overflow-wrap: break-word;
    }
    .categories_home .categories_home__card[href$="/accessories/"] .categories_home__card-title {
        max-width: 130px;
    }
    .categories_home .categories_home__card-arrow {
        right: 12px;
        bottom: 12px;
        width: 20px;
        height: 20px;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #1766d2;
        box-shadow: none;
    }
    .categories_home .categories_home__card-arrow svg {
        width: 20px;
        height: 20px;
    }
    .categories_home .categories_home__catalog-btn {
        box-sizing: border-box;
        flex: none;
        order: 3;
        align-self: flex-start;
        gap: 18px;
        width: 155px;
        min-height: 50px;
        margin: 16px 0 0;
        padding: 0 20px;
        border: 1px solid #cbd4e1;
        border-radius: 10px;
        background: #fff;
        color: #1766d2;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.2;
        box-shadow: none;
    }
    .categories_home a:focus-visible {
        outline: 3px solid #75a7ef;
        outline-offset: 3px;
    }
}

@media (max-width: 767px) {
    .categories_home .categories_home__container {
        max-width: 560px;
        padding-left: 15px;
        padding-right: 15px;
    }
}
