*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Aldrich", sans-serif;
}

body{
    background: #fff;
}
.wrapper{
    max-width: 1290px;
    margin: 0 auto;
}
.header{
    background: #fff;
    width: 100%;
    z-index: 2;
    position: relative;
    transition: box-shadow .3s ease;
}
.header.fixed {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header_wrapper{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1290px;
    margin: 0 auto;
    line-height: 33px;
    align-items: center;
}
.header_wrapper .search_container{
    align-self: center;
    cursor: pointer;
}

.top_nav{
    display: flex;
    height: 100%;
}
.nav-item{
    height: 100%;
}
.top_nav_ul{
    display: flex;
    text-decoration: none;
    height: 100%;
    align-items: center;

}
 .nav-link{
    text-decoration: none;
    font-weight: 400;
    display: block;
    font-size: 17px;
    color: var(--black);
    padding: 26px 25px;
    height: 100%;
    border: none;
    outline: none;
    background: inherit;
    cursor: pointer;
}
.nav-link:hover{
    color: var(--red);
    background: var(--black);
}
.services-dropdown{
    display: none;
    max-width: 1520px;
    width: 100%;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 10px 47px 0 rgba(0, 0, 0, 0.1);
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    border-radius: 45px 45px 0 0 ;
    padding: 40px 115px;
    flex-direction: column;
    gap: 40px;
    z-index: 10;

}
.nav-item.services:hover .services-dropdown{
     display: flex;
     
}
.services-columns{
    display: flex;
    flex-wrap: wrap;
    gap: 20px 70px;
}
.services-location_wrapper{
    display: flex;
    flex-wrap: wrap;
    gap: 20px 50px;
    
}
.services-location{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.column{
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}
.services-location_wrapper .column{
    flex: 1;
}

.column_title{
    font-weight: 400;
    font-size: 20px;
    color: var(--black);
}
.column_item_text{
    text-decoration: none;
    font-weight: 500;
    font-size: 17px;
    color: var(--grey);
}



.column_items::-webkit-scrollbar,
.column_item_lists::-webkit-scrollbar{
    width: 2px;
}

.column_items::-webkit-scrollbar-thumb,
.column_item_lists::-webkit-scrollbar-thumb{
    background-color: var(--grey);
    border-radius: 10px;
}

.column_items::-webkit-scrollbar-track,
.column_item_lists::-webkit-scrollbar-track{
    background-color: transparent;
}

.header_btn_wrapper{
    display: flex;
    gap: 20px;
}

.burger_menu{
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: none;
    flex-direction: column;
    gap: 7.5px;
    background-color: var(--black);
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}
.burger_menu span{
    background: var(--white);
    width: 20px;
    height: 2px;
    transition: transform 0.3s ease;
    display: block;
}
.burger_menu.active > span:first-child {
    transform: rotate(45deg) translate(4px, 4px);
    background-color: var(--black);
}

.burger_menu.active > span:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
    background-color: var(--black);
}
.burger_menu.active{
      background: var(--white);
}
.header.active{
      background: var(--black);
}

.header.active .header_btn_wrapper > .search_container{
    display: none;
}




.search_container{
    padding: 10px;
    width: auto;
    border-radius: 14px;
    background: var(--black);
}
.search_overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
  z-index: 22;
}
.search_block {
  position: fixed;
  top: 10px;
  left: 50%;
  max-width: 1290px;
  width: 100%;
  border-radius: 14px 14px 30px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(-50%) scale(0.9); /* тільки по X */
  opacity: 0;
  visibility: hidden;
  z-index: 23;

  transition: transform 0.3s ease, opacity 0.3s ease;
}

.search_overlay.active,
.search_block.active,
.search_wrapper.active{
  opacity: 1;
  visibility: visible;
}

.search_block.active {
    transform: translate(-50%) scale(1);
}


.search_input_wrapper{
    display: flex;
    position: relative;
    max-width: 1290px;
    width: 100%;
    max-height: 70px;
    align-items: center;
}
.search_input{
    width: 100%;
    padding: 26px 24px;
    border-radius: 14px;
    background: var(--white);
    border: none;
    outline: none;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 20px;
    color: var(--black);
}
.search_input::placeholder{
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 20px;
    color: var(--grey);
}
.modal{
    position: absolute;
    right: 24px;
}
.search_wrapper{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px 15px 30px 31px;
    opacity: 0;
    visibility: hidden;
      box-shadow: 0 10px 47px 0 rgba(0, 0, 0, 0.1);
  background: #161616;
      color: var(--white);
      border-radius: 0 0 30px 30px;
}

.tabs{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.submenu_1{
    display: none;
}
.submenu{
    display: none;
}
.btn_back{
    border: 2px solid var(--red);
    border-radius: 10px;
    padding: 10px 15px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 75px;
    width: max-content;
    cursor: pointer;
}
.btn_back_text{
    font-weight: 400;
    font-size: 15px;
    color: var(--white);
    line-height: 20px;
   
}
.btn_back_img{

}
.selected_category{
    color: var(--grey);
    font-size: 20px;
}

@media screen and (max-width: 1310px) {
    .header_wrapper{
        padding: 0 20px;
    }
}
@media screen and (max-width: 1024px) {
    .header_wrapper{
        padding: 20px;
        width: 100%;
        align-items: center;
    }
    .top_nav{
        position: absolute;
        width: 100%;
        height: 100vh;
       background: var(--black);
        left: 0;
        top: 90px;
        justify-content: center;
        display: none;
    }
    .main_menu,
    .submenu_1,
    .submenu{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .main_menu{
        gap: 30px;
        margin-top: 16%;
    }
    .submenu_1,
    .submenu{
        margin-top: 10%;
        display: none;
        gap: 20px;
    }
    .submenu_1 ul,
    .submenu ul{
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .submenu_1 ul{
         flex-direction: column-reverse;
    }
    .submenu ul{
        height: 100vh;
        overflow: auto;
        margin-bottom: 180px;
        padding-right: 10px;
    }
    .submenu ul .column_item .column_item_text,
    .submenu_1 ul .column_item{
        font-family: var(--second-family);
        font-weight: 500;
        cursor: pointer;
        text-align: center;
        color: var(--white);
    }
    .submenu ul .column_item .column_item_text{
        font-size: 16px;
    }
    .submenu_1 ul .column_item{
        font-size: 17px;
    }

    .submenu ul .column_item .column_item_text:hover,
    .submenu_1 ul .column_item:hover{
        color: var(--red);
    }

    .submenu ul::-webkit-scrollbar{
        width: 2px;
    }
    

    .submenu ul::-webkit-scrollbar-thumb{
        background-color: var(--grey);
        border-radius: 10px;
    }

    .submenu ul::-webkit-scrollbar-track{
        background-color: transparent;
    }
    .nav-item {
        height: auto;
    }
    .burger_menu{
        display: flex;
    }
    .search_category_container,
    .search_overlay{
        background: #161616;
    } 
    .nav-item.services:hover .services-dropdown{
        display: none;
    }
    .nav-link {
        color: var(--white);
        padding: 0;
        font-size: 17px;
        height: auto;
    }
    .nav-link:hover {
        color: var(--red);
        background: var(--black);
    }
  
   
   
}
@media screen and (max-width: 425px) {
    .search_block,
    .search_wrapper{
        height: 100%;
    }
    .header_btn_wrapper{
        gap: 10px;
    }
    .logo_desctop{
     width: 165px;
     height: 31px;

    }
    
        
    
}
