* {
    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;
    }
}
/* === Секции и Заголовки === */
.section-title {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4)), url('../img/rwerewr.jpg');
    background-size: cover;
    background-position: center;
    padding: 170px 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;
    padding: 0;
    font-family: EB Garamond;
}

.section-desc {
    padding: 120px;
    display: flex;
    align-items: end;
    justify-content: end;
    font-family: EB Garamond;
    color: #3d3d3d;
    font-size: 40px;
}

.section-desc p {
    text-align: center;
    padding: 50px;
}

/* === Сетка производства === */
.fone {
    background-image: url('../img/tormius-ISmRgkuPfcM-unsplash-min.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px;
}

.proisvodstvo {
    gap: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.production-block {
    display: flex;
    gap: 10px;
    flex-direction: column;
    align-items: center;
    font-family: EB Garamond;
    text-align: center;
    background-color: #ffffffd1;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.373);
}

.production-title {
    font-size: 40px;
    padding: 3px;
    text-align: center; 
}

.production-desc {
    color: #383838;
    font-size: 25px;
    padding: 0 20px;
}

/* === Кнопка наверх === */
.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.show {
    display: block;
}

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

/* === Футер === */
.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;
}

/* === Адаптивность === */
@media (max-width: 1070px) {
    .stranici {
        gap: 20px;
    }
}

@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;
    }
    .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-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 {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: auto;
        min-width: 250px;
        background-color: #fff;
        z-index: 1002;
        padding: 60px 40px;
        flex-direction: column;
        align-items: flex-start;
        transform: translateX(110%);
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        gap: 20px;
    }
    .stranici.active {
        transform: translateX(0);
    }
    .stranici a {
        font-size: 20px;
        border-bottom: 1px solid #eee;
        width: 100%;
        padding-bottom: 10px;
    }
    .close-btn {
        position: absolute;
        top: 15px;
        right: 20px;
        background: none;
        border: none;
        font-size: 36px;
        color: #555;
        cursor: pointer;
        z-index: 1200;
    }
    .stranici.active .close-btn {
        display: block;
    }
    .menu-toggle.hidden {
        display: none;
    }
    .section-desc {
        padding: 80px 20px;
    }
}

@media (max-width: 900px) {
    .fone {
        padding: 80px 30px;
    }
}

@media (max-width: 800px) {
    .proisvodstvo {
        grid-template-columns: 1fr;
    }
    .production-desc {
        font-size: 29px;
    }
    .section-desc {
        padding: 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;
    }
     .footer-bottom{
        font-size: 20px;
        padding: 2px;
    }
}

@media (max-width: 600px) {
    .section-desc p {
        font-size: 30px;
        padding: 40px 20px;
    }
}

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

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

@media (max-width: 411px) {
    .section-title h1 {
        font-size: 80px;
    }
    .production-title {
        font-size: 30px;
    }
    .production-desc {
        font-size: 22px;    
    }
}