/* Shared styles for header, footer, and common elements */

/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} */

/* body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #4a90e2 0%, #1e3c72 100%);
    min-height: 100vh;
} */

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header nav {
    background: transparent;
    padding: 12px 0;
}

header .flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

header .logo img {
    height: 32px;
    margin-right: 12px;
}

header .logo span {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

header .nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

header .nav-links a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: color 0.3s ease;
}

header .nav-links a:hover {
    color: #4a90e2;
}

header .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

header .mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e5e7eb;
}

header .mobile-menu.active {
    display: block;
}

header .mobile-menu ul {
    list-style: none;
    padding: 20px;
}

header .mobile-menu ul li {
    margin-bottom: 16px;
}

header .mobile-menu ul li a {
    display: block;
    padding: 12px 0;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
}

header .lang-flag {
    width: 32px;
    height: auto;
    margin-left: 16px;
}

@media (max-width: 768px) {
    header .nav-links {
        display: none;
    }
    
    header .mobile-menu-btn {
        display: block;
    }
}

/* Main Content Container */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        /* Article Layout */
        .article-content {
            margin-bottom: 60px;
        }

        .article-image {
            width: 300px;
            height: 200px;
            background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.1rem;
            font-weight: 500;
            text-align: center;
            padding: 20px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
            float: left;
            margin: 0 30px 20px 0;
        }

        /* Typography */
        .article-text {
            font-size: 1.1rem;
            line-height: 1.7;
            margin-bottom: 30px;
            color: #444;
        }

        .article-text p {
            margin-bottom: 20px;
        }

        .article-text h2 {
            font-size: 1.8rem;
            color: #2c3e50;
            margin: 35px 0 20px 0;
            font-weight: 600;
            border-left: 4px solid #667eea;
            padding-left: 16px;
        }

        .article-text h3 {
            font-size: 1.4rem;
            color: #34495e;
            margin: 25px 0 15px 0;
            font-weight: 500;
        }
		.my-custom-list {
			margin-left: 25px;
		}
		ul {
		/* Стили только для <ul> внутри <nav> */
			margin-left: 25px;
		}


        /* Related Articles Section */
        .related-section {
            border-top: 2px solid #ecf0f1;
            padding-top: 40px;
        }

        .related-title {
            font-size: 2rem;
            color: #2c3e50;
            margin-bottom: 30px;
            font-weight: 600;
        }

        .related-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
        }

        .related-item {
            background: white;
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
            border: 1px solid #ecf0f1;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .related-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.12);
        }

        .related-item h3 {
            font-size: 1.3rem;
            color: #667eea;
            margin: 0 0 10px 0;
            font-weight: 600;
        }

        .related-item a {
            color: #667eea;
            text-decoration: none;
        }

        .related-item a:hover {
            text-decoration: underline;
        }

        .related-description {
            color: #666;
            font-size: 0.95rem;
            line-height: 1.5;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2rem;
            }
            
            .hero-section {
                padding: 40px 20px;
            }

            .article-image {
                width: 300px;
                height: 200px;
                float: left;
                margin: 0 20px 20px 0;
            }

            .container {
                padding: 30px 15px;
            }

            .related-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 480px) {
            .hero-title {
                font-size: 1.7rem;
            }

            .article-text h2 {
                font-size: 1.5rem;
            }

            .related-title {
                font-size: 1.7rem;
            }
        }

/* Footer Styles */
footer {
    background-color: #f2f2f2;
    padding: 40px 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-column a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #374151;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #4f46e5;
}

.footer-column img {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    border-radius: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
}

.footer-copyright {
    color: #6b7280;
    font-size: 14px;
}

/* Common utility classes */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.font-medium {
    font-weight: 500;
}

.text-gray-900 {
    color: #111827;
}

.dark\:text-white {
    color: white;
}

/* Main content adjustment for fixed header */
main {
    margin-top: 80px;
    padding: 40px 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    main {
        margin-top: 70px;
        padding: 20px 15px;
    }
    
    .footer-content {
        gap: 40px;
    }
}
.dropdown-menu {
    display: none; /* Скрыто по умолчанию */
}

.dropdown-menu.is-open {
    display: block; /* Отображается, когда есть класс 'is-open' */
}