* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-bottom: 2px solid #333;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: #64B5F6;
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.logo p {
    color: #888;
    font-size: 0.9rem;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    white-space: nowrap;
}

.nav a:hover {
    color: #64B5F6;
    background-color: #333;
    transform: translateY(-1px);
}

.nav a[href="#staff-rules"] {
    border: 1px solid #64B5F6;
    background: rgba(100, 181, 246, 0.1);
}

.nav a[href="#staff-rules"]:hover {
    background: rgba(100, 181, 246, 0.2);
    border-color: #42A5F5;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid #333;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #64B5F6;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ccc;
}

.server-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.server-ip {
    background: #222;
    padding: 1rem 2rem;
    border-radius: 10px;
    border: 1px solid #333;
}

.server-ip .label {
    color: #888;
    display: block;
    margin-bottom: 0.5rem;
}

.server-ip .ip {
    color: #64B5F6;
    font-weight: bold;
    font-size: 1.1rem;
}

.server-status {
    background: #222;
    padding: 1rem 2rem;
    border-radius: 10px;
    border: 1px solid #333;
}

.status {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.status.offline {
    color: #ff6b6b;
}

.status.error {
    color: #ffa726;
}

.last-update {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
}

.players {
    color: #888;
}

/* Rules Section */
.rules-section {
    padding: 4rem 0;
    background-color: #111;
}

.rules-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #64B5F6;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.rule-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #333;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.rule-card:hover {
    transform: translateY(-5px);
    border-color: #64B5F6;
}

.rule-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #64B5F6;
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.rule-card h3 {
    color: #64B5F6;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    margin-top: 1rem;
}

.rule-card p {
    color: #ccc;
    line-height: 1.6;
}

.rule-punishment {
    background: #2d1b1b;
    border: 1px solid #ff6b6b;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ff6b6b;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

.rule-punishment.warning {
    background: #2d2a1b;
    border-color: #ffa726;
    color: #ffa726;
    box-shadow: 0 2px 8px rgba(255, 167, 38, 0.2);
}

.rule-punishment.mute {
    background: #1b2d2d;
    border-color: #26c6da;
    color: #26c6da;
    box-shadow: 0 2px 8px rgba(38, 198, 218, 0.2);
}

/* Staff Rules */
.staff-rules-header {
    grid-column: 1 / -1;
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    border: 2px solid #64B5F6;
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3);
}

.staff-rules-header h2 {
    color: #64B5F6;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.staff-rules-header p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.6;
}

.staff-rule {
    border: 2px solid #64B5F6;
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.2);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    grid-column: auto; /* Убеждаемся что правила НЕ широкие */
}

.staff-rule:hover {
    transform: translateY(-5px);
    border-color: #42A5F5;
    box-shadow: 0 6px 20px rgba(100, 181, 246, 0.4);
}

.staff-rule .rule-number {
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    color: #000;
    box-shadow: 0 2px 10px rgba(100, 181, 246, 0.5);
}

.staff-rule h3 {
    color: #64B5F6;
}

/* Programs List Styling */
.programs-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(26, 26, 26, 0.5);
    border-radius: 10px;
    border: 1px solid #333;
}

.program-item {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.program-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #64B5F6, #42A5F5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.program-item:hover {
    border-color: #64B5F6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.2);
}

.program-item:hover::before {
    opacity: 1;
}

.program-name {
    color: #64B5F6;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.program-description {
    color: #bbb;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

/* Wide Rule Card */
.rule-card.wide {
    grid-column: 1 / -1; /* Занимает всю ширину грида */
    max-width: none;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #64B5F6;
    box-shadow: 0 4px 20px rgba(100, 181, 246, 0.3);
}

.rule-card.wide:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(100, 181, 246, 0.4);
}

.rule-card.wide .rule-number {
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    box-shadow: 0 2px 10px rgba(100, 181, 246, 0.5);
}

.rule-card.wide h3 {
    color: #64B5F6;
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.punishment-info {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #333;
    margin-top: 2rem;
}

.punishment-info h3 {
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.punishment-info ul {
    list-style: none;
    padding-left: 0;
}

.punishment-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
    color: #ccc;
}

.punishment-info li:last-child {
    border-bottom: none;
}

.punishment-info strong {
    color: #ff6b6b;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-top: 2px solid #333;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #64B5F6;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #64B5F6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .server-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .rules-grid {
        grid-template-columns: 1fr;
    }
    
    .programs-list {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.8rem;
    }
    
    .rule-card.wide h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .rule-card {
        padding: 1.5rem;
    }
    
    .rule-card.wide {
        padding: 1.5rem;
    }
    
    .programs-list {
        padding: 0.5rem;
        margin: 1rem 0;
    }
    
    .program-item {
        padding: 0.8rem;
    }
    
    .program-name {
        font-size: 0.9rem;
    }
    
    .program-description {
        font-size: 0.8rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background-color: #64B5F6;
    color: #000;
}

/* Section Dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #64B5F6 20%, #64B5F6 80%, transparent 100%);
    margin: 3rem 0;
    border: none;
    position: relative;
    opacity: 0.6;
    animation: dividerFadeIn 1s ease-in-out;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, #64B5F6, #42A5F5, #64B5F6);
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(100, 181, 246, 0.4);
    animation: dividerGlow 2s ease-in-out infinite alternate;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #64B5F6;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(100, 181, 246, 0.6);
}

@keyframes dividerFadeIn {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 0.6;
        transform: scaleX(1);
    }
}

@keyframes dividerGlow {
    from {
        box-shadow: 0 0 15px rgba(100, 181, 246, 0.4);
    }
    to {
        box-shadow: 0 0 25px rgba(100, 181, 246, 0.7);
    }
}

/* Rules Divider */
.rules-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #64B5F6 30%, #64B5F6 70%, transparent 100%);
    margin: 2rem 0;
    border: none;
    position: relative;
    opacity: 0.4;
    grid-column: 1 / -1; /* Занимает всю ширину грида */
}

.rules-divider::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #64B5F6;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(100, 181, 246, 0.5);
}