:root {
        --dark-bg: #0a0a0a;
        --card-bg: #141414;
        --primary: #ffffff;
        --primary-variant: #e0e0e0;
        --secondary: #a0a0a0;
        --text: #f0f0f0;
        --text-secondary: #b0b0b0;
        --divider: #2a2a2a;
        --accent-line: #ffffff;
    }

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

    body {
        font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
        background-color: var(--dark-bg);
        color: var(--text);
        line-height: 1.7;
        background-image: 
            radial-gradient(circle at 10% 20%, rgba(40, 40, 40, 0.1) 0%, transparent 20%),
            radial-gradient(circle at 90% 80%, rgba(40, 40, 40, 0.1) 0%, transparent 20%);
    }

    .container {
        width: 90%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px 0;
    }

    header {
        background-color: rgba(10, 10, 10, 0.98);
        padding: 1rem 0;
        border-bottom: 1px solid var(--divider);
        position: sticky;
        top: 0;
        z-index: 100;
        backdrop-filter: blur(4px);
    }

    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
    }

    h1, h2, h3 {
        font-weight: 500;
        color: var(--primary);
        letter-spacing: -0.25px;
    }

    h1 {
        font-size: 2.4rem;
        position: relative;
        padding-bottom: 0.5rem;
    }

    h1::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 2px;
        background: var(--accent-line);
    }

    h2 {
        font-size: 1.9rem;
        margin-bottom: 1.8rem;
        padding-bottom: 0.8rem;
        border-bottom: 1px solid var(--divider);
        position: relative;
    }

    h2::before {
        content: "";
        position: absolute;
        bottom: -1px;
        left: 0;
        width: 100px;
        height: 2px;
        background: var(--accent-line);
    }

    h3 {
        font-size: 1.5rem;
        margin: 1.5rem 0 1rem;
        color: var(--primary);
        position: relative;
        padding-left: 0;
    }

    p {
        margin-bottom: 0.8rem;
        position: relative;
        padding-left: 1.5rem;
        line-height: 1.2;
    }

        p a {
            color: #66ccff;
        }

    nav ul {
        display: flex;
        list-style: none;
        padding-left: 0.5rem;
    }

    header nav ul {
        list-style: none;
        padding-left: 0.5rem;
    }

    nav li {
        margin-left: 1.5rem;
        position: relative;
        white-space: nowrap;
        padding-left: 0.5rem;
    }

    nav li::before {
        display: none;
    }

        header nav ul {
            padding-left: 0 !important;
        }
        
        header nav ul li {
            padding-left: 0 !important;
            margin-left: 1.5rem;
        }
        
        header nav ul li::before {
            display: none !important;
        }

    nav a {
        color: var(--text);
        text-decoration: none;
        transition: all 0.3s;
        font-weight: 500;
        padding: 12px 8px;
        display: inline-block; /* Чтобы padding работал корректно */
    }

    nav a::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--accent-line);
        transition: width 0.3s;
    }

    nav a:hover {
        color: var(--primary);
    }

    nav a:hover::after {
        width: 100%;
    }

    .card {
        background-color: var(--card-bg);
        border-radius: 4px;
        padding: 2.5rem;
        margin-bottom: 2.5rem;
        box-shadow: 
            0 6px 18px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.03);
        position: relative;
        overflow: hidden;
    }

    .card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(to bottom, var(--primary), transparent);
    }

    .placeholder {
        background: rgba(40, 40, 40, 0.4);
        border-left: 3px solid var(--primary);
        padding: 1.8rem;
        margin: 1.8rem 0;
        border-radius: 0 4px 4px 0;
        position: relative;
    }

    .placeholder::before {
        content: "";
        position: absolute;
        left: -30px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.2rem;
        color: var(--primary);
    }

    .doc-links {
        margin-top: 4rem;
    }

    .links-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
        margin-top: 1.5rem;
    }

    .doc-card {
        background-color: var(--card-bg);
        border-radius: 4px;
        padding: 2rem;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        display: block;
        border: 1px solid var(--divider);
        text-decoration: none;
        position: relative;
        overflow: hidden;
    }

    .doc-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 0%;
        background: rgba(255, 255, 255, 0.05);
        transition: height 0.4s ease;
        z-index: 0;
    }

    .doc-card:hover {
        transform: translateY(-8px);
        box-shadow: 
            0 12px 25px rgba(0, 0, 0, 0.35),
            0 0 0 1px var(--primary);
        border-color: var(--primary);
    }

    .doc-card:hover::before {
        height: 100%;
    }

    .doc-card h3 {
        position: relative;
        z-index: 1;
        color: var(--primary);
        margin-top: 0;
        padding-left: 0;
    }

    .doc-card p {
        color: var(--text-secondary);
        margin-top: 1rem;
        position: relative;
        z-index: 1;
    }

    .doc-content section {
        margin-bottom: 3rem;
        position: relative;
    }

    ul {
        padding-left: 1.8rem;
        margin: 1.2rem 0;
        list-style-type: none;
    }

    ul li {
        margin-bottom: 0.6rem;
        position: relative;
        padding-left: 2.5rem;
        line-height: 1.2;
    }

    ul li::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0.7em;
        transform: translateY(-50%);
        width: 8px;
        height: 8px;
        background: var(--primary);
        border-radius: 50%;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
    }

    .doc-content p {
        position: relative;
        padding-left: 1.5rem;
        margin: 1.5rem 0;
        line-height: 1.8;
    }

    .doc-content p::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 3px;
        background: linear-gradient(to bottom, 
            transparent 0%, 
            var(--primary) 10%, 
            var(--primary) 90%, 
            transparent 100%);
    }

    .important-note p {
        padding-left: 2rem;
    }

    .important-note p::before {
        content: "▌";
        position: absolute;
        left: 0;
        top: 0;
        color: var(--primary);
        font-size: 1.2rem;
        line-height: 1.6;
        width: auto;
        height: auto;
        background: transparent;
    }

    .doc-card p {
        padding-left: 0;
        margin: 1.2rem 0 0;
    }

    .doc-card p::before {
        display: none;
    }

    .update-date {
        font-style: italic;
        color: var(--text-secondary);
        margin-top: 3rem;
        text-align: right;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }

    footer {
        background-color: rgba(10, 10, 10, 0.98);
        border-top: 1px solid var(--divider);
        padding: 2rem 0;
        margin-top: 4rem;
        backdrop-filter: blur(4px);
    }

    footer .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 20px;
    }

    footer p {
        color: var(--text-secondary);
        margin-bottom: 1rem;
        font-size: 0.95rem;
    }

    footer nav a {
        color: var(--text);
        margin: 0 15px;
        position: relative;
    }

    footer nav a::after {
        content: "";
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 1px;
        background: var(--primary);
        transition: width 0.3s;
    }

    footer nav a:hover {
        color: var(--primary);
    }

    footer nav a:hover::after {
        width: 100%;
    }

    .redirect-notice {
        text-align: center;
        padding: 6rem 0;
        font-size: 1.2rem;
    }

    .redirect-notice a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 500;
        position: relative;
    }

    .redirect-notice a::after {
        content: "";
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 1px;
        background: currentColor;
        transition: transform 0.3s;
        transform-origin: right;
    }

    .redirect-notice a:hover::after {
        transform: scaleX(0);
        transform-origin: left;
    }

    /* Мобильное меню */
    .header-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .menu-toggle {
        display: none;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 101;
    }

    .hamburger {
        display: block;
        position: relative;
        width: 30px;
        height: 2px;
        background: var(--primary);
        transition: all 0.3s;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 30px;
        height: 2px;
        background: var(--primary);
        transition: all 0.3s;
    }

    .hamburger::before {
        top: -8px;
    }

    .hamburger::after {
        top: 8px;
    }

    .menu-toggle.active .hamburger {
        background: transparent;
    }

    .menu-toggle.active .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }

    .menu-toggle.active .hamburger::after {
        top: 0;
        transform: rotate(-45deg);
    }

    /* Адаптивные стили */
    @media (max-width: 768px) {
        header {
            padding: 0.5rem 0;
        }
        
        h1 {
            font-size: 1.8rem;
            padding-bottom: 0;
        }
        
        h1::after {
            display: none;
        }
        
        .menu-toggle {
            display: block;
        }
        
        .menu {
            position: fixed;
            top: 0;
            left: -100%;
            width: 80%;
            height: 100vh;
            background: var(--dark-bg);
            padding: 5rem 2rem 2rem;
            transition: left 0.3s ease;
            z-index: 100;
            overflow-y: auto;
            box-shadow: 2px 0 10px rgba(0,0,0,0.5);
        }
        
        .menu.active {
            left: 0;
        }
        
        nav ul {
            flex-direction: column;
        }
        
        nav li {
            margin: 1rem 0;
            white-space: normal; /* Разрешаем перенос в мобильной версии */
            text-align: center;
        }
        
        nav a {
            padding: 10px 5px;
        }
        
        /* Оверлей для открытого меню */
        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.7);
            z-index: 99;
        }
        
        .overlay.active {
            display: block;
        }
        
        .card {
            padding: 1.8rem;
        }
        
        .links-container {
            grid-template-columns: 1fr;
        }
    }

    .no-scroll {
        overflow: hidden;
    }

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

    .card, .doc-card {
        animation: fadeIn 0.6s ease-out forwards;
        opacity: 0;
    }

    .card:nth-child(2) { animation-delay: 0.1s; }
    .card:nth-child(3) { animation-delay: 0.2s; }
    .doc-card:nth-child(1) { animation-delay: 0.15s; }
    .doc-card:nth-child(2) { animation-delay: 0.25s; }
