:root {
    --primary: #FF3D3D;
    --primary-light: #FF6B6B;
    --dark: #1A1A1A;
    --gray: #2D2D2D;
    --light: #F5F5F5;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    padding-top: 80px;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 61, 61, 0.3);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 61, 61, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--light);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--primary), #FF8E8E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}
/* Плавный скролл для всей страницы */
html {
    scroll-behavior: smooth;
}

/* Header стили как на картинке */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateY(0);
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 61, 61, 0.3);
}

header.hidden {
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Логотип как на картинке */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-img {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), #ff6b6b);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 61, 61, 0.3);
    transition: all 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 61, 61, 0.4);
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.logo-text span {
    color: var(--primary);
    background: linear-gradient(90deg, var(--primary), #ff8e8e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Навигационное меню */
.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 0;
    opacity: 0.9;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-light);
    opacity: 1;
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--primary);
    opacity: 1;
}

.nav-link.active::after {
    width: 100%;
}

/* Кнопка мобильного меню */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 15px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
}

.hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 61, 61, 0.15) 0%, rgba(26, 26, 26, 1) 70%);
    z-index: -1;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 61, 61, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
}

.hero-image {
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 50%;
    max-width: 700px;
    z-index: -1;
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}
.about {
    background: var(--gray);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://i.imgur.com/JYw0T9a.png') no-repeat;
    background-position: right center;
    opacity: 0.05;
    z-index: 0;
}

.about-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.about-text {
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 61, 61, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-desc {
    opacity: 0.8;
    line-height: 1.6;
}
.how-to-play {
    text-align: center;
}

.steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.step-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.step-desc {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 20px;
}
footer {
    background: #111;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.footer-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.footer-logo-text span {
    color: var(--primary);
}

.footer-about {
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-links-list {
    list-style: none;
}

.footer-link {
    margin-bottom: 10px;
}

.footer-link a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    opacity: 0.6;
    font-size: 0.9rem;
}

.copyright a {
    color: var(--primary);
    text-decoration: none;
}
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-image {
        opacity: 0.4;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

/* Добавленные стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1A1A1A;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    padding: 30px;
    border: 1px solid rgba(255, 61, 61, 0.3);
    box-shadow: 0 20px 60px rgba(255, 61, 61, 0.15);
    position: relative;
    animation: modalShow 0.4s ease-out;
}

@keyframes modalShow {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 15px; right: 15px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255, 61, 61, 0.2);
    color: var(--primary);
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary), #FF8E8E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal input[type="text"],
.modal input[type="password"],
.modal select {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 15px;
    background: #2D2D2D;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

.modal input:focus,
.modal select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 61, 61, 0.2);
}

.modal .btn-login {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.modal .btn-login:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Кастомные уведомления */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 100%;
}

.notification {
    background: rgba(45, 45, 45, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(400px);
    opacity: 0;
}

/* Прогресс-бар */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #ff8e8e);
    width: 100%;
    transform: scaleX(1);
    transform-origin: left;
    animation: progressBar 5s linear forwards;
}

@keyframes progressBar {
    0% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(0);
    }
}

/* Типы уведомлений */
.notification-success {
    border-left: 4px solid #2ecc71;
}

.notification-error {
    border-left: 4px solid #e74c3c;
}

.notification-warning {
    border-left: 4px solid #f39c12;
}

.notification-info {
    border-left: 4px solid #3498db;
}

/* Иконки уведомлений */
.notification-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.notification-success .notification-icon {
    color: #2ecc71;
}

.notification-error .notification-icon {
    color: #e74c3c;
}

.notification-warning .notification-icon {
    color: #f39c12;
}

.notification-info .notification-icon {
    color: #3498db;
}

/* Контент уведомления */
.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--light);
    font-size: 1rem;
}

.notification-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
    transition: color 0.3s ease;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
}

/* Анимации появления */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ==================================== */
/*     ИСПРАВЛЕННЫЙ КАБИНЕТ — ВСЁ РОВНО   */
/* ==================================== */

.btn-login-header {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-login-header:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 61, 61, 0.4);
}

/* Кнопка выхода в header */
.btn-logout-header {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.4);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-logout-header:hover {
    background: rgba(231, 76, 60, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
    color: #c0392b;
}

.cabinet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 28px;
    margin-top: 50px;
    align-items: stretch; /* ← важно! */
}

/* Адаптивность для новых блоков */
@media (max-width: 768px) {
    .cabinet-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cabinet-wrapper {
        padding: 20px 0 60px;
    }
}

.cabinet-block {
    background: rgba(45, 45, 45, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 61, 61, 0.35);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* ← чтобы все блоки были одной высоты */
}

.cabinet-block:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 25px 60px rgba(255, 61, 61, 0.25);
}

.cabinet-block h3 {
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 61, 61, 0.3);
}

.cabinet-items {
    flex: 1; /* ← растягивает содержимое на всю высоту блока */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
}

.cabinet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 1.05rem;
    min-height: 54px; /* ← фиксированная высота строки */
}

.cabinet-item:last-child {
    border-bottom: none;
}

.cabinet-item span {
    color: #bbbbbb;
    font-weight: 500;
}

.cabinet-item strong {
    color: white;
    font-weight: 700;
    font-size: 1.22rem;
    min-width: 100px;
    text-align: right;
}

/* Цвета для важных пунктов */
.cabinet-item.warn strong { color: #f1c40f; }
.cabinet-item.wanted strong { color: #e74c3c; }
.cabinet-item strong { color: #00ff9d; } /* скиллы и деньги — зелёный */

/* Кнопка выхода — ещё круче и по центру */
.cabinet-actions {
    margin-top: 50px;
    text-align: center;
}

/* Стили для пустых состояний */
.cabinet-items .cabinet-item:only-child {
    opacity: 0.7;
}

.cabinet-items .cabinet-item:only-child span {
    font-style: italic;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #ff3d3d, #c0392b);
    color: white;
    padding: 18px 48px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.4);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.btn-logout:hover {
    transform: translateY(-6px);
    background: linear-gradient(135deg, #e74c3c, #ff3d3d);
    box-shadow: 0 20px 50px rgba(231, 76, 60, 0.6);
}

.cabinet-wrapper {
    padding: 40px 0 80px;
    min-height: calc(100vh - 200px);
}

/* Стили для админ бейджа */
.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: white;
    padding: 14px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.admin-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s;
}

.admin-badge:hover::before {
    left: 100%;
}

.admin-badge i {
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}

/* Градиенты для разных уровней админов */
.admin-badge.level-1 { 
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
}

.admin-badge.level-2 { 
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.4);
}

.admin-badge.level-3 { 
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    box-shadow: 0 10px 30px rgba(155, 89, 182, 0.4);
}

.admin-badge.level-4 { 
    background: linear-gradient(135deg, #e67e22, #d35400);
    box-shadow: 0 10px 30px rgba(230, 126, 34, 0.4);
}

.admin-badge.level-5 { 
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.4);
}

.admin-badge.level-6 { 
    background: linear-gradient(135deg, #1abc9c, #16a085);
    box-shadow: 0 10px 30px rgba(26, 188, 156, 0.4);
}

.admin-badge.level-7 { 
    background: linear-gradient(135deg, #ff3d3d, #c0392b, #ff6b6b);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite, pulse 2s infinite;
    box-shadow: 0 15px 40px rgba(255, 61, 61, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Стили для заголовка кабинета */
.cabinet-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.cabinet-nick {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    background: linear-gradient(90deg, var(--primary), #FF8E8E, var(--primary-light), #FF8E8E, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 300% auto;
    animation: shimmer 4s ease-in-out infinite;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.cabinet-userinfo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.userinfo-job,
.userinfo-donat,
.userinfo-level {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid;
}

.userinfo-job {
    background: rgba(46, 204, 113, 0.9);
    border-color: rgba(46, 204, 113, 0.7);
    color: #0d3b1e;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
    font-weight: 700;
}

.userinfo-donat {
    background: rgba(46, 204, 113, 0.9);
    border-color: rgba(46, 204, 113, 0.7);
    color: #0d3b1e;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
    font-weight: 700;
}

.userinfo-level {
    background: rgba(46, 204, 113, 0.9);
    border-color: rgba(46, 204, 113, 0.7);
    color: #0d3b1e;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
    font-weight: 700;
}

.userinfo-job:hover,
.userinfo-donat:hover,
.userinfo-level:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cabinet-server {
    font-size: 1.2rem;
    color: var(--primary-light);
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0.9;
}

/* Адаптивность */
@media (max-width: 768px) {
    .cabinet-nick {
        font-size: 2.5rem;
    }
    
    .cabinet-userinfo {
        gap: 15px;
    }
    
    .userinfo-job,
    .userinfo-donat,
    .userinfo-level {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .admin-badge {
        padding: 12px 20px;
        font-size: 1rem;
    }
}


/* Секция новостей */
.news {
    padding: 80px 0;
    background: var(--dark);
}

.news-header {
    text-align: center;
    margin-bottom: 50px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.news-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(255, 61, 61, 0.2);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-content {
    padding: 25px;
}

.news-date {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    color: white;
}

.news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--primary-light);
}

.news-excerpt {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-read-more:hover {
    color: var(--primary-light);
    gap: 12px;
}

/* Страница отдельной новости */
.single-news {
    padding: 100px 0 80px;
    background: var(--dark);
}

.news-article {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.article-content {
    padding: 40px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.article-date {
    color: var(--primary);
    font-weight: 600;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.3;
    background: linear-gradient(90deg, var(--primary), #FF8E8E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-fulltext {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.article-fulltext p {
    margin-bottom: 20px;
}

.back-to-news {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 30px;
    padding: 12px 24px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-to-news:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-content {
        padding: 25px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-image {
        height: 250px;
    }
}

/* Стили для карусели новостей */
.news-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.news-carousel-container {
    overflow: hidden;
    border-radius: 16px;
}

.news-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    gap: 0;
}

.news-carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 10px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 61, 61, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 61, 61, 0.4);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

/* Адаптивность карусели */
@media (max-width: 768px) {
    .news-carousel {
        padding: 0 40px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .news-carousel-slide {
        padding: 5px;
    }
}

@media (max-width: 480px) {
    .news-carousel {
        padding: 0 30px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
    
    .carousel-dots {
        gap: 8px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}


/* Секция организаций */
.organizations {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--gray) 100%);
    position: relative;
    overflow: hidden;
}

.organizations::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://i.imgur.com/JYw0T9a.png') no-repeat;
    background-position: center;
    opacity: 0.03;
    z-index: 0;
}

.org-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.org-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
}

/* Карусель организаций */
.org-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
}

.org-carousel-container {
    overflow: hidden;
    border-radius: 20px;
}

.org-carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    gap: 0;
}

.org-slide {
    flex: 0 0 33.333%;
    min-width: 33.333%;
    padding: 20px;
    box-sizing: border-box;
}

/* Карточки организаций */
.org-card {
    background: rgba(45, 45, 45, 0.95);
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    border: 2px solid;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.org-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 100%);
    z-index: 0;
}

.org-card.legal {
    border-color: rgba(46, 204, 113, 0.3);
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.95) 0%, rgba(46, 204, 113, 0.1) 100%);
}

.org-card.illegal {
    border-color: rgba(231, 76, 60, 0.3);
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.95) 0%, rgba(231, 76, 60, 0.1) 100%);
}

.org-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.org-card.legal:hover {
    border-color: #2ecc71;
    box-shadow: 0 25px 50px rgba(46, 204, 113, 0.2);
}

.org-card.illegal:hover {
    border-color: #e74c3c;
    box-shadow: 0 25px 50px rgba(231, 76, 60, 0.2);
}

/* Бейдж легальная/нелегальная */
.org-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.org-badge.legal {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.5);
}

.org-badge.illegal {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.5);
}

/* Иконка организации */
.org-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.org-card.legal .org-icon {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3);
}

.org-card.illegal .org-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
}

/* Заголовок и описание */
.org-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.org-card.legal .org-title {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.org-card.illegal .org-title {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.org-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
}

/* Особенности организации */
.org-features {
    position: relative;
    z-index: 1;
}

.org-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.org-feature:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.org-feature i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.org-card.legal .org-feature i {
    color: #2ecc71;
}

.org-card.illegal .org-feature i {
    color: #e74c3c;
}

.org-feature span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Кнопки карусели */
.org-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 61, 61, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.org-carousel-btn:hover {
    background: var(--primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 61, 61, 0.4);
}

.org-prev {
    left: 0;
}

.org-next {
    right: 0;
}

/* Точки навигации */
.org-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.org-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.org-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.org-dot:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .org-slide {
        flex: 0 0 50%;
        min-width: 50%;
    }
}

@media (max-width: 768px) {
    .org-carousel {
        padding: 0 60px;
    }
    
    .org-slide {
        flex: 0 0 100%;
        min-width: 100%;
        padding: 10px;
    }
    
    .org-carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    .org-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .org-carousel {
        padding: 0 40px;
    }
    
    .org-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .org-title {
        font-size: 1.2rem;
    }
    
    .org-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}