/* ==========================================================================
   1. ГЛОБАЛЬНЫЕ СБРОСЫ И БАЗОВЫЕ СТИЛИ
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Плавный скроллинг по ID */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #7e7e7f;
    background-color: #f8fafc;
    line-height: 1.5;
    min-height: 100vh;
}

a {
    text-transform: none;
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Ограничивающий контейнер — единый для всего сайта КРОМЕ top-bar и header*/
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}


/* ==========================================================================
   2. ШАПКА САЙТА (Top Bar & Main Header)
   ========================================================================== */
.top-bar {
    width: 100%;
    background-color: #000000;
    color: #fff;
    font-size: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar .container {
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contacts span, .top-contacts a {
    margin-right: 20px;
    opacity: 0.8;
}

.main-header {
    width: 100%;
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
    position: sticky; /* Меню будет аккуратно держаться вверху при скролле */
    top: 0;
    z-index: 100;
}

.main-header .container {
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    color: #626c7b;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #000000;
}

.header-flex {
    max-width: 1800px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 20px 0; /* Вертикальные отступы шапки */

 /* Убираем justify-content: space-between, чтобы элементы не прижимались к краям автоматически */
}

/* --- Центрируем и двигаем меню --- */
.nav-menu {
    margin-left: auto;        /* Автоматически толкает меню вправо от логотипа */
    margin-right: 15%;        /* Создает отступ от правого края, сдвигая меню ближе к центру */
    /* Вы можете менять 15% на 10% или 20%, чтобы идеально подогнать положение под ваш вкус */
}

.nav-menu ul {
    display: flex;
    gap: 80px;                /* Расстояние между пунктами меню */
}


.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #697079;
    cursor: pointer;
}

/* ==========================================================================
   3. СЕКЦИЯ 1: ГЛАВНЫЙ ЭКРАН (Hero Section)
   ========================================================================== */
.hero {
    position: relative;
    padding: 100px 0;
    background-image: linear-gradient(to right, 
        rgb(255, 255, 255) 0%,     /* Абсолютно белый цвет у левого края */
        rgba(255, 255, 255, 0.9) 30%,   /* Плотный белый цвет под текстом */
        rgba(255, 255, 255, 0.4) 70%,   /* Картинка плавно проявляется */
        rgba(255, 255, 255, 0) 100%     /* Чистая картинка у правого края */
    ), 
    url('main.png'); /* Ваше изображение */
    
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-color: #ffffff; /* Защитный белый цвет фона */
}


.hero-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
    margin-bottom: 60px;
    color: #383737
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 15px 0 25px 0;
}

.hero .subtitle {
    color: #1f1f1f;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-descr {
    font-size: 1.2rem;
    color: #000000;
    margin-bottom: 35px;
}

/* Сетка преимуществ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    color: #000000
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    color: #000000
}

.feature-item i {
    font-size: 1.5rem;
    color: #000000;
    margin-top: 3px;
}

.feature-item h3 {
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 0.85rem;
    color: #1b1b1b;
}

/* ==========================================================================
   4. СЕКЦИЯ: Отросли (pupu)
   ========================================================================== */
.pupu-overlap {
    padding: 100px 0;
    background-color: #f8fafc;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pupu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.pupu-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pupu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.pupu-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.pupu-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pupu-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pupu-info h3 {
    font-size: 1.25rem;
    color: #697079;
    margin-bottom: 12px;
}

.-info p {
    font-size: 0.95rem;
    color: #494949;
    margin-bottom: 20px;
    flex-grow: 1;
}


/* ==========================================================================
   5. СЕКЦИЯ 3: О компании (About)
   ========================================================================== */

.about-section {
    position: relative;
    padding: 120px 0;
    background-color: #f8fafc;
    width: 100%;
    overflow: hidden;
    background-image: url('image_about.png'); 
    background-position: right center; 
    background-repeat: no-repeat;
    background-size: contain; 
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #f8fafc 0%, #f8fafc 50%, rgba(248, 250, 252, 0.7) 70%, rgba(248, 250, 252, 0) 100%);
    z-index: 1;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
}

.about-header-block {
    max-width: 650px; 
    margin-bottom: 60px;
}

.about-title {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 25px;
  background: linear-gradient(135deg, #656565 0%, #c2c2c2 25%, #717171 50%, #5c5c5c 75%, #6a6a6a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; 
  display: inline-block;
}

.about-lead {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #3a3a3a;
}

.about-stats-grid {
  display: flex;
  gap: 50px;
  max-width: 750px; 
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  display: flex; 
}

.stat-number span {
  display: inline-block;
  background: linear-gradient(135deg, #a80d0d 0%, #c20202 25%, #cd1111 50%, #ee8585 75%, #6f0101 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat-desc {
  font-size: 0.95rem;
  color: #4d4d4d;
}


/* ==========================================================================
   4. СЕКЦИЯ 2: НАШИ УСЛУГИ (Services Overlap)
   ========================================================================== */
.specializations {
    position: relative;
    padding: 100px 0; /* Ваша стандартная высота секций для ПК */
    color: #ffffff;
    
    /* Темно-синий промышленный оверлей (Overlay) поверх картинки оборудования */
    background: url('image_serv.jpg') center/cover no-repeat fixed;
    width: 100%;
}

/* Сетка наследует ваши отступы колонок (column-gap: 60px, row-gap: 40px) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Строго 2 колонки на ПК */
    column-gap: 60px;
    row-gap: 40px;
    margin-bottom: 50px;
}

/* Отдельный элемент (флексбокс с выравниванием по верхнему краю) */
.service-item {
    display: flex;
    align-items: flex-start;
    gap: 20px; /* Интервал между иконкой и текстом */
    min-width: 0;
}

/* Контейнер иконки (сохраняет пропорции и не сжимается) */
.service-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a0000;
}

.service-icon svg {
    display: block;
    width: 40px;
    height: 40px;
}

/* Текстовые стили */
.service-text {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.9);
}



/* ==========================================================================
   7. СЕКЦИЯ: Industrials (IPB)
   ========================================================================== */
.industrials-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.industrials-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.industrials-image-box img {
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

.industrials-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #3e4651;
    margin-bottom: 15px;
}

.industrials-text-block {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 1rem;
    color: #475569;
    margin-bottom: 35px;
}


<!--production-->
.production-section {
    padding: 20px 0;
    background-color: #ffffff;
}

.production-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

.productiona-image-box img {
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

.production-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #3e4651;
    margin-bottom: 25px;
}

.production-text-block {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 1.rem;
    color: #475569;
    margin-bottom: 35px;
}


    <!--bpla-->

.bpla-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.bpla-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.bpla-image-box img {
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

.bpla-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #3e4651;
    margin-bottom: 25px;
}

.bpla-text-block {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 1rem;
    color: #475569;
    margin-bottom: 35px;
}


/* ==========================================================================
   8. СЕКЦИЯ: КОНТАКТЫ И КАРТА (Contacts)
   ========================================================================== */
.contacts-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 50px;
}

.contact-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.card-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background-color: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;justify-content: center;color: #2563eb;
}

.card-content h3 {font-size: 1rem;font-weight: 600;color: #0f172a;margin-bottom: 6px;}.card-content p, .card-content .card-note {font-size: 0.85rem;color: #64748b;}/* Карта */.map-wrapper {position: relative;width: 100%;border-radius: 12px;overflow: hidden;border: 1px solid #e2e8f0;}#map {width: 100%;height: 450px;}.map-overlay-card {position: absolute;bottom: 24px;right: 24px;background-color: #ffffff;padding: 24px;border-radius: 8px;max-width: 320px;box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);z-index: 10;}.map-overlay-card h3 {font-size: 1rem;margin-bottom: 6px;}.map-overlay-card .map-address {font-size: 0.85rem;color: #475569;margin-bottom: 10px;}.metro-info {display: flex;align-items: center;gap: 8px;}.metro-icon {background-color: #d11210;color: #ffffff;font-weight: 800;font-size: 0.7rem;width: 16px;height: 16px;border-radius: 50%;display: flex;align-items: center;justify-content: center;}.metro-name {font-size: 0.8rem;color: #64748b;}/* ==========================================================================9. ПОДВАЛ САЙТА (Site Footer)========================================================================== */.site-footer {background-color: #0f172a;color: #94a3b8;padding: 50px 0;font-size: 0.85rem;border-top: 1px solid #1e293b;}.footer-content-wrapper {display: flex;justify-content: space-between;align-items: flex-start;gap: 40px;}.footer-info {display: flex;flex-direction: column;gap: 12px;}.footer-company {font-size: 0.95rem;font-weight: 600;color: #ffffff;}.footer-requisites {display: flex;flex-direction: column;gap: 4px;font-size: 0.8rem;}.footer-nav {display: flex;flex-direction: column;gap: 10px;}.footer-link {color: #94a3b8;transition: color 0.2s;}.footer-link:hover {color: #ffffff;}.footer-legal {max-width: 400px;display: flex;flex-direction: column;gap: 12px;}.legal-link {color: #38bdf8;}/* ==========================================================================10. СТРОГАЯ АДАПТИВНОСТЬ ПОД МОБИЛЬНЫЕ (В самом низу)========================================================================== */@media (max-width: 1024px) {.pupu-grid { grid-template-columns: repeat(2, 1fr); }.contacts-grid { grid-template-columns: repeat(2, 1fr); }}@media (max-width: 768px) {/* Сброс высот и отступов */section, .hero, .pupu-overlap, .industrials-section, .about-section, .contacts-section {padding: 50px 0 !important;height: auto !important;min-height: initial !important;}/* Схлопывание сеток в 1 колонку */.features-grid, .pupu-grid, .industrials-container, .contacts-grid, .about-stats-grid {grid-template-columns: 1fr !important;flex-direction: column !important;gap: 30px !important;}/* Навигация */.main-header .container, .top-bar .container, .footer-content-wrapper {flex-direction: column !important;text-align: center !important;gap: 20px !important;}.nav-menu ul {flex-direction: column !important;gap: 15px !important;}.hero-image-wrapper {width: 100% !important;}.hero h1 {font-size: 2rem !important;}#map {height: 300px !important;}.map-overlay-card {position: relative !important;bottom: 0 !important;right: 0 !important;max-width: 100% !important;box-shadow: none !important;border-top: 1px solid #e2e8f0;
}
}

/* ==========================================================================
   БЛОК АДАПТИВНОСТИ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ (ВСТАВЛЯТЬ В САМЫЙ КОНЕЦ ФАЙЛА)
   ========================================================================== */
@media (max-width: 768px) {

    /* 1. Глобальные исправления высоты (разблокируем экраны) */
    body, section, .feedback-section, .industrials-section, .about-section {
        height: auto !important;
        min-height: initial !important;
        overflow: visible !important; /* Проявляет весь скрытый контент */
        padding: 40px 0 !important;   /* Уменьшаем гигантские отступы */
    }

    /* 2. Адаптация шапки сайта (Top Bar и Header) */
    .top-bar .container, 
    .main-header .container {
        flex-direction: column !important; /* Элементы встают друг под друга */
        gap: 15px !important;
        text-align: center !important;
    }

    .nav-menu ul {
        flex-direction: column !important; /* Меню выстраивается в столбик */
        gap: 12px !important;
        padding: 0 !important;
    }

    /* 3. Исправление первой страницы (Hero Section) */
    .hero {
        padding-top: 20px !important;
    }
    .hero h1 {
        font-size: 1.8rem !important; /* Уменьшаем гигантские буквы */
        line-height: 1.3 !important;
    }
    .features-grid {
        grid-template-columns: 1fr !important; /* Преимущества в 1 колонку */
        gap: 15px !important;
    }

    /* 4. Пересборка всех двухколоночных сеток в одну колонку */
    .pupu-grid, 
    .industrials-container, 
    .feedback-container, 
    .contacts-grid {
        grid-template-columns: 1fr !important; /* Всё встает строго в 1 ряд */
        gap: 25px !important;
    }

    /* 5. Исправление Промышленного сектора и Формы (Зеркальные картинки) */
    .industrials-image-box, 
    .form-wrapper {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .feedback-section {
        background-position: center bottom !important; /* Картинка уходит вниз */
        background-size: cover !important;
    }

    /* 6. Адаптация Футера под телефоны */
    .footer-content-wrapper {
        flex-direction: column !important;
        gap: 25px !important;
        text-align: center !important;
    }
    .footer-nav {
        flex-direction: row !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
    }
    .footer-info, .footer-legal {
        text-align: center !important;
    }
}
