/* --- Общие стили --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden; /* Скрываем гориз. скролл */
}

/* --- Хедер и Навигация --- */
header {
    display: flex;
    justify-content: center; /* Кнопка меню справа */
    align-items: center;
    position: relative;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
    background: white;
}

.stranici {
    display: flex;
    gap: 30px;
    justify-content: center;
    padding: 20px;
    width: 100%;   
    font-family: Nunito, sans-serif;
}

.stranici a {
    text-decoration: none;
    color: black;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
}

.stranici a.glav {
    color: orange;
    border-bottom: 1px solid orange;
    font-weight: 600;
}

.stranici a:hover {
    color: orange;
    border-bottom: 1px solid orange;   
}

/* Кнопка мобильного меню (скрыта на ПК) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin: 15px 20px;
}

.menu-toggle .icon-bar {
    width: 100%;
    height: 3px;
    background-color: #0e2c18;
    border-radius: 3px;
    transition: 0.3s;
}

.menu-toggle.active .icon-bar:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active .icon-bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .icon-bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* --- Структура производства --- */
.production-structure {
    padding: 80px 5%; /* % для гибкости */
    font-family: "Arial", sans-serif;
}

.production-structure h2 {
    font-size: 40px;
    color: #1c2a3b;
    margin-bottom: 40px;
    font-weight: 700;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-bottom: 35px;
}

.prod-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;

    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.prod-card1{
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    height: 300px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.card-content {
    position: relative;
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background-color: rgba(126, 137, 120, 0.9); /* Исправлен цвет для кроссбраузерности */
}

.card-content h3 {
    color: #eaeaea;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    max-width: 65%;
}

.card-btn {
    background: linear-gradient(135deg, orange, #ff8c00);
    border: none;
    color: white;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: .2s;
}

.card-btn:hover {
    background: linear-gradient(135deg, #00a651, #00c45c);
    transform: translateY(-3px);
}

.pro-card {
    font-size: 35px;
    border-bottom: 2px solid orange;
    border-right: 2px solid green;
    border-bottom-right-radius: 100px; /* Чуть меньше для надежности */
    padding: 20px; /* Добавил отступы */
}

/* --- Секции Процесса --- */
.process-section {
    padding: 100px 5%;
    font-family: "Inter", sans-serif;
    background-color: #f9f9f9;
}

.process-title {
    font-size: 45px;
    color: #1c2a3b;
    font-weight: 700;
    margin-bottom: 10px;
}

.process-description {
    font-size: 28px;
    color: #1c2a3b;
    line-height: 1.6;
}

.process {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap; /* Чтобы не ломалось */
}

.process-details {
    display: flex;
    position: relative;
    align-items: center;
    flex: 1; /* Чтобы занимали равное место */
    min-width: 200px;
}

.process-num {
    font-size: 100px;
    color: rgba(255, 166, 0, 0.633);
    font-weight: 700;
    position: absolute;
    margin: 0;
    z-index: 1;
}

.process-details p {
    font-size: 25px;
    margin-left: 50px; /* Чуть больше отступ, чтобы цифра не перекрывала */
    position: relative;
    z-index: 2;
}

.process-info {
    font-size: 25px;
    border-left: 2px solid #3c7232;
    padding: 20px;
    border-right: 2px solid orange;
    background-color: #e2e2e25a;
    flex: 1 1 100%; /* Занимает всю ширину в ряду */
}

.process-re {
    display: flex;
    min-height: 300px;
    gap: 60px;
    margin-bottom: 30px;
}

.pro-re-te {
    width: 100%;
}

.process-rete {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 50px 0;
}

.process-number {
    font-size: 100px;
    color: rgba(0, 196, 92, 0.633);
    font-weight: 700;
    line-height: 1;
}

.process-vspo {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 20px;
}

.vspo {
    border-left: 2px solid orange;
    font-size: 27px;
    padding: 20px;
    font-weight: 900;
    border-right: 2px solid green;
    margin-top: 30px;
}

/* --- Итог --- */
.process-last {
    padding: 100px 5%;
    background-size: cover;
    background-position: center;
    background-image: url('Gemini_Generated_Image_j99gn1j99gn1j99g.png');
}

.process-itog {
    font-size: 28px;
    color: #1c2a3b;
    padding: 20px;
    border-radius: 15px;
}

.last-title {
    font-size: 50px;
    color: #ff8c00;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 10px;
}

/* --- Футер --- */
.site-footer {
    background-color: #f5f5f5;
    color: #4d4d4d;
    padding: 60px 5%;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1 1 300px;
}

.footer-column h3 {
    color: orange;
    font-size: 22px;
    margin-bottom: 15px;
}

.footer-column p, .footer-column li {
    font-size: 16px;
    line-height: 1.6;
}

.footer-column ul { list-style: none; padding-left: 0; }
.footer-column li::before {
    content: "•"; color: orange; display: inline-block; width: 1em; margin-left: -1em;
}

.footer-bottom {
    border-top: 1px solid #ddd;
    padding-top: 15px;
    text-align: center;
    font-size: 14px;
    color: #777;
}

/* =========================================
   MEDIA QUERIES (АДАПТИВНОСТЬ)
   ========================================= */

/* --- Планшеты (до 1024px) --- */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки */
    }
    
    .process-title { font-size: 36px; }
    .process-description { font-size: 24px; }
    
    .process-re {
        gap: 30px;
    }
    .process-num { font-size: 80px; }
    .process-details p { margin-left: 40px; font-size: 20px; }
    
    .pro-card { font-size: 28px; }
}

/* --- Мобильные устройства (до 768px) --- */
@media (max-width: 768px) {
    /* Меню-бургер */
    .menu-toggle { display: flex; }
    
    .nav-container {
        /* Невидимый контейнер */
        position: fixed; top: 0; right: 0; width: 100%; height: 100vh;
        z-index: 1000; pointer-events: none;
    }

    .stranici {
        position: fixed; top: 0; right: 0; height: 100vh; width: 75%;
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        pointer-events: auto;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .stranici.active { transform: translateX(0); }
    .stranici a { font-size: 20px; padding: 10px 0; text-align: center; border: none; }

    /* Основные отступы */
    .production-structure, .process-section, .process-last {
        padding: 60px 20px;
    }

    /* Карточки в 1 колонку */
    .cards-grid { grid-template-columns: 1fr; }
    
    .production-structure h2 { font-size: 32px; }

    /* Блоки с описанием и картинкой */
    .process-re {
        flex-direction: column; /* Картинка под текстом */
        height: auto;
    }
    
    .prod-card { aspect-ratio: 16/9; /* Более плоские на мобильном */ }

    /* Шаги 1, 2, 3 */
    .process { flex-direction: column; gap: 30px; }
    .process-details { width: 100%; }
    .process-num { font-size: 60px; position: static; display: block; margin-bottom: 5px; }
    .process-details p { margin-left: 0; font-size: 18px; }

    /* Шрифты */
    .process-title { font-size: 28px; }
    .process-description { font-size: 18px; }
    .process-info p { font-size: 18px; }
    
    .pro-card { font-size: 20px; border-bottom-right-radius: 50px; }
    
    /* Вспомогательные цеха */
    .process-vspo {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .process-number { font-size: 60px; }
    
    .vspo { font-size: 18px; padding: 15px; }
    
    .last-title { font-size: 32px; }
    .process-itog { font-size: 18px; }
}
@media (max-width: 400px){
    .prod-card{
        aspect-ratio: 1/1;
        width: 400px;
    }
}