/* Блок «Наши клиенты» — news.list шаблон clients */

/* Базовый layout */
.wide-block--gray-lighter {
    background: #f5f5f5;
    padding: 7.5rem 0;
}

.d-grid {
    display: grid;
    gap: 12px;
}

.d-grid--xs-2 {
    grid-template-columns: 1fr;
}

.d-grid--sm-3,
.d-grid--md-3,
.d-grid--md-4,
.d-grid--xl-4 {
    grid-template-columns: repeat(2, 1fr);
}

@media screen and (max-width: 993px) {
    .wide-block--gray-lighter {
        padding: 3.75rem 0 !important;
    }
}

@media (min-width: 576px) {
    .d-grid {
        gap: 16px;
    }
}

@media (min-width: 768px) {
    .d-grid {
        gap: 20px;
    }

    .d-grid--md-3,
    .d-grid--md-4,
    .d-grid--xl-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .d-grid--xl-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Секция клиентов */
.clients-section {
    font-family: "Manrope", sans-serif;
}

.clients-section .container > .h1 {
    font-weight: 500;
    font-size: 28px;
    line-height: 150%;
    margin-top: 0;
    margin-bottom: 24px;
}

.clients-section .buttons-group[data-filter="clients"] {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.clients-section .buttons-group[data-filter="clients"] .button--tab {
    font-weight: 500;
    font-size: 14px;
    line-height: 154%;
    border-radius: 56px;
    flex-shrink: 0;
    height: 40px;
    padding: 0 18px;
    white-space: nowrap;
    background: #fff;
    color: #106cbc;
    border: 1px solid #106cbc;
    cursor: pointer;
    transition: background .25s, color .25s;
}

@media (min-width: 576px) {
    .clients-section .container > .h1 {
        font-size: 36px;
        margin-bottom: 32px;
    }
}

@media (min-width: 768px) {
    .clients-section .container > .h1 {
        font-size: 42px;
        margin-bottom: 40px;
    }

    .clients-section .buttons-group[data-filter="clients"] {
        flex-wrap: wrap;
        overflow: visible;
        gap: 15px;
        margin-bottom: 40px;
        padding-bottom: 0;
    }

    .clients-section .buttons-group[data-filter="clients"] .button--tab {
        font-size: 16px;
        min-width: 138px;
        padding: 0 20px;
    }
}

@media (min-width: 1200px) {
    .clients-section .container > .h1 {
        font-size: 50px;
        margin-bottom: 50px;
    }
}

.clients-section .buttons-group[data-filter="clients"] .button--tab.-is-active {
    background: #106cbc;
    color: #fff;
    border-color: #106cbc;
}

.clients-section [data-filter-block="clients"] {
    margin-top: 0;
}

.clients-section .logo-item--tile {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 0;
    border: none;
    border-bottom: none;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: box-shadow .25s;
}

.clients-section .logo-item--tile:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

@media (hover: none) {
    .clients-section .logo-item--tile:focus-within .logo-item__info {
        transform: translateY(0);
    }
}

.clients-section .logo-item__image {
    padding: 18px 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;
    border: none;
    box-sizing: border-box;
}

.clients-section .logo-item__image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: none;
    outline: none;
}

.clients-section .logo-item__noimg {
    font-size: 12px;
    color: #999;
    text-align: center;
}

.clients-section .logo-item__info {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: #106cbc;
    color: #fff;
    padding: 12px 10px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(100%);
    transition: transform .3s ease-out;
}

.clients-section .logo-item--tile:hover .logo-item__info {
    transform: translateY(0);
}

.clients-section .logo-item__title {
    font-weight: 700;
    font-size: 16px;
    line-height: 154%;
    color: #fff;
    text-align: center;
    margin: 0 0 4px 0;
}

.clients-section .logo-item__description {
    font-weight: 400;
    font-size: 12px;
    line-height: 154%;
    text-align: center;
    color: var(--background-main, #fff);
    margin: 0;
}

@media (min-width: 576px) {
    .clients-section .logo-item--tile {
        min-height: 135px;
    }

    .clients-section .logo-item__image {
        min-height: 90px;
    }

    .clients-section .logo-item__info {
        padding: 14px 10px;
    }

    .clients-section .logo-item__title {
        margin-bottom: 5px;
    }
}

@media (min-width: 768px) {
    .clients-section .logo-item--tile {
        min-height: 180px;
    }

    .clients-section .logo-item__image {
        min-height: 130px;
    }

    .clients-section .logo-item__info {
        padding: 16px 12px;
    }

    .clients-section .logo-item__title {
        margin-bottom: 6px;
    }
}

.clients-section .d-grid__item.-is-hidden {
    display: none;
}

.clients-section .logo-item__image img {
    width: 100%;
    height: unset;
    max-width: 100%;
    max-height: inherit !important;
    object-fit: contain;
    border: none;
    outline: none;
}

.cost .container .we-help-content .we-help-variations .we-help-variation .we-help-variation-btn .order-variation-btn a.popup_form {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.0625rem solid #fff;
    width: 100%;
    max-width: 12.5625rem;
    border-radius: 3.0625rem;
    color: #fff;
    background: #106cbc;
    font-family: "Manrope";
}

@media (min-width: 768px) {
    .clients-section .logo-item__image {
        max-width: 230px;
    }
}

@media (max-width: 768px) {
    .clients-section .logo-item__image {
        padding: 15px 25px;
        max-height: 100px;
        width: auto;
    }

    .clients-section .logo-item__title {
        font-weight: 600;
        font-size: 14px;
        line-height: 120%;
    }
}
