/*
 Theme Name:   Betheme Child
 Theme URI:    https://ваш-сайт.com
 Description:  Дочерняя тема для Betheme
 Author:       Ваше Имя
 Template:     betheme
 Version:      2.0.0
*/

/* ==========================================================================
   MODERN HERO SECTION
   ========================================================================== */

.hero-section-modern {
    position: relative;
    min-height: 85vh;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 50%, #1e3a5f 100%);
    background-image: 
        url('https://mirstarterov.ru/wp-content/uploads/2024/05/1-1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.92) 0%, rgba(44, 82, 130, 0.85) 100%);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.3;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px, 100px 100px;
    animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge svg {
    color: #fbbf24;
}

/* Hero Title */
.hero-title-animated {
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero-title-line {
    display: block;
    font-size: 58px;
    font-weight: 800;
    color: #fff;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.hero-title-line:nth-child(2) {
    animation-delay: 0.1s;
}

.hero-title-accent {
    display: block;
    font-size: 58px;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    max-width: 580px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.3s;
    animation-fill-mode: both;
}

/* CTA Buttons */
.hero-cta-group {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 0.4s;
    animation-fill-mode: both;
}

.hero-button-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-button-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hero-button-primary:hover::before {
    left: 100%;
}

.hero-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
    color: #fff;
}

.hero-button-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.hero-button-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: #fff;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    animation: fadeInUp 0.8s ease-out 0.5s;
    animation-fill-mode: both;
}

.hero-stat-item {
    text-align: left;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #60a5fa;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Modern Advantage Cards */
.hero-advantages-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.advantage-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 30px 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInRight 0.8s ease-out;
    animation-fill-mode: both;
}

.advantage-card:nth-child(1) { animation-delay: 0.2s; }
.advantage-card:nth-child(2) { animation-delay: 0.3s; }
.advantage-card:nth-child(3) { animation-delay: 0.4s; }
.advantage-card:nth-child(4) { animation-delay: 0.5s; }

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.advantage-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.advantage-icon-wrapper {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.advantage-icon-wrapper svg {
    color: #fff;
}

.advantage-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.advantage-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   FEATURED BANNER SECTION
   ========================================================================== */

.featured-banner-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.featured-banner-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    background: #ffffff;
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.featured-banner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

.featured-banner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #3b82f6, #2563eb, #1e40af);
}

.featured-tag {
    display: inline-block;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.featured-content h2 {
    font-size: 40px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.2;
}

.featured-content p {
    font-size: 17px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 35px;
}

.featured-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.featured-button:hover {
    transform: translateX(5px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
    color: #fff;
}

.featured-image {
    position: relative;
}

.image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 0;
    animation: morphing 8s ease-in-out infinite;
}

@keyframes morphing {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

.featured-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   ABOUT SECTION MODERN
   ========================================================================== */

.about-section-modern {
    padding: 100px 0;
    background: #ffffff;
}

.section-header-centered {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px;
}

.section-subtitle {
    display: inline-block;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.section-title-large {
    font-size: 44px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-description {
    font-size: 18px;
    color: #64748b;
    line-height: 1.7;
}

.features-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card-modern {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card-modern:hover::before {
    transform: scaleX(1);
}

.feature-card-modern:hover {
    transform: translateY(-10px);
    border-color: #3b82f6;
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.15);
}

.feature-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1;
}

.feature-card-modern h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.feature-card-modern p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1200px) {
    .hero-content-wrapper {
        gap: 50px;
    }
    
    .hero-title-line,
    .hero-title-accent {
        font-size: 48px;
    }
    
    .features-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-section-modern {
        min-height: auto;
        padding: 80px 0 60px;
    }
    
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-main-content {
        order: 1;
    }
}
/* ==========================================================================
   FEATURED BANNER REFINEMENTS
   ========================================================================== */

/* 1. Меняем пропорции колонок: даем тексту больше места */
.featured-banner-card {
    grid-template-columns: 1.5fr 1fr; /* Текст теперь в 1.5 раза шире колонки с фото */
    align-items: flex-start; /* Выравниваем контент по верху для лучшей композиции */
}

/* 2. Делаем изображение меньше и добавляем эффект */
.featured-image img {
    max-width: 400px; /* Ограничиваем максимальную ширину фото */
    margin-left: auto; /* Прижимаем его к правому краю своей колонки */
    margin-right: 0;
    transition: all 0.4s ease;
}

/* 3. Добавляем изящности при наведении */
.featured-banner-card:hover .featured-image img {
    transform: scale(1.05) rotate(2deg); /* При наведении фото слегка увеличится и повернется */
}
/* ==========================================================================
   GLOBAL PAGE REFINEMENTS
   ========================================================================== */

/* Создаем эффект наложения секции баннера на Hero-блок */
.featured-banner-section {
    position: relative;
    z-index: 10;
    margin-top: -100px; /* Поднимаем секцию вверх */
    margin-bottom: 80px; /* Добавляем отступ снизу */
}

/* Улучшаем баланс и внешний вид самого баннера */
.featured-banner-card {
    grid-template-columns: 1.5fr 1fr; /* Текст получает больше места */
}

.featured-image img {
    max-width: 400px; /* Ограничиваем размер фото */
    margin-left: auto; /* Двигаем фото вправо */
}
/* ==========================================================================
   DETAILED INFO (ACCORDION) SECTION
   ========================================================================== */

.detailed-info-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.info-accordion {
    max-width: 800px;
    margin: 0 auto;
    border-top: 2px solid #e2e8f0;
}

.accordion-item {
    border-bottom: 2px solid #e2e8f0;
}

.accordion-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 25px 0;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    transition: color 0.3s ease;
}

.accordion-trigger:hover {
    color: #3b82f6;
}

.trigger-icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-left: 20px;
}

.trigger-icon::before,
.trigger-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 3px;
    background-color: #94a3b8;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.accordion-trigger:hover .trigger-icon::before,
.accordion-trigger:hover .trigger-icon::after {
    background-color: #3b82f6;
}

.trigger-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-item.active .trigger-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}
.accordion-item.active .accordion-trigger {
    color: #3b82f6;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.accordion-content .content-inner {
    padding: 0 0 30px;
    font-size: 16px;
    line-height: 1.8;
    color: #64748b;
}

.accordion-content .content-inner ul {
    list-style-position: outside;
    padding-left: 20px;
    margin-top: 20px;
}
/* ==========================================================================
   ACCORDION REFINEMENTS
   ========================================================================== */

/* Убираем рамки у аккордеона для более чистого вида */
.info-accordion, .accordion-item {
    border: none;
}

/* Добавляем небольшой отступ между кнопками */
.accordion-item {
    margin-bottom: 10px;
}
/* ==========================================================================
   MOBILE OPTIMIZATION (Адаптация для мобильных)
   ========================================================================== */

/* Применяем стили для экранов шириной 768px и меньше */
@media (max-width: 768px) {

    /* --- HERO SECTION (Главный экран) --- */

    .hero-section-modern {
        min-height: auto; /* Убираем минимальную высоту, чтобы блок занимал меньше места */
        padding: 60px 0; /* Уменьшаем вертикальные отступы */
    }

    /* Уменьшаем гигантский заголовок */
    .hero-title-line,
    .hero-title-accent {
        font-size: 38px; /* Значительно уменьшаем размер шрифта */
        line-height: 1.2;
    }

    /* Уменьшаем текст описания */
    .hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* Делаем кнопки компактнее */
    .hero-cta-group {
        flex-direction: column; /* Ставим кнопки друг под друга */
        align-items: center; /* Центрируем их */
        gap: 15px;
        margin-bottom: 40px;
    }

    /* --- СТАТИСТИКА (10000+ клиентов и т.д.) --- */
    
    .hero-stats {
        grid-template-columns: 1fr; /* Ставим все три пункта в одну колонку */
        gap: 20px;
        text-align: center; /* Выравниваем по центру */
    }

    .hero-stat-item {
        text-align: center;
    }

    /* --- КАРТОЧКИ ПРЕИМУЩЕСТВ (Доставка, Сервис и т.д.) --- */

    .hero-advantages-modern {
        grid-template-columns: 1fr; /* На мобильных тоже ставим в одну колонку */
    }

    /* --- БАННЕР С ПРОДУКЦИЕЙ --- */
    
    .featured-banner-card {
        padding: 30px; /* Уменьшаем внутренние отступы на баннере */
        grid-template-columns: 1fr; /* Ставим картинку и текст друг под друга */
    }

    .featured-content h2 {
        font-size: 30px; /* Уменьшаем заголовок на баннере */
    }

    .featured-image {
        order: -1; /* Ставим картинку НАД текстом */
        margin-bottom: 30px;
    }

    /* --- СЕКЦИЯ "О НАС" (с цифрами 01, 02...) --- */

    .features-grid-modern {
        grid-template-columns: 1fr; /* Тоже в одну колонку */
    }
}
/* ==========================================================================
   HERO CATEGORY BUTTONS
   ========================================================================== */

.hero-category-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.category-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    text-align: center;
    
    transition: all 0.3s ease;
}

.category-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    color: #fff;
}

.category-button svg {
    flex-shrink: 0;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .hero-category-buttons {
        grid-template-columns: 1fr; /* Ставим кнопки в одну колонку */
        gap: 15px;
    }
}
/* ==========================================================================
   ФИНАЛЬНЫЕ ПРАВКИ ДИЗАЙНА (КНОПКИ И ОТСТУПЫ)
   ========================================================================== */

/* 1. ВОССТАНАВЛИВАЕМ СТИЛЬ КНОПОК КАТЕГОРИЙ (БЕЗ ИКОНОК) */

.hero-category-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px; /* Немного уменьшим расстояние между кнопками */
    margin-top: 30px;
}

.category-button {
    display: block; /* Убедимся, что кнопка является блочным элементом */
    padding: 16px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.category-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    color: #fff;
}

/* На всякий случай скрываем SVG, если он где-то остался в HTML */
.category-button svg {
    display: none;
}


/* 2. УМЕНЬШАЕМ ВЕРТИКАЛЬНЫЕ РАССТОЯНИЯ МЕЖДУ ВСЕМИ БЛОКАМИ */

/* Уменьшаем нижний отступ у Hero-секции */
.hero-section-modern {
    padding-bottom: 120px; /* Было больше из-за наложения */
}

/* Поднимаем баннер и уменьшаем его нижний отступ */
.featured-banner-section {
    position: relative;
    z-index: 10;
    margin-top: -80px; /* Поднимаем вверх, но чуть меньше */
    margin-bottom: 40px; /* Уменьшаем отступ снизу */
}

/* Уменьшаем отступы у остальных секций */
.about-section-modern,
.detailed-info-section {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Адаптивность для мобильных устройств остается без изменений, но на всякий случай */
@media (max-width: 768px) {
    .hero-category-buttons {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
/* ==========================================================================
   CUSTOM HEADER STYLES
   ========================================================================== */

/* Общие стили для новой шапки */
#Custom_Header {
    background-color: #0d1f33; /* Темно-синий фон */
    color: #ffffff;
}

#Custom_Header a {
    color: #ffffff;
    text-decoration: none;
}

#Custom_Header .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Верхняя панель (Top Bar) --- */
.custom-top-bar {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-top-bar .logo img {
    max-height: 50px; /* Отрегулируйте высоту логотипа */
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-item i {
    font-size: 24px;
    color: #3b82f6; /* Синий цвет иконок */
}

.info-item span {
    font-size: 13px;
    color: #a0aec0;
    display: block;
}

.info-item strong {
    font-size: 14px;
    font-weight: 600;
}

.messengers a {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 5px;
    background-size: cover;
}
.messengers .wa { background-image: url('https://mirstarterov.ru/wp-content/uploads/2022/06/whatsapp-1-1.svg'); }
.messengers .vi { background-image: url('https://mirstarterov.ru/wp-content/uploads/2022/06/viber-1-1.svg'); }

/* --- Основная навигация и поиск --- */
.custom-main-nav {
    background-color: #1a2c42; /* Чуть светлее фон */
}

.custom-main-nav .container {
    min-height: 60px;
}

#custom-menu ul {
    display: flex;
    gap: 35px;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#custom-menu ul li a {
    display: block;
    padding: 20px 0;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

#custom-menu ul li.current-menu-item a,
#custom-menu ul li a:hover {
    color: #60a5fa;
    border-bottom-color: #60a5fa;
}

.search-wrapper {
    width: 300px;
}

.search-wrapper form {
    display: flex;
    width: 100%;
}

.search-wrapper input[type="search"] {
    width: 100%;
    border: 1px solid #4a5568;
    background-color: #2d3748;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px 0 0 5px;
}

.search-wrapper input[type="submit"] {
    background-color: #3b82f6;
    border: none;
    padding: 0 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

/* Адаптивность (базовая, для мобильного меню потребуется отдельный шаг) */
@media (max-width: 1200px) {
    .contact-info {
        display: none; /* Скрываем детальную информацию на маленьких экранах */
    }
}

@media (max-width: 992px) {
    #custom-menu {
        display: none; /* Скрываем основное меню */
    }
    .custom-main-nav .container {
        justify-content: flex-end; /* Двигаем поиск вправо */
    }
}
/* Мобильная шапка не должна быть пустой */
@media (max-width: 1200px) {
  /* вместо полного скрытия показываем компактный ряд */
  .contact-info { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
}

@media (max-width: 992px) {
  /* показываем меню как off-canvas/dropdown */
  #custom-menu { display: block; position: absolute; left: 0; right: 0; top: 60px;
                 background: #1a2c42; padding: 10px 20px; max-height: 0; overflow: hidden;
                 transition: max-height .25s ease; }
  #custom-menu.is-open { max-height: 420px; } /* простая анимация открытия */

  .hamburger-toggle { display: inline-block; font-size: 22px; color: #fff; margin-right: auto; }
  .custom-main-nav .container { position: relative; justify-content: flex-start; gap: 16px; }
}
/* DEBUG: принудительно показываем шапку поверх геро-секции */
#Custom_Header { position: relative; z-index: 9999; }
#custom-menu { display: block !important; visibility: visible !important; opacity: 1 !important; }

/* если на ширине <992px меню было скрыто — включаем */
@media (max-width: 992px){
  #custom-menu { display: block !important; }
}
