/* ==========================================
   БАЗОВЫЕ СТИЛИ И ПЕРЕМЕННЫЕ (PREMIUM INDUSTRIAL)
========================================== */
:root {
    --dark: #181A1B;         /* Глубокий графит (вместо синего) */
    --primary: #181A1B;      /* Основной акцентный цвет текста и иконок */
    --brand-yellow: #EAB308; /* Промышленный желтый (Caterpillar) */
    --bg-light: #F4F5F6;     /* Цвет светлого бетона */
    --text-main: #181A1B;
    --text-muted: #6B7280;
    --border-color: #E5E7EB; /* Тонкие строгие линии */
    --radius: 4px;           /* Строгая геометрия, минимальное скругление */
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-main);
    background: #ffffff;
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================
   ШАПКА САЙТА (TOP NAV)
========================================== */

.top-nav {
    background: var(--dark);
    color: #ffffff;
    padding: 12px 0; /* Слегка уменьшили отступы для закрепленной панели */
    border-bottom: 2px solid var(--brand-yellow);
    
    /* МАГИЯ ЗАКРЕПЛЕНИЯ: шапка всегда сверху */
    position: sticky;
    top: 0;
    z-index: 9999;
    
    /* Добавим легкую тень для красоты при прокрутке */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ИДЕАЛЬНЫЙ ЛОГОТИП БЕЗ ФОНА */
/* ИДЕАЛЬНЫЙ ЛОГОТИП (Ждет прозрачный PNG) */
.nav-logo-img {
    height: 70px;
    width: auto;
    filter: invert(1); /* Делает черный текст белым. Как только фон станет прозрачным, всё будет идеально */
}

.nav-contacts {
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav-socials {
    display: flex;
    gap: 15px;
}
.social-link {
    color: #D1D5DB;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
}
.social-link:hover {
    color: var(--brand-yellow);
}

/* БЛОК С ТЕЛЕФОНОМ И КНОПКОЙ */
.nav-phone-block {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-phone {
    color: var(--brand-yellow);
    text-decoration: none;
    font-size: 18px;
    font-weight: 900;
    transition: color 0.3s;
}
.nav-phone:hover {
    color: #ffffff;
}

/* ФИРМЕННАЯ КНОПКА В ШАПКЕ */
.btn-nav-calc {
    background: var(--brand-yellow);
    color: var(--dark);
    text-decoration: none;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 900;
    border-radius: var(--radius);
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.btn-nav-calc:hover {
    background: #D97706;
    transform: translateY(-2px);
}
/* ==========================================
   БЛОК 1: ГЛАВНЫЙ ЭКРАН (С ФОНОВЫМ СЛАЙДЕРОМ)
========================================== */
.hero { 
    position: relative;
    padding: 80px 0; 
    min-height: 80vh;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(24, 26, 27, 0.5), rgba(24, 26, 27, 0.8));
    z-index: 1;
}
.hero-bg-slider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.hero-slide.active { opacity: 1; }

.hero-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(80vh - 160px);
}
.hero-titles {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
    margin-top: 20px;
}
.hero-titles h1 { 
    font-size: 64px; font-weight: 900; margin: 0; color: #ffffff;
    line-height: 1.1; 
}
.hero-titles h2 { 
    font-size: 64px; font-weight: 900; margin: 0; color: var(--brand-yellow);
    line-height: 1.1; 
}
.hero-content {
    display: flex;
    justify-content: flex-end; 
    align-items: flex-end;
    width: 100%;
}
.features-card {
    background: rgba(24, 26, 27, 0.9); 
    border-radius: var(--radius); 
    padding: 30px; 
    max-width: 550px;
    backdrop-filter: blur(5px); 
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.feature-item {
    display: flex; align-items: center; padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff; font-size: 20px; font-weight: 600; line-height: 1.3;
}
.feature-item:last-child { border-bottom: none; padding-bottom: 0; }
.feature-item:first-child { padding-top: 0; }
.check-icon {
    width: 40px; height: 40px; min-width: 40px;
    background: var(--brand-yellow); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center; margin-right: 20px;
}
.check-icon svg { width: 24px; height: 24px; fill: var(--dark); }

.hero-actions { margin-top: 30px; text-align: center; }
.btn-main { 
    background: var(--brand-yellow); color: var(--dark); text-decoration: none; 
    padding: 20px 50px; font-size: 20px; font-weight: 900; border-radius: var(--radius); 
    display: inline-block; transition: background 0.3s; text-transform: uppercase;
    border: none; cursor: pointer; width: 100%; box-sizing: border-box;
}
.btn-main:hover { background: #D97706; }

/* ==========================================
   БЛОК 2: БОЛИ С ИНФОГРАФИКОЙ И АКЦЕНТНАЯ ФРАЗА
========================================== */
.pain-section { padding: 80px 0; background: var(--bg-light); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.pain-card { 
    background: var(--dark); 
    color: #ffffff; 
    border-radius: var(--radius); 
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    border-bottom: 4px solid var(--brand-yellow); 
    transition: transform 0.3s;
}
.pain-card:hover { transform: translateY(-5px); }

.pain-img-wrap {
    width: 100%;
    background: #ffffff; 
    overflow: hidden;
    display: flex;
}
.pain-img {
    width: 100%;
    height: auto; 
    display: block; 
}

.pain-text {
    padding: 30px;
    flex-grow: 1;
}
.pain-text h3 { margin-top: 0; color: var(--brand-yellow); font-size: 20px; font-weight: 900; text-transform: uppercase;}
.pain-text p { color: #D1D5DB; margin-bottom: 0; }

/* ИНФОГРАФИКА ДОВЕРИЯ (Под блоком болей) */
/* ИНФОГРАФИКА ДОВЕРИЯ (Под блоком болей) */
.trust-banner-wrapper {
    margin: 60px auto 0;
    width: 100%; /* Убрали ограничение, теперь блок вровень с карточками */
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.trust-banner-top, .trust-banner-bottom {
    background: #ffffff; 
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.trust-icon-main svg { width: 48px; height: 48px; flex-shrink: 0; }
.trust-icon-main svg path, .tbb-item-icon path, .tbb-item-icon rect, .tbb-item-icon line { stroke: var(--dark) !important; }

/* Увеличенные шрифты верхнего блока */
.trust-info h4 {
    margin: 0 0 8px;
    font-size: 20px; /* Было 18 */
    color: var(--dark);
    font-weight: 900;
    text-transform: uppercase;
}
.trust-info p { margin: 0; color: var(--text-main); font-size: 16px; line-height: 1.5; } /* Было 15 */

.trust-banner-bottom { justify-content: space-between; }
.tbb-left { display: flex; align-items: center; gap: 15px; max-width: 350px; }
.tbb-icon svg { width: 44px; height: 44px; flex-shrink: 0; }
.tbb-icon svg path[fill="#1e293b"] { fill: var(--dark); }

/* Увеличенные шрифты нижнего блока */
.tbb-text h5 { margin: 0 0 5px; font-size: 16px; font-weight: 900; color: var(--dark); text-transform: uppercase; } /* Было 15 */
.tbb-text p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.4; } /* Было 13 */

.tbb-divider { width: 1px; height: 50px; background: var(--border-color); }
.tbb-features { display: flex; gap: 30px; flex-grow: 1; justify-content: space-around; }
.tbb-item { text-align: center; max-width: 140px; }
.tbb-item-icon { width: 26px; height: 26px; margin-bottom: 8px; }

/* Увеличенные шрифты преимуществ */
.tbb-item h6 { margin: 0 0 5px; font-size: 14px; font-weight: 900; color: var(--dark); text-transform: uppercase; } /* Было 13 */
.tbb-item p { margin: 0; font-size: 12px; color: var(--text-muted); line-height: 1.3; } /* Было 11 */
/* ==========================================
   БЛОК 3: ИНЖЕНЕРНЫЙ ПОДХОД (АККОРДЕОН)
========================================== */
.engineering-section { padding: 80px 0; background: #ffffff; }
.accordion { display: flex; flex-direction: column; gap: 15px; max-width: 900px; margin: 0 auto; }
.accordion-item { background: #ffffff; border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; }
.accordion-header { 
    width: 100%; text-align: left; padding: 25px 30px; background: #ffffff; border: none; 
    cursor: pointer; display: flex; justify-content: space-between; align-items: center; 
    font-size: 18px; font-weight: 800; color: var(--dark); transition: background 0.2s; 
}
.accordion-header:hover { background: var(--bg-light); }
.accordion-header.active { background: var(--bg-light); border-bottom: 1px solid var(--border-color); border-left: 4px solid var(--brand-yellow); }
.icon-toggle { font-size: 24px; color: var(--dark); font-weight: 900; transition: transform 0.3s; }
.accordion-header.active .icon-toggle { transform: rotate(45deg); color: var(--brand-yellow); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.accordion-body { padding: 30px; color: var(--text-main); line-height: 1.7; }
.accordion-body h4 { color: var(--dark); font-size: 18px; font-weight: 900; margin: 0 0 15px; }
/* Стили для скриншота калькулятора в аккордеоне */
.accordion-screenshot {
    width: 100%;
    max-width: 600px; /* Чтобы на больших экранах скриншот не был гигантским */
    height: auto;
    display: block;
    margin: 20px 0 0 0;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Легкая тень для объема */
}

/* ==========================================
   БЛОК 4: КВИЗ 
========================================== */
.quiz-section { padding: 80px 0; background: var(--dark); color: #ffffff; }
.quiz-section .section-title { color: #ffffff; }
.quiz-container { background: #ffffff; color: var(--text-main); max-width: 800px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; border: 1px solid #333; }
.progress-bar { height: 6px; background: #E5E7EB; width: 100%; }
.progress-fill { height: 100%; background: var(--brand-yellow); width: 20%; transition: width 0.3s ease; }
.quiz-body { padding: 40px; }
.step { display: none; animation: fadeIn 0.4s; }
.step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.question { font-size: 22px; font-weight: 900; margin-bottom: 25px; color: var(--dark); text-align: center; text-transform: uppercase; }

.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.option-label { display: block; background: #ffffff; border: 1px solid var(--border-color); border-radius: var(--radius); padding: 15px; text-align: center; cursor: pointer; transition: all 0.2s; font-weight: 600; }
.option-label:hover { border-color: var(--dark); background: var(--bg-light); }
input[type="radio"], input[type="checkbox"] { display: none; }
input:checked + .option-label { border-color: var(--brand-yellow); background: #FFFDF0; color: var(--dark); border-width: 2px; padding: 14px; }

/* Сетка для картинок Шага 1 */
.options-grid-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 15px; }
.options-grid-images label { cursor: pointer; }
.option-card-img { background: #ffffff; border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; transition: all 0.2s; height: 100%; display: flex; flex-direction: column; }
.option-card-img:hover { border-color: var(--dark); }
.img-preview { width: 100%; height: 120px; background-size: cover; background-position: center; border-bottom: 1px solid var(--border-color); }
.option-label-text { padding: 12px; font-size: 14px; font-weight: 600; color: var(--text-main); text-align: center; flex-grow: 1; display: flex; align-items: center; justify-content: center; }
input[type="radio"]:checked + .option-card-img { border-color: var(--brand-yellow); border-width: 2px; }
input[type="radio"]:checked + .option-card-img .option-label-text { color: var(--dark); font-weight: 800; }

.input-text { width: 100%; padding: 15px; border: 1px solid var(--border-color); border-radius: var(--radius); font-size: 16px; box-sizing: border-box; margin-bottom: 15px; font-family: 'Inter', sans-serif; background: var(--bg-light); }
.input-text:focus { border-color: var(--dark); outline: none; background: #ffffff; }

.quiz-footer { padding: 20px 40px; background: var(--bg-light); display: flex; justify-content: space-between; border-top: 1px solid var(--border-color); }
.btn-quiz { padding: 12px 25px; border: none; border-radius: var(--radius); font-size: 15px; font-weight: 800; cursor: pointer; transition: 0.2s; text-transform: uppercase; }
.btn-prev { background: #D1D5DB; color: var(--dark); }
.btn-next { background: var(--dark); color: #ffffff; margin-left: auto; }
.success-message { text-align: center; display: none; padding: 40px 20px; }
.success-message h3 { color: #16A34A; font-size: 24px; margin-top:0; font-weight: 900; }
/* ==========================================
   СТИЛИ ДЛЯ ПОЛЗУНКА (КВИЗ ШАГ 2)
========================================== */
.range-slider-container {
    margin-top: 20px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}
.range-value-display {
    text-align: center;
    font-size: 42px;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 20px;
}
.range-value-display span {
    color: var(--brand-yellow);
}
.styled-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    outline: none;
    margin: 15px 0;
}
.styled-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-yellow);
    cursor: pointer;
    border: 6px solid var(--dark);
    transition: transform 0.1s;
}
.styled-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}
.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 800;
}

/* ==========================================
   БЛОК 5: АССОРТИМЕНТ
========================================== */
.assortment-section { padding: 80px 0; background: #ffffff; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.gallery-card { border-radius: var(--radius); overflow: hidden; background: #ffffff; border: 1px solid var(--border-color); display: flex; flex-direction: column;}
.gallery-slider { position: relative; width: 100%; height: 250px; background-color: var(--bg-light); overflow: hidden; }
.gallery-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease-in-out; }
.gallery-slide.active { opacity: 1; }
.gallery-info { padding: 20px; text-align: center; flex-grow: 1; border-top: 1px solid var(--border-color); }
.gallery-info h3 { margin: 0 0 10px; font-size: 18px; color: var(--dark); font-weight: 900; text-transform: uppercase; }
/* Стили для динамической цены в карточке */
.gallery-price {
    display: inline-block;
    background: var(--dark);
    color: var(--brand-yellow);
    font-size: 16px;
    font-weight: 900;
    padding: 6px 15px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: opacity 0.3s ease;
}
/* Плавная анимация текста в карточках (заголовок и цена) */
.gallery-info h3,
.gallery-price {
    transition: opacity 0.4s ease-in-out;
}
/* ==========================================
   БЛОК 6: ПРОЦЕСС РАБОТЫ
========================================== */
.process-section { padding: 80px 0; background: var(--bg-light); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; text-align: center; }
.process-step { background: #ffffff; padding: 30px 20px; border-radius: var(--radius); border: 1px solid var(--border-color); }
.step-num { width: 44px; height: 44px; background: var(--brand-yellow); color: var(--dark); font-size: 20px; font-weight: 900; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.process-step h3 { margin: 0 0 10px; color: var(--dark); font-size: 18px; font-weight: 900; text-transform: uppercase; }

/* ==========================================
   ФУТЕР
========================================== */
footer { background: var(--dark); color: #9CA3AF; padding: 60px 0 30px; text-align: center; }
footer h2 { color: #ffffff; margin-top: 0; font-weight: 900; text-transform: uppercase;}
.footer-contacts { font-size: 24px; color: var(--brand-yellow); font-weight: 900; margin: 20px 0; }
.footer-links { margin-top: 40px; font-size: 14px; border-top: 1px solid #374151; padding-top: 20px; }
/* --- ПЛАВНАЯ АНИМАЦИЯ ШАГОВ КВИЗА --- */
.step {
    display: none;
    animation: fadeInStep 0.4s ease-in-out forwards; /* Привязываем анимацию */
}
.step.active {
    display: block;
}

/* Сам сценарий анимации: появление из прозрачности + легкое движение */
@keyframes fadeInStep {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   АДАПТИВНОСТЬ (МОБИЛЬНАЯ ВЕРСИЯ)
========================================== */
@media (max-width: 900px) {
    .trust-banner-bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
    .tbb-left { max-width: 100%; }
    .tbb-divider { width: 100%; height: 1px; margin: 5px 0; }
    .tbb-features { width: 100%; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
}

@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 15px; }
    .nav-contacts { flex-direction: column; gap: 15px; text-align: center; }
    
    .nav-phone-block {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    /* --- КОМПАКТНАЯ ШАПКА ДЛЯ МОБИЛОК --- */
    .top-nav {
        padding: 6px 0; /* Убираем лишний «воздух» сверху и снизу */
    }
    .nav-logo-img {
        height: 40px; /* Уменьшаем логотип (был 70px) */
    }
    .nav-phone-block {
        gap: 8px; /* Сокращаем расстояние между телефоном и кнопкой */
    }
    .nav-phone {
        font-size: 15px; /* Чуть меньше шрифт телефона */
    }
    .btn-nav-calc {
        padding: 8px 12px;
        font-size: 12px; /* Делаем кнопку тоньше */
    }
    /* Скрываем текстовые соцсети, чтобы сэкономить место, оставляем только главное */
    .nav-socials {
        display: none; 
    }
    .btn-nav-calc {
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero-titles h1, .hero-titles h2 { font-size: 36px; }
    .hero-content { justify-content: center; }
    .features-card { padding: 20px; }
    .feature-item { font-size: 16px; padding: 15px 0; }
    .check-icon { width: 32px; height: 32px; min-width: 32px; margin-right: 15px;}
    .check-icon svg { width: 18px; height: 18px; }
    
    .options-grid, .options-grid-images { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .trust-banner-top { flex-direction: column; text-align: center; }
    .tbb-features { flex-direction: column; align-items: center; }
}