

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Overpass', sans-serif;
}

/* ========================================
   NAVBAR STYLES (КОПИРУЙ В ДРУГИЕ ФАЙЛЫ)
   ======================================== */

:root {
    --primary-color: #1D86DC;
    --bg-dark: #0a0a0f;
    --bg-darker: #060609;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-tertiary: rgba(255, 255, 255, 0.4);
    --border-color: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Overpass', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    transition: var(--transition);
}

.logo img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.btn-nav {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.btn-nav:hover {
    background: #1570c4;
    transform: translateY(-2px);
}

.btn-nav::after {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Navigation Auth */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-login {
    background: linear-gradient(135deg, #1D86DC 0%, #1570c4 100%);
    color: white;
    border: 1px solid rgba(29, 134, 220, 0.5);
    padding: 0.75rem 2rem;
    border-radius: 0.6rem;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Overpass', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 20px rgba(29, 134, 220, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover {
    background: linear-gradient(135deg, #1570c4 0%, #0f5fa8 100%);
    box-shadow: 0 0 30px rgba(29, 134, 220, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(29, 134, 220, 0.8);
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:active {
    transform: translateY(0);
}

.user-menu {
    position: relative;
}

.btn-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(29, 134, 220, 0.1);
    border: 1px solid rgba(29, 134, 220, 0.3);
    color: var(--text-primary);
    padding: 0.6rem 1rem;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Overpass', sans-serif;
    font-weight: 500;
}

.btn-user:hover {
    background: rgba(29, 134, 220, 0.2);
    border-color: rgba(29, 134, 220, 0.6);
    box-shadow: 0 0 15px rgba(29, 134, 220, 0.3);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(29, 134, 220, 0.5);
}

.user-info-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-status-online {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(29, 134, 220, 0.3);
    border-radius: 0.6rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(29, 134, 220, 0.2);
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a,
.user-dropdown button {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Overpass', sans-serif;
    font-weight: 500;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: rgba(29, 134, 220, 0.15);
    color: #00ffe1;
    padding-left: 1.25rem;
}

.user-dropdown button {
    border-top: 1px solid rgba(29, 134, 220, 0.2);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

/* Login Container */
.login-container {
    text-align: center;
}

.login-container h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.login-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-steam {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Overpass', sans-serif;
}

.btn-steam:hover {
    background: linear-gradient(135deg, #2a475e 0%, #1b2838 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(29, 134, 220, 0.3);
}

.btn-steam svg {
    width: 24px;
    height: 24px;
}


.login-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.login-info p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* Profile Modal */
.modal-profile {
    max-width: 900px;
}

.profile-container {
    padding: 0;
}

/* Фон */
.team {
    min-height: 100vh;
    position: relative;
    padding: 80px 6%;
    background: linear-gradient(180deg, #0a0a0f, #060609);
}

.team-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('/images/backround_main1.webp') center/cover no-repeat;
    opacity: 0.12;
    filter: blur(2px);
}

.team-content {
    position: relative;
    max-width: 1200px;
    margin: auto;
}

/* Заголовки */
.team-title {
    text-align: center;
    font-size: 46px;
    font-weight: 800;
    color: #00ffe1;
    text-shadow: 0 0 20px rgba(0,255,225,0.6);
}

.team-subtitle {
    text-align: center;
    margin-top: 10px;
    opacity: 0.7;
    margin-bottom: 70px;
}

/* Секции */
.team-section {
    margin-bottom: 80px;
    position: relative;
}

.team-section::after {
    content: "";
    display: block;
    width: 140px;
    height: 1px;
    margin: 60px auto 0;
    background: rgba(255,255,255,0.08);
}

.team-section:last-of-type::after {
    display: none;
}

.team-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #ffffff;
}

.team-section.muted {
    opacity: 0.5;
}

/* Сетка */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* Карточки — новый дизайн */
.team-card {
    background: linear-gradient(135deg, rgba(15,16,22,0.6), rgba(12,14,20,0.45));
    border-radius: 14px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,0.04);
    transition: transform 0.32s ease, box-shadow 0.32s ease;
    box-shadow: 0 8px 30px rgba(6,10,20,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(18px) scale(0.995);
    animation: cardIn 0.6s cubic-bezier(.2,.9,.2,1) forwards;
}

.team-card:nth-child(1) { animation-delay: 0.08s; }
.team-card:nth-child(2) { animation-delay: 0.16s; }
.team-card:nth-child(3) { animation-delay: 0.24s; }
.team-card:nth-child(4) { animation-delay: 0.32s; }
.team-card:nth-child(5) { animation-delay: 0.4s; }
.team-card:nth-child(n+6) { animation-delay: 0.48s; }

.team-card::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle at 30% 30%, rgba(29,134,220,0.12), transparent 30%);
    pointer-events: none;
    opacity: 0.9;
}

@keyframes cardIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.team-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 18px 50px rgba(6,10,20,0.7), 0 0 40px rgba(29,134,220,0.06);
}

/* Главный */
.team-card.main {
    border-color: rgba(29,134,220,0.45);
    box-shadow: 0 20px 70px rgba(8,12,20,0.8), inset 0 1px 0 rgba(255,255,255,0.02);
}

.team-card.main h3 {
    font-size: 22px;
}

/* Текст */
.team-card h3 {
    font-size: 20px;
    margin: 8px 0 6px;
    text-align: center;
}

.team-card p {
    opacity: 0.9;
    font-size: 13px;
    text-align: center;
    color: rgba(255,255,255,0.85);
}

.role {
    font-size: 11px;
    color: rgba(160,255,230,0.9);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

/* Default avatar (rectangular) */
.avatar {
    width: 100%;
    height: 120px;
    border-radius: 10px;
    margin: 0 0 14px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255,255,255,0.03);
}

/* Lead avatars remain circular and larger */
.team-card.lead .avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    margin: 0 auto 12px;
    border: 3px solid rgba(29,134,220,0.6);
    box-shadow: 0 6px 24px rgba(29,134,220,0.2);
}

/* Center content for lead cards */
.team-card.lead h3,
.team-card.lead p {
    text-align: center;
}

/* Заглушка */
.placeholder {
    opacity: 0.6;
    font-style: italic;
}

/* Примечание */
.team-note {
    margin-top: 120px;
    text-align: center;
    opacity: 0.5;
    font-style: italic;
}

/* Назад */
.back-link-container {
    text-align: center;
    margin-top: 40px;
}

.back-link {
    display: inline-block;
    color: #00ffe1;
    text-decoration: none;
    opacity: 0.7;
}

.back-link:hover {
    opacity: 1;
    text-shadow: 0 0 10px rgba(0,255,225,0.8);
}

/* Аватарки */
.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(0,255,225,0.5);
    box-shadow: 0 0 15px rgba(0,255,225,0.2);
}

/* Адаптивность */
@media (max-width: 768px) {
    .team {
        padding: 60px 4%;
    }

    .team-title {
        font-size: 32px;
    }

    .team-subtitle {
        margin-bottom: 50px;
    }

    .team-section h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .team-card {
        padding: 20px;
    }

    .team-card h3 {
        font-size: 18px;
    }

    .team-card p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .team {
        padding: 40px 3%;
        min-height: auto;
    }

    .team-title {
        font-size: 24px;
    }

    .team-subtitle {
        font-size: 13px;
        margin-bottom: 30px;
    }

    .team-section h2 {
        font-size: 18px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .team-card {
        padding: 16px;
    }

    .team-card h3 {
        font-size: 16px;
        margin: 8px 0 4px;
    }

    .avatar {
        width: 60px;
        height: 60px;
        margin: 0 auto 10px;
    }

    .team-note {
        margin-top: 80px;
        font-size: 12px;
    }
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--text-primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social .social-link {
    margin-bottom: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-tertiary);
}

/* ========================================
   HIERARCHY STYLES (ИЕРАРХИЯ)
   ======================================== */

.team-section.hierarchy {
    position: relative;
    margin-bottom: 60px;
    padding: 0 20px;
}

.hierarchy-level {
    margin-bottom: 40px;
    padding: 0 20px;
}

.hierarchy-level .level-title {
    text-align: center;
    font-size: 16px;
    color: #00ffe1;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    opacity: 0.8;
}

/* Уровень 1 - Руководитель проекта */
.hierarchy-level.level-1 .team-grid {
    display: flex;
    justify-content: center;
    max-width: 350px;
    margin: 0 auto;
    gap: 30px;
}

.hierarchy-level.level-1 .team-card {
    flex: 1;
}

/* Уровень 2 - Техники */
.hierarchy-level.level-2 .team-grid {
    display: flex;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
    gap: 30px;
    flex-wrap: wrap;
}

.hierarchy-level.level-2 .team-card {
    flex: 1;
    min-width: 250px;
}

/* ========================================
   SERVER MANAGEMENT STYLES (СЕРВЕРЫ)
   ======================================== */

.team-section.server-management {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 30px;
}

.server-group {
    padding: 0 20px;
}

.server-group h2 {
    font-size: 24px;
    margin-bottom: 35px;
    color: #ffffff;
    text-align: center;
    border-bottom: 2px solid rgba(0, 255, 225, 0.3);
    padding-bottom: 15px;
}

.server-hierarchy {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hierarchy-role {
    position: relative;
}

.hierarchy-role .role-title {
    text-align: center;
    font-size: 14px;
    color: #00ffe1;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.7;
}

/* Куратор - одна карточка */
.hierarchy-role.curator-level .team-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hierarchy-role.curator-level .team-card {
    max-width: 300px;
}

/* Судо-кураторы - несколько карточек */
.hierarchy-role.sudo-level {
    margin-top: 60px;
}

.hierarchy-role.sudo-level .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* Соединительная линия между ролями */
.hierarchy-role::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 15px;
    background: linear-gradient(to bottom, rgba(0, 255, 225, 0.5), transparent);
}

.hierarchy-role.curator-level::before {
    display: none;
}

/* Адаптив для мобильных */
@media (max-width: 1024px) {
    .team-section.server-management {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .hierarchy-level.level-2 .team-grid {
        max-width: 100%;
        flex-wrap: wrap;
    }

    .server-group h2 {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .hierarchy-role.sudo-level .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .hierarchy-role .role-title {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .team-section.server-management {
        gap: 40px;
    }

    .hierarchy-role.sudo-level .team-grid {
        grid-template-columns: 1fr;
    }

    .server-group h2 {
        font-size: 18px;
    }
}

/* ======== КОНЕЦ NAVBAR & FOOTER STYLES ======== */