/* Блок «Команда юристов» (include/blocks/services/team.php) */
.gk-team {
    margin: 0 0 40px;
}

.gk-team__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px;
    background-color: #1b1b1b;
    border-radius: 6px;
}

.gk-team__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 12px 12px 20px;
    background: #232323;
    border-radius: 6px;
}

.gk-team__link,
.gk-team__link:hover {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gk-team__photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: 50% 15%;
    background-color: #2e2e2e;
    border-radius: 4px;
}

.gk-team .gk-team__name {
    margin: 16px 0 8px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
    transition: color 0.2s;
}

.gk-team__link:hover .gk-team__name {
    color: #d2ae4e;
}

.gk-team .gk-team__position {
    flex-grow: 1;
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #c4c4c4;
}

.gk-team__btn {
    align-self: flex-start;
}

.gk-team__dots {
    display: none;
}

@media (max-width: 600px) {
    .gk-team__list {
        display: flex;
        gap: 12px;
        padding: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .gk-team__list::-webkit-scrollbar {
        display: none;
    }
    .gk-team__card {
        flex: 0 0 85%;
        scroll-snap-align: start;
    }
    .gk-team__dots {
        display: flex;
        justify-content: center;
        gap: 10px;
        padding: 16px 0 0;
    }
    .gk-team__dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: #666;
        transition: background-color 0.3s;
    }
    .gk-team__dot.active {
        background-color: #d2ae4e;
    }
    .gk-team .t-heading-wrap__link-text {
        display: none;
    }
}
