h1 + p {
    color: var(--grey);
    font-size: 24px;
    letter-spacing: 0.72px;
}
.categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 100px;
    .category {
        position: relative;
        border-radius: 20px;
        overflow: hidden;
        display: grid;
        grid-template-columns: 1fr;
        background-color: var(--white);
        transition: background-color .3s linear, box-shadow .3s linear;
        &::before {
            content: '';
            position: absolute;
            inset: 0;
            pointer-events: none;
            background: url(../images/categories/bg.svg) left top / auto 100% no-repeat;
        }
        &::after {
            content: attr(data-count);
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 65px;
            aspect-ratio: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 16px;
            background: rgba(241, 243, 243, 0.85);
            backdrop-filter: blur(5px);
            color: var(--blue);
            text-align: center;
            font-size: 20px;
            font-weight: 600;
        }
        &:has(img) {
            grid-template-columns: repeat(2, 1fr);
            img {
                aspect-ratio: 293/200;
                object-fit: cover;
                border-left: 2px solid var(--grey-white);
            }
        }
        span {
            color: var(--grey);
            font-weight: 700;
            letter-spacing: 0.48px;
            align-self: center;
            justify-self: end;
            padding-inline: 30px 40px;
            transition: color .3s linear;
        }
    }
}
.wrapper:has(.advantages) {
    margin-bottom: 120px;
}
@media screen and (max-width: 1860px) {
    .categories {
        gap: 20px;
    }
}
@media screen and (max-width: 1500px) {
    .categories {
        grid-template-columns: repeat(2, 1fr);
    }
    .wrapper:has(.advantages) {
        margin-bottom: 100px;
    }
}
@media screen and (max-width: 1280px) {
    h1 + p {
        font-size: 20px;
    }
    .categories {
        gap: 10px;
    }
    .categories,
    .wrapper:has(.advantages) {
        margin-bottom: 80px;
    }
    .advantages {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        > div:nth-child(3)::after {
            display: none;
        }
    }
}
@media screen and (max-width: 992px) {
    .categories .category {
        &::after {
            width: 50px;
            font-size: 16px;
        }
        span {
            padding-inline: 20px 35px;
        }
    }
}
@media screen and (max-width: 768px) {
    h1 + p {
        font-size: 16px;
        letter-spacing: 0.48px;
    }
    .categories {
        grid-template-columns: 1fr;
        .category {
            &:has(img) img {
                aspect-ratio: 184/100;
            }
        }
    }
    .categories,
    .wrapper:has(.advantages) {
        margin-bottom: 60px;
    }
    .advantages {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
        div:not(:first-child) {
            padding-top: 30px;
            border-top: 1px solid var(--brjyrb);
            &::after {
                display: none;
            }
        }
        .head {
            font-size: 20px;
        }
        p {
            font-size: 14px;
        }
    }
}
@media screen and (hover:hover) {
    .categories .category:hover {
        box-shadow: var(--shadow);
        background-color: var(--blue);
        span {
            color: var(--white);
        }
    }
}