

/* Start:/local/templates/generator/components/bitrix/news.list/cases_page_1.0/style.css?17821214787635*/
/* ======================================== */
/* ОБЩИЙ КОНТЕЙНЕР */
/* ======================================== */
.cases-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    font-family: 'Arial', sans-serif;
}
.cases-page__title {
    font-size: 36px;
    font-weight: 600;
    color: #231f20;
    margin: 0 0 32px 0;
}

/* ======================================== */
/* ФИЛЬТР */
/* ======================================== */
.cases-filter {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
}
.cases-filter__panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Выбор города */
.cases-filter__city select {
    width: 100%;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid #e0e3e8;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    font-family: inherit;
    color: #1a1e24;
}
.cases-filter__city select:focus {
    outline: none;
    border-color: #42ae45;
}

/* Теги – кнопки-пилюли */
.cases-filter__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cases-filter__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #5f6b7a;
    background: #f7f8fa;
    border: 1px solid #e0e3e8;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}
.cases-filter__tag:hover {
    background: #eef0f3;
    border-color: #c0c7d0;
}
.cases-filter__tag input {
    display: none;
}
.cases-filter__tag:has(input:checked) {
    background: #42ae45;
    border-color: #42ae45;
    color: #fff;
}
.cases-filter__tag.disabled {
    display: none;
}

/* Кнопки */
.cases-filter__actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.cases-filter__btn,
.cases-filter__reset {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cases-filter__btn {
    background: #42ae45;
    color: #fff;
    border-color: #42ae45;
}
.cases-filter__btn:hover {
    background: #3a9c3d;
}
.cases-filter__reset {
    background: #fff;
    color: #5f6b7a;
    border-color: #e0e3e8;
}
.cases-filter__reset:hover {
    background: #f7f8fa;
}

/* ======================================== */
/* СЕТКА КАРТОЧЕК */
/* ======================================== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

/* ======================================== */
/* КАРТОЧКА КЕЙСА */
/* ======================================== */
.case-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eef0f3;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    padding: 20px 20px 0 20px;
}
.case-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.case-card__name {
    font-size: 18px;
    margin: 0 0 12px;
    color: #1a1e24;
}
.case-card__top {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.case-card__photo {
    flex: 0 0 120px;
    width: 120px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
}
.case-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.case-card__text {
    flex: 1;
    min-width: 0;
}
.case-card__desc {
    color: #5f6b7a;
    margin: 0;
    line-height: 1.5;
    font-size: 14px;
}
.case-card__bottom {
    padding: 15px 0 20px 0;
    margin-top: auto;
}
.case-card__details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.case-card__amount,
.case-card__duration {
    background: #f7f8fa;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #1a1e24;
}
.case-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.case-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.case-tag {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
.case-card__city {
    color: #7f8ea4;
    font-size: 13px;
    white-space: nowrap;
}

/* ======================================== */
/* ПУСТОЙ СПИСОК */
/* ======================================== */
.cases-empty {
    padding: 60px 0;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eef0f3;
}
.cases-empty p {
    font-size: 15px;
    color: #7f8ea4;
    margin: 0;
}

/* ======================================== */
/* МОДАЛЬНОЕ ОКНО */
/* ======================================== */
.cases-modal {
    display: none !important;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}
.cases-modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}
.cases-modal__dialog {
    background: #fff;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 30px;
    position: relative;
}
.cases-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.cases-modal__title {
    font-size: 24px;
    margin: 0;
}
.cases-modal__close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #aaa;
    padding: 0;
}
.cases-modal__close:hover {
    color: #000;
}
.cases-modal__body {
    line-height: 1.7;
    color: #333;
}
.cases-modal__layout {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}
.cases-modal__left {
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.cases-modal__photos {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cases-modal__photos img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.cases-modal__details {
    font-size: 14px;
    color: #555;
}
.cases-modal__details p {
    margin: 0 0 8px;
}
.cases-modal__details strong {
    color: #333;
}
.cases-modal__desc {
    flex: 1;
    min-width: 0;
}
.cases-modal__videos {
    margin-top: 20px;
}
.cases-modal__videos video {
    max-width: 100%;
    border-radius: 6px;
}

@media (max-width: 600px) {
    .cases-modal__layout {
        flex-direction: column;
    }
    .cases-modal__left {
        flex: 0 0 auto;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .cases-modal__photos {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .cases-modal__photos img {
        width: calc(50% - 5px);
    }
}

/* ======================================== */
/* АДАПТИВ */
/* ======================================== */
@media (max-width: 768px) {
    .cases-page {
        padding: 24px 16px 40px;
    }
    .cases-page__title {
        font-size: 28px;
        margin-bottom: 24px;
    }
    .cases-filter {
        padding: 16px;
        margin-bottom: 24px;
    }
    .cases-grid {
        grid-template-columns: 1fr;
    }
}
/* End */
/* /local/templates/generator/components/bitrix/news.list/cases_page_1.0/style.css?17821214787635 */
