
/* ========================================
   TEAM PAGE — АВТОШКОЛА ФОРВАРД
======================================== */

.team-page {
    --team-accent: #e30613;
    --team-dark: #101b33;
    --team-muted: #657080;
    --team-border: #e2e5e9;
    --team-card-bg: #fff;

    padding: 70px 0 100px;
}

/* Хлебные крошки */

.team-page__breadcrumbs {
    margin-bottom: 42px;
}

.team-page__breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.team-page__breadcrumb-item {
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--team-muted);
    list-style: none;
}

.team-page__breadcrumb-item:not(:last-child)::after {
    content: "/";
    margin: 0 12px;
    color: #a8aeb8;
}

.team-page__breadcrumb-item a {
    color: inherit;
    text-decoration: none;
}

.team-page__breadcrumb-item a:hover {
    color: var(--team-accent);
}

.team-page__breadcrumb-item[aria-current="page"] {
    color: var(--team-dark);
}

/* Заголовок */

.team-page__header {
    max-width: 900px;
    margin-bottom: 48px;
}

.team-page__eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--team-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.team-page__title {
    margin: 0 0 24px;
    color: var(--team-dark);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.team-page__lead {
    max-width: 850px;
    color: var(--team-muted);
    font-size: 18px;
    line-height: 1.75;
}

.team-page__lead:empty {
    display: none;
}

/* Сетка */

.team-page__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

/* Карточка */

.team-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--team-border);
    border-radius: 18px;
    background: var(--team-card-bg);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    border-color: #d6d9de;
    box-shadow: 0 16px 38px rgba(16, 27, 51, .10);
}

/* Изображение */

.team-card__media {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #eff0f2;
}

.team-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .4s ease;
}

.team-card:hover .team-card__image {
    transform: scale(1.035);
}

.team-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #f8f8f9, #e8e9ec);
}

.team-card__placeholder span {
    color: #c0c3ca;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.04em;
}

/* Содержимое карточки */

.team-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 26px;
}

.team-card__title {
    margin: 0 0 12px;
    color: var(--team-dark);
    font-size: 23px;
    font-weight: 750;
    line-height: 1.35;
}

.team-card__title a {
    color: inherit;
    text-decoration: none;
}

.team-card__title a:hover {
    color: var(--team-accent);
}

.team-card__description {
    margin: 0 0 22px;
    color: var(--team-muted);
    font-size: 15px;
    line-height: 1.7;
}

.team-card__more {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 9px;
    margin-top: auto;
    color: var(--team-accent);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.team-card__more span {
    transition: transform .2s ease;
}

.team-card__more:hover span {
    transform: translateX(4px);
}

/* Дополнительный текст */

.team-page__bottom-content {
    max-width: 960px;
    margin-top: 70px;
    line-height: 1.8;
}

.team-page__bottom-content img {
    max-width: 100%;
    height: auto;
}

/* Адаптив */

@media (max-width: 991px) {
    .team-page {
        padding: 55px 0 80px;
    }

    .team-page__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 600px) {
    .team-page {
        padding: 40px 0 65px;
    }

    .team-page__breadcrumbs {
        margin-bottom: 28px;
    }

    .team-page__header {
        margin-bottom: 30px;
    }

    .team-page__title {
        font-size: 32px;
    }

    .team-page__lead {
        font-size: 16px;
    }

    .team-page__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .team-card__media {
        aspect-ratio: 4 / 3;
    }

    .team-card__content {
        padding: 22px;
    }

    .team-card__title {
        font-size: 21px;
    }

    .team-page__bottom-content {
        margin-top: 45px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-card,
    .team-card__image,
    .team-card__more span {
        transition: none;
    }

    .team-card:hover {
        transform: none;
    }
}
