.team-section {
    color: var(--primary-light-text);
    overflow: hidden;
}

.team-section .title-sub {
    color: var(--primary-light-text);
}

.team-section .title-main {
    color: var(--primary-color);
}


.team-section__text {
    margin-top: 24px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
}

.team-section__head .title-main {
    padding-top: 2px;
}
.team-slider__navigation button{
    border-color: var(--primary-light-color);
    color: var(--primary-light-color);
}
@media (min-width: 576px) {

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {

    .team-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 24px 54px;
    }
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    transition:
        transform .4s cubic-bezier(.25, 1, .5, 1),
        opacity .4s ease;

    will-change: transform;
}

.team-card:hover {
    transform: translateY(-8px);
}

.team-image-container {
    width: 100%;
    aspect-ratio: 4 / 5;

    overflow: hidden;

    margin-bottom: 14px;

    position: relative;

    background-color: rgba(255, 255, 255, .04);
}

.team-img {
    width: 100%;
    max-width: 60vw;
    height: 261px;
    object-fit: cover;

    transition: transform .6s cubic-bezier(.25, 1, .5, 1);
}

.team-card:hover .team-img {
    transform: scale(1.06);
}

.team-name {
    font-size: 20px;
    margin-top: 14px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 14px;
}

.team-desc {
    font-size: 14px;
    opacity: .8;
    margin-top: 14px;
}

.team-section__bottom {
    display: flex;
    justify-content: center;

    margin-top: 60px;
}

.team-section-btn {
    min-width: 220px;
}


.team-card {
    cursor: pointer;
    transition: transform .2s ease;
}

.team-card:hover {
    transform: translateY(-4px);
}


.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 28, 70, 0.79);
}


.team-top-row {
    display: flex;
    gap: 45px;
    align-items: start;
}

.leader-frame {
    max-height: 550px;
    max-width: 450px;
    min-width: 300px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 5;
}

.leader-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.leader-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 28, 70, 0.83);
    padding: 20px;
    text-align: center;
    color: #ffffff;
}

.leader-name {
    font-weight: 600;
    font-size: 25px;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
    text-align: center;
}

.leader-role {
    font-size: 20px;
}

.qa-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: fit-content;
}

.qa-item {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.qa-heading {
    color: var(--primary-dark-color);
    font-family: var(--font-title);
    text-transform: uppercase;
}

.qa-body {
    font-weight: 500;
    font-size: 18px;
}


.team-bottom-sections {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 28px;
}

.fact-title {
    font-weight: 600;
}

.fact-row {
    display: flex;
    flex-direction: column;
}


body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

button.team-next.circle-next.swiper-button-lock,
button.team-prev.circle-prev.swiper-button-lock{
    display: none;
}

@media (max-width: 768px) {
    .qa-body {
    font-weight: 400;
    font-size: 16px;
}
.qa-heading{
    padding-bottom: 10px;
}
    .team-section__bottom {
        margin-top: 42px;
    }

    .team-name {
        font-size: 18px;
    }

    .team-role {
        font-size: 16px;
    }



    .team-top-row {
        display: flex;
        gap: 45px;
        align-items: start;
        flex-wrap: wrap;
    }

    .team-modal-footer-pattern {
        display: none;
    }

    .party-navigation-row {
        flex-direction: column;
    }

    .party-btn {
        margin-top: 30px;
    }

    .party-header-wrapper {
        margin-bottom: 0;
    }

    .party-header-wrapper {
        padding: 0;
    }

    .reliability-items {
        margin-bottom: 16px;
    }

    .title-text {
        margin-top: 10px;
    }

    .section-partners .partners-swiper {
        padding-block: 30px 30px;
    }
    .team-slider__navigation{
        justify-content: center;
    }
}