* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

.gold {
    color: #ffd700;
}

.back-to-home {
    display: inline-block;
    margin-bottom: 24px;
    color: #ffd700;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.back-to-home:hover {
    color: #ff8c00;
    transform: translateX(-4px);
}

.rules-header {
    text-align: center;
    padding: 40px 0 30px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    margin-bottom: 30px;
}

.rules-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #ffd700 50%, #ff8c00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 24px;
}

.rules-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
}

.meta-item {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
}

.meta-label {
    color: #ffd700;
    font-weight: 600;
}

.meta-value a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s;
}

.meta-value a:hover {
    color: #ffd700;
}

.rules-intro {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 16px;
    border-left: 3px solid #ffd700;
    font-size: 1rem;
    color: #ccc;
}

.rules-nav {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin-bottom: 40px;
    z-index: 100;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.rules-nav-inner {
    padding: 12px 20px;
}

.rules-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffd700;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    text-align: left;
}

.rules-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: center;
}

.rules-nav-link {
    color: #aaa;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s;
    white-space: nowrap;
}

.rules-nav-link:hover,
.rules-nav-link.active {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.rules-content {
    padding-bottom: 40px;
}

.rule-section {
    margin-bottom: 48px;
    scroll-margin-top: 80px;
}

.rule-section h2 {
    font-size: 1.8rem;
    color: #ffd700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    display: inline-block;
}

.section-subtitle {
    color: #aaa;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.term-card {
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    transition: all 0.3s;
}

.term-card:hover {
    border-color: #ffd700;
    transform: translateY(-2px);
    background: rgba(26, 26, 46, 0.8);
}

.term-title {
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.term-desc {
    font-size: 0.9rem;
    color: #ccc;
}

.rule-item {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: rgba(26, 26, 46, 0.4);
    border-radius: 12px;
    transition: all 0.3s;
}

.rule-item:hover {
    background: rgba(26, 26, 46, 0.6);
}

.rule-number {
    min-width: 40px;
    font-weight: 700;
    color: #ffd700;
    font-size: 1rem;
}

.rule-text {
    flex: 1;
    font-size: 0.95rem;
    color: #ddd;
}

.rule-title {
    font-weight: 700;
    color: #ffd700;
}

.sanctions-table-wrapper {
    overflow-x: auto;
    margin: 24px 0;
}

.sanctions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: rgba(26, 26, 46, 0.4);
    border-radius: 16px;
    overflow: hidden;
}

.sanctions-table th,
.sanctions-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    vertical-align: top;
}

.sanctions-table th {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    font-weight: 600;
}

.sanctions-table tr:hover td {
    background: rgba(255, 215, 0, 0.05);
}

.sanctions-factors {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 24px;
}

.factor {
    flex: 1;
    padding: 16px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.factor.aggravating {
    background: rgba(220, 38, 38, 0.1);
    border-left: 3px solid #dc2626;
}

.factor.mitigating {
    background: rgba(34, 197, 94, 0.1);
    border-left: 3px solid #22c55e;
}

.rules-footer {
    margin-top: 60px;
    padding: 40px 0 30px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-contacts h3 {
    color: #ffd700;
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.footer-contacts p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-contacts a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contacts a:hover {
    color: #ffd700;
}

.footer-copyright {
    text-align: right;
    font-size: 0.8rem;
    color: #666;
}

.footer-copyright p {
    margin-bottom: 6px;
}

@media (max-width: 992px) {
    .rules-header h1 {
        font-size: 2.2rem;
    }
    
    .rules-meta {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .rules-header {
        padding: 20px 0;
    }
    
    .rules-header h1 {
        font-size: 1.8rem;
    }
    
    .rules-meta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .rules-nav-toggle {
        display: block;
    }
    
    .rules-nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding-top: 12px;
    }
    
    .rules-nav-links.open {
        display: flex;
    }
    
    .rules-nav-link {
        white-space: normal;
        text-align: center;
    }
    
    .terms-grid {
        grid-template-columns: 1fr;
    }
    
    .rule-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .rule-number {
        min-width: auto;
    }
    
    .sanctions-table th,
    .sanctions-table td {
        padding: 10px 8px;
        font-size: 0.75rem;
    }
    
    .sanctions-factors {
        flex-direction: column;
    }
    
    .rules-footer {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-copyright {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .rules-header h1 {
        font-size: 1.4rem;
    }
    
    .rule-section h2 {
        font-size: 1.4rem;
    }
    
    .sanctions-table {
        font-size: 0.7rem;
    }
    
    .sanctions-table th,
    .sanctions-table td {
        padding: 8px 6px;
    }
}