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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f5f5f5;
        }

        header {
            background: linear-gradient(135deg, #003366 0%, #004d99 100%);
            color: white;
            padding: 1.5rem 0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

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

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: bold;
            color: white;
            text-decoration: none;
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 2rem;
            flex-wrap: wrap;
        }

        nav a {
            color: white;
            text-decoration: none;
            transition: opacity 0.3s;
            font-size: 0.95rem;
        }

        nav a:hover {
            opacity: 0.8;
        }

        main {
            background: white;
            margin: 2rem auto;
            max-width: 1200px;
            border-radius: 8px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.08);
            overflow: hidden;
        }

        .hero-section {
            background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
            color: white;
            padding: 3rem 2rem;
            text-align: center;
        }

        h1 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            font-weight: 700;
            color: white;
        }

        article {
            padding: 3rem 2rem;
            background: white;
        }

        article h2 {
            color: #003366;
            font-size: 1.8rem;
            margin-top: 2rem;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 3px solid #007bff;
        }

        article h3 {
            color: #004d99;
            font-size: 1.4rem;
            margin-top: 1.5rem;
            margin-bottom: 0.8rem;
        }

        article h4 {
            color: #0056b3;
            font-size: 1.2rem;
            margin-top: 1.2rem;
            margin-bottom: 0.6rem;
        }

        article p {
            margin-bottom: 1.2rem;
            color: #444;
            font-size: 1.05rem;
        }

        .transition-section {
            padding: 2rem;
            background: #f8f9fa;
            border-left: 4px solid #007bff;
            margin: 2rem;
            border-radius: 4px;
        }

        .transition-section p {
            color: #555;
            font-size: 1.05rem;
            margin-bottom: 1rem;
        }

        {% if links %}
        .links-section {
            padding: 3rem 2rem;
            background: #ffffff;
            margin: 2rem;
            border-radius: 8px;
            border: 1px solid #e0e0e0;
        }

        .links-section h3 {
            color: #003366;
            font-size: 1.6rem;
            margin-bottom: 1.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #007bff;
        }

        .links-section ul {
            list-style: none;
            column-count: 2;
            column-gap: 2rem;
            margin-bottom: 2rem;
        }

        .links-section li {
            margin-bottom: 0.8rem;
            break-inside: avoid;
            page-break-inside: avoid;
        }

        .links-section a {
            color: #0056b3;
            text-decoration: none;
            transition: all 0.3s;
            display: inline-block;
            padding: 0.3rem 0;
            font-size: 1rem;
        }

        .links-section a:hover {
            color: #007bff;
            padding-left: 0.5rem;
        }

        .links-section a::before {
            content: "→ ";
            opacity: 0;
            transition: opacity 0.3s;
        }

        .links-section a:hover::before {
            opacity: 1;
        }
        {% endif %}

        footer {
            background: #003366;
            color: white;
            padding: 2rem 0;
            margin-top: 3rem;
        }

        .footer-content {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 2rem;
            margin-bottom: 1.5rem;
        }

        .footer-block {
            flex: 1;
            min-width: 200px;
        }

        .footer-block h4 {
            color: white;
            margin-bottom: 1rem;
            font-size: 1.1rem;
        }

        .footer-block ul {
            list-style: none;
        }

        .footer-block a {
            color: #ccc;
            text-decoration: none;
            display: block;
            margin-bottom: 0.5rem;
            transition: color 0.3s;
        }

        .footer-block a:hover {
            color: white;
        }

        .copyright {
            text-align: center;
            padding-top: 1.5rem;
            border-top: 1px solid #004d99;
            color: #ccc;
            font-size: 0.9rem;
        }

        @media (max-width: 768px) {
            h1 {
                font-size: 2rem;
            }

            nav ul {
                gap: 1rem;
                justify-content: center;
            }

            article {
                padding: 2rem 1.5rem;
            }

            article h2 {
                font-size: 1.5rem;
            }

            article h3 {
                font-size: 1.2rem;
            }

            .links-section ul {
                column-count: 1;
            }

            .hero-section {
                padding: 2rem 1.5rem;
            }

            .transition-section {
                margin: 1rem;
                padding: 1.5rem;
            }

            .links-section {
                margin: 1rem;
                padding: 2rem 1.5rem;
            }
        }

        @media (max-width: 480px) {
            h1 {
                font-size: 1.5rem;
            }

            .header-content {
                justify-content: center;
                text-align: center;
            }

            nav {
                width: 100%;
                margin-top: 1rem;
            }

            nav ul {
                flex-direction: column;
                gap: 0.5rem;
            }
        }
    