.licence-section {
    padding-top: 28px;
}

.licence-section .section-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.18);
}

.licence-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin-top: 20px;
}

.licence-card {
    min-height: 178px;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 22px;
    border: 1px solid rgba(111, 127, 152, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 252, 0.98));
    box-shadow: 0 18px 38px rgba(15, 30, 50, 0.12);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.licence-card:hover {
    transform: translateY(-4px);
    border-color: rgba(82, 102, 131, 0.22);
    box-shadow: var(--shadow-lg);
}

.licence-logo {
    width: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.licence-logo img {
    max-width: 88%;
    max-height: 108px;
    object-fit: contain;
    filter: brightness(1) contrast(1.08) saturate(1.05) drop-shadow(0 6px 12px rgba(20, 34, 52, 0.1));
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
    padding: 18px;
    background: rgba(3, 8, 15, 0.82);
    align-items: center;
    justify-content: center;
}

.modal-box {
    position: relative;
    width: min(980px, 96%);
    max-height: 92vh;
    padding: 14px;
    border-radius: 26px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 31, 56, 0.98), rgba(8, 18, 34, 0.98));
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-wrapper {
    width: 100%;
    max-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#modalImg,
.modal-box img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    cursor: grab;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    cursor: pointer;
}

.nav.left {
    left: 14px;
}

.nav.right {
    right: 14px;
}

.nav:hover {
    background: rgba(215, 38, 56, 0.14);
}

@media (max-width: 760px) {
    .licence-card {
        min-height: 142px;
        padding: 18px;
    }

    .licence-logo img {
        max-height: 82px;
    }

    .nav {
        width: 38px;
        height: 38px;
    }
}
