/* ===========================================
   TEAM MEMBER PAGE - Страница участника команды
   =========================================== */

.team-main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0 4rem;
    background-color: var(--color-bg-dark);
}

.team-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding-x);
}

/* Хлебные крошки */
.team-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.team-breadcrumb a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.team-breadcrumb a:hover {
    color: var(--color-text-primary);
}

.team-breadcrumb .current {
    color: var(--color-text-primary);
}

/* Профиль */
.team-profile {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.team-photo {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-bg-lighter);
}

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

.team-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-lighter);
    color: var(--color-text-secondary);
    font-size: 4rem;
}

.team-info {
    flex: 1;
}

.team-name-row {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.team-role {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.team-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.team-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.team-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.team-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--color-bg-lighter);
    color: var(--color-text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
}

.team-social-link:hover {
    background: #fff;
    color: var(--color-bg-dark);
    transform: translateY(-1px);
}

.team-social-link svg {
    width: 20px;
    height: 20px;
}

/* Секция работ */
.team-works-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

.team-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.team-work-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-bg-lighter);
    aspect-ratio: 2 / 3;
}

.team-work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-work-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    opacity: 0.4;
}

/* Responsive */
@media (max-width: 768px) {
    .team-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .team-photo {
        width: 160px;
        height: 160px;
    }

    .team-name-row {
        justify-content: center;
    }

    .team-name {
        font-size: 1.5rem;
    }

    .team-role {
        font-size: 1.5rem;
    }

    .team-works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .team-photo {
        width: 130px;
        height: 130px;
    }
}
