* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #2b2d2c;
    color: #e0e0e0;
    line-height: 1.6;
}

.navbar {
    background: linear-gradient(135deg, rgba(60, 62, 61, 0.95) 0%, rgba(43, 45, 44, 0.98) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #4d4f4e;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    gap: 12px;
}

.brand-link:hover {
    transform: translateY(-2px);
}

.nav-logo {
    /* width: 40px; */
    height: 40px;
    border-radius: 8px;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); */
    object-fit: cover;
}

.brand-name {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f0f0f0 0%, #8ab4f8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    text-decoration: none;
    color: #d0d0d0;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #4d4f4e;
    font-size: 0.95rem;
}

.nav-link i {
    margin-right: 10px;
    font-size: 1rem;
}

.nav-link:hover {
    background: rgba(138, 180, 248, 0.2);
    color: #f0f0f0;
    transform: translateY(-2px);
    border-color: #8ab4f8;
    box-shadow: 0 4px 15px rgba(138, 180, 248, 0.2);
}

.discord-link:hover {
    background: rgba(88, 101, 242, 0.2);
    border-color: #5865f2;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.steam-auth:hover {
    background: rgba(27, 40, 56, 0.2);
    border-color: #1b2838;
    box-shadow: 0 4px 15px rgba(27, 40, 56, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #d0d0d0;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid #4d4f4e;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f0f0f0;
}

/* Мобильное меню */
.mobile-menu {
    display: none;
    background: #3c3e3d;
    border-top: 1px solid #4d4f4e;
    padding: 20px;
    animation: slideDown 0.3s ease;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    margin-bottom: 10px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: #d0d0d0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #4d4f4e;
}

.mobile-nav-link:hover {
    background: rgba(138, 180, 248, 0.2);
    color: #f0f0f0;
    border-color: #8ab4f8;
}

.mobile-nav-link i {
    margin-right: 15px;
    font-size: 1.2rem;
    color: #8ab4f8;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px 20px;
}

.hero-section {
    background: linear-gradient(135deg, rgba(60, 62, 61, 0.9) 0%, rgba(43, 45, 44, 0.95) 100%);
    padding: 80px 40px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 40px;
    border: 1px solid #4d4f4e;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f0f0f0 0%, #8ab4f8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: #a0a0a0;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.quick-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 30px;
    background: rgba(43, 45, 44, 0.7);
    border-radius: 10px;
    text-decoration: none;
    color: #f0f0f0;
    transition: all 0.3s ease;
    border: 1px solid #4d4f4e;
    min-width: 150px;
}

.quick-link:hover {
    background: rgba(138, 180, 248, 0.2);
    transform: translateY(-5px);
    border-color: #8ab4f8;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.quick-link i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #8ab4f8;
}

.quick-link span {
    font-weight: 500;
    font-size: 0.95rem;
}

.content-section {
    background: #3c3e3d;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #4d4f4e;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #f0f0f0;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #8ab4f8, #5a5c5b);
    border-radius: 2px;
}

.section-content {
    color: #e0e0e0;
    line-height: 1.8;
}

.section-content h3 {
    font-size: 24px;
    margin: 30px 0 20px;
    color: #f0f0f0;
}

.section-content ul {
    margin: 20px 0;
    padding-left: 25px;
}

.section-content li {
    margin: 10px 0;
    padding-left: 10px;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.rule-card {
    background: #2b2d2c;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #4d4f4e;
    transition: all 0.3s ease;
    text-align: center;
}

.rule-card:hover {
    border-color: #8ab4f8;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.rule-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.rule-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.rule-card p {
    font-size: 14px;
    color: #a0a0a0;
    line-height: 1.6;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.screenshot-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
    background: #2b2d2c;
    border: 1px solid #4d4f4e;
    transition: all 0.3s ease;
}

.screenshot-item:hover {
    border-color: #8ab4f8;
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.screenshot-item:hover img {
    transform: scale(1.05);
}

.screenshot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 15px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    text-align: center;
}

.screenshot-item:hover .screenshot-overlay {
    transform: translateY(0);
}

.connect-steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: #2b2d2c;
    border-radius: 10px;
    border: 1px solid #4d4f4e;
    transition: all 0.3s ease;
}

.step:hover {
    border-color: #8ab4f8;
    transform: translateX(10px);
}

.step-number {
    background: linear-gradient(135deg, #8ab4f8, #5a5c5b);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.step-content p {
    color: #a0a0a0;
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    background: rgba(43, 45, 44, 0.7);
    padding: 25px 20px;
    border-radius: 10px;
    border: 1px solid #4d4f4e;
    transition: all 0.3s ease;
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #8ab4f8;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #8ab4f8;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 50px;
    color: #a0a0a0;
    border-top: 1px solid #4d4f4e;
}

.main-footer p {
    margin: 10px 0;
    font-size: 0.95rem;
}

.footer-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #8ab4f8;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #a8c7fa;
    text-decoration: underline;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 45, 44, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: #2b2d2c;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #4d4f4e;
}

.modal-content img {
    width: 100%;
    height: auto;
    display: block;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.7);
}

#modalCaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 0.95rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-link.active {
    background: rgba(138, 180, 248, 0.2);
    color: #f0f0f8;
    border-color: #8ab4f8;
}

@media (max-width: 1200px) {
    .nav-links {
        gap: 5px;
    }
    
    .nav-link {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .nav-link i {
        margin-right: 8px;
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .quick-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .quick-link {
        width: 100%;
        max-width: 300px;
        padding: 18px 25px;
    }
    
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .brand-name {
        font-size: 1.4rem;
    }
    
    .nav-logo {
        width: 35px;
        height: 35px;
    }
    
    .hero-section {
        padding: 50px 25px;
        margin-bottom: 30px;
    }
    
    .content-section {
        padding: 25px;
        margin-bottom: 25px;
    }
    
    .section-title {
        font-size: 26px;
        margin-bottom: 20px;
    }
    
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .step {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }
    
    .step:hover {
        transform: translateX(5px);
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        width: 30px;
        height: 30px;
    }
    
    .brand-name {
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-section {
        padding: 40px 20px;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .quick-link {
        padding: 15px 20px;
    }
    
    .quick-link i {
        font-size: 1.5rem;
    }
    
    .mobile-menu {
        padding: 15px;
    }
    
    .mobile-nav-link {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .rule-card {
        padding: 20px;
    }
    
    .modal-content {
        max-width: 95%;
    }
    
    .close-modal {
        top: 10px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 28px;
    }
}

.nav-link i.fa-steam {
    color: #1b2838;
}

.nav-link i.fa-discord {
    color: #5865f2;
}

.nav-link i.fa-database {
    color: #34a853;
}

.nav-link i.fa-graduation-cap {
    color: #fbbc05;
}

.nav-link i.fa-book {
    color: #ea4335;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #2b2d2c;
}

::-webkit-scrollbar-thumb {
    background: #4d4f4e;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8ab4f8;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 20px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid #4d4f4e;
    transition: all 0.3s ease;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #8ab4f8;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #8ab4f8;
    flex-shrink: 0;
}

.steam-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.username {
    font-size: 14px;
    font-weight: 500;
    color: #f0f0f0;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #8ab4f8;
    text-decoration: none;
    transition: color 0.2s;
}

.logout-link:hover {
    color: #a8c7fa;
}

.logout-link i {
    font-size: 10px;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid #4d4f4e;
}

.mobile-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #8ab4f8;
    flex-shrink: 0;
}

.mobile-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-user-details {
    flex: 1;
}

.mobile-username {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #f0f0f0;
    margin-bottom: 5px;
}

@media (max-width: 992px) {
    .user-info {
        display: none;
    }
    
    .nav-container {
        justify-content: space-between;
    }
    
    .nav-brand {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .mobile-user-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .mobile-user-avatar {
        width: 60px;
        height: 60px;
    }
    
    .mobile-user-details {
        width: 100%;
    }
}

.nav-container {
    position: relative;
}

.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mobile-nav-link[href*="logout"] {
    color: #ff6b6b;
}

.mobile-nav-link[href*="logout"]:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff8e8e;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-info {
    animation: fadeIn 0.3s ease-out;
}

.nav-link i.fa-sign-out-alt {
    color: #ff6b6b;
}

body.no-scroll {
    overflow: hidden;
}

.user-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 2px;
    margin-bottom: 2px;
}

.user-status i {
    font-size: 9px;
}

.user-status i.fa-check-circle {
    color: #4CAF50;
}

.user-status i.fa-clock {
    color: #FFC107;
}

.user-details {
    gap: 4px;
}

.mobile-user-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #a0a0a0;
}

.mobile-user-status i {
    font-size: 10px;
}

.mobile-user-status i.fa-check-circle {
    color: #4CAF50;
}

.mobile-user-status i.fa-clock {
    color: #FFC107;
}

@media (max-width: 768px) {
    .user-status {
        display: none;
    }
    
    .mobile-user-status {
        justify-content: center;
        font-size: 11px;
    }
}

.user-profile {
    position: relative;
    margin-left: 15px;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid #4d4f4e;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #d0d0d0;
    font-weight: 500;
    font-size: 0.95rem;
    height: 44px;
}

.user-profile-btn:hover {
    background: rgba(138, 180, 248, 0.2);
    border-color: #8ab4f8;
    color: #f0f0f0;
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #8ab4f8;
    flex-shrink: 0;
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.username-short {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-profile-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.user-dropdown.active + .user-profile-btn i {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: #3c3e3d;
    border-radius: 12px;
    border: 1px solid #4d4f4e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: none;
    animation: fadeIn 0.2s ease-out;
}

.user-dropdown.active {
    display: block;
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid #4d4f4e;
}

.dropdown-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #8ab4f8;
    flex-shrink: 0;
}

.dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dropdown-username {
    font-size: 16px;
    font-weight: 600;
    color: #f0f0f0;
}

.dropdown-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    align-self: flex-start;
}

.dropdown-status i {
    font-size: 10px;
}

.dropdown-status i.fa-check-circle {
    color: #4CAF50;
}

.dropdown-status i.fa-clock {
    color: #FFC107;
}

.dropdown-depts {
    padding: 15px 20px;
    border-bottom: 1px solid #4d4f4e;
}

.dropdown-depts-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #a0a0a0;
}

.dropdown-depts-header i {
    color: #8ab4f8;
}

.dept-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dept-badge {
    background: rgba(138, 180, 248, 0.1);
    color: #8ab4f8;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    border: 1px solid rgba(138, 180, 248, 0.2);
}

.no-depts {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a0a0a0;
    font-size: 14px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px dashed #4d4f4e;
}

.no-depts i {
    color: #ff9800;
}

/* Ссылки в выпадающем меню */
.dropdown-divider {
    height: 1px;
    background: #4d4f4e;
}

.dropdown-links {
    padding: 10px;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    text-decoration: none;
    color: #d0d0d0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dropdown-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f0f0f0;
}

.dropdown-link.logout-link:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

.dropdown-link i {
    width: 20px;
    text-align: center;
}

.mobile-depts {
    margin-top: 10px;
}

.mobile-depts-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #a0a0a0;
    margin-bottom: 8px;
}

.mobile-depts-header i {
    color: #8ab4f8;
    font-size: 12px;
}

.mobile-dept-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mobile-dept-badge {
    background: rgba(138, 180, 248, 0.1);
    color: #8ab4f8;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    border: 1px solid rgba(138, 180, 248, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1200px) {
    .username-short {
        max-width: 100px;
    }
}

@media (max-width: 992px) {
    .user-profile {
        display: none;
    }
    
    .mobile-user-info {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .mobile-user-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .mobile-user-avatar {
        width: 80px;
        height: 80px;
    }
    
    .mobile-depts-header {
        justify-content: center;
    }
    
    .mobile-dept-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .user-dropdown {
        width: calc(100vw - 40px);
        right: -10px;
    }
    
    .mobile-dept-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}

.user-profile-btn::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #3c3e3d;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.user-dropdown.active ~ .user-profile-btn::after {
    opacity: 1;
}

.dropdown-link.logout-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    text-decoration: none;
    color: #d0d0d0;
    border-radius: 8px;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.dropdown-link.logout-link:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

.dropdown-link.logout-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.user-info .logout-link {
    font-size: 12px;
}

.user-info .logout-link i {
    font-size: 10px;
}

form[action=''] {
    margin: 0;
    padding: 0;
    background: transparent;
}

.mobile-nav-link[href*="logout"] {
    color: #ff6b6b;
}

.mobile-nav-link[href*="logout"]:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff8e8e;
}

        /* Стили для заглушек */
        .screenshot-item img[src*="placehold.co"] {
            background-color: #1a365d;
            object-fit: contain;
        }
        
        .placeholder-info {
            text-align: center;
            margin-top: 20px;
            padding: 15px;
            background-color: rgba(26, 54, 93, 0.1);
            border-radius: 8px;
            border-left: 4px solid #1a365d;
        }
        
        .placeholder-info i {
            color: #1a365d;
            margin-right: 10px;
        }

        /* Заявка */
        .form-container { max-width: 800px; margin: 40px auto; padding: 40px; background: #3c3e3d; border-radius: 12px; border: 1px solid #4d4f4e; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); }
        .form-header { text-align: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 2px solid #4d4f4e; }
        .form-header h1 { font-size: 36px; margin-bottom: 10px; color: #f0f0f0; }
        .form-header p { color: #a0a0a0; margin-bottom: 15px; font-size: 16px; }
        
        .alert-box { padding: 15px; margin-bottom: 20px; border-radius: 8px; font-size: 14px; line-height: 1.6; }
        .alert-warning { background-color: rgba(255, 193, 7, 0.1); border-left: 4px solid #FFC107; color: #FFC107; }
        
        .form-section { margin-bottom: 30px; padding: 20px 0; border-top: 1px dashed #4d4f4e; }
        .form-section:first-child { border-top: none; }
        .section-title-form { font-size: 24px; color: #8ab4f8; margin-bottom: 15px; font-weight: 600; }

        .form-group { margin-bottom: 20px; }
        .form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #d0d0d0; font-size: 15px; }
        .required-star { color: #ff6b6b; margin-left: 5px; }
        
        .form-group input[type="text"], .form-group input[type="date"], .form-group textarea, .form-group select {
            width: 100%; padding: 12px; border: 1px solid #4d4f4e; background: #2b2d2c; color: #e0e0e0; border-radius: 8px; font-size: 15px; box-sizing: border-box;
        }
        .form-group textarea { resize: vertical; min-height: 100px; }
        .form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #8ab4f8; outline: none; box-shadow: 0 0 0 3px rgba(138, 180, 248, 0.3); }

        .radio-group, .checkbox-group { display: flex; flex-direction: column; gap: 10px; }
        .radio-item, .checkbox-item { display: flex; align-items: center; padding: 10px 15px; background: rgba(255, 255, 255, 0.05); border-radius: 6px; border: 1px solid #4d4f4e; cursor: pointer; transition: 0.2s; }
        .radio-item:hover, .checkbox-item:hover { background: rgba(138, 180, 248, 0.1); border-color: #8ab4f8; }
        .radio-item input, .checkbox-item input { margin-right: 15px; width: 18px; height: 18px; }
        .radio-item label, .checkbox-item label { margin: 0; cursor: pointer; flex-grow: 1; }

        .le-fd-questions { margin-top: 20px; padding: 20px; background: rgba(138, 180, 248, 0.05); border-radius: 8px; border: 1px solid rgba(138, 180, 248, 0.2); display: none; }
        .le-fd-questions.active { display: block; }
        
        .submit-button { display: block; width: 100%; padding: 15px; font-size: 18px; font-weight: 600; color: white; background: linear-gradient(90deg, #8ab4f8, #5865f2); border: none; border-radius: 8px; cursor: pointer; transition: 0.3s; margin-top: 30px; }
        .submit-button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(138, 180, 248, 0.6); }

        .alert-success { background-color: rgba(76, 175, 80, 0.1); border-left: 4px solid #4CAF50; color: #4CAF50; }
        
        .admin-container {
            max-width: 1400px;
            margin: 20px auto;
            padding: 20px;
        }
        
        .admin-header {
            background: linear-gradient(135deg, rgba(60, 62, 61, 0.9) 0%, rgba(43, 45, 44, 0.95) 100%);
            border-radius: 12px;
            padding: 30px;
            margin-bottom: 30px;
            border: 1px solid #4d4f4e;
            border-left: 5px solid #8ab4f8;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }
        
        .admin-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 10px;
            background: linear-gradient(135deg, #f0f0f0 0%, #8ab4f8 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .admin-subtitle {
            color: #a0a0a0;
            font-size: 1.2rem;
            margin-bottom: 20px;
        }
        
        .stats-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .stat-card {
            background: rgba(43, 45, 44, 0.7);
            border-radius: 10px;
            padding: 20px;
            text-align: center;
            transition: all 0.3s ease;
            border: 1px solid #4d4f4e;
        }
        
        .stat-card:hover {
            transform: translateY(-5px);
            background: rgba(43, 45, 44, 0.9);
            border-color: #8ab4f8;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }
        
        .stat-value {
            font-size: 2.5rem;
            font-weight: bold;
            color: #8ab4f8;
            margin-bottom: 5px;
        }
        
        .stat-label {
            color: #a0a0a0;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .applications-table {
            background: #3c3e3d;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid #4d4f4e;
            margin-bottom: 30px;
        }
        
        .table-header {
            display: grid;
            grid-template-columns: 100px 150px 150px 120px 200px 150px 150px;
            padding: 15px 20px;
            background: rgba(43, 45, 44, 0.7);
            font-weight: bold;
            color: #8ab4f8;
            border-bottom: 1px solid #4d4f4e;
        }
        
        .table-row {
            display: grid;
            grid-template-columns: 100px 150px 150px 120px 200px 150px 150px 100px;
            padding: 15px 20px;
            border-bottom: 1px solid #4d4f4e;
            align-items: center;
            transition: all 0.3s ease;
        }
        
        .table-row:hover {
            background: rgba(255, 255, 255, 0.05);
        }
        
        .table-row:last-child {
            border-bottom: none;
        }
        
        .status-badge {
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: bold;
            text-align: center;
            display: inline-block;
        }
        
        .status-le {
            background: rgba(255, 193, 7, 0.2);
            color: #ffc107;
            border: 1px solid rgba(255, 193, 7, 0.3);
        }
        
        .status-fd {
            background: rgba(40, 167, 69, 0.2);
            color: #28a745;
            border: 1px solid rgba(40, 167, 69, 0.3);
        }
        
        .status-civil {
            background: rgba(138, 180, 248, 0.2);
            color: #8ab4f8;
            border: 1px solid rgba(138, 180, 248, 0.3);
        }
        
        .action-buttons {
            display: flex;
            gap: 8px;
        }
        
        .btn {
            padding: 8px 12px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 5px;
            border: 1px solid #4d4f4e;
        }
        
        .btn-view {
            background: rgba(138, 180, 248, 0.1);
            color: #8ab4f8;
        }
        
        .btn-view:hover {
            background: rgba(138, 180, 248, 0.2);
            border-color: #8ab4f8;
        }
        
        .btn-approve {
            background: rgba(40, 167, 69, 0.1);
            color: #28a745;
        }
        
        .btn-approve:hover {
            background: rgba(40, 167, 69, 0.2);
            border-color: #28a745;
        }
        
        .btn-reject {
            background: rgba(220, 53, 69, 0.1);
            color: #dc3545;
        }
        
        .btn-reject:hover {
            background: rgba(220, 53, 69, 0.2);
            border-color: #dc3545;
        }
        
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(43, 45, 44, 0.95);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        
        .modal-content {
            position: relative;
            max-width: 90%;
            max-height: 90%;
            background: #3c3e3d;
            border-radius: 12px;
            overflow: hidden;
            border: 2px solid #4d4f4e;
            width: 800px;
        }
        
        .modal-header {
            padding: 20px;
            border-bottom: 1px solid #4d4f4e;
            background: rgba(43, 45, 44, 0.7);
        }
        
        .modal-title {
            color: #f0f0f0;
            font-size: 1.5rem;
            font-weight: 600;
        }
        
        .close-modal {
            position: absolute;
            top: 15px;
            right: 20px;
            color: #d0d0d0;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            z-index: 1001;
            background: rgba(0, 0, 0, 0.5);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
            line-height: 1;
            border: 1px solid #4d4f4e;
        }
        
        .close-modal:hover {
            background: rgba(0, 0, 0, 0.7);
            color: #fff;
        }
        
        .modal-body {
            padding: 20px;
            max-height: calc(90vh - 120px);
            overflow-y: auto;
        }
        
        .application-details {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }
        
        .detail-group {
            margin-bottom: 15px;
        }
        
        .detail-label {
            color: #8ab4f8;
            font-size: 0.9rem;
            margin-bottom: 5px;
            display: block;
            font-weight: 500;
        }
        
        .detail-value {
            color: #e0e0e0;
            background: #2b2d2c;
            padding: 10px;
            border-radius: 6px;
            border: 1px solid #4d4f4e;
            min-height: 40px;
            word-break: break-word;
        }
        
        .full-width {
            grid-column: 1 / -1;
        }
        
        .text-area-value {
            min-height: 100px;
            white-space: pre-wrap;
            line-height: 1.6;
        }
        
        .admin-alert {
            padding: 15px 20px;
            border-radius: 8px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            border: 1px solid;
        }
        
        .alert-success {
            background: rgba(76, 175, 80, 0.1);
            border-left: 4px solid #4CAF50;
            color: #4CAF50;
        }
        
        .alert-error {
            background: rgba(220, 53, 69, 0.1);
            border-left: 4px solid #dc3545;
            color: #dc3545;
        }
        
        .alert-info {
            background: rgba(23, 162, 184, 0.1);
            border-left: 4px solid #17a2b8;
            color: #17a2b8;
        }
        
        .empty-state {
            text-align: center;
            padding: 50px 20px;
            color: #a0a0a0;
        }
        
        .empty-state i {
            font-size: 3rem;
            margin-bottom: 20px;
            color: #4d4f4e;
        }
        
        .search-box {
            margin-bottom: 20px;
        }
        
        .search-input {
            width: 100%;
            padding: 12px 20px;
            background: #2b2d2c;
            border: 1px solid #4d4f4e;
            border-radius: 8px;
            color: #e0e0e0;
            font-size: 1rem;
            transition: all 0.3s ease;
        }
        
        .search-input:focus {
            outline: none;
            border-color: #8ab4f8;
            box-shadow: 0 0 0 3px rgba(138, 180, 248, 0.3);
        }
        
        .admin-nav {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        
        .admin-nav-link {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            color: #d0d0d0;
            text-decoration: none;
            transition: all 0.3s ease;
            border: 1px solid #4d4f4e;
            font-size: 0.95rem;
        }
        
        .admin-nav-link:hover,
        .admin-nav-link.active {
            background: rgba(138, 180, 248, 0.2);
            border-color: #8ab4f8;
            color: #f0f0f0;
        }
        
        .admin-nav-link i {
            font-size: 1rem;
        }
        
        @media (max-width: 1200px) {
            .table-header,
            .table-row {
                grid-template-columns: 80px 120px 120px 100px 1fr 120px 150px 100px;
            }
        }
        
        @media (max-width: 992px) {
            .admin-container {
                padding: 10px;
            }
            
            .table-header {
                display: none;
            }
            
            .table-row {
                display: block;
                padding: 20px;
                margin-bottom: 10px;
                border-radius: 8px;
                background: rgba(43, 45, 44, 0.7);
            }
            
            .mobile-view {
                display: flex;
                flex-direction: column;
                gap: 10px;
            }
            
            .mobile-field {
                display: flex;
                justify-content: space-between;
                padding: 5px 0;
                border-bottom: 1px solid #4d4f4e;
            }
            
            .mobile-label {
                color: #8ab4f8;
                font-weight: 500;
                min-width: 100px;
                font-size: 14px;
            }
            
            .mobile-value {
                color: #e0e0e0;
                text-align: right;
                flex: 1;
                font-size: 14px;
            }
            
            .application-details {
                grid-template-columns: 1fr;
            }
            
            .admin-nav {
                flex-direction: column;
            }
            
            .admin-nav-link {
                justify-content: center;
            }
        }
        
        @media (max-width: 768px) {
            .admin-header {
                padding: 20px;
            }
            
            .admin-title {
                font-size: 2rem;
            }
            
            .stats-cards {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .action-buttons {
                flex-wrap: wrap;
            }
            
            .btn {
                flex: 1;
                justify-content: center;
                min-width: 60px;
            }
        }
        
        @media (max-width: 480px) {
            .stats-cards {
                grid-template-columns: 1fr;
            }
            
            .stat-value {
                font-size: 2rem;
            }
            
            .mobile-field {
                flex-direction: column;
                text-align: center;
                gap: 5px;
            }
            
            .mobile-label,
            .mobile-value {
                min-width: 100%;
                text-align: center;
            }
            
            .action-buttons {
                justify-content: center;
            }
        }
.text-muted {
    color: #666 !important;
}

.mobile-view {
    display: none;
}

@media (max-width: 992px) {
    .desktop-view {
        display: none !important;
    }
    
    .mobile-view {
        display: block !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.application-row {
    animation: fadeIn 0.3s ease-out;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.modal-content::-webkit-scrollbar-thumb {
    background: #8ab4f8;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #6a8fd3;
}


.desktop-view {
    display: grid !important;
    grid-template-columns: 100px 150px 150px 120px 200px 150px 150px 100px;
    padding: 15px 20px;
    align-items: center;
}

@media (max-width: 992px) {
    .desktop-view {
        display: grid !important; 
    }
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-width: 1px;
    border-style: solid;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.status-approved {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(56, 142, 60, 0.2) 100%);
    color: #66bb6a;
    border-color: rgba(76, 175, 80, 0.3);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.status-approved:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.25) 0%, rgba(56, 142, 60, 0.3) 100%);
    box-shadow: 0 3px 8px rgba(76, 175, 80, 0.2);
}

.status-rejected {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(200, 35, 51, 0.2) 100%);
    color: #ef5350;
    border-color: rgba(220, 53, 69, 0.3);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.status-rejected:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.25) 0%, rgba(200, 35, 51, 0.3) 100%);
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.2);
}

.status-pending {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(245, 158, 11, 0.2) 100%);
    color: #ffb74d;
    border-color: rgba(255, 193, 7, 0.3);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.status-pending:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.25) 0%, rgba(245, 158, 11, 0.3) 100%);
    box-shadow: 0 3px 8px rgba(255, 193, 7, 0.2);
}

.status-new {
    background: linear-gradient(135deg, rgba(158, 158, 158, 0.15) 0%, rgba(97, 97, 97, 0.2) 100%);
    color: #b0b0b0;
    border-color: rgba(158, 158, 158, 0.3);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.status-new:hover {
    background: linear-gradient(135deg, rgba(158, 158, 158, 0.25) 0%, rgba(97, 97, 97, 0.3) 100%);
    box-shadow: 0 3px 8px rgba(158, 158, 158, 0.2);
}

        .application-status {
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            text-align: center;
        }
        
        .status-pending {
            background-color: rgba(255, 235, 59, 0.1);
            border: 1px solid #ffc107;
            color: #ffc107;
        }
        
        .status-approved {
            background-color: rgba(76, 175, 80, 0.1);
            border: 1px solid #4caf50;
            color: #4caf50;
        }
        
        .status-rejected {
            background-color: rgba(244, 67, 54, 0.1);
            border: 1px solid #f44336;
            color: #f44336;
        }
        
        .status-info {
            background-color: rgba(33, 150, 243, 0.1);
            border: 1px solid #2196f3;
            color: #2196f3;
        }
        
        .status-icon {
            font-size: 24px;
            margin-bottom: 10px;
        }
        
        .status-title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 5px;
        }
        
        .status-description {
            font-size: 14px;
            opacity: 0.9;
        }
        
        .form-disabled {
            opacity: 0.6;
            pointer-events: none;
            position: relative;
        }
        
        .form-disabled::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: transparent;
            z-index: 10;
        }