* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

:root {
    --primary-red: #ff1a1a;
    --dark-red: #cc0000;
    --black: #0a0a0a;
    --gray: #1a1a1a;
    --light-gray: #2a2a2a;
}

body {
    background-color: var(--black);
    color: white;
}

nav {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 1rem;
    position: fixed;
    width: 100%;
    z-index: 100;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    width: 60px;
    height: 60px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-red);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-red);
}

.rules-header {
    padding-top: 100px;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('1header-pravidla.jpg');
    background-size: cover;
    padding: 150px 20px 50px;
}

.rules-header h1 {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.rules-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.rules-nav {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: var(--gray);
    padding: 1.5rem;
    border-radius: 10px;
}

.rules-nav h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.rules-nav ul {
    list-style: none;
}

.rules-nav li {
    margin-bottom: 0.5rem;
}

.rules-nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.rules-nav a:hover {
    color: var(--primary-red);
}

.rules-content {
    background: var(--gray);
    padding: 2rem;
    border-radius: 10px;
}

.rule-section {
    margin-bottom: 3rem;
}

.rule-section:last-child {
    margin-bottom: 0;
}

.rule-section h2 {
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.rule-item {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.rule-item h3 {
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rule-item i {
    color: var(--primary-red);
}

.rule-item ul {
    list-style: none;
    margin-left: 1.5rem;
}

.rule-item li {
    margin-bottom: 0.5rem;
    position: relative;
}

.rule-item li::before {
    content: "•";
    color: var(--primary-red);
    position: absolute;
    left: -1rem;
}

footer {
    background-color: var(--black);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: white;
    margin: 0 0.5rem;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-red);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .rules-container {
        grid-template-columns: 1fr;
    }

    .rules-nav {
        display: none;
    }
}