/* =======================================================
   1. БАЗОВЫЕ СТИЛИ СТРАНИЦЫ
   ======================================================= */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #2d3748;
    background: #f0f4f8;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px; /* Скорректировано под новую высоту хэдера */
}

/* =======================================================
   2. ОБНОВЛЕННЫЙ ХЭДЕР (ДЕСКТОПНАЯ ВЕРСИЯ) - ПОЛНЫЙ КОД
   ======================================================= */
header {
    background: #fff;
    padding: 15px 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-sizing: border-box;
    width: 100%;
    height: auto; /* Фиксирует компактную высоту шапки без лишних отступов */
}

/* Левая часть: строки "МОДУЛЬНЫЕ" и "ПОНТОНЫ" выровнены по центру друг друга, блок слева */
.header-desc {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    color: #008b8b;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

/* Центральная часть: удерживает логотип строго по центру всего экрана */
.logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Обертка-ссылка внутри логотипа (снимает ограничения на ширину) */
.logo a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: auto !important;
    height: auto !important;
}

/* Картинка логотипа: теперь жестко увеличивается до 100px без сжатия по бокам */
.logo img, .header-logo img {
    height: 100px !important;      /* Ваша новая высота */
    max-height: 100px !important;  /* Защита от сжатия другими стилями */
    width: auto !important;        /* Разрешает ширине расти пропорционально высоте */
    vertical-align: middle;
}

/* Правая часть: Кнопка и Телефон строго друг под другом по правому краю */
.header-right {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 6px;
}

/* Кнопка «Заказать» */
.nav-catalog-link {
    color: #008b8b !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #008b8b;
    padding: 6px 22px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-block !important;
    text-align: center;
}

.nav-catalog-link:hover {
    background: #008b8b;
    color: #fff !important;
}

/* Номер телефона */
.phone-link {
    color: #008b8b !important; 
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.2s;
    display: inline-block !important;
}

.phone-link:hover {
    color: #0a3c3c !important;
}


/* =======================================================
   3. ГЛАВНЫЙ БАННЕР (HERO) И ПРЕИМУЩЕСТВА
   ======================================================= */
.hero { 
    background: linear-gradient(135deg, #0a3c3c 0%, #008080 50%, #00a896 100%) !important; 
    color: #ffffff !important; 
    padding: 75px 40px;
    text-align: center; 
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.05);
}

.hero h1 { 
    margin: 0 0 20px 0; 
    font-size: 38px; 
    font-weight: 700; 
    color: #ffffff !important; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hero p { 
    margin: 0 auto 35px auto; 
    font-size: 16px; 
    max-width: 850px; 
    color: #ffffff !important; 
    opacity: 0.95; 
    line-height: 1.7;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    max-width: 1100px;
    margin: 0 auto !important;
    padding: 0;
    list-style: none;
    justify-content: center;
}

.features li { 
    background: rgba(255, 255, 255, 0.12) !important; 
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 14px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: #ffffff !important; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    backdrop-filter: blur(5px);
    transition: transform 0.2s;
}

.features li:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.18) !important; 
}
/* =======================================================
   4. ИНФОРМАЦИОННЫЕ БЛОКИ И СПЕЦИФИКАЦИИ
   ======================================================= */
.info-section {
    background: #fff;
    border-radius: 14px;
    padding: 35px;
    margin-bottom: 45px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border: 1px solid #e2e8f0;
}

.section-title {
    font-size: 22px;
    color: #1a202c;
    margin-top: 0;
    margin-bottom: 30px;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 4px;
    height: 22px;
    background: #00a896;
    border-radius: 2px;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.use-card {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    transition: transform 0.2s;
}

.use-card:hover {
    transform: translateY(-3px);
    background: #edf2f7;
}

.use-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.use-card h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: #1a202c;
    font-weight: 700;
}

.use-card p {
    margin: 0;
    font-size: 12px;
    color: #4a5568;
    line-height: 1.5;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.spec-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.2s ease;
    padding: 10px 15px;
    margin: 0 -15px;
    border-radius: 10px;
    background: transparent;
}

.spec-item:hover {
    transform: translateY(-3px);
    background: #edf2f7 !important; 
}

.spec-num {
    font-size: 14px;
    font-weight: 800;
    color: #00a896;
    background: #e6fffa;
    padding: 8px 5px;
    border-radius: 8px;
    min-width: 85px;
    height: 65px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.2; 
    transition: all 0.2s ease;
}

.spec-item p {
    margin: 0;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.6;
}

.spec-item b {
    color: #1a202c;
    display: block;
    margin-bottom: 2px;
}

/* =======================================================
   5. КАТАЛОГ ПРОДУКЦИИ И ВКЛАДКИ
   ======================================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

h2 {
    text-align: center;
    font-size: 26px;
    color: #1a202c;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #00a896;
    margin: 12px auto 0 auto;
    border-radius: 2px;
}

.tabs-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: #fff;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 12px 28px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.01);
}

.tab-btn:hover {
    border-color: #00a896;
    color: #00a896;
}

.tab-btn.active {
    background: #00a896;
    border-color: #00a896;
    color: #fff;
    box-shadow: 0 6px 15px rgba(0,168,150,0.25);
}

.catalog-section {
    display: none;
}

.catalog-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,168,150,0.15);
    border-color: #00a896;
}

.product-img {
    max-width: 100%;
    height: 160px;
    object-fit: contain;
    margin-bottom: 18px;
    border-radius: 8px;
    background: #f7fafc;
}

.product-sku {
    font-size: 11px;
    color: #ed8936;
    margin-bottom: 6px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 12px 0;
    height: 44px;
    overflow: hidden;
    color: #1a202c;
    line-height: 1.4;
}

.product-desc {
    font-size: 12px;
    color: #718096;
    text-align: justify;
    margin-bottom: 22px;
    min-height: 55px; 
    line-height: 1.5;
    overflow: visible;
}

.product-price {
    font-size: 16px;
    font-weight: 800;
    text-align: center; 
    margin-bottom: 15px;
    margin-top: auto; 
    padding-top: 15px; 
}

.btn {
    background: #00a896;
    color: #fff;
    border: none;
    padding: 13px 15px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    display: block;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,168,150,0.15);
}

.btn:hover {
    background: #028074;
    box-shadow: 0 6px 14px rgba(2,128,116,0.25);
}
/* =======================================================
   6. МОДАЛЬНЫЕ ОКНА И ФОРМЫ
   ======================================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 60, 60, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-window {
    background: #fff;
    padding: 40px;
    border-radius: 14px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    transform: translateY(-30px);
    transition: all 0.3s ease;
    border-top: 6px solid #00a896;
}

.modal-overlay.active .modal-window {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #a0aec0;
}

.modal-close:hover {
    color: #2d3748;
}

.modal-window h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: #1a202c;
    font-weight: 700;
}

.modal-window p {
    margin: 0 0 25px 0;
    font-size: 13px;
    color: #718096;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #4a5568;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
    background: #f7fafc;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: #00a896;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,168,150,0.15);
}

.privacy-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
    text-align: left;
}

.privacy-group input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.privacy-group label {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
    font-weight: normal;
    text-transform: none;
}

.privacy-group label a {
    color: #00a896;
    text-decoration: underline;
}

.privacy-group label a:hover {
    text-decoration: none;
}

.input-error {
    border-color: #ff4d4d !important;
    background-color: #fffafb !important;
}

.input-error::placeholder {
    color: #cc0000 !important;
    font-weight: 600;
    font-size: 13px;
}

.input-error:-ms-input-placeholder { color: #cc0000 !important; }
.input-error::-webkit-input-placeholder { color: #cc0000 !important; }

/* =======================================================
   7. ОБНОВЛЕННЫЙ ПОДВАЛ (ФУТЕР) - ДЕСКТОПНАЯ ВЕРСИЯ
   ======================================================= */
.site-footer {
    background: #028074 !important; /* Глубокий бирюзовый цвет темной кнопки */
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 40px 20px;
    margin-top: 60px;
    font-size: 15px;
    text-align: center !important;
    width: 100%;
    box-sizing: border-box;
}

/* Принудительно глушим старые переключатели темы в коде для фона футера */
body[style*="0a3c3c"] .site-footer, 
.hero[style*="0a3c3c"] ~ .site-footer,
header:has(.logo[style*="008b8b"]) ~ .site-footer,
.tabs-container ~ .site-footer {
    background: #028074 !important; 
}

/* Контейнер жестко выстраивает три строки друг под другом ровно по центру */
.footer-centered-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px; /* Расстояние между строками */
}

.footer-row {
    width: 100%;
    text-align: center !important;
}

/* Оформление первой строки */
.footer-slogan {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 16px;
    color: #ffffff;
}

/* Оформление второй строки */
.footer-phone {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: opacity 0.2s ease;
    display: inline-block;
}

.footer-phone:hover {
    opacity: 0.8;
}

/* Оформление третьей строки */
.footer-copy {
    font-size: 13px;
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* --- Стили кнопки наверх (оставляем без изменений) --- */
.scroll-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99;
    background-color: #00a896;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 168, 150, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-top-btn.visible { opacity: 1; visibility: visible; }
.scroll-top-btn:hover { background-color: #028074; transform: scale(1.05); }


/* =======================================================
   8. АДАПТИВНАЯ МОБИЛЬНАЯ ВЕРСИЯ (ЭКРАНЫ ДО 768px) - ИСПРАВЛЕННАЯ
   ======================================================= */
@media screen and (max-width: 768px) {
    html {
        scroll-behavior: auto !important;
        scroll-padding-top: 0 !important;
    }

    /* Мобильный хэдер в один аккуратный столбец с анимацией высоты */
    header {
        position: sticky !important; 
        padding: 15px 15px !important;
        flex-direction: column !important;
        gap: 15px !important;
        text-align: center !important;
        height: auto !important;
        max-height: 500px;
        transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out, gap 0.3s ease-in-out !important;
        overflow: hidden; /* Отрезает лишнюю пустоту при сжатии */
    }
    
    /* Сбрасываем десктопные ограничения и центрируем все блоки */
    .header-desc, .logo, .header-right {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
        margin-right: 0 !important;
    }

    /* Добавляем мягкую плавность для растворения и схлопывания элементов */
    .logo, .header-desc {
        opacity: 1;
        transition: opacity 0.2s ease-in-out, max-height 0.2s ease-in-out, margin 0.2s ease-in-out, padding 0.2s ease-in-out !important;
    }

    /* СКРЫВАЕМ ПЕРЕНОС СТРОКИ: текст встает в одну линию на мобильном */
    .header-desc br {
        display: none !important;
    }

    /* Очередь элементов (order) сверху вниз */
    .logo { 
        order: 1 !important; 
        display: flex !important; 
    }
    
    .header-desc { 
        order: 2 !important; 
        font-size: 15px !important; 
        letter-spacing: 0 !important; 
        text-align: center !important;
    }
    
    .header-right {
        order: 3 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }

    /* Кнопка заказа */
    .nav-catalog-link {
        order: 1 !important;
        display: block !important;
        width: 85% !important;
        box-sizing: border-box !important;
        font-size: 14px !important;
        margin-top: 0 !important;
    }
    
    /* Телефон под кнопкой */
    .phone-link {
        order: 2 !important;
        display: block !important;
        font-size: 15px !important;
        margin-top: 0 !important;
    }
    
    /* Оптимальный размер картинки логотипа на смартфонах */
    .logo img, .header-logo img {
        height: 85px !important;
        max-height: 85px !important;
        width: auto !important;
    }

    /* =======================================================
       ЭФФЕКТ СКРОЛЛА: СХЛОПЫВАНИЕ ВЕРХА И КОМПАКТНАЯ ВЫСОТА
       ======================================================= */
    
    /* 1. Полностью физически убираем размер логотипа и слогана, чтобы они не занимали место */
    header.scrolled .logo,
    header.scrolled .header-desc {
        opacity: 0 !important;
        visibility: hidden !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 2. Плавно уменьшаем высоту белой плашки, убирая огромный пустой прямоугольник */
    header.scrolled {
        max-height: 120px !important; 
        padding-top: 12px !important;
        padding-bottom: 12px !important;
        gap: 0 !important; 
    }

    /* 3. Кнопка и телефон остаются аккуратно видны и центрируются */
    header.scrolled .header-right {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        gap: 6px !important;
        margin: 0 !important;
    }


    /* --- СТИЛИ ОСТАЛЬНОГО КОНТЕНТА СТРАНИЦЫ БЕЗ ИЗМЕНЕНИЙ --- */
    .hero { padding: 40px 15px !important; }
    .hero h1 { font-size: 25px !important; margin-bottom: 12px !important; line-height: 1.3 !important; }
    .hero p { font-size: 14px !important; margin-bottom: 25px !important; line-height: 1.6 !important; }
    .features { grid-template-columns: 1fr; gap: 10px; }
    .features li { padding: 10px; font-size: 13px; }
    .container { padding: 25px 15px; }
    h2 { font-size: 20px; margin-bottom: 25px; }
    .product-title { height: auto; }
    .product-desc { height: auto; }
    .info-section { padding: 20px 15px; }
    .specs-grid { grid-template-columns: 1fr; gap: 20px; }
    .spec-item { flex-direction: column; gap: 8px; }
    .spec-num { min-width: auto; width: 100%; text-align: left; padding: 5px 10px; }
    
    /* =======================================================
       ОБНОВЛЕННЫЙ МОБИЛЬНЫЙ ПОДВАЛ (ФУТЕР) С ЦЕНТРИРОВАНИЕМ
       ======================================================= */
    .site-footer { 
        padding: 30px 15px !important; 
        text-align: center !important; 
    }
    
    .footer-centered-container { 
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important; /* Делаем строки на телефонах чуть плотнее друг к другу */
    }
    
    .footer-slogan { 
        font-size: 14px !important; 
    }
    
    .footer-phone { 
        font-size: 16px !important; 
    }
    
    .footer-copy { 
        font-size: 12px !important; 
    }
    
    /* Сбрасываем старый неиспользуемый класс мобильного подвала */
    .footer-container { display: none !important; }
    
    /* Стили каталога (оставляем без изменений) */
    .catalog-section { display: none !important; }
    .catalog-section.active { display: block !important; opacity: 1 !important; visibility: visible !important; transform: none !important; }
    .catalog-grid { display: grid !important; grid-template-columns: 1fr !important; gap: 20px !important; width: 100% !important; }
    .catalog-section.active .catalog-grid { display: grid !important; opacity: 1 !important; visibility: visible !important; }
}





