body{
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: rgb(254, 255, 241);
}
html {
    scroll-behavior: smooth;
}
.main_block{
    overflow: hidden;
    width: 100%;
    height: 100vh;
    background-image: url(background5.jpg);
    background-size:cover;
    background-repeat: no-repeat;
}
/* ===== Анімації появи ===== */

.animate-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: 1s ease;
}

.animate-right {
    opacity: 0;
    transform: translateX(80px);
    transition: 1s ease;
}

.animate-bottom {
    opacity: 0;
    transform: translateY(80px);
    transition: 1s ease;
}

.show {
    opacity: 1 !important;
    transform: translateX(0) translateY(0) !important;
}
.animate-top {
    opacity: 0;
    transform: translateY(-80px);
    transition: 1s ease;
}

/*HEADER*/

header{
    width: calc(100% - 100px);
    height: 70px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 50px;
}
.logo{
    width: 30%;
}
.logo p{
    margin: 0;
    font-size: 25px;
    font-weight: 600;
    color: aliceblue;
}
.navigation{
    width: 25%;
    display: flex;
    justify-content: space-between;
}
.navigation a{
    color: aliceblue;
    text-decoration: none;
}
.block_button{
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 60px;
}
.language{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: 5px;
}
.language a, .language p{
    text-decoration: none;
    color: aliceblue;
}
.button_contact_us{
    width: 200px;
    height: 50px;
    border-radius: 5px;
    border: 3px solid white;
    background: rgb(254, 255, 241);
    color: black;
    font-weight: 600;
    transition: 0.6s;
}
.button_contact_us:hover{
    border: 3px solid #ffb300;
    background: #ffb300;
    color: rgb(254, 255, 241);
    font-weight: 600;
    transition: 0.6s;
}
.button_contact_us_2:hover, .view_vacancies:hover{
    border: 3px solid #ffb300;
    background: #ffb300;
    color: rgb(254, 255, 241);
    font-weight: 600;
    transition: 0.6s;
}
.navigation a:hover{
    text-decoration:underline;
}
.block_information_mein{
    width: calc(100% - 100px);
    height: calc(100vh - 180px);
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    padding: 0px 50px;
}
.inform_main{
    width: 50%;
    color: white;
}
.inform_main h1{
    font-size: 60px;
    margin: 0;
}
.inform_main h2{
    font-size: 20px;
    font-weight: 200;
}
.button_twice{
    margin-top: 20px;
    width: 430px;
    height: max-content;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    /* залишаємо флекс, без grid */
    flex-wrap: nowrap;
    gap: 0;
}
.button_twice button{
    width: 200px;
    height: 50px;
    border-radius: 10px;
    border: 3px solid white;
    background: white;
    color: black;
    font-weight: 600;
    transition: 0.6s;
}
/*SCROL LINE*/
.scrol_line {
    width: 100%;
    height: 70px;
    background: rgb(254, 255, 194);
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Лента має займати СТОСЬКИ ширини контенту */
.marquee {
    display: flex;
    align-items: center;
    white-space: nowrap;
    min-width: max-content;
    animation: marqueeMove 15s linear infinite;
}

/* Окремі частини безшовної ленти */
.marquee_group {
    display: flex;
    align-items: center;
    gap: 80px;
    min-width: max-content;
}

@keyframes marqueeMove {
    0% { transform: translateX(0); }

    /* Рухаємось рівно на ширину ОДНОГО блоку */
    100% { transform: translateX(calc(-1 * var(--group-width))); }
}

/* Стилі тексту */
.scrol_line p {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}
.dot {
    width: 30px;
}

/*INFO BLOK ONE*/
.info_blok_one{
    width: calc(100% - 100px);
    margin: 50px 0px;
    height: max-content;
    text-align: center;
    padding: 0px 50px;
    display: flex;
    align-items: center;
    background: rgb(254, 255, 241);
}
.info_blok_one h2{
    font-size: 50px;
    margin-top: 0;
}
.info_blok_one_flex{
    text-align: start;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 70px 10px;
    justify-content: space-between;
}
.info_flex{
    width: 43%;
    border: 3px solid #ffc000;
    border-radius: 20px;
    padding: 20px 30px;
    box-shadow: 15px 15px 15px rgb(0, 0, 0,0.3);
}
.info_flex h3{
    font-size: 30px;
}
.info_flex p{
    font-size: 17px;
}
.posi{
    position: absolute;
}
.info_flex {
    position: relative;
    overflow: hidden;
}

/* Загальний стиль числа */
.info_flex::before {
    content: "";
    position: absolute;
    top: 0px;
    right: 20px;
    font-size: 110px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.2); /* мʼякий фон */
    pointer-events: none;
}
.info_flex {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

/* Коли елемент видимий */
.info_flex.show-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* Конкретні цифри */
.info_flex:nth-child(1)::before {
    content: "01";
}
.info_flex:nth-child(2)::before {
    content: "02";
}
.info_flex:nth-child(3)::before {
    content: "03";
}
.info_flex:nth-child(4)::before {
    content: "04";
}
/* Анімація для заголовка h2 — виїзд зверху */
.info_blok_one h2 {
    opacity: 0;
    transform: translateY(-40px); /* зменшуємо вниз */
    transition: 0.8s ease;
}

.info_blok_one h2.show-on-scroll {
    opacity: 1;
    transform: translateY(0);
}
/**/
.our_ser {
    overflow: hidden;
    width: calc(100% - 100px);
    background: rgb(254, 255, 241);
    padding: 50px;
}

.our_flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.our_ser h2 {
    font-size: 80px;
    margin: 0 0 20px 0;
}

.arrow {
    display: flex;
    gap: 50px;
    cursor: pointer;
}

.img_arrow img {
    width: 80px;
    opacity: 0.5;
    transition: 0.3s;
}

.img_arrow img:hover {
    opacity: 1;
}

.servises_wrapper {
    width: 100%;
    margin-top: 30px;
}

.servises {
    display: flex;
    flex-direction: row;
    gap: 40px;
    transition: transform 0.5s ease;
}

.item {
    min-width: 70%;
    padding: 30px;
    border: 3px solid #ffc300;
    box-shadow: 8px 8px 8px rgb(0, 0, 0, 0.3);
    border-radius: 15px;
    background: rgb(254, 255, 241);
}
.item h3{
    font-size: 30px;
}
/* ===========================
   ДРУГИЙ БЛОК ІНФОРМАЦІЇ
=========================== */
.second_info_block{
    width: 100%;
    height: max-content;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 100px;
    background: #ffb300;
    margin-top: 50px;
}

.border_info_block{
    width:75%;
    height: max-content;
    border-radius: 40px;
    margin-top: 100px;
    padding: 30px 4%;
    color: black;
    background: rgb(254, 255, 241);
    box-shadow: 20px 20px 20px rgb(0, 0, 0,0.4);
}
.border_info_block h2{
    font-size: 55px;
    font-weight: 600;
    margin: 30px 0 30px 0;
    color: black;
}
.border_info_block button:hover{
    background: #1e1e1e;
    color: black;
    transition: 0.6s;
}

.info_border{
    margin-top: 70px;
    margin-bottom: 30px;
    width: 100%;
    height: max-content;
    display: flex;                   /* флекс-логіка залишена */
    flex-direction: row;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;                 /* дозволяємо перенос карток */
}
.info_border div{
    flex-grow: 1;
    width: 365px;
    border-radius: 30px;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 17px;
}

.border_one, .border_two{
    height: 230px;
}
.border_tree{
    height: max-content;
    max-height: 230px;
}
.border_one h3,.border_two h3{
    margin: 0;
}
.border_one p,.border_two p{
    margin: 20px 0 0 0 ;
}
.border_tree h3{
    margin-bottom: 0;
}
.border_tree p{
    margin-bottom: 30px;
}
/* ===========================
   Анімація для second_info_block
=========================== */

/* Заголовок — виїзд зверху */
.h2_1 {
    opacity: 0;
    transform: translateY(-40px);
    transition: 0.8s ease;
}
.h2_1.show-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* Картки — поява знизу */
.info_border div {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
    background: rgb(254, 255, 241);
    border: 3px solid #ffb300;
    color: black;
}
.info_border div.show-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

.item span{
    opacity: 0.3;
}
/* Бургер-кнопка */
.burger {
    position: fixed;     /* завжди зверху */
    top: 25px;
    right: 25px;

    width: 35px;
    height: 26px;

    display: none;       /* показується тільки на мобільному */
    flex-direction: column;
    justify-content: space-between;

    cursor: pointer;

    z-index: 100000000 !important; /* поверх меню */
}

.burger span {
    display: block;
    width: 100%; 
    height: 4px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}

/* Анімація при відкритті */
.burger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Показуємо бургер */
@media (max-width: 1050px) {
    .burger {
        display: flex;
    }
}


/* Мобільне меню */
.mobile_nav {
    position: fixed;
    top: 0;
    right: 0;        /* додано */
    left: auto;      /* додано */

    width: 100vw;
    height: 100vh;

    background: #ffb300;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    text-align: center;

    transform: translateX(100%); /* 100% ширини вправо */
    transition: 0.45s ease;

    overflow: hidden;
    z-index: 9999 !important;
}




.mobile_nav.open {
    transform: translateX(0);
}

/* Елементи меню */
.mobile_nav a {
    width: 100%;
    text-align: center;
    color: white;
    font-size: 28px;
    text-decoration: none;
    font-weight: 600;
}


/* Показуємо бургер замість меню */
@media (max-width: 1050px) {
    .navigation,
    .block_button {
        display: none;
    }

    .burger {
        display: flex;
    }
    .info_flex{
        width: 100%;
    }
    #footer_a{
        display: flex;
        flex-direction: column;
        text-align: center;
    }
    #footer_a div{
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0;
    }
    #footer_a .info_footer_text{
        width: 100%;
    }
}

/**/
.main_vac{
    width: calc(100% - 100px);
    padding: 100px 50px;
    display: flex;
    align-items: end;
    gap: 50px;
}
.main_vac span{
    color: #ffb300;
}
.main_vac h2{
    width: 50%;
    font-size: 100px;
    margin: 0;
}
.main_vac p{
    width: 50%;
    font-size: 25px;
}
.servises_wrapper_2 .servises .item{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.servises_wrapper_2 .servises .item button{
    width: 250px;
    height: 40px;
    border-radius: 10px;
    border: 0;
    background: #ffb300;
    border: 2px solid #ffb300;
    color: rgb(254, 255, 241);
    font-size: 17px;
    font-weight: 900;
    transition: 0.3s;
}
/**/
.servises_wrapper_2 .servises .item button:hover{
    background: rgb(254, 255, 241);
    color: #ffb300;
    transition: 0.3s;
}
/* ===========================
   ФУТЕР
=========================== */

.footer{
    width: calc(100% - 100px);  
    background: #ffb300;
    padding: 80px 50px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
    color: white;
}
.info_footer_text{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
}
.text_footer{
    width: 40%;
    display: flex;
    flex-direction: column;
}
.text_footer h1{
    font-size: 45px;
}
.info_border div h3{
    font-size: 30px;
}
.nav,.info_footer,.grafic_footer{
    width: 25%;
}
.nav,.info_footer,.grafic_footer{
    padding-left: 30px;
}
.nav h3{
    font-size: 20px;
}
.info_footer h3,.grafic_footer h3{
    font-size: 17px;
    font-weight: bolder;
}
.nav p,.info_footer p,.grafic_footer p{
    font-size: 14px;
}
.nav{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 50px;
}
.nav a,.info_footer a{
    text-decoration: none;
    color: white;
}
.info_footer a{
    font-size: 14px;
}
.nav h3{
    margin-bottom: 5px;
}
.nav a{
    width: max-content;
    border-bottom: 2px solid #ffb300;
    transition: 0.2s;
}
.text_footer button{
    width: 60%;
    height: 50px;
    border-radius: 10px;
    margin-top: 25px;
    border: 2px solid white;
    transition: 0.4s;
    background: white;
}

.text_footer button:hover{
    background: #ffb300;
    color:aliceblue;
    transition: 0.4s;
}
.nav a:hover{
    border-bottom: 2px solid white;
    transition: 0.2s;
}

.fade-in-block {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.fade-in-block.show-on-scroll {
    opacity: 1;
    transform: translateY(0);
}
@media (max-width: 950px) {
    .servises_wrapper_2 .servises .item{
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: start;
    }
    .item{
        width: 50%;
    }
}
@media (max-width: 800px) {
   .main_vac{
    display: flex;
    flex-direction: column;
   } 
   .main_vac h2{
    width: 100%;
   }
}
/* ======================
      MOBILE FIX (до 900px)
====================== */
/* 📌 1. Прибираємо calc(100% - 100px) на мобільному */
@media (max-width: 900px) {
    .border_info_block h2{
        font-size: 30px;
        text-align: center;
    }
    header,
    .block_information_mein,
    .info_blok_one,
    .our_ser,
    .main_vac,
    .footer {
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box;
    }
}

/* 📌 2. Прибираємо тіні, які створюють переповнення */
@media (max-width: 900px) {
    .info_flex {
        box-shadow: none !important;
    }
}

/* 📌 3. Фікс для слайдерів — забираємо padding, щоб translateX не виходив за межі */
@media (max-width: 900px) {
    .our_ser {
        padding: 20px 0 !important;
    }
}

/* 📌 4. Жорсткий фікс від горизонтального скролу на всяк випадок */
html, body {
    overflow-x: hidden !important;
}
* {
    max-width: 100%;
}

@media (max-width: 900px) {
    .vacansy .our_ser .our_flex{
        display: flex;
        flex-direction: row;
        padding: 30px
    }
    .l{
        padding: 0 30px 0 0;
    }
    .servises_wrapper_2 .servises .item button{
        width: 100%;
    }
    .info_border div h3{
        font-size: 25px;
    }
    .info_border div p{
        font-size: 13px;
    }
    .our_flex{
        padding: 0 30px;
    }
    /* Убираем лишние отступы */
    .our_ser,
    .main_vac,
    .footer,
    .info_blok_one,
    .servises_wrapper,
    .servises_wrapper_2 {
        width: 100%;
        padding: 30px 20px;
    }

    /* Большие заголовки */
    .our_ser h2 {
        font-size: 40px;
        text-align: center;
    }

    .main_vac h2 {
        font-size: 55px;
        text-align: center;
    }

    .main_vac p {
        width: 100%;
        font-size: 18px;
        text-align: center;
    }

    /* Карусель — один елемент на весь екран */
    .item {
        width: 100% !important;
        box-sizing: border-box;
    }

    /* Стрелки ближе */
    .arrow {
        gap: 20px;
    }
    .img_arrow img {
        width: 50px;
    }

    /* HEADER */
    header {
        padding: 10px 20px;
    }
    .inform_main {
        width: 100%;
    }
    .inform_main h1 {
        font-size: 40px;
    }
    .inform_main h2 {
        font-size: 16px;
    }

    .button_twice {
        width: 100%;
        justify-content: center;
        gap: 15px;
    }

    /* INFO BLOK ONE */
    .info_blok_one h2 {
        font-size: 35px;
    }

    .info_flex {
        width: 100%;
    }

    /* FOOTER */
    .footer {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .info_footer_text {
        flex-direction: column;
        gap: 30px;
    }
}

/* ======================
      MOBILE FIX (до 600px)
====================== */

@media (max-width: 600px) {

    /* Еще уменьшаем заголовки */
    .our_ser h2 {
        font-size: 30px;
    }

    .main_vac h2 {
        font-size: 40px;
    }

    .item h3 {
        font-size: 20px;
    }

    .info_blok_one h2 {
        font-size: 28px;
    }

    /* Уменьшаем маркерный текст */
    .scrol_line p {
        font-size: 20px;
    }
}
html, body {
    overflow-x: hidden !important; /* Забороняє горизонтальний скрол */
    overflow-y: auto !important;   /* Лишає тільки один вертикальний скрол */
    height: 100%;
    scroll-behavior: smooth;
}