/* ===== Страница «Команда проекта» — современный минимализм ===== */

.team-page .team-page__main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow: visible;
}

.team-page .contnet-block-a {
    padding: 0;
    background: transparent;
}

.team-page .content-main,
.team-page .left-block.team-page__main {
    overflow: visible;
}

/* Hero */
.team-hero {
    margin-bottom: 8px;
}

.team-hero__title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.2;
}

.team-hero__desc {
    color: rgba(255, 255, 255, 0.62);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    max-width: 820px;
}

/* Карточки-секции */
.team-card {
    position: relative;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 28px 32px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.team-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(240, 38, 75, 0.35) 0%, transparent 45%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.7;
}

.team-card:hover {
    border-color: rgba(240, 38, 75, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.team-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.team-card__head--server {
    gap: 16px;
}

.team-card__accent {
    width: 4px;
    height: 28px;
    border-radius: 4px;
    background: linear-gradient(180deg, #F0264B 0%, #c41e3a 100%);
    flex-shrink: 0;
}

.team-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.team-card__head-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.team-card__title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.25;
}

.team-card__version {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(240, 38, 75, 0.14);
    border: 1px solid rgba(240, 38, 75, 0.35);
    color: #ff6b85;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Главная администрация — сетка карточек */
.team-leaders {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.team-leader {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.team-leader:hover {
    transform: translateY(-2px);
    background: rgba(240, 38, 75, 0.08);
    border-color: rgba(240, 38, 75, 0.22);
}

.team-leader__avatar-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(240, 38, 75, 0.35);
    background: #1a1a1a;
}

.team-leader__avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
}

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

.team-leader__name {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-leader__role {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

/* Пустое состояние таблицы */
.team-empty {
    padding: 32px 20px;
    text-align: center;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.team-empty p {
    margin: 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 14px;
}

/* Таблица состава сервера */
.team-table-wrap {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.22);
}

.team-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.team-table thead {
    background: rgba(240, 38, 75, 0.1);
}

.team-table th {
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.team-table th.team-table__th-avatar {
    width: 72px;
    padding: 14px 8px;
}

.team-table__avatar {
    width: 72px;
    padding: 14px 8px !important;
}

.team-table__avatar-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(240, 38, 75, 0.35);
    background: #1a1a1a;
    margin: 0 auto;
}

.team-table__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: pixelated;
}

.team-table td {
    padding: 14px 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.team-table tbody tr {
    transition: background 0.15s ease;
}

.team-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.team-table tbody tr:last-child td {
    border-bottom: none;
}

.team-table__player {
    color: #fff !important;
    font-weight: 600;
}

.team-badge {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.team-badge--main-admin {
    background: rgba(240, 38, 75, 0.18);
    border-color: rgba(240, 38, 75, 0.45);
    color: #ff8fa3;
}

.team-table__row--main-admin {
    background: rgba(240, 38, 75, 0.06);
}

.team-table__row--main-admin:hover {
    background: rgba(240, 38, 75, 0.1);
}

.team-stat {
    font-weight: 700;
    font-size: 14px;
}

.team-stat--day { color: #ff6b85; }
.team-stat--week { color: #5ec8e8; }
.team-stat--month { color: #c77dff; }

/* Блок заявки — позиции как в оригинале (news.css / team-block) */
.team-cta {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 250px;
    padding: 32px 40px 32px 315px;
    margin-top: 4px;
    border-radius: 20px;
    background: linear-gradient(120deg, rgba(240, 38, 75, 0.12) 0%, rgba(0, 0, 0, 0.35) 55%);
    border: 1px solid rgba(240, 38, 75, 0.22);
    overflow: visible;
}

.team-cta__character {
    position: absolute;
    left: -102px;
    bottom: 0;
    height: 251px;
    width: auto;
    pointer-events: none;
    z-index: 1;
}

.team-cta__fire {
    position: absolute;
    width: 40px;
    left: 272px;
    top: 89px;
    transform: rotate(1deg);
    z-index: 3;
    pointer-events: none;
}

.team-cta__content {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 12px;
    min-width: 0;
    max-width: 560px;
}

.team-cta__title {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.team-cta__text {
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.team-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: fit-content;
    min-width: 240px;
    padding: 14px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #F0264B 0%, #d41f42 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 24px rgba(240, 38, 75, 0.35);
}

.team-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(240, 38, 75, 0.45);
    color: #fff;
}

/* Адаптив */
@media (max-width: 1175px) {
    .team-cta {
        padding: 32px 28px;
        min-height: auto;
    }

    .team-cta__character,
    .team-cta__fire {
        display: none;
    }
}

@media (max-width: 900px) {
    .team-card {
        padding: 22px 20px;
    }

    .team-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .team-table {
        min-width: 640px;
    }
}

@media (max-width: 640px) {
    .team-leaders {
        grid-template-columns: 1fr;
    }

    .team-cta {
        padding: 24px 20px;
        min-height: auto;
    }

    .team-cta__btn {
        width: 100%;
        min-width: 0;
    }

    .team-table thead {
        display: none;
    }

    .team-table,
    .team-table tbody,
    .team-table tr,
    .team-table td {
        display: block;
        width: 100%;
    }

    .team-table tr {
        padding: 16px;
        margin-bottom: 12px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .team-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 8px 0;
        text-align: right;
        border: none;
    }

    .team-table td::before {
        content: attr(data-label);
        color: rgba(255, 255, 255, 0.45);
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        text-align: left;
        flex-shrink: 0;
    }

    .team-table td.team-table__avatar {
        justify-content: center;
        padding-bottom: 12px;
    }

    .team-table td.team-table__avatar::before {
        display: none;
    }

    .team-table td[data-label=""]::before {
        display: none;
    }
}
