/* Стили для страницы правил */

.rules-body {
    background: radial-gradient(circle at top, rgba(118, 75, 162, 0.2), transparent 45%), #0f172a;
    color: #e2e8f0;
}

/* Hero секция */
.rules-hero {
    color: white;
    padding: 150px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(118, 75, 162, 0.25), transparent 55%), #0f172a;
}

.rules-hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 0;
    right: 0;
    bottom: -10%;
    background-image: url('../images/main.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
    will-change: transform;
    transform: translate3d(0, var(--parallax-y, 0), 0);
}

.rules-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.7) 0%, rgba(118, 75, 162, 0.7) 100%);
    z-index: 1;
}

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

.rules-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out;
}

.rules-hero p {
    font-size: 1.5rem;
    opacity: 0.95;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Навигация по правилам */
.rules-nav {
    display: flex;
    gap: 15px;
    padding: 30px 0;
    margin-bottom: 40px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    position: sticky;
    top: 80px;
    z-index: 100;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rules-nav::-webkit-scrollbar {
    height: 6px;
}

.rules-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.rules-nav::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.rules-nav-item {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    text-decoration: none;
    color: rgba(226, 232, 240, 0.8);
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
}

.rules-nav-item:hover {
    background: rgba(102, 126, 234, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.35);
}

.rules-nav-item.active {
    background: linear-gradient(135deg, #667eea, #7c3aed);
    color: white;
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.45);
}

/* Основной контент */
.rules-main {
    background: radial-gradient(circle at top, rgba(118, 75, 162, 0.15), transparent 50%), #0b1120;
    min-height: 100vh;
    padding: 40px 0 80px;
}

.rules-section {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 30px;
    padding: 50px 40px;
    margin-bottom: 40px;
    box-shadow: 0 35px 80px rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: fadeInUp 0.6s ease-out;
    display: flex;
    gap: 50px;
    align-items: flex-start;
    backdrop-filter: blur(18px);
}

.rules-section-header {
    flex: 0 0 300px;
    text-align: left;
    padding-right: 30px;
    border-right: 3px solid rgba(102, 126, 234, 0.4);
    padding-bottom: 0;
    margin-bottom: 0;
}

.rules-section-header h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 15px;
    margin-top: 0;
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(226, 232, 240, 0.7);
    font-style: italic;
    margin: 0;
    margin-top: 10px;
    line-height: 1.6;
}

/* Карточки правил */
.rules-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 0;
    padding-top: 0;
}

.rule-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border-left: 5px solid #7c3aed;
    transition: all 0.3s ease;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.4);
}

.rule-card:hover {
    transform: translateX(5px);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.5);
}

.rule-card.warning {
    border-left-color: #facc15;
    background: rgba(250, 204, 21, 0.1);
}

.rule-card.success {
    border-left-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.rule-card.info {
    border-left-color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
}

.rule-icon {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.rule-card.warning .rule-icon {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.rule-card.success .rule-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.rule-card.info .rule-icon {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.rule-text {
    flex: 1;
}

.rule-text h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 12px;
}

.rule-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(226, 232, 240, 0.85);
    margin: 0;
}

.rule-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.rule-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: rgba(226, 232, 240, 0.85);
    line-height: 1.6;
}

.rule-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

.rule-card.warning .rule-list li::before {
    color: #ffc107;
}

.rule-card.success .rule-list li::before {
    color: #28a745;
}

.rule-text code {
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 8px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #667eea;
}

/* Система наказаний */
.punishment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.punishment-card {
    background: #fafafa;
    border-radius: 15px;
    padding: 25px;
    border-top: 5px solid #667eea;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.punishment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.punishment-card.minor {
    border-top-color: #28a745;
}

.punishment-card.medium {
    border-top-color: #ffc107;
}

.punishment-card.severe {
    border-top-color: #dc3545;
}

.punishment-level {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.punishment-card.minor .punishment-level {
    background: #d4edda;
    color: #155724;
}

.punishment-card.medium .punishment-level {
    background: #fff3cd;
    color: #856404;
}

.punishment-card.severe .punishment-level {
    background: #f8d7da;
    color: #721c24;
}

.punishment-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 12px;
}

.punishment-card p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.punishment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.punishment-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.punishment-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.punishment-card.minor .punishment-list li::before {
    color: #28a745;
}

.punishment-card.medium .punishment-list li::before {
    color: #ffc107;
}

.punishment-card.severe .punishment-list li::before {
    color: #dc3545;
}

/* Важное примечание */
.rules-notice {
    margin-top: 40px;
}

.notice-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.notice-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.notice-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 15px;
    opacity: 0.95;
}

.notice-date {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.95rem;
    opacity: 0.9;
}

.notice-date strong {
    font-weight: 600;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .rules-hero {
        padding: 120px 0 60px;
    }

    .rules-hero h1 {
        font-size: 2.5rem;
    }

    .rules-hero p {
        font-size: 1.2rem;
    }

    .rules-nav {
        top: 70px;
        padding: 15px;
        gap: 10px;
    }

    .rules-nav-item {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .rules-section {
        padding: 30px 20px;
        margin-bottom: 40px;
        flex-direction: column;
        gap: 30px;
    }

    .rules-section-header {
        flex: 1;
        text-align: center;
        padding-right: 0;
        border-right: none;
        border-bottom: 3px solid #667eea;
        padding-bottom: 20px;
        margin-bottom: 0;
    }

    .rules-section-header h2 {
        font-size: 2rem;
        margin-bottom: 12px;
        margin-top: 0;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-top: 8px;
    }

    .rules-content {
        flex: 1;
        gap: 20px;
        margin-top: 0;
    }

    .rule-card {
        flex-direction: column;
        padding: 20px;
    }

    .rule-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .rule-text h3 {
        font-size: 1.3rem;
    }

    .punishment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .notice-card {
        padding: 20px;
    }

    .notice-card h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .rules-hero h1 {
        font-size: 2rem;
    }

    .rules-hero p {
        font-size: 1rem;
    }

    .rules-section-header h2 {
        font-size: 1.8rem;
    }

    .rule-text h3 {
        font-size: 1.2rem;
    }
}

