.banner-modal-content {
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    position: relative;
    background: var(--light);
}

.banner-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-medium);
    z-index: 10;
}

.banner-modal-close:hover {
    transform: scale(1.1);
    background: var(--primary);
    color: white;
}

.modal-header {
    padding: 20px 35px;
    border-bottom: 1px solid #eee;
    position: relative;
    background-color: #f9f9f9;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.banner-modal-title {
    font-size: 28px;
    color: var(--secondary);
    margin: 0;
    padding-right: 40px;
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-weight: 700;
    text-align: center;
}

.banner-modal-body {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.banner-modal-image-container {
    width: 100%;
    max-height: 450px;
    overflow: hidden;
    background: #f5f5f5;
}

.banner-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.banner-modal-image:hover {
    transform: scale(1.05);
}

.banner-modal-info {
    padding: 35px;
    background-color: white;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.banner-modal-description {
    font-size: 17px;
    line-height: 1.7;
    color: #444;
    margin: 0;
    font-family: 'Montserrat', 'Roboto', sans-serif;
    white-space: pre-line;
}

.banner-item {
    cursor: pointer;
}

.banner-item[role="button"] {
    cursor: pointer;
    position: relative;
}

.banner-item[role="button"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.banner-item[role="button"]:hover::after {
    opacity: 1;
}

.banner-item[role="button"] .banner-content::after {
    content: '\f129';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    bottom: 15px;
    right: 15px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.banner-item[role="button"]:hover .banner-content::after {
    transform: scale(1.1);
    background-color: rgba(0, 0, 0, 0.8);
}

/* Анимация появления модального окна */
#banner-modal.active .banner-modal-content {
    animation: modalFadeIn 0.4s ease forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 992px) {
    .banner-modal-title {
        font-size: 24px;
    }

    .banner-modal-header {
        padding: 25px 30px;
    }

    .banner-modal-info {
        padding: 30px;
    }

    .banner-modal-image-container {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .banner-modal-content {
        width: 95%;
        border-radius: 12px;
    }

    .banner-modal-title {
        font-size: 22px;
        text-align: left;
    }

    .banner-modal-header {
        padding: 20px 25px;
    }

    .banner-modal-description {
        font-size: 16px;
        line-height: 1.6;
    }

    .banner-modal-image-container {
        max-height: 350px;
    }

    .banner-modal-info {
        padding: 25px;
    }

    .banner-modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .banner-item[role="button"] .banner-content::after {
        width: 34px;
        height: 34px;
        font-size: 16px;
        bottom: 10px;
        right: 10px;
    }
}

@media (max-width: 576px) {
    .banner-modal-content {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
    }

    .banner-modal-header {
        padding: 20px;
        border-radius: 0;
    }

    .banner-modal-title {
        font-size: 20px;
    }

    .banner-modal-image-container {
        max-height: 250px;
    }

    .banner-modal-info {
        padding: 20px;
        border-radius: 0;
    }

    .banner-modal-description {
        font-size: 15px;
    }

    .banner-item[role="button"] .banner-content::after {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    /* Полноэкранное модальное окно на мобильных */
    #banner-modal.active {
        background: rgba(0, 0, 0, 0.9);
    }
}
