
/* =========================================
   Банковские конкурсы — список конкурсов
   ИБР / ЕБРР
   ========================================= */

.ibr-contests-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 0 60px;
}

/* Возврат к области */

.ibr-contests-page .ibr-back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 26px;
    color: #2563a6;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s ease;
}

.ibr-contests-page .ibr-back-link:hover {
    color: #123d69;
    text-decoration: underline;
}

/* Заголовок списка */

.ibr-contests-page .ibr-region-heading {
    margin: 0 0 28px;
    color: #193b60;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 700;
}

/* Список конкурсов */

.ibr-contests-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Карточка конкурса */

.ibr-contest-card {
    background: #fff;
    border: 1px solid #e0e7ef;
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 3px 12px rgba(22, 47, 74, .035);
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.ibr-contest-card:hover {
    border-color: #aac5dd;
    box-shadow: 0 8px 24px rgba(22, 47, 74, .08);
    transform: translateY(-2px);
}

/* Название конкурса */

.ibr-contest-card__title {
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 650;
    line-height: 1.45;
}

.ibr-contest-card__title a {
    color: #193b60;
    text-decoration: none;
}

.ibr-contest-card__title a:hover {
    color: #2465a1;
}

/* Дата конкурса */

.ibr-contest-card__date {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    color: #6a7887;
    font-size: 14px;
    line-height: 1.5;
}

.ibr-contest-card__date time {
    color: #526579;
}

/* Ссылка открытия конкурса */

.ibr-contest-card__link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #2465a1;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.ibr-contest-card__link:hover {
    color: #123d69;
    text-decoration: underline;
}

.ibr-contest-card__link span {
    transition: transform .2s ease;
}

.ibr-contest-card__link:hover span {
    transform: translateX(4px);
}

/* Пустой список */

.ibr-contests-page .ibr-empty {
    padding: 32px;
    border: 1px dashed #ccd8e3;
    border-radius: 12px;
    background: #f8fafc;
    color: #62758a;
    text-align: center;
}

/* Пагинация */

.ibr-contests-page .ibr-pagination {
    margin-top: 28px;
}

.ibr-contests-page .ibr-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    list-style: none;
}

/* Адаптация под мобильные устройства */

@media (max-width: 768px) {
    .ibr-contests-page {
        padding: 20px 0 40px;
    }

    .ibr-contests-page .ibr-region-heading {
        font-size: 23px;
        margin-bottom: 22px;
    }

    .ibr-contest-card {
        padding: 20px;
    }

    .ibr-contest-card__title {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .ibr-contest-card {
        padding: 18px 16px;
    }

    .ibr-contest-card__date {
        flex-wrap: wrap;
    }
}
