/* ===== header-footer.css ===== */
/* Отдельные стили для хидера и футера */

/* ===== ИМПОРТЫ ===== */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap");



/* Группировка подменю в мобильной версии */
.mobile-submenu-group {
    margin-bottom: 16px;
}

.mobile-submenu-group:last-child {
    margin-bottom: 0;
}

.mobile-submenu-title {
    font-weight: 600;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-left: 8px;
    border-left: 2px solid #0056b3;
}

.mobile-sub-link {
    display: block;
    padding: 8px 0 8px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.mobile-sub-link:hover {
    color: #0056b3;
    background-color: #f5f5f5;
    padding-left: 20px;
}




html, body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.header {
    width: 100%;
    max-width: 100%;
}

/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    /* Header variables */
    --header-bg: #ffffff;
    --header-text: #1E293B;
    --header-text-light: #64748B;
    --header-accent: #3B82F6;
    --header-accent-hover: #2563EB;
    --header-border: #E2E8F0;
    --header-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --header-dropdown-bg: #ffffff;
    --header-overlay: rgba(0, 0, 0, 0.5);
    
    /* Footer variables */
    --footer-bg: #0B1120;
    --footer-bg-light: #1A1F30;
    --footer-text: #94A3B8;
    --footer-text-light: #CBD5E1;
    --footer-heading: #F1F5F9;
    --footer-accent: #3B82F6;
    --footer-accent-hover: #2563EB;
    --footer-border: #2D3748;
    --footer-spacing: 1.5rem;
}

/* ===== ОБЩИЕ СТИЛИ ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
}

/* ===== ХИДЕР ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--header-bg);
    box-shadow: var(--header-shadow);
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    align-items: center;
    height: 105px;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 1px solid rgba(44, 45, 42, 0.25);
    left: 0;
}

@media (max-width: 1024px) {
    .header {
        height: 95px;
    }
}

@media (max-width: 768px) {
    .header {
        height: 85px;
    }
}

@media (max-width: 575px) {
    .header {
        width: 100%;
        margin-left: -10px;
        height: 75px;
    }
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

@media (max-width: 1024px) {
    .header-container {
        padding: 0 20px;
    }
}

@media (max-width: 640px) {
    .header-container {
        padding: 0 15px;
    }
}

/* Верхняя полоса хидера */
.header-top-bar {
    background-color: #F8FAFC;
    border-bottom: 1px solid var(--header-border);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.top-bar-contacts {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar-link {
    color: var(--header-text-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.top-bar-link:hover {
    color: var(--header-accent);
}

.top-bar-icon {
    font-size: 1rem;
}

.language-selector {
    display: flex;
    gap: 5px;
    border-left: 1px solid var(--header-border);
    padding-left: 15px;
}

.language-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    color: var(--header-text-light);
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.language-btn.active {
    background-color: var(--header-accent);
    color: white;
}

/* Основной хидер */
.header-main {
    padding: 0;
    background-color: var(--header-bg);
    width: 100%;
    transition: all 0.3s ease;
}

.header-main .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

@media (max-width: 1024px) {
    .header-main .header-container {
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .header-main .header-container {
        gap: 10px;
    }
}

/* Логотип */
.header-logo {

        margin-top: 10px;
    flex-shrink: 0;
    margin-right: 20px;
}

.logo-link {
    display: block;
}

.logo-image {
position: relative; left: -30px;
    height: 100px;
    width: auto;
    transition: height 0.3s ease;
}

@media (max-width: 1024px) {
    .logo-image {
        height: 75px;
    }
}

@media (max-width: 768px) {
    .logo-image {
        height: 75px;
    }
}

@media (max-width: 640px) {
    .logo-image {
        height: 65px;
    }
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--header-text);
    text-decoration: none;
}

/* Навигация */
.header-nav {

        margin-top: 10px;
    flex: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    justify-content: flex-end;
}

@media (min-width: 1200px) {
    .nav-menu {
        gap: 12px;
    }
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 18px;
    color: var(--header-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .nav-link {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
}

.nav-link:hover {
    background-color: #F1F5F9;
    color: var(--header-accent);
}

.dropdown-arrow {
    transition: transform 0.2s;
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Дропдаун (обычный) */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: var(--header-dropdown-bg);
    border-radius: 12px;
    box-shadow: var(--header-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1001;
    border: 1px solid var(--header-border);
    padding: 20px;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.dropdown-section-title {
    font-weight: 600;
    color: var(--header-text);
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dropdown-link {
    display: block;
    padding: 6px 0;
    color: var(--header-text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.dropdown-link:hover {
    color: var(--header-accent);
}

.dropdown-list {
    min-width: 240px;
}

.dropdown-list-link {
    display: block;
    padding: 8px 12px;
    color: var(--header-text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-radius: 6px;
}

.dropdown-list-link:hover {
    background-color: #F1F5F9;
    color: var(--header-accent);
    padding-left: 16px;
}

/* Мега-меню */
.megamenu-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 1000px;
    max-width: 90vw;
    background: var(--header-dropdown-bg);
    border-radius: 12px;
    box-shadow: var(--header-shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1001;
    border: 1px solid var(--header-border);
    padding: 30px;
}

.nav-item:hover .megamenu-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.megamenu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.megamenu-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.megamenu-category {
    display: flex;
    flex-direction: column;
}

.megamenu-category-title {
    display: block;
    font-weight: 600;
    color: var(--header-text);
    margin-bottom: 10px;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
}

.megamenu-category-title:hover {
    color: var(--header-accent);
}

.megamenu-link {
    display: block;
    padding: 5px 0;
    color: var(--header-text-light);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.megamenu-link:hover {
    color: var(--header-accent);
}

.megamenu-featured {
    grid-column: span 1;
}

.featured-card {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    padding: 20px;
    border-radius: 10px;
    height: 100%;
}

.featured-title {
    font-weight: 700;
    color: var(--header-accent);
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-text {
    color: var(--header-text);
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.featured-link {
    color: var(--header-accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.featured-link:hover {
    color: var(--header-accent-hover);
}

/* Действия в хидере */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .header-actions {
        gap: 8px;
    }
}

.header-action-btn {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: var(--header-text);
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1024px) {
    .header-action-btn {
        padding: 8px;
    }
}

.header-action-btn:hover {
    background-color: #F1F5F9;
    color: var(--header-accent);
}

.mobile-menu-toggle {
    display: none;
}

/* Поисковый оверлей */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    position: relative;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.2rem;
    border: 2px solid var(--header-border);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: var(--header-accent);
}

.search-submit {
    padding: 0 30px;
    background: var(--header-accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-submit:hover {
    background: var(--header-accent-hover);
}

.search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--header-text-light);
    transition: color 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close:hover {
    color: var(--header-accent);
}

.search-suggestions {
    text-align: center;
}

.suggestions-title {
    color: var(--header-text-light);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.suggestions-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.suggestion-tag {
    padding: 8px 16px;
    background: #F1F5F9;
    color: var(--header-text);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.suggestion-tag:hover {
    background: var(--header-accent);
    color: white;
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--header-bg);
    z-index: 2001;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: var(--header-shadow);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--header-border);
}

.mobile-logo img {
    height: 55px;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--header-text);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-menu-close:hover {
    background-color: #F1F5F9;
}

.mobile-menu-content {
    padding: 20px;
}

.mobile-nav-item {
    border-bottom: 1px solid var(--header-border);
}

.mobile-nav-toggle {
    width: 100%;
    padding: 15px 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: var(--header-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.2s;
}

.mobile-nav-toggle:hover {
    color: var(--header-accent);
}

.mobile-arrow {
    transition: transform 0.3s;
}

.mobile-nav-toggle.active .mobile-arrow {
    transform: rotate(180deg);
}

.mobile-nav-submenu {
    display: none;
    padding: 0 0 15px 15px;
}

.mobile-nav-submenu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-sub-link {
    display: block;
    padding: 8px 0;
    color: var(--header-text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s, padding-left 0.2s;
}

.mobile-sub-link:hover {
    color: var(--header-accent);
    padding-left: 5px;
}

.mobile-nav-simple {
    display: block;
    padding: 15px 0;
    color: var(--header-text);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--header-border);
    transition: color 0.2s, padding-left 0.2s;
}

.mobile-nav-simple:hover {
    color: var(--header-accent);
    padding-left: 5px;
}

.mobile-contacts {
    margin-top: 30px;
    padding: 20px;
    background: #F8FAFC;
    border-radius: 12px;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--header-text-light);
    font-size: 0.9rem;
}

.mobile-contact-item:last-child {
    margin-bottom: 0;
}

.mobile-contact-item a {
    color: var(--header-text);
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-contact-item a:hover {
    color: var(--header-accent);
}

.mobile-contact-icon {
    font-size: 1rem;
    min-width: 20px;
}

.mobile-social {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.mobile-social-link {
    color: var(--header-text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.mobile-social-link:hover {
    color: var(--header-accent);
}

/* Оверлей */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--header-overlay);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sticky-эффект при скролле */
.header.scrolled .header-main {
    padding: 0;
}

.header.scrolled .logo-image {
    height: 90px;
}

@media (max-width: 1024px) {
    .header.scrolled .logo-image {
        height: 55px;
    }
}

@media (max-width: 768px) {
    .header.scrolled .logo-image {
        height: 50px;
    }
}

@media (max-width: 640px) {
    .header.scrolled .logo-image {
        height: 42px;
    }
}

/* Адаптивность хидера */
@media (max-width: 1024px) {
    .header-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
    
    .top-bar-contacts {
        justify-content: center;
    }
    
    .top-bar-actions {
        justify-content: center;
    }
    
    .language-selector {
        border-left: none;
        padding-left: 0;
    }
}

@media (max-width: 640px) {
    .top-bar-contacts {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== ФУТЕР ===== */
#footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    border-top: 1px solid var(--footer-border);
    margin-top: 50px;
    width: 100%;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

@media (max-width: 1024px) {
    .footer-container {
        padding: 0 20px;
    }
}

@media (max-width: 640px) {
    .footer-container {
        padding: 0 15px;
    }
}

/* Верхняя часть футера */
.footer-main {
    padding: 4rem 0 2rem 0;
}

/* Бренд-блок */
.footer-brand-block {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--footer-border);
}

.footer-logo {
    margin-bottom: 1.25rem;
}

.footer-logo .logo-image {
    height: 85px;
    width: auto;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}

.company-tagline {
    font-size: 1rem;
    max-width: 600px;
    margin-bottom: 1.5rem;
    color: var(--footer-text-light);
    line-height: 1.6;
}

.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cert-badge {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--footer-accent);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Сетка навигации */
.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 1024px) {
    .footer-nav-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .footer-nav-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Колонки */
.footer-col-title {
    color: var(--footer-heading);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-link {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    position: relative;
    width: fit-content;
}

.footer-link:hover {
    color: white;
    transform: translateX(4px);
}

.footer-link.highlight {
    color: var(--footer-accent);
    font-weight: 500;
}

.footer-link.highlight:hover {
    color: var(--footer-accent-hover);
}

/* Контактная информация */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.contact-icon {
    font-size: 1.1rem;
    min-width: 1.5rem;
}

.contact-item a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: white;
}

/* Социальные сети */
.footer-social {
    margin-top: 1.5rem;
}

.social-title {
    color: var(--footer-heading);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--footer-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--footer-text-light);
    font-size: 0.9rem;
}

.social-icon:hover {
    background-color: var(--footer-accent);
    color: white;
    transform: translateY(-2px);
}

/* Блок быстрых действий */
.footer-quick-actions {
    background: var(--footer-bg-light);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.quick-actions-title {
    color: var(--footer-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}

.quick-action-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--footer-border);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--footer-text-light);
    transition: all 0.2s;
}

.quick-action-card:hover {
    background: var(--footer-accent);
    border-color: var(--footer-accent);
    color: white;
    transform: translateY(-2px);
}

.quick-icon {
    font-size: 1.25rem;
}

.quick-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Форма подписки */
.footer-subscribe {
    background: linear-gradient(135deg, var(--footer-bg-light) 0%, var(--footer-bg) 100%);
    border: 1px solid var(--footer-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.subscribe-title {
    color: var(--footer-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.subscribe-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto 1rem auto;
    gap: 0.5rem;
}

@media (max-width: 640px) {
    .subscribe-form {
        flex-direction: column;
    }
}

.subscribe-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--footer-border);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.subscribe-input::placeholder {
    color: var(--footer-text);
}

.subscribe-input:focus {
    outline: none;
    border-color: var(--footer-accent);
}

.subscribe-button {
    padding: 0.75rem 2rem;
    background: var(--footer-accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.subscribe-button:hover {
    background: var(--footer-accent-hover);
}

.subscribe-note {
    font-size: 0.8rem;
    color: var(--footer-text);
}

.subscribe-note a {
    color: var(--footer-text-light);
    text-decoration: underline;
    transition: color 0.2s;
}

.subscribe-note a:hover {
    color: white;
}

/* Нижняя часть футера */
.footer-bottom {
    background: var(--footer-bg-light);
    padding: 1.5rem 0;
    border-top: 1px solid var(--footer-border);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--footer-text);
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.legal-link {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.legal-link:hover {
    color: white;
}

/* Аккордеон для мобильных */
@media (max-width: 640px) {
    .footer-col {
        border-bottom: 1px solid var(--footer-border);
    }
    
    .footer-col-title {
        margin-bottom: 0;
        padding: 1rem 0;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .accordion-icon {
        transition: transform 0.3s;
        font-size: 0.8rem;
    }
    
    .accordion-trigger.active .accordion-icon {
        transform: rotate(180deg);
    }
    
    .footer-links, .footer-contact-info {
        display: none;
        padding: 0.5rem 0 1rem 0.5rem;
    }
    
    .footer-links.active, .footer-contact-info.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }
}

/* Анимации */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Утилиты */
#current-year {
    display: inline;
}

/* Ховер-эффекты для десктопа */
@media (min-width: 1025px) {
    .dropdown-menu,
    .megamenu-menu {
        pointer-events: none;
    }
    
    .nav-item:hover .dropdown-menu,
    .nav-item:hover .megamenu-menu {
        pointer-events: auto;
    }
}

/* Печать */
@media print {
    .header,
    #footer {
        display: none;
    }
}


@media (max-width: 768px) {
    .top-bar-content{
        display:none;
    }
}


/* Для варианта 2 и 3 */
.top-bar-phone-row,
.top-bar-phone-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.top-bar-phone-row .top-bar-link,
.top-bar-phone-block .top-bar-link {
    margin-bottom: 0;
}

/* Адаптив для мобильных */
@media (max-width: 640px) {
    .top-bar-phone-row,
    .top-bar-phone-block {
        align-items: center;
    }
}


/* Контейнер с двумя колонками */
.top-bar-contacts {
    margin-top: 15px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Левый столбец - телефон и почта вертикально */
.contacts-left {
    
    font-weight: 700;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Правый столбец - геопозиция и расписание */
.contacts-right {
    display: flex;
    flex-direction: column;
}

/* Стили для расписания */
.top-bar-schedule {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.schedule-header {
    margin-bottom: 3px;
}

.schedule-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.schedule-line {
    font-size: 0.85rem;
    color: var(--header-text-light);
    white-space: nowrap;
}

.top-bar-link {
    text-decoration: none;
    color: black;
    transition: color 0.2s;
    display: block;
}

.top-bar-link:hover {
    color: var(--header-accent);
}

.top-bar-icon {
    font-size: 1rem;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .top-bar-contacts {
        flex-direction: column;
        gap: 15px;
    }
    
    .contacts-left {
        align-items: center;
    }
    
    .contacts-right {
        align-items: center;
    }
    
    .schedule-line {
        white-space: normal;
        text-align: center;
    }
}

/* Добавьте этот медиа-запрос в конец header.css */
@media (max-width: 575px) {
    .header-container {
        padding: 0 15px;
        width: 100%;
        overflow-x: hidden;
    }
    
    .header-main .header-container {
        gap: 5px;
    }
}


/* Добавьте в ваш основной CSS файл */
/* ===== SEO БЛОК В СТИЛЕ ФУТЕРА ===== */
.footer-seo-block {
    margin: 2rem 0 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--footer-border);
}

.footer-seo-title {
    color: var(--footer-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    text-align: center;
}

.footer-seo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
    .footer-seo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .footer-seo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .footer-seo-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.footer-seo-group {
    /* Полностью повторяет стиль footer-col */
}

.footer-seo-group .seo-group-title {
    color: var(--footer-heading);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    /* Без uppercase, как в footer-col-title */
}

.seo-keywords-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.seo-keywords-list li {
    margin: 0;
}

.seo-keywords-list a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: inline-block;
}

.seo-keywords-list a:hover {
    color: white;
    transform: translateX(4px);
}

/* Длинные хвосты (коммерческие запросы) */
.footer-longtail {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--footer-border);
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.8;
    color: var(--footer-text);
}

.footer-longtail strong {
    color: var(--footer-heading);
    font-weight: 600;
    margin-right: 0.5rem;
}

.footer-longtail a {
    color: var(--footer-text);
    text-decoration: none;
    margin: 0 0.25rem;
    transition: color 0.2s;
}

.footer-longtail a:hover {
    color: var(--footer-accent);
}

/* Адаптация для мобильных */
@media (max-width: 640px) {
    .footer-seo-block {
        margin: 1.5rem 0 1rem;
        padding-top: 1.5rem;
    }
    
    .footer-seo-title {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .footer-longtail {
        font-size: 0.75rem;
        line-height: 1.6;
    }
    
    .footer-longtail a {
        display: inline-block;
        margin: 0.2rem 0.25rem;
    }
}



/* ===== ИСПРАВЛЕНИЕ ДРОПДАУНОВ ===== */

/* Убираем overflow:hidden у хедера и его родителей */
.header {
    overflow: visible !important;
}

.header-main {
    overflow: visible !important;
}

.header-container {
    overflow: visible !important;
}

.header-nav {
    overflow: visible !important;
}

.nav-item {
    overflow: visible !important;
}

/* Убираем overflow у body и html которые могли установить */
html {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* Дропдауны должны быть поверх всего */
.dropdown-menu,
.megamenu-menu {
    overflow: visible !important;
    z-index: 10000 !important;
}

/* Мега-меню не должно обрезаться */
.megamenu-menu {
    position: absolute;
    top: 100%;
    left: auto;
    right: 0;
    transform: translateY(10px);
    width: 800px;
    max-width: 90vw;
}

.nav-item.megamenu:hover .megamenu-menu {
    transform: translateY(0);
}

/* Для обычных дропдаунов */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10001;
}


/* ===== УЖЕ МЕНЮ ===== */
.nav-link {
    padding: 10px 10px !important;
    font-size: 0.85rem !important;
}

@media (min-width: 1200px) {
    .nav-link {
        padding: 12px 14px !important;
        font-size: 0.9rem !important;
    }
}

.nav-menu {
    gap: 2px !important;
}