.license-ds {
    margin: 40px auto !important;
}

.license-ds .section-title {
    font-size: 48px;
    font-weight: 600;
    color: #003543;
}

.license-ds__wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.license-ds__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 10px;
    border: 1px solid #D7E8ED;
    border-radius: 10px;
    overflow: hidden;
}

.license-ds__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Курсор на изображениях лицензий */
.license-ds__image {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.license-ds__image:hover {
    opacity: 0.88;
}

/* Затемнённый фон попапа */
.license-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(20, 35, 40, 0.65);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* Открытое состояние */
.license-popup.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Увеличенная лицензия */
.license-popup__image {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    cursor: pointer;
}

/* Мобильные устройства */
@media (max-width: 600px) {
    .license-popup {
        padding: 15px;
    }

    .license-popup__image {
        max-width: 95vw;
        max-height: 85vh;
    }
}

/* Планшеты */
@media (max-width: 768px) {
    .license-ds .section-title {
        font-size: 30px;
        margin-bottom: 20px;
    }

    .license-ds__wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .license-ds__item {
        padding: 6px;
    }

    .license-ds__image {
        max-height: 320px;
    }
}

/* Мобильные */
@media (max-width: 480px) {
    .license-ds {
        margin: 30px auto !important;
    }

    .license-ds__wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .license-ds__item {
        padding: 4px;
    }

    .license-ds__image {
        max-height: 260px;
    }
}