/* ================================================================
   team.css — TURKMENHYPE | Обновлено: крупные фото везде
   ================================================================ */

.team-section {
    padding: 100px 5%;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}

.team-divider {
    width: 60px;
    height: 3px;
    background: #F4B819;
    border-radius: 2px;
    margin: 56px auto;
}

/* ════════════════════════════════
   РЯД 1 — CEO
════════════════════════════════ */
.team-row-ceo {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.team-card-ceo {
    width: 340px;
    padding: 50px 40px 40px;
    position: relative;
    text-align: center;
}

/* Переопределяем .avatar только внутри CEO */
.team-card-ceo .avatar {
    width: 200px !important;
    height: 200px !important;
    margin: 0 auto 24px !important;
    border-width: 4px !important;
    padding: 0 !important;
    background: transparent !important;
}

.team-card-ceo .avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.team-card-ceo h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.team-card-ceo .role {
    font-size: 1rem;
}

.team-badge {
    display: inline-block;
    margin-top: 14px;
    background: #F4B819;
    color: #0a0a0a;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2.5px;
    padding: 5px 16px;
    border-radius: 100px;
}

/* ════════════════════════════════
   РЯД 2 — 3 ДИРЕКТОРА
════════════════════════════════ */
.team-row-directors {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.team-row-directors .team-card {
    width: 240px;
    padding: 40px 28px 32px;
    text-align: center;
}

/* Фото директоров крупнее */
.team-row-directors .avatar {
    width: 150px !important;
    height: 150px !important;
    margin: 0 auto 20px !important;
    padding: 0 !important;
    background: transparent !important;
}

.team-row-directors .avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.team-row-directors h3 {
    font-size: 1.1rem;
}

/* ════════════════════════════════
   РЯД 3 — LABEL
════════════════════════════════ */
.team-staff-label {
    text-align: center;
    margin: 60px 0 36px;
}

.team-staff-label span {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 4px;
    color: #F4B819;
    border: 1px solid rgba(244, 184, 25, 0.35);
    padding: 7px 22px;
    border-radius: 100px;
    text-transform: uppercase;
}

/* ════════════════════════════════
   РЯД 3 — 26 СОТРУДНИКОВ
════════════════════════════════ */
.team-row-staff {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.staff-card {
    padding: 32px 20px 26px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.staff-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(244, 184, 25, 0.14);
}

.staff-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 18px;
    border: 3px solid rgba(244, 184, 25, 0.35);
    background: #f5f5f5;
    transition: border-color 0.3s ease;
    flex-shrink: 0;
}

.staff-card:hover .staff-photo {
    border-color: #F4B819;
}

.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.staff-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 7px;
    line-height: 1.35;
    word-break: break-word;
    width: 100%;
}

.staff-role {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #F4B819;
    margin: 0;
    line-height: 1.3;
    word-break: break-word;
    width: 100%;
}

/* ════════════════════════════════
   АДАПТИВ
════════════════════════════════ */
@media (max-width: 1024px) {
    .team-row-staff {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .team-row-directors { gap: 16px; }
    .team-row-directors .team-card { width: calc(50% - 8px); }
    .team-row-staff {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .staff-photo { width: 120px; height: 120px; }
}

@media (max-width: 480px) {
    .team-card-ceo { width: 100%; max-width: 300px; }
    .team-card-ceo .avatar { width: 160px !important; height: 160px !important; }
    .team-row-directors .team-card { width: 100%; max-width: 300px; }
    .team-row-staff {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .staff-photo { width: 100px; height: 100px; }
    .staff-name { font-size: 13px; }
    .staff-role { font-size: 12px; }
}

