/* ION Heat — Leadership Team */

.team .container {
    flex-direction: column;
    gap: 51px;
    align-items: flex-start;
    padding-top: 100px;
    padding-bottom: 150px;
    overflow: hidden;
}

.team__top {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: stretch;
}

.team__line {
    border: none;
    border-top: 1px solid var(--main);
    align-self: stretch;
    margin: 0;
}

.team__title {
    color: var(--text);
    font-family: var(--h2-font-family);
    font-size: var(--h2-font-size);
    line-height: var(--h2-line-height);
    font-weight: var(--h2-font-weight);
    align-self: stretch;
}

/* Сетка — десктоп */
.team__grid {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
    align-self: stretch;
    flex-wrap: wrap;
}

/* Карточка */
.team__card {
    border-radius: 12px;
    border: 1px solid var(--line);
    padding: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    flex: 1 1 340px;
    max-width: 380px;
    overflow: hidden;
    transition: box-shadow 0.25s;
}

.team__card:hover {
    box-shadow: var(--card-shadow);
}

.team__card-img-wrap {
    align-self: stretch;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
    height: 400px;
}

.team__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px 12px 0 0;

    /* Grayscale по умолчанию */
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.team__card:hover .team__card-img {
    filter: grayscale(0%);
}

.team__card-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.team__card-name {
    color: var(--text);
    text-align: center;
    font-family: "Open Sans", sans-serif;
    font-size: 22px;
    line-height: 130%;
    font-weight: 500;
    width: 324px;
}

.team__card-role {
    color: var(--text);
    text-align: center;
    font-family: "Open Sans", sans-serif;
    font-size: 22px;
    line-height: 130%;
    font-weight: 300;
    width: 324px;
}

/* Swiper — скрыт на десктопе */
.team__swiper { display: none; }

/* ── Адаптив ────────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .team__grid   { display: none; }
    .team__swiper { display: block; width: 100%; }

    .team .container {
        padding-top: 60px;
        padding-bottom: 80px;
    }

    .team__title {
        font-size: clamp(32px, 5vw, 64px);
    }

    .team__card {
        max-width: 100%;
    }

    .team__swiper .swiper-pagination {
        position: static;
        margin-top: 24px;
    }

    .team__swiper .swiper-pagination-bullet {
        background: var(--fon2);
        opacity: 0.3;
        width: 10px;
        height: 10px;
    }

    .team__swiper .swiper-pagination-bullet-active {
        background: var(--main);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .team__card-img-wrap {
        height: 280px;
    }

    .team__card-name,
    .team__card-role {
        width: auto;
        padding: 0 16px;
    }
}