/* ==========================================
   1. БАЗОВІ СТИЛІ ТА ШАПКА ПО ЦЕНТРУ
   ========================================== */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif; }
html { scroll-behavior: smooth; }

/* Оновлена шапка: тільки логотип по центру */
.main-header {
    position: absolute; top: 0; left: 0; width: 100%; z-index: 10;
    display: flex; justify-content: center; align-items: center;
    padding: 30px 20px; background: transparent;
}
.logo { font-size: 28px; font-weight: bold; letter-spacing: 2px; text-align: center; color: #fff; }
.sub-logo { color: #ff3333; font-size: 18px; }

/* Вимикаємо старі елементи меню, якщо вони були в коді */
.main-header .menu, .main-header .phone { display: none !important; }

.hero-section {
    position: relative; height: 100vh; width: 100%;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; text-align: center; color: #fff;
}
.bg-video {
    position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%;
    width: auto; height: auto; z-index: 1; transform: translate(-50%, -50%);
    object-fit: cover;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.35); z-index: 2;
}
.hero-content { position: relative; z-index: 3; max-width: 800px; padding: 20px; }
.badge { background: #ff3333; padding: 5px 15px; border-radius: 20px; font-size: 14px; font-weight: bold; text-transform: uppercase; }
.hero-content h1 { font-size: 48px; margin: 20px 0; line-height: 1.2; }
.hero-content p { font-size: 18px; margin-bottom: 20px; opacity: 0.9; }

/* Новий блок та стиль кнопки телефону ПІД ТЕКСТОМ */
.hero-phone-block {
    margin-top: 30px; display: flex; justify-content: center; width: 100%;
}
.btn-hero-phone {
    display: inline-block !important; 
    background: transparent !important; /* Робимо прозорою */
    color: #fff !important;
    text-decoration: none !important; 
    font-weight: bold !important; 
    font-size: 18px !important;
    padding: 12px 30px !important; 
    border: 2px solid #fff !important; /* Біла рамка */
    border-radius: 5px !important;
    box-shadow: none !important; /* Прибираємо тінь */
    transition: 0.3s ease !important;
    white-space: nowrap !important;
}

/* Ефект при наведенні мишкою (кнопка заливається білим, текст стає чорним) */
.btn-hero-phone:hover {
    background: #fff !important;
    color: #000 !important;
    transform: translateY(-2px) !important;
}

/* ==========================================
   2. СТИЛІ КВІЗ-КАЛЬКУЛЯТОРА (QUIZ)
   ========================================== */
.quiz-section { padding: 80px 0; background: #f9f9f9; display: flex; justify-content: center; }
.container { width: 100%; max-width: 900px; padding: 0 20px; }
.quiz-header { text-align: center; margin-bottom: 40px; }
.quiz-header h2 { font-size: 32px; color: #222; margin-bottom: 10px; }
.quiz-header p { color: #666; font-size: 16px; }

.quiz-window { background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-step h3 { font-size: 22px; margin-bottom: 25px; color: #333; }

.quiz-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.option-card { border: 2px solid #e0e0e0; padding: 25px 20px; border-radius: 8px; cursor: pointer; text-align: center; transition: 0.3s; position: relative; }
.option-card input { position: absolute; opacity: 0; }
.option-card:hover { border-color: #ff3333; background: rgba(255,51,51,0.02); }
.option-card.selected { border-color: #ff3333; background: rgba(255,51,51,0.05); box-shadow: 0 5px 15px rgba(255,51,51,0.1); }
.option-title { font-weight: 600; color: #444; font-size: 16px; display: block; }

.quiz-navigation { display: flex; justify-content: space-between; border-top: 1px solid #eee; padding-top: 20px; margin-top: 20px; }
.quiz-btn { padding: 12px 30px; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; transition: 0.3s; background: #333; color: #fff; }
.quiz-btn:hover { background: #000; }
.quiz-btn.disabled { opacity: 0.3; pointer-events: none; }
#btn-next { background: #ff3333; }
#btn-next:hover { background: #cc0000; }

.quiz-form { display: flex; flex-direction: column; max-width: 400px; margin: 0 auto; gap: 15px; }
.quiz-input { padding: 15px; border: 2px solid #e0e0e0; border-radius: 5px; font-size: 16px; outline: none; transition: 0.3s; color: #333; }
.quiz-input:focus { border-color: #ff3333; }
.btn-submit { background: #ff3333; color: #fff; border: none; padding: 15px; font-size: 16px; border-radius: 5px; cursor: pointer; font-weight: bold; width: 100%; transition: 0.3s; }
.btn-submit:hover { background: #cc0000; }
.final-text { text-align: center; color: #555; margin-bottom: 25px; line-height: 1.5; }

/* ==========================================
   3. БЛОК ГОТОВИХ КОМПЛЕКТІВ (PACKAGES)
   ========================================== */
.packages-section { padding: 80px 0; background: #fff; display: flex; justify-content: center; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 32px; color: #222; margin-bottom: 12px; }
.section-header p { color: #666; font-size: 16px; }

.packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; width: 100%; }
.package-card { 
    background: #ffffff; border: 1px solid #eef0f2; border-radius: 12px; padding: 35px 25px; 
    position: relative; display: flex; flex-direction: column; justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02); transition: 0.3s;
}
.package-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.07); border-color: #ff3333; }

.package-badge { 
    position: absolute; top: 15px; right: 15px; background: #ff3333; color: #fff; 
    font-size: 11px; text-transform: uppercase; font-weight: bold; padding: 4px 10px; border-radius: 20px; 
}
.package-badge.industrial { background: #222; }

.package-card h3 { font-size: 22px; color: #111; margin-bottom: 15px; }
.package-desc { color: #666; font-size: 14px; line-height: 1.5; margin-bottom: 25px; min-height: 60px; }

.package-features { list-style: none; padding: 0; margin-bottom: 30px; }
.package-features li { font-size: 14px; color: #444; margin-bottom: 12px; position: relative; padding-left: 20px; text-align: left; }
.package-features li::before { content: "✓"; position: absolute; left: 0; color: #ff3333; font-weight: bold; }

.package-footer { margin-top: auto; }
.btn-package { 
    display: block; text-align: center; background: #222; color: #fff; text-decoration: none; 
    padding: 12px; font-weight: bold; border-radius: 6px; transition: 0.3s; font-size: 15px;
}
.package-card:hover .btn-package { background: #ff3333; }
.btn-package:hover { background: #cc0000 !important; }
/* ==========================================
   4. БЛОК КРОС-ПРОДАЖІВ (CROSS-SELL)
   ========================================== */
.cross-sell-section { padding: 80px 0; background: #f4f6f8; display: flex; justify-content: center; }
.cross-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; width: 100%; }
.cross-card { 
    background: #fff; border-radius: 12px; padding: 40px 30px; text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02); transition: 0.3s; display: flex; flex-direction: column; justify-content: space-between;
}
.cross-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.08); }
.cross-icon { font-size: 45px; margin-bottom: 20px; }
.cross-card h3 { font-size: 22px; color: #222; margin-bottom: 15px; }
.cross-card p { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 30px; }
.btn-cross { 
    display: inline-block; background: transparent; color: #ff3333; text-decoration: none; 
    padding: 12px 25px; font-weight: bold; border: 2px solid #ff3333; border-radius: 6px; transition: 0.3s; font-size: 14px;
}
.btn-cross:hover { background: #ff3333; color: #fff; }

/* ==========================================
   5. БЛОК МАПИ ТА ГАРАНТІЇ (MAP + WARRANTY)
   ========================================== */
.map-section { padding: 80px 0; background: #fff; display: flex; justify-content: center; }
.map-wrapper { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; width: 100%; margin-top: 30px; align-items: start; }
.map-container { box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-radius: 12px; overflow: hidden; border: 1px solid #eef0f2; }

/* ==========================================
   6. ПОВНА АДАПТИВНІСТЬ ДЛЯ ВСІХ ПРИСТРОЇВ
   ========================================== */
   
/* Глобальний фікс від білих смуг та горизонтального скролу */
html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
}

/* Адаптація першого екрану під мобільні та планшети */
@media (max-width: 1024px) {
    .main-header {
        padding: 20px 15px;
    }
    .logo {
        font-size: 24px !important;
    }
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 100px 20px 60px 20px;
    }
    .bg-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        transform: none !important;
        object-fit: cover !important;
    }
    .hero-content h1 {
        font-size: 32px !important;
        line-height: 1.3;
    }
    .hero-content p {
        font-size: 16px !important;
    }
    .btn-hero-phone {
        font-size: 16px !important;
        padding: 12px 25px !important;
    }
}

/* Налаштування квізу та мапи для смартфонів */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 26px !important;
    }
    .hero-content p {
        font-size: 14px !important;
    }
    .btn-hero-phone {
        width: 100%;
        text-align: center;
    }
    .quiz-window {
        padding: 20px !important;
    }
    .quiz-options {
        grid-template-columns: 1fr !important;
    }
    .map-wrapper {
        grid-template-columns: 1fr !important;
    }
}
/* Підключаємо сучасний шрифт Montserrat з Google Fonts */
@import url('https://googleapis.com');

/* Оновлюємо стиль головного заголовку */
.hero-content h1 {
    font-family: 'Montserrat', 'Segoe UI', sans-serif !important;
    font-weight: 700 !important; /* Робимо чітким, але не перевантаженим */
    letter-spacing: -0.5px !important; /* Трохи зближуємо літери для стилю */
    line-height: 1.25 !important; /* Додаємо повітря між рядками */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important; /* Тінь, щоб текст краще читався на фоні металевих труб */
}

/* Оптимізація заголовку для мобільних телефонів */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 24px !important; /* Оптимальний розмір для смартфонів */
        line-height: 1.3 !important;
        margin: 15px 0 !important;
    }
}
/* ПРИМУСОВИЙ ФІКС МЕНЮ ПІД ВІДЕО */
div.sub-hero-menu {
    background: #000000 !important; /* Чорне тло */
    padding: 15px 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-bottom: 1px solid #222 !important;
    position: relative !important;
    z-index: 5 !important;
}

div.sub-menu-container {
    width: 100% !important;
    max-width: 800px !important;
    display: flex !important;
    justify-content: space-around !important; /* Рівномірно розподіляє пункти */
    align-items: center !important;
}

div.sub-menu-container a {
    color: #888888 !important; /* Сірий шрифт */
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important; /* Великі літери */
    letter-spacing: 1px !important;
    transition: 0.3s ease !important;
}

div.sub-menu-container a:hover {
    color: #ffffff !important; /* Білий при наведенні */
}

/* Адаптивність для телефонів */
@media (max-width: 600px) {
    div.sub-menu-container {
        flex-direction: column !important; /* В стовпчик на мобільних */
        gap: 12px !important;
    }
}
/* ==========================================
   СТИЛІ ДЛЯ ВНУТРІШНІХ СТОРІНОК (ГАРАНТІЯ, КОНТАКТИ ТА ІН.)
   ========================================== */
.page-content {
    padding: 120px 20px 80px 20px; /* Врахували висоту шапки, щоб текст не залазив під логотип */
    background: #ffffff;
    min-height: 60vh;
    display: flex;
    justify-content: center;
}
.page-container {
    width: 100%;
    max-width: 900px;
    text-align: center;
}
.page-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    color: #222;
    margin-bottom: 15px;
}
.page-subtitle {
    color: #666;
    font-size: 18px;
    margin-bottom: 40px;
}
.warranty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}
.warranty-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid #ff3333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}
.warranty-card h3 {
    font-size: 20px;
    color: #111;
    margin-bottom: 15px;
}
.warranty-card p {
    color: #444;
    line-height: 1.6;
    font-size: 15px;
}
/* ФІКС ШАПКИ ТА ФУТЕРА ДЛЯ ВНУТРІШНІХ СТОРІНОК (WARRANTY, CATALOG І Т.Д.) */

/* Робимо шапку темною ТІЛЬКИ на внутрішніх сторінках, щоб було видно біле слово TEPLLO */
body:not(.home-page) .main-header {
    position: relative !important;
    background: #111111 !important; /* Темний солідний фон */
    padding: 20px !important;
}

/* Примусове вирівнювання та стилізація футера (підвалу) */
footer.main-footer {
    background: #111111 !important;
    color: #ffffff !important;
    padding: 40px 20px !important;
    margin-top: 80px !important;
    text-align: center !important;
    border-top: 3px solid #ff3333 !important;
    width: 100% !important;
    display: block !important;
    clear: both !important;
}

footer.main-footer .footer-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
}

footer.main-footer .footer-logo {
    font-size: 22px !important;
    font-weight: bold !important;
    margin-bottom: 20px !important;
    letter-spacing: 1px !important;
    color: #ffffff !important;
}

footer.main-footer .footer-menu {
    display: flex !important;
    justify-content: center !important;
    gap: 25px !important;
    margin-bottom: 25px !important;
    flex-wrap: wrap !important;
}

footer.main-footer .footer-menu a {
    color: #aaaaaa !important; /* Сірі акуратні посилання */
    text-decoration: none !important;
    font-size: 15px !important;
    transition: 0.3s !important;
}

footer.main-footer .footer-menu a:hover {
    color: #ff3333 !important; /* Червоніють при наведенні */
}

footer.main-footer .footer-copy {
    color: #555555 !important;
    font-size: 13px !important;
}
/* Стиль для картки з вермикулітом */
.warranty-card.highlight-card {
    grid-column: 1 / -1; /* Розтягує картку на всю ширину під двома першими */
    border-top: 4px solid #222222; /* Темна інженерна рамка для контрасту */
    background: #fffdfa; /* Легкий теплий відтінок фону */
}
.warranty-card.highlight-card b {
    color: #ff3333; /* Виділяємо слово Вермикуліт червоним */
}
/* ==========================================
   СТИЛІЗАЦІЯ ФОРМИ АКТИВАЦІЇ НА СТОРІНЦІ ГАРАНТІЇ
   ========================================== */
.activate-warranty-section {
    margin-top: 50px !important;
    padding: 40px 30px !important;
    background: #ffffff !important;
    border: 1px solid #eef0f2 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.activate-container {
    width: 100% !important;
    max-width: 500px !important; /* Форма стоятиме акуратним блоком по центру */
    text-align: center !important;
}

.activate-container h2 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 26px !important;
    color: #111111 !important;
    margin-bottom: 10px !important;
}

.activate-desc {
    color: #666666 !important;
    font-size: 15px !important;
    margin-bottom: 25px !important;
}

.activate-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

/* Красиві білі поля з рамкою як у квізі */
input.activate-input, textarea.activate-textarea {
    width: 100% !important;
    padding: 15px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    outline: none !important;
    background: #ffffff !important;
    color: #333333 !important;
    box-sizing: border-box !important;
    transition: 0.3s !important;
}

input.activate-input:focus, textarea.activate-textarea:focus {
    border-color: #ff3333 !important; /* Рамка червоніє при кліку */
}

textarea.activate-textarea {
    min-height: 110px !important;
    resize: vertical !important;
}

/* Яскрава червона кнопка відправки */
button.btn-activate-submit {
    background: #ff3333 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 16px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: 0.3s !important;
    width: 100% !important;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.2) !important;
}

button.btn-activate-submit:hover {
    background: #cc0000 !important;
    box-shadow: 0 6px 20px rgba(255, 51, 51, 0.4) !important;
}
/* ПРИМУСОВА СТИЛІЗАЦІЯ БЛОКУ СТАНДАРТІВ ВНИЗУ СТОРІНКИ */
.warranty-advantages {
    margin-top: 60px !important;
    padding-top: 40px !important;
    border-top: 1px solid #eef0f2 !important;
    text-align: left !important; /* Вирівнюємо текст по лівому краю для зручного читання */
    width: 100% !important;
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.warranty-advantages h2 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 24px !important;
    color: #111111 !important;
    margin-bottom: 35px !important;
    text-align: center !important; /* Заголовок залишаємо по центру */
    font-weight: 600 !important;
}

.adv-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important; /* Відступи між пунктами */
}

.adv-item {
    background: #ffffff !important;
    padding: 5px 0 !important;
}

.adv-item h4 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 18px !important;
    color: #222222 !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important; /* Відступ від емодзі до тексту */
}

.adv-item p {
    color: #555555 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    padding-left: 28px !important; /* Зміщуємо текст трохи вправо, щоб він був рівно під назвою, а не під іконкою */
}