/* Teamseite */
.team-hero {
    padding: 140px 0 110px;
}

.team-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 92px;
}

.team-hero__media {
    position: relative;
    min-height: 420px;
}

.team-hero__bg {
    position: absolute;
    left: 42px;
    top: 50px;
    width: 320px;
    height: 300px;
    border-radius: 16px;
    background: var(--color-cream);
    z-index: 0;
}

.team-hero__image {
    position: absolute;
    overflow: hidden;
    margin: 0;
    border-radius: 12px;
    background: #ffb3b3;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
    z-index: 1;
}

.team-hero__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-hero__image--one {
    left: 0;
    top: 115px;
    width: 250px;
    height: 250px;
}

.team-hero__image--two {
    left: 265px;
    top: 0;
    width: 205px;
    height: 205px;
}

.team-hero__image--three {
    left: 265px;
    top: 220px;
    width: 280px;
    height: 280px;
}

.team-hero__content {
    max-width: 460px;
}

.team-hero__content h1 {
    margin: 0 0 28px;
    font-size: clamp(42px, 4vw, 64px);
    line-height: 0.95;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--color-text);
}

.team-hero__content p {
    max-width: 390px;
    margin: 0;
    font-size: 18px;
    line-height: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.team-page {
    padding-bottom: 150px;
    margin-top: 80px;
}

.team-section {
    margin-top: 86px;
}

.team-section:first-child {
    margin-top: 0;
}

.team-section h2 {
    margin: 0 0 34px;
    font-size: 32px;
    line-height: 38px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 72px 76px;
}

.team-card {
    min-width: 0;
}

.team-card__image {
    margin: 0 0 26px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    background: #ffb3b3;
}

.team-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card__body h3 {
    margin: 0 0 4px;
    font-size: 24px;
    line-height: 29px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.team-card__job {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--color-green);
    text-transform: uppercase;
}

.team-card__phone {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 22px;
    font-weight: 700;
    color: var(--color-text);
}

.team-card__phone a {
    color: inherit;
    text-decoration: none;
}

.team-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.team-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--color-green-dark);
    color: #ffffff;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.team-action:hover,
.team-action:focus-visible {
    background: var(--color-green);
    transform: translateY(-1px);
}

.team-action i {
    font-size: 12px;
}

@media (max-width: 1100px) {
    .team-hero__inner {
        gap: 58px;
    }

    .team-hero__image--three {
        width: 250px;
        height: 250px;
    }

    .team-grid {
        gap: 56px 42px;
    }
}

@media (max-width: 900px) {
    .team-hero {
        padding: 80px 0 70px;
    }

    .team-hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .team-hero__media {
        max-width: 560px;
        min-height: 390px;
        margin-inline: auto;
        width: 100%;
    }

    .team-hero__content {
        max-width: none;
        text-align: center;
    }

    .team-hero__content p {
        margin-inline: auto;
    }

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

@media (max-width: 640px) {
    .team-hero {
        padding: 56px 0 56px;
    }

    .team-hero__media {
        min-height: 315px;
    }

    .team-hero__bg {
        left: 28px;
        top: 34px;
        width: 220px;
        height: 220px;
    }

    .team-hero__image--one {
        left: 0;
        top: 92px;
        width: 170px;
        height: 170px;
    }

    .team-hero__image--two {
        left: 185px;
        top: 0;
        width: 135px;
        height: 135px;
    }

    .team-hero__image--three {
        left: 150px;
        top: 150px;
        width: 190px;
        height: 190px;
    }

    .team-hero__content h1 {
        font-size: 40px;
        line-height: 0.98;
    }

    .team-page {
        padding-bottom: 90px;
    }

    .team-section {
        margin-top: 64px;
    }

    .team-section h2 {
        font-size: 28px;
        line-height: 34px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .team-card__body h3 {
        font-size: 22px;
        line-height: 27px;
    }
}
