.treners_description {
    width: 100%;
    max-width: 1680px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
}

.treners_page__title {
    width: 100%;
    font-family: "Cygre Medium-Medium";
    font-weight: 500;
    font-size: 100px;
    line-height: 132px;
    letter-spacing: -2px;
    color: white;
}

.treners_description__content {
    margin-top: 36px;
    display: flex;
    column-gap: 72px;
    height: 503px;
    width: 100%;
}

.treners_description__content img {
    width: 691px;
    object-fit: cover;
    padding: 20px 0;
}

.treners_description__text {
    display: flex;
    flex-direction: column;
    row-gap: 16px;
    font-family: "Cygre Medium-Medium";
    font-weight: 500;
    font-size: 24px;
    letter-spacing: -0.5px;
    line-height: 150%;
    color: white;
    position: relative;
    width: calc(50% - 72px);
}

.treners_description__text p {
    font-size: 18px;
    position: absolute;
    bottom: 0;
}

/* Стили фильтра */


.filter-buttons-container {
    margin: auto auto 20px auto;
    max-width: 1680px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    /* Расстояние между кнопками */
}

.filter-btn {
    padding: 12px 32px;
    background-color: #414141;
    cursor: pointer;
    font-family: "Cygre Medium-Medium";
    font-size: 16px;
    color: white;
    transition: background-color 0.2s;
    transition: background-color 0.2s, opacity 0.2s;
}

.filter-btn:hover:not(.inactive) {
    /* Не применяем hover к неактивным кнопкам */
    background-color: #e6e6e6;
}

.filter-btn.active {
    background: linear-gradient(90deg, #D74548 0%, #C83670 25%, #A93890 50%, #7F388C 75%, #523671 100%);
    color: white;
}

/* Новый стиль для неактивной кнопки */
.filter-btn.inactive {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

/* Стили фильтра конец*/
.catalog-section .items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 19px;
}

.item-card {
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    font-family: "Cygre Medium-Medium";
}

.item-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.item-image {
    height: 573px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.item-link:hover .item-image img {
    transform: scale(1.05);
}

.item-content {
    padding: 15px;
    position: absolute;
    bottom: 0;
    height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-title {
    order: 2;
    margin: 0 0 10px 0;
    font-weight: 500;
    font-size: 46px;
    letter-spacing: -1px;
    color: #fff;
    width: min-content;
}

.item-property {
    margin-bottom: 8px;
    font-size: 14px;
}

.item-property-AI_CLUB {
    order: 0;
    position: relative;
    background-color: #FFFFFF;
    padding: 10px;
    width: fit-content;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: -0.3px;
}

.item-property-AI_WAY {
    order: 1;
}

.property-value {
    font-size: 18px;
}

.item-property-AI_WAY .property-value {
    color: #FFFFFF;
}

.item-property-AI_CLUB .property-value {
    color: #1E1E1E;
}

.item-preview {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

/* ----------------------------------------------------------- */
/* #adaptive styles*/
/* __________________________________________________________ */

/* _________________________________________________________ */
/* Адаптив */
/* _________________________________________________________ */

@media (max-width: 1680px) {
    .treners_description {
        max-width: 1400px;
    }

    .treners_content__wrap {
        max-width: 1400px;
        margin: auto;
    }
}

@media (max-width: 1400px) {

    .treners_description {
        max-width: 1024px;
    }

    .treners_description__text {
        width: auto;
    }

    .treners_description__text p {
        position: relative;
    }

    .treners_description__content {
        flex-direction: column;
        height: auto;
    }

    .treners_description__content img {
        width: unset;
    }

    .treners_content__wrap {
        max-width: 1024px;
    }

    .filter-buttons-container {
        margin-top: 44px;
    }
}

@media (max-width: 1024px) {

    .catalog-section .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .treners_page__title {
        font-size: 80px;
        line-height: 100%;
        margin-bottom: 40px;
    }

    .item-image {
        height: 221px;
    }

    .treners_description,
    .treners_content__wrap {
        max-width: 734px;
    }
}

@media (max-width: 734px) {

    .catalog-section .items-grid {
        gap: 10px;
        margin-bottom: 20px;
    }

    .filter-btn {
        font-size: 12px;
    }

    .treners_description__text,
    .treners_description__text p {
        font-size: 12px;
    }

    .treners_description,
    .treners_content__wrap {
        max-width: 350px;
    }

    .property-value {
        font-size: 10px;
    }

    .item-content {
        padding: 0 0 5px 5px;
        justify-content: flex-end;
    }

    .item-title {
        font-size: 20px;
        margin: unset;
    }

    .item-property-AI_CLUB {
        padding: 5px;
        top: -110px;
        left: 0;
        position: absolute;
    }
}