#manufacturer {
}


.manufacturer-card {
    float: left;
    background: #FFFFFF;
    border: 1px solid #DBE3EC;
    border-radius: 10px;
    overflow: hidden;
    padding: 0 20px;
    margin-bottom: 20px;
}


.content-block {
    float: left;
    max-width: 840px;
    width: 100%;
}
p {
    text-align: left;
}


.manufacturer-logo {
    float: left;
    margin: 20px 30px 20px 0;
    width: auto;
    height: auto;
    max-width: 250px;
    max-height: 100px;
    display: block;
}
.manufacturer-image {
    float: left;
    width: auto;
    height: auto;
    max-width: 100%;
    margin: 0 20px 20px 0;
    display: block;
}
.manufacturer-content {
    text-align: left;
}

.category-title {
    clear: both;
    float: left;
    width: 100%;
}
h2 {
    color: #12406e;
    text-align: left;
}


.categories {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    width: 100%;
    margin: 0 auto 20px auto;
}
.categories > a {
    color: inherit;
    text-decoration: none;
}
.category-block {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    padding: 20px 16px 15px;
    border: 1px solid #DBDBDB;
    border-radius: 10px;
    background: #FFFFFF;
    display: grid;
    grid-template-rows: 100px 1fr auto;
    justify-items: center;
    align-items: center;
    transition:
            transform .2s ease,
            border-color .2s ease,
            box-shadow .2s ease;
}
.category-block:hover {
    transform: translateY(-4px);
    border-color: #0878D1;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .10);
}
.category-number {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #E8610A;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
}
.category-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
}
.category-name {
    width: 100%;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    color: var(--navy);
}
.category-products {
    margin-top: auto;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #777777;
}


.contact-block {
    position: relative;
    box-sizing: border-box;
    float: right;
    width: 300px;
    margin-bottom: 10px;
    padding: 18px;
    border: 1px solid #DBDBDB;
    border-radius: 10px;
    background: #FFFFFF;
}
.contact-manufacturer {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 90px;
    height: 38px;
    object-fit: contain;
    object-position: right top;
}
.contact-image {
    width: 220px;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 60px auto 60px auto;
}
.contact-image.carlo {
    margin: 20px auto 20px auto;
}
.contact-text {
    margin-top: 30px;
}
.contact-details {
    border-top: 1px solid #E5E5E5;
    padding-top: 14px;
}
.contact-row {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px;
    padding: 6px 0;
    align-items: start;
}
.contact-label {
    font-size: 13px;
    color: #777777;
}
.contact-value {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}
.contact-value a {
    color: #0069C8;
    text-decoration: none;
}
.contact-brand a {
    color: #0069C8;
}
button.message {
    width: 100%;
    height: 40px;
    margin-top: 16px;
    background: #F59A00;
    border: 1px solid #F59A00;
    border-radius: 7px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition:
            background-color .2s ease,
            border-color .2s ease;
}
button.message:hover {
    background: #315F89;
    border-color: #7FA4C5;
    color: #FFFFFF;
}
button.products-all {
    width: auto;
    margin-top: 0;
    margin-bottom: 20px;
}


@media only screen and (max-width : 1200px) {
    #manufacturer {
        margin: auto;
    }
    .manufacturer-logo {
        float: none;
        margin: 20px auto 20px auto;
    }
    .manufacturer-content {
        clear: both;
    }

    .contact-block {
        float: left;
        width: 100%;
        margin-bottom: 20px;
    }

    .categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        width: 100%;
    }
    .categories > a {
        display: flex;
        height: 100%;
    }
    .category-block {
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        padding: 16px 8px 10px;
        grid-template-rows: 78px 1fr auto;
        row-gap: 4px;
    }
    .category-image {
        width: 75px;
        height: 75px;
    }
    .category-name {
        font-size: 13px;
        line-height: 1.3;
    }
    .category-products {
        margin-top: 6px;
        font-size: 11px;
    }
    .category-number {
        top: 7px;
        left: 7px;
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    button.products-all {
        width: 100%;
    }
}