.teamPage {
    --team-accent: #e7a938;
    --team-accent-bright: #ffc861;
    --team-panel: rgba(15, 22, 27, 0.94);
    --team-border: rgba(231, 169, 56, 0.24);
    color: #f4f4f4;
    background:
        radial-gradient(circle at 50% 0%, rgba(69, 105, 91, 0.2), transparent 38%),
        #090d10;
    min-height: 100vh;
}

.teamHero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    overflow: hidden;
    isolation: isolate;
    background:
        url('/assets/images/team-hero.webp') center center / cover no-repeat;
}

.teamHeroOverlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(
            180deg,
            rgba(4, 8, 10, 0.08) 0%,
            rgba(9, 13, 16, 0.20) 55%,
            rgba(9, 13, 16, 0.72) 100%
        ),
        linear-gradient(
            90deg,
            rgba(6, 12, 14, 0.18),
            rgba(6, 12, 14, 0.04),
            rgba(6, 12, 14, 0.18)
        );
}

.teamHeroContent {
    width: min(850px, 100%);
    text-align: center;
}

.teamBadge,
.sectionEyebrow,
.applicationLabel {
    display: inline-block;
    color: var(--team-accent-bright);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.teamHero h1 {
    margin: 14px 0;
    color: #ffffff;
    font-size: clamp(2.7rem, 7vw, 5.4rem);
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 5px 22px rgba(0, 0, 0, 0.8);
}

.teamHero p {
    max-width: 680px;
    margin: 0 auto;
    color: #d5dcda;
    font-size: 1.08rem;
    line-height: 1.75;
}

.teamSection,
.responsibilitySection,
.joinTeamSection {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 85px 0;
}

.responsibilitySection {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.teamSectionHeader {
    max-width: 720px;
    margin: 0 auto 42px;
    text-align: center;
}

.teamSectionHeader h2 {
    margin: 10px 0 12px;
    color: #ffffff;
    font-size: clamp(1.8rem, 4vw, 2.75rem);
}

.teamSectionHeader p {
    margin: 0;
    color: #aeb9b6;
    line-height: 1.7;
}

.teamGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
    justify-content: center;
    gap: 26px;
}

.teamCard,
.responsibilityCard,
.positionCard {
    border: 1px solid var(--team-border);
    background: linear-gradient(145deg, rgba(24, 34, 38, 0.96), var(--team-panel));
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.teamCard {
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.teamCard:hover,
.positionCard:hover {
    transform: translateY(-5px);
    border-color: rgba(231, 169, 56, 0.62);
}

.teamCardTop {
    position: relative;
    min-height: 185px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background:
        radial-gradient(circle at 50% 20%, rgba(231, 169, 56, 0.18), transparent 60%),
        rgba(5, 10, 12, 0.4);
}

.teamAvatar {
    position: relative;
    width: 125px;
    height: 125px;
}

.teamAvatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border: 3px solid var(--team-accent);
    border-radius: 50%;
    background: #172126;
    box-shadow: 0 0 0 7px rgba(231, 169, 56, 0.09);
}

.teamRoleIcon {
    position: absolute;
    right: -3px;
    bottom: 2px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 2px solid #d69c35;
    border-radius: 50%;
    background: #11191d;
}

.teamStatus {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid rgba(90, 218, 135, 0.25);
    border-radius: 20px;
    color: #8ae2a9;
    background: rgba(22, 76, 42, 0.28);
    font-size: 0.76rem;
    font-weight: 700;
}

.teamStatus.active {
    border-color: rgba(90, 218, 135, 0.35) !important;
    color: #8ae2a9 !important;
    background: rgba(22, 76, 42, 0.34) !important;
}

.teamStatus.active .statusDot {
    background: #52d885 !important;
    box-shadow: 0 0 9px #52d885 !important;
}

.statusDot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #52d885;
    box-shadow: 0 0 9px #52d885;
}

.teamStatus.away {
    border-color: rgba(245, 184, 68, 0.42) !important;
    color: #ffd27a !important;
    background: rgba(125, 78, 15, 0.38) !important;
}

.teamStatus.away .statusDot {
    background: #f0a933 !important;
    box-shadow: 0 0 9px #f0a933 !important;
}

.teamStatus.vacation {
    border-color: rgba(102, 172, 237, 0.42) !important;
    color: #a9d7ff !important;
    background: rgba(24, 72, 117, 0.4) !important;
}

.teamStatus.vacation .statusDot {
    background: #65b3ff !important;
    box-shadow: 0 0 9px #65b3ff !important;
}

.teamCardBody {
    padding: 26px;
    text-align: center;
}

.teamCardBody h3 {
    margin: 0 0 5px;
    color: #ffffff;
    font-size: 1.6rem;
}

.teamAlias {
    display: block;
    margin: -1px 0 7px;
    color: #9ea9a6;
    font-size: 0.85rem;
    font-weight: 600;
}

.teamRole {
    display: block;
    min-height: 42px;
    color: var(--team-accent-bright);
    font-size: 0.9rem;
    font-weight: 700;
}

.teamCardBody p {
    margin: 16px 0 20px;
    color: #b2bdba;
    line-height: 1.65;
}

.teamTasks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.teamTasks span {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 6px;
    color: #d5dcda;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.76rem;
}

.responsibilityGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 15px;
}

.responsibilityCard {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
}

.responsibilityIcon,
.positionIcon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(231, 169, 56, 0.28);
    background: rgba(231, 169, 56, 0.09);
}

.responsibilityIcon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    font-size: 1.35rem;
}

.responsibilityCard h3,
.positionCard h3 {
    margin: 0 0 5px;
    color: #ffffff;
    font-size: 1rem;
}

.responsibilityCard p,
.positionCard p {
    margin: 0;
    color: #9eaaa7;
    line-height: 1.55;
}

.positionGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.positionCard {
    padding: 28px;
    border-radius: 15px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.positionIcon {
    width: 55px;
    height: 55px;
    margin-bottom: 18px;
    border-radius: 12px;
    font-size: 1.55rem;
}

.positionCard h3 {
    font-size: 1.25rem;
}

.applicationBox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 28px;
    padding: 35px;
    border: 1px solid rgba(231, 169, 56, 0.42);
    border-radius: 16px;
    background:
        linear-gradient(110deg, rgba(79, 59, 24, 0.52), rgba(16, 24, 27, 0.95));
}

.applicationBox h2 {
    margin: 7px 0;
    color: #ffffff;
}

.applicationBox p {
    max-width: 670px;
    margin: 0;
    color: #b8c1bf;
    line-height: 1.6;
}

.applicationButton {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid #f5c060;
    border-radius: 8px;
    color: #17120a;
    background: linear-gradient(135deg, #ffc861, #d99427);
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.applicationButton:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

@media (max-width: 850px) {
    .positionGrid {
        grid-template-columns: 1fr;
    }

    .applicationBox {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .teamHero {
        min-height: 370px;
        padding: 65px 20px;
    }

    .teamSection,
    .responsibilitySection,
    .joinTeamSection {
        width: min(100% - 26px, 1180px);
        padding: 62px 0;
    }

    .teamGrid {
        grid-template-columns: 1fr;
    }

    .applicationBox {
        padding: 25px 20px;
    }

    .applicationButton {
        width: 100%;
    }
}
