/* 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;
    }
}

/* 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' */
}