* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
     font-family: EB garamond;
}

/* === Навигация === */
.nav-container {
    width: 100%;
}

.stranici {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    font-family: "Gill Sans", sans-serif;
}

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

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

.stranici a.glav {
    font-weight: 600;
}

.menu-toggle, .menu-overlay, .close-btn {
    display: none;
}

/* Контейнер для позиционирования справа в навигации */
.lang-wrapper {
    display: flex;
    align-items: center;
    padding-right: 20px;
}

.lang-switcher {
    position: relative;
    font-family: 'Lora', serif;
    cursor: pointer;
    user-select: none;
    z-index: 1100;
}

.selected-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    background: orange; /* Легкий фон, заметный на белом и цветном */
    border-radius: 6px;
    padding: 2px 10px;
    color: #ffffff; 
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
}

.selected-lang:hover {
    background: darkorange;
    border-color: orange;
}

.selected-lang svg {
    transition: transform 0.3s ease;
}

/* Поворот стрелочки при открытии */
.lang-switcher.active .selected-lang svg {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    right: 0;
    background: white;
    list-style: none;
    padding: 5px 0;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: none;
    min-width: 100px;
    overflow: hidden;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.lang-switcher.active .lang-dropdown {
    display: block;
}

.lang-dropdown li {
    padding: 10px 20px;
    color: #444;
    transition: 0.2s;
    font-size: 14px;
    text-align: left;
}

.lang-dropdown li:hover {
    background: #fff9f0;
    color: orange;
}

.lang-dropdown li.active {
    font-weight: bold;
    color: orange;
    background: #fff4e6;
}

/* Адаптивность для мобильного меню */
@media (max-width: 1000px) {
    .lang-wrapper {

        position: absolute;
        top: 20px;
        order: -1; /* Ставит выбор языка в начало мобильного списка */
    }
    .lang-switcher {
        width: 100%;
    }
    .selected-lang {
        justify-content: space-between;
    }
}

/* === Hero Секция (Заголовок) === */
.section-title {
    background-image: linear-gradient(rgba(0, 0, 0, 0.268), rgba(0, 0, 0, 0.626)), url('../img/foncontact.jpg');
    background-size: cover;
    background-position: center;
    padding: 140px 30px 30px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.section-title h1 {
    font-size: 130px;
    font-weight: 900;
    color: white;
    margin: 0;
    font-family: 'EB Garamond', serif;
}

/* === Секция Производство (Контент) === */
.proisvodstvo {
    padding: 100px 5%;
    background-color: #f9f9f9;
    gap: 60px; /* Увеличен отступ между блоками */
    flex-direction: column;
    display: flex;
}

.production-block {
    display: flex;
    gap: 40px;
    padding-left: 50px;
    align-items: flex-start;
    font-family: 'EB Garamond', serif;
}
.production{
    display: flex;
}

.production .production-title{
    flex: 0 0 auto;
    padding-right: 10px;
}
.production-title {
    font-size: 40px;
    text-align: right;
    font-weight: 700;
    flex: 1; /* Левая колонка */
    margin: 0;
    color: #1c2a3b;
}

.production-desc {
    flex: 1; /* Правая колонка */
    color: #2b2b2b;
    font-size: 25px;
    border-left: 2px solid orange;
    padding: 0 20px;
    line-height: 1.5;
}

/* === Нижняя секция с описанием === */
.section-desc {
    padding: 120px 60px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-family: 'EB Garamond', serif;
    background-color: #f4f4f4;
    color: #ffffff;
    font-size: 30px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.413), rgba(0, 0, 0, 0.626)), url('../img/qwed.png');
    background-size: cover;
    background-position: center;
}

.section-desc p {
    padding: 10px 20px;
    text-align: center;
    max-width: 1200px;
}

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

.footer-bottom {
    padding: 10px 90px 0 90px;
    text-align: center;
    font-size: 16px;
    color: #777;
    display: flex;
    justify-content: space-between;
}


.footer-bottom a {
    color: orange;
    text-decoration: none;
}

/* === Кнопка Наверх === */
.scroll-to-top-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 999;
    width: 50px;
    height: 50px;
    background-color: orange;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, background-color 0.3s;
}

.scroll-to-top-btn:hover {
    background-color: darkorange;
}

.scroll-to-top-btn.show {
    display: block;
}

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

@media (max-width: 1110px){
    .production .production-title{
        flex: 1;
    }
}
@media (max-width: 1070px) {
    .stranici {
        gap: 20px;
    }
}

/* === МОБИЛЬНОЕ МЕНЮ (до 1000px) === */
@media (max-width: 1000px) {
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        background: transparent;
        border: none;
        cursor: pointer;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1200;
        padding: 0;
    }
    
    .menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: #f8f8f8;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.674);
        border-radius: 2px;
        transition: 0.3s;
    }

    .menu-toggle.hidden {
        display: none;
    }

    .menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(3px);
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease-in-out;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .stranici {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: auto;
        min-width: 250px;
        max-width: 80%;
        background-color: #fff;
        z-index: 1002;
        padding: 60px 40px 40px 40px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        gap: 20px;
        align-items: flex-start;
        transform: translateX(110%);
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .stranici.active {
        transform: translateX(0);
    }

    .stranici a {
        font-size: 20px;
        border-bottom: 1px solid #eee;
        width: 100%;
        padding-bottom: 10px;
    }

    .close-btn {
        display: none;
        position: absolute;
        top: 15px;
        right: 20px;
        background: none;
        border: none;
        font-size: 36px;
        color: #555;
        cursor: pointer;
        line-height: 1;
        z-index: 1200;
    }

    .close-btn:hover {
        color: orange;
    }

    .stranici.active .close-btn {
        display: block;
    }
}

@media (max-width: 840px) {
    .section-title h1 {
        font-size: 100px;
    }
    
    .production-block {
        flex-direction: column; /* Перестраиваем в колонку */
        padding-left: 50px;
        gap: 15px;
        
    }
    
    .production-title {
        text-align: left; /* Заголовок влево */
        width: 100%;
        border-bottom: 2px solid orange; /* Подчеркиваем вместо боковой линии */
        padding-bottom: 10px;
    }

    .production-desc {
        border-left: none; /* Убираем линию слева */
        padding: 0;
        font-size: 22px;
    }
        .production {
        flex-direction: column; /* Перестраиваем в колонку */
        padding-left: 0;
        gap: 15px;
    }
    
}

@media (max-width: 780px) {
    .section-desc {
        padding: 100px 20px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 20px 20px 20px;
    }
    .footer-bottom {
        font-size: 12px;
    }
}

@media (max-width: 680px) {
    .footer-bottom {
        padding: 3px 60px 3px 10px;
    }
    .section-title h1 {
        font-size: 80px;
    }
}

@media (max-width: 630px) {
    .production-title {
        font-size: 30px;
    }
    .production-desc {
        font-size: 20px;
    }
    .proisvodstvo {
        padding: 50px 20px; /* Уменьшены отступы */
        gap: 40px;
    }
}

@media (max-width: 580px) {
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        padding: 3px 20px 3px 10px;
    }
}

@media (max-width: 530px) {
    .section-title h1 {
        font-size: 70px;    
    }
    .section-desc {
        padding: 50px 20px;
        font-size: 20px;
    }
     .footer-bottom{
        font-size: 20px;
        padding: 2px;
    }
}

@media (max-width: 465px) {
    .section-title h1 {
        font-size: 60px;
    }
}

@media (max-width: 400px) {
    .section-title h1 {
        font-size: 50px;
    }
}