.container{
    padding: 0 !important;
}
.team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.team__card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* если нужна одинаковая высота карточек */
}
.group-field-1{
    margin-bottom: 16px;
}

.group-field-1{
    display: flex;
    flex-direction: column;
}
.team__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Фото-галерея */
.team__photo-wrapper {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.team__photo-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.team__photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team__photo.active {
    opacity: 1;
}

.team__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Навигация по фото */
.team__nav {
   /* position: absolute;*/
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.team__nav-container{
    display: flex;
    position: absolute;
    top: 25px;
    right: 16px;
    gap: 8px;
}

.team__nav:hover {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.team__nav--prev {
    left: 15px;
}

.team__nav--next {
    right: 15px;
}

.team__nav svg {
    color: #333;
}

/* Контент карточки */
.team__content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.tags{
    margin-top: auto;
    padding-top: 16px;
}
.team__position {
    color:  #00a6a3;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.02em;;
    font-family: "Inter", sans-serif;
}

.team__name {
    second-family: "Roboto Slab", sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 110%;
    color: #242440;
    margin-top: 8px;
    margin-bottom: 8px;
}

.team__quote {
    font-weight: 400;
    font-size: 12px;
    line-height: 143%;
    color: #7b8997;
    font-family: "Inter", sans-serif;
    margin-bottom: 42px;
}

.team__cert {
    display: inline-flex;
    align-items: center;
    border-radius: 32px;
    padding: 2px 8px;
    background: rgba(182, 63, 255, 0.08);
    gap: 6px;
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    color: #b63fff;
    font-family: "Inter", sans-serif;
    margin-bottom: 4px;
    width: fit-content;                 /* или просто удалить */
    white-space: nowrap;
}

.team__cert svg {
    color: #9C27B0;
}

.team__cert a {
    color: #9C27B0;
    text-decoration: none;
    width: fit-content;
}

.team__cert a:hover {
    text-decoration: underline;
}

.team__experience {
    display: inline-flex;
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    color: #0fc4ac;

    border-radius: 32px;
    padding: 2px 8px;
    /*padding: 10px 16px;*/
    background: rgba(15, 196, 172, 0.08);
    font-family: "Inter", sans-serif;
    width: fit-content;

}

.team__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
/*
.team{
    padding-right: 14px;
    padding-left: 14px;
}*/

.team__tag {
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 4px 12px;

    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    color: #7b8997;
    font-family: "Inter", sans-serif;
}

/* Социальные сети */
.team__social {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.team__vk-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4680C2;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    border: 1px solid #4680C2;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.team__vk-link:hover {
    background: #4680C2;
    color: white;
}

.team__vk-link svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 1200px) {
    .team{
        padding-right: 14px;
        padding-left: 14px;
    }
}

@media (max-width: 990px) {
    .team{
        padding-right: 0px;
        padding-left: 0px;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .team__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .team__photo-wrapper {
        height: 250px;
    }
    
    .team__content {
        padding: 20px;
    }
    
    .team__name {
        font-size: 20px;
    }
    
    .team__nav {
        width: 35px;
        height: 35px;
    }
    
    .team__nav--prev {
        left: 10px;
    }
    
    .team__nav--next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .team__photo-wrapper {
        height: 200px;
    }
    
    .team__content {
        padding: 16px;
    }
    
    .team__name {
        font-size: 18px;
    }
}