html, body{
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    scroll-behavior: smooth;
}
.container{
    margin: 0px 166px;
}
.header{
    background-image: url(images/tservka2.jpg);
    height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    
}
.header-line{
    padding-top: 50px;
    display: flex;
    align-items: center;
    justify-content: space-around;

}
.nav-item{
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    margin-right: 25px;
    transition: color 0.3s linear;
}
.nav-item:hover{
    color: red;
}

.cart{
    position: relative;
    border-right: 1px solid #FFFFFF;
    padding-right: 10px;
    height: 50px;
}

.cart-img{
    position: absolute;
    top: 18px;
    right: 7px;
}
.number{
    padding: 10px;
}
.num{
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s linear;  
}
.num:hover{
    color: red;
}

.phone-text{
    display: flex;
    gap: 20px;
}

.phone-holder{
    display: flex;
    align-items: center;
}

.button{
    background-color: #ff7400;
    color: #fff;
    text-decoration: none;
    padding: 14px 18px;
    font-weight: 700;
    transition: background-color 0.2s linear;
}
.button:hover {
    background-color: #894b17;
}
.header-down {
    position: relative;
}

.header-title {
    color: #ff5100;
    font-family: 'Tinos', serif;
    font-size: 50px;
    font-weight: 400;

    text-align: center;
    position: absolute;
    left: 0;

    margin-top: 222px;
    margin-bottom: 12px;
}

.header-suptitle {
    color: #ffffff;
    font-size: 18px;
    font-family: 'Open Sans', sans-serif;
   
}


.header-suptitle:after {
    position: absolute;
    content: '';
    height: 2px;
    width: 61px;
    background-color: #fff;
    top: 127px;
    left: -70px;
}

.header-suptitle:before {
    position: absolute;
    content: '';
    height: 2px;
    width: 61px;
    background-color: #fff;
    top: 127px;
    left: 725px;
}
.header-button {
    background-color: #FF7400;
    padding: 14px 28px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    text-decoration: none;

    transition: background-color 0.3s linear;
}

.header-button:hover {
    background-color: #904506;
}
.cards-holder {
    display: flex;
    justify-content: space-between;
}

.block {
    display: block;
}

.card {
    width: 349px;
    box-shadow: 10px 10px 40px 20px #0000001A;
    margin-right: 31px;
    background-color: #fff;
    margin-top: -80px;
    padding: 10px 10px;
}

.card-image {
    display: flex;
    justify-content: center;
    padding-top: 31px;
}
.card-img{
    width: 100px;
    height: 100px;
}

.card-title {
     display: flex;
    justify-content: center;
    margin-bottom: 20px;
    font-family: 'Tinos', serif;
    font-size: 26px;
    font-weight: 400;

}

.card-title span {
    color: #ff7400;
    margin-left: 10px;
}

.card-desc {
    
    font-family: 'Tinos', serif;
    font-size: 26px;
    font-weight: 400;
    color: #656363;
}

.history {
    margin-top: 166px;
}

.history-title {
    font-family: 'Tinos', serif;
    font-size: 54px;
    font-weight: 400;
    width: 444px;
    text-align: center;
    margin-top: 21px;
}

.history-title span {
    color: #ff7400;
}

.history-desc {
    color: #656363;
    font-size: 16px;
    width: 444px;
    
}
.history-images {
    position: relative;
}
.imgages-1 {
    position: absolute;
    z-index: 0;
    top: 54px;
    left: 211px;
    
}

.imgages-2 {
    position: absolute;
    z-index: 999;
    top: -91px;
    left: 400px;
}

.imgages-3 {
    position: absolute;
    z-index: 999;
    top: 206px;
    left: 451px;
}

.history-holder {
    display: flex;
}


.galery{
    padding-top: 200px;
}
.galery-title {
    font-family: 'Tinos', serif;
    font-size: 54px;
    text-align: center;
    padding-top: 150px;
    margin-bottom: 60px;
}

.galery-title span {
    color: #ff7400;
}

.galery-content {
    display: flex;
    justify-content: center;
}
.galery-content2 {
    display: none;
    
}

.galery-left {
    margin-right: 20px;
}

.galery-down,
.galery-up {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.galery-up,
.galery-down {
    display: flex;
    gap: 20px;
}

.myMap {
    height: 400px;
    width: 25%;
}

.map {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 50px 0;
    background-color: chartreuse;
}

.footer {
    background-color: #000;
    padding: 20px;
    color: #fff;
}

.map-container {
    display: flex;
    align-items: flex-start; /* Вирівнює карту і текст по верхньому краю */
    justify-content: flex-start; /* Розміщує контент ближче до лівого краю */
}

.google_map iframe {
    width: 450px;
    height: 350px;
}

.contactu {
    margin-left: 10px; /* Зменшено відступ до тексту */
    font-size: 16px;
    line-height: 1.5;
    text-align: left; /* Вирівнює текст по лівому краю */
}

.menu-img {
    width: 90%;
}

.burger-menu {
    display: none;
}

.block {
    display: block;
}

.burger-slide {
    position: absolute;
    width: 20px;
}

button {
    border: none;
    outline: none;
    background-color: transparent;
}

.disp {
    display: none;
}


@media (max-width: 1500px) {

    .galery-content2 {
        display: block;
    }

    .img-gal,
    .galery-up,
    .galery-down {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .img-gal {
        margin-bottom: 20px;
    }

    .galery-left {
        margin-right: 0;
    }
    .galery-content{
        display: none;
    }



}
@media (max-width: 1300px) {



    .header-title {
        position: static;
    }

    .header-suptitle:before,
    .header-suptitle:after {
        content: none;
    }
    
    .history-images {
        display: none;
    }
    .history-title,
    .history-desc,
    .history-number {
        width: auto;
    }

}
@media (max-width: 1185px) {
    .nav,
    .cart,
    .phone,
    .btn {
        display: none;
    }

    .header-line {
        justify-content: space-between;
    }
}
@media (max-width: 1000px) {

    .cards-holder {
        display: block;
    }

    .card {
        width: 100%;
        margin-top: 30px;
        padding-bottom: 20px;
    }

}
@media (max-width: 780px) {

    .history-holder {
        display: block;
    }
    .container {
        margin: auto 40px;
    }
}

@media (max-width: 1185px) {

    .burger-menu {
        display: block;
    }

    .nav,
    .cart,
    .phone,
    .btn {
        display: none;
    }

    .header-line {
        justify-content: space-between;
    }


    .burgers-image {
        display: none;
    }

}

@media (max-width: 652px) {
    .google_map {
       width: 100%; /* карта буде займати всю ширину контейнера */
       height: 200px; /* зменшена висота */
    }
 
    .google_map iframe {
       width: 100%; /* iframe теж адаптується */
       height: 200px;
    }
    .contactu {
        font-size: 10px; /* Зменшуємо розмір шрифту */
        padding: 10px; /* Додаємо трохи відступів */
        text-align: center; /* Вирівнюємо текст по центру */
     }
 }

 @media (max-width: 2624px) {
    .container{
        padding: 50px;
    }
    
    }