/*  ========================================================
    #TEAM / НАША КОМАНДА
    ======================================================== */

.team {
    color: var(--color-black);
}

.team__content {
    display: flex;
    flex-direction: column;
}

.team__title {
    font-family: var(--font-unbounded);
    font-size: var(--font-h2-desktop);
    text-transform: uppercase;
    font-weight: 900;
}

.team__list {
    display: flex;
    gap: 1.875rem;
    margin-top: 3.75rem;
    overflow-x: scroll;
    overflow-y: hidden;
    padding-bottom: 1.25rem;
}

.team__list::-webkit-scrollbar {
    height: 0.5rem;
}

.team__list::-webkit-scrollbar-track {
    background-color: var(--color-dark);
    border-radius: 99px;
}

.team__list::-webkit-scrollbar-thumb {
    background-color: var(--color-accent);
    border-radius: 99px;
}

.team__card {
    flex: 0 0 calc(25% - 1.875rem);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.875rem;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.team__card.visible {
    opacity: 1;
    transform: translateY(0);
}

.team__card img {
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 20px;
}

.team__badge {
    position: absolute;
    top: 13px;
    left: 13px;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: 80px;
    padding: 0.313rem 1.875rem;
    text-transform: uppercase;
    font-weight: bold;
    font-size: var(--font-main-desktop);
    z-index: 9;
    white-space: nowrap;
}

.team__main {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.team__name {
    font-family: var(--font-unbounded);
    font-size: var(--font-h3-desktop);
    font-weight: 900;
    text-transform: uppercase;
}

.team__description {
    font-size: var(--font-main-desktop);
    font-weight: 300;
}

.team__pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
}

.team__page {
    display: inline-block;
    width: 25%;
    height: 8px;
    border-radius: 4px;
    background-color: var(--color-dark);
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
    overflow: hidden;
}

.team__page span {
    position: absolute;
    inset: 0;
    background: var(--color-accent);
    width: 0%;
    height: 100%;
}

.team__page.active {
    background-color: var(--color-accent);
    cursor: auto;
}

@media (max-width: 1024px) {
    /*  #1024_TEAM  */

    .team__title {
        font-size: 3.788rem;
    }

    .team__card img {
        border-radius: 9px;
    }

    .team__list {
        margin-top: 3.444rem;
    }

    .team__card {
        gap: 1.722rem;
    }

    .team__name {
        font-size: 1.492rem;
    }

    .team__description {
        font-size: 1.033rem;
    }

    .team__badge {
        font-size: 0.918rem;
        padding: 0.23rem 1.378rem;
        left: 0.689rem;
        top: 0.689rem;
    }
}

@media (max-width: 768px) {
    /*  #768_TEAM  */

    .team__card {
        flex: 0 0 calc(50% - 1.875rem);
        gap: 2.411rem;
    }

    .team__list {
        gap: 3.214rem;
    }

    .team__title {
        font-size: 3.696rem;
    }

    .team__name {
        font-size: 2.089rem;
    }

    .team__description {
        font-size: 1.76rem;
    }

    .team__page {
        height: 1rem;
        width: 100%;
    }

    .team__badge {
        font-size: 1.286rem;
        padding: 0.321rem 1.928rem;
        left: 0.964rem;
        top: 0.964rem;
    }
}
