*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.wrapper{
    max-width: 1280px;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 1s ease;
} 

.wrapper.fade-in {
    opacity: 1;
}

body{
    color: rgb(0, 0, 0);
    background-color: rgb(255, 255, 255);
    transition: all .3s ease;
}
.dark-mode{
    color: gold;
    background: #373737;
}

body.dark-mode .menu, body.dark-mode .menu1, body.dark-mode .logo{
    color: gold;
}
.dark-mode .theme, .dark-mode .dropbtn{
    background: #373737;
}
.dark-mode .burger::before, .dark-mode .burger::after{
    background-color: gold;
}
.dark-mode .burger span{
    background-color: gold;
}
.dark-mode .desctop-nav{
    background-color: #373737;
}

header{
    display: flex;
    justify-content: space-between;
}

.burger{
    display: none;
    position: relative;
    z-index: 50;
    align-items: center;
    justify-content: flex-end;
    width: 30px;
    height: 18px;
}

.burger span{
    height: 2px;
    width: 80%;
    transform: scale(1);
    background-color: rgb(0, 0, 0);
    width: 15px;
}

.burger::before, .burger::after{
    content: '';
    position: absolute;
    height: 2px;
    width: 80%;
    background-color: rgb(0, 0, 0);
    transition: all 0.3s ease 0s;
}

.burger::before { top: 0; }

.burger::after  { bottom: 0; }

.burger.active span { transform: scale(0); }

.burger.active::before{
    top: 50%;
    transform: rotate(-45deg) translate(0, -50%);
}

.burger.active::after{
    top: 50%;
    transform: rotate(45deg) translate(0, 50%);
}

.open{
    display: flex !important;
}

.text-logo{
    font-weight: 500;
    font-size: 28px;
    display: flex;
    align-items: center;
}

.image1{
    width: 140px;
    height: 130px;
}

.desctop-nav{
    display: flex;
}

.mobile-nav{
    display: none;
}

.lang-theme{
    display: flex;
    gap: 25px;
}

.dropbtn, .theme {
    display: flex;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    outline: none;
}

.theme:hover{
    transform: scale(1.1);
}

.earth-img, .sun-img{
    width: 35px;
    height: 35px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 35px;
    background-color: rgba(249, 249, 249, 0.8);
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.lang {
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    opacity: 0; 
}

ul{
    display: flex;
    align-items: center;
    gap: 55px;
}

li{
    list-style: none;
}

.menu,.logo{
    position: relative;
    gap: 15px;
    text-decoration: none;
    font-weight: 500;
    font-size: 28px;
    display: flex;
    color: black;
    transition: transform 0.3s ease-in-out;
}

.menu1{
    position: relative;
    gap: 15px;
    text-decoration: none;
    font-weight: 500;
    font-size: 28px;
    display: flex;
    align-items: center;
    color: black;
    transition: transform 0.3s ease-in-out;
    text-decoration: underline gold;
    text-underline-offset: 15px;
}

.menu::after {
    content: "";
    position: absolute;
    left: 50%; /* Початкове положення по центру */
    bottom: -10px; /* Відстань між текстом і підкресленням */
    width: 0;
    height: 2px; /* Висота підкреслення */
    background-color: gold; /* Колір підкреслення */
    transform: translateX(-50%); /* Переміщення по центру */
    transition: width 0.3s ease-in-out; /* Плавне з'явлення */
}
  
.menu:hover::after {
    width: 100%; /* Ширина підкреслення при наведенні */
}

.menu:hover {
    color: gold;
    transform: scale(1.1);
    text-decoration: none; /* Прибираємо стандартне підкреслення */
}

.menu1:hover, .logo:hover {
    color: gold;
    transform: scale(1.1);
}

.lang:hover{
    transform: scale(1.1);
}

.lang.active {
    color: #004d95;
    filter: opacity(0.7);
}

.hr1{
    display: flex;
    justify-content: center;
}

hr{
    width: 80%;
    display: flex;
    justify-content: center;
}

.main-mobile{
    display: none;
}

.main-text1{
    display: flex;
    justify-content: center;
    padding-top: 20px;
}

.cont{
    font-size: 48px;
    font-weight: 400;
}

.contus{
    display: flex;
    justify-content: space-evenly;
    padding-top: 50px;
}

.gmail, .phone{
    font-size: 28px;
    color: #004d95;
}

.map{
    display: none;
    justify-content: center;
    padding-top: 50px;
    padding-bottom: 50px;
}

.mb{
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid transparent;
    border-image: linear-gradient(#f6b036 50%, #004d95 50%);
    border-image-slice: 1;
    width: 50%;
    height: 500px;
}

.loading-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px; /* Задайте висоту панелі */
    background-color: #ddd;
    overflow: hidden;
    z-index: 1000;
}

.loading-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(to right, #ff4d4d 0%, #f6b036 25%, #4caf50 50%, #80bfff 75%, #004d95 100%);
    transition: width 1.25s;
}

.fade-out {
    animation: fadeOut 1s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes burgeranimation {
    from {opacity: 0;}
    to {opacity: 1;}
}

@media screen and (max-width: 768px) {
    .image1 {
        width: 100px;
        height: 90px;
    }

    .burger{display: flex;}
    
    header{
        align-items: center;
        padding: 2%;
    }

    .text-logo{
        font-size: 20px;
    }

    .menu1 {
        font-size: 18px;
        text-underline-offset: 10px;
    }

    .desctop-nav{
        display: none;
        flex-direction: column;
        justify-content: center;
        position: fixed;
        height: 100%;
        width: 46%;
        top: 0; bottom: 0; right: 0;
        z-index: 50;
        overflow-y: auto;
        padding: 50px 40px;
        background-color: rgba(249, 249, 249, 0.8);
        box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
        animation: burgeranimation 0.4s;
    }

    .main-desctop, .mobile-nav{display: none;}

    .main-mobile {
        display: flex;
        justify-content: center;
        flex-direction: column;
    }

    hr{width: 70%;}

    .menu {
        font-size: 18px;
    }

    .menu1 {
        justify-content: center;;
        text-decoration: none;
        font-size: 18px;
        display: flex;
        align-items: center;
        color: black;
        transition: transform 0.3s ease-in-out;
        text-decoration: underline gold;
        text-underline-offset: 10px;
    }

    ul{
        flex-direction: column;
        row-gap: 30px;
    }

    .cont{
        font-size: 24px;
    }

    .main-text1{
        padding-top: 2%;
    }

    .phone,.gmail{
        font-size: 18px;
        text-align: center;
    }
    iframe{
        width: 80%;
        height: 80%;
    }
    .mb{
        width: 80%;
        height: 250px;
    }
    .dropbtn {
        display: none;
    }

    .lang-theme {
        align-items: center;
        gap: 0;
    }

    .dropdown-content {
        display: none;
    }
}

@media screen and (max-width: 375px) {
    .image1 {
        width: 90px;
        height: 80px;
    }

    .desctop-nav{
        width: 46%;
    }

    .main-desctop, .mobile-nav{display: none;}

    .phone, .gmail {
        font-size: 16px;
    }
}