/* --- ЦВЕТОВАЯ ПАЛИТРА --- */
:root {
    --primary-accent: #ff6b35; /* Оранжевый акцент */
    --primary-hover: #e55a2b;  /* Темно-оранжевый для наведения */
    --dark-bg: #1e293b;        /* Глубокий сине-серый */
    --text-main: #334155;      /* Мягкий темно-серый для текста */
    --bg-light: #f8fafc;       /* Очень светлый серо-голубой для фонов */
    --white: #ffffff;
}

/* Общие сбросы */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); /* Более мягкая тень */
    position: sticky;
    top: 0;
    z-index: 1000;
    .logo img {
    height: 55px; /* Регулируй эту цифру, если логотип кажется слишком большим или маленьким */
    width: auto;
}
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 26px;
    color: var(--dark-bg);
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-accent); /* Часть логотипа оранжевая */
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin: 0 15px;
}

.nav ul li a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav ul li a:hover {
    color: var(--primary-accent);
}

/* Переключатель языков */
.lang-switcher a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 14px;
}
.lang-switcher a.active {
    color: var(--primary-accent);
}

.hero {
    height: 75vh;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Фон баннера (усиленное движение) */
.hero::before {
    content: '';
    position: absolute;
    top: -5%; left: -5%; right: -5%; bottom: -5%; /* Делаем фон чуть больше экрана, чтобы было куда двигаться */
    
    /* ТУТ ТВОЯ КАРТИНКА И ГРАДИЕНТ */
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(51, 65, 85, 0.6) 100%), 
                url('img/hero-bg.jpg') no-repeat center center/cover;
    
    z-index: 0;
    /* Ускорили анимацию до 15 секунд и добавили движение в сторону */
    animation: panZoomEffect 15s ease-in-out infinite alternate; 
}

/* Новая анимация фона: приближение + смещение по диагонали */
@keyframes panZoomEffect {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.08) translate(-15px, 10px); }
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 1;
}

/* --- АНИМАЦИЯ ПОЯВЛЕНИЯ ТЕКСТА --- */
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Применяем анимацию с задержками, чтобы элементы появлялись по очереди */
.hero-content .subtitle {
    animation: fadeUp 0.8s ease forwards;
}

.hero-content h1 {
    opacity: 0; /* Прячем до начала анимации */
    animation: fadeUp 0.8s ease 0.2s forwards; /* Задержка 0.2 сек */
    font-size: 44px;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 800;
}

.hero-content .btn-main {
    opacity: 0;
    animation: fadeUp 0.8s ease 0.4s forwards; /* Задержка 0.4 сек */
}

/* --- АНИМИРОВАННАЯ МЫШКА ВНИЗУ --- */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-accent); /* Оранжевое колесико */
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite; /* Постоянное движение колесика */
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

.hero-content {
    max-width: 650px;
    position: relative; /* Выводим текст поверх фона */
    z-index: 1;
}

.hero h1 {
    font-size: 44px;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 800;
}

.subtitle {
    color: var(--primary-accent);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 14px;
}

.btn-main {
    display: inline-block;
    background: var(--primary-accent);
    color: var(--white);
    padding: 16px 36px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px; /* Слегка скруглили углы */
    transition: background 0.3s, transform 0.2s;
}

.btn-main:hover {
    background: var(--primary-hover);
    transform: translateY(-2px); /* Эффект приподнятия при наведении */
}

/* Полоса CTA (Вместо желтой сделаем акцентной темно-синей) */
.cta-bar {
    background: var(--dark-bg);
    padding: 35px 0;
}

.cta-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.cta-flex p {
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin: 0;
}

.btn-light {
    background: var(--primary-accent);
    color: var(--white);
    padding: 14px 32px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: 0.3s;
}

.btn-light:hover {
    background: var(--white);
    color: var(--dark-bg);
}

/* Общие заголовки секций */
.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--dark-bg);
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-accent);
    border-radius: 2px;
}

/* Секция О компании */
.about-section {
    padding: 100px 0;
    background: var(--bg-light); /* Светло-серо-голубой фон */
}

.about-grid {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.about-info, .about-benefits {
    flex: 1;
}

.about-grid h3 {
    font-size: 22px;
    color: var(--dark-bg);
    margin-bottom: 20px;
}

.about-grid p {
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 30px;
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--dark-bg);
    color: var(--dark-bg);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--dark-bg);
    color: var(--white);
}

.about-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img {
    width: 320px; /* Делаем картинку чуть крупнее, чем была заглушка */
    height: auto;
    border-radius: 20px; /* Красивые скругленные углы */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); /* Мягкая тень */
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Легкий эффект при наведении мышки на картинку */
.about-img:hover {
    transform: translateY(-5px);
}

/* Список */
.check-list {
    list-style: none;
}

.check-list li {
    font-size: 15px;
    margin-bottom: 12px;
    position: relative;
    padding-left: 30px;
}

.check-list li::before {
    content: '■'; /* Заменили галочки на строгие квадратики */
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-accent);
    font-size: 12px;
}

/* Темный блок (Инженерные решения) */
.engineering-banner {
    background: var(--dark-bg);
    /* Можно добавить легкий фоновый паттерн или градиент для текстуры */
    background-image: radial-gradient(circle at 80% 50%, rgba(255, 107, 53, 0.05) 0%, transparent 40%);
    padding: 80px 0;
    color: var(--white);
    text-align: center;
}

.engineering-banner .banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.engineering-banner h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.engineering-banner .desc {
    font-size: 16px;
    color: #cbd5e1; /* Светло-серо-голубой цвет для читаемости на темном */
}

/* Секция Направления деятельности (Карточки) */
.products-section {
    padding: 100px 0;
    background: var(--white); /* Белый фон, чтобы отделить от предыдущих секций */
}

.products-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap; /* Чтобы на небольших экранах карточки переносились */
}

.product-card {
    flex: 1;
    min-width: 300px; /* Минимальная ширина карточки */
    background: var(--white);
    border-radius: 12px;
    overflow: hidden; /* Чтобы картинка не вылезала за скругленные углы */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Легкая тень */
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px); /* Приподнимаем при наведении */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); /* Усиливаем тень */
    border-bottom: 4px solid var(--primary-accent); /* Оранжевая полоса снизу */
}

.card-img {
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Картинка заполняет блок без искажения пропорций */
    transition: transform 0.5s ease;
}

.product-card:hover .card-img img {
    transform: scale(1.05); /* Легкое увеличение картинки при наведении на карточку */
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 20px;
    color: var(--dark-bg);
    margin-bottom: 10px;
}

.partner-text {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.5;
}
.partners-section {
    padding: 80px 0;
    background: var(--bg-light); /* Возвращаем светло-серо-голубой фон для контраста с белыми карточками */
}

.partners-logo-grid {
    display: flex;
    justify-content: center; /* Центрируем логотипы */
    align-items: center;
    flex-wrap: wrap;
    gap: 80px; /* Расстояние между логотипами */
}

.partner-item {
    display: block;
}

.partner-item img {
    max-height: 110px; /* Увеличили высоту с 70 до 110 пикселей */
    max-width: 280px;  /* Чуть увеличили допустимую ширину */
    object-fit: contain;
    
    /* Та самая магия: делает белый фон картинки прозрачным */
    mix-blend-mode: multiply; 
    
    filter: grayscale(100%) opacity(70%); /* Сделал их чуть поярче по умолчанию (70% вместо 60%) */
    transition: all 0.3s ease;
}

.partner-item:hover img {
    /* При наведении возвращаем цвет, полную яркость и чуть-чуть увеличиваем */
    filter: grayscale(0%) opacity(100%);
    transform: scale(1.05);
}

/* В карточках используем тот же .check-list, который мы написали для "О компании", 
он автоматически применится и здесь! */
/* --- СЕКЦИЯ КОНТАКТЫ --- */
.contacts-section {
    padding: 100px 0;
    background: var(--white);
}

.contacts-wrapper {
    display: flex;
    gap: 40px;
    background: var(--white);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05); /* Общая мягкая тень для всего блока */
    border-radius: 12px;
    overflow: hidden; /* Чтобы карта не вылезала за скругленные углы */
    border: 1px solid #f1f5f9;
}

/* Карта */
.map-box {
    flex: 1;
    min-height: 400px;
    display: flex; /* Заставляет содержимое (карту) тянуться на всю высоту */
}

.map-box iframe {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: inherit; /* Наследует высоту родителя */
}

/* Форма */
.form-box {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--text-main);
    transition: all 0.3s ease;
    outline: none;
}

.contact-form textarea {
    margin-bottom: 20px;
    resize: vertical;
}

/* Эффект при клике на поле ввода */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-accent);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.submit-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* --- ПОДВАЛ (FOOTER) --- */
.footer {
    background: var(--dark-bg);
    color: #cbd5e1;
    padding-top: 60px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 16px;
    letter-spacing: 1px;
}

.footer-col p {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-accent);
}

.footer-bottom {
    background: #0f172a; /* Еще более темный цвет для самой нижней полосы */
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

/* Адаптивность для мобилок (чтобы на телефонах все блоки шли друг под другом) */
@media (max-width: 768px) {
    .header .container { flex-direction: column; gap: 15px; }
    .nav ul { flex-wrap: wrap; justify-content: center; }
    .about-grid, .cta-flex, .contacts-wrapper, .footer-grid { flex-direction: column; }
    .hero h1 { font-size: 32px; }
    .form-row { flex-direction: column; gap: 0; }
    .form-row input { margin-bottom: 20px; }
    
    /* НОВЫЕ ПРАВКИ ДЛЯ КОНТАКТОВ */
    .map-box { min-height: 300px; } /* На телефоне делаем карту чуть ниже, чтобы она не занимала весь экран */
    .form-box { padding: 25px 20px; } /* Уменьшаем огромные поля вокруг формы */
}