* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #1a1a1a;
    color: white;
    line-height: 1.6;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    z-index: 1000;
    transition: background 0.3s ease;
    border-bottom: 2px solid rgba(38, 150, 255, 0.3);
}

header.scrolled {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(10px);
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

nav a:hover,
nav a.active {
    color: #2696ff;
}

.separator {
    color: #2696ff;
    font-weight: bold;
}

.container {
    max-width: 1100px;
    margin: 120px auto 40px;
    padding: 0 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-title {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2696ff;
    text-shadow: 0 0 20px rgba(38, 150, 255, 0.5);
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
}

.page-note {
    color: rgba(255, 150, 0, 0.8);
    font-size: 14px;
    margin-top: 15px;
    font-style: italic;
}

.search-box {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(38, 150, 255, 0.3);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: border-color 0.3s ease;
}

.search-box:focus-within {
    border-color: #2696ff;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.sidebar {
    position: fixed;
    left: 30px;
    top: 140px;
    width: 250px;
    background: rgba(38, 150, 255, 0.05);
    border: 1px solid rgba(38, 150, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #2696ff;
    border-radius: 3px;
}

.sidebar h3 {
    color: #2696ff;
    font-size: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-link {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: rgba(38, 150, 255, 0.1);
    color: #2696ff;
    border-left-color: #2696ff;
    padding-left: 20px;
}

.section {
    background: rgba(38, 150, 255, 0.03);
    border: 1px solid rgba(38, 150, 255, 0.2);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    color: #2696ff;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.article:hover {
    background: rgba(38, 150, 255, 0.05);
    border-color: rgba(38, 150, 255, 0.3);
}

.article-title {
    font-size: 22px;
    font-weight: bold;
    color: #2696ff;
    margin-bottom: 15px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.article-title:hover {
    color: #5ab3ff;
}

.article-title::before {
    content: "▼";
    display: inline-block;
    width: 20px;
    transition: transform 0.3s ease;
    font-size: 14px;
}

.article.active .article-title::before {
    transform: rotate(-180deg);
}

.article-content {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 15px;
    line-height: 1.8;
}

.article-content.collapsed {
    display: none;
}

.article-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 8px;
}

.sanction {
    background: rgba(255, 69, 58, 0.1);
    border-left: 4px solid #FF453A;
    padding: 12px 18px;
    margin-top: 15px;
    border-radius: 8px;
    font-weight: 600;
    color: #FF453A;
}

.sanction.collapsed {
    display: none;
}

.category-info {
    background: rgba(38, 150, 255, 0.1);
    border: 2px solid rgba(38, 150, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
}

.category-info h3 {
    color: #2696ff;
    font-size: 24px;
    margin-bottom: 20px;
}

.category-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
}

.category-item:last-child {
    border-bottom: none;
}

.highlight {
    background: rgba(38, 150, 255, 0.3);
    padding: 3px 8px;
    border-radius: 5px;
    color: #2696ff;
    font-weight: 600;
}

.quick-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.overview-item {
    background: rgba(38, 150, 255, 0.08);
    border: 1px solid rgba(38, 150, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.overview-item:hover {
    background: rgba(38, 150, 255, 0.15);
    border-color: rgba(38, 150, 255, 0.4);
    transform: translateY(-5px);
}

.overview-item h4 {
    color: #2696ff;
    font-size: 18px;
    margin-bottom: 10px;
}

.overview-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.quick-rules {
    columns: 2;
    column-gap: 40px;
}

.quick-rules p {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.quick-rules p::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2696ff;
    font-weight: bold;
}

@media (max-width: 1200px) {
    .sidebar {
        display: none;
    }

    .content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
    }

    .container {
        margin-top: 160px;
    }

    .page-title {
        font-size: 36px;
    }

    .section {
        padding: 25px;
    }

    .section-title {
        font-size: 28px;
    }

    .quick-rules {
        columns: 1;
    }
}