/* скидання стилів a та ul button і навігації */


header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 92px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;

  /* Усі переходи в одному місці */
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;

  transform: translateY(0);
}

header.hidden {
  transform: translateY(-100%);
}

header.scrolled {
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
}


.center-header-container{
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 40px;
    height: 50px;
    max-width: 1440px;
}

/* БУРГЕР */
.header-left{
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 72px;
}
.burger {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.burger span {
    width: 100%;
    height: 4px;
    background: #E9C664;
    border-radius: 4px;
    transition: 0.3s ease;
    transform-origin: center;
}
/* логіка вікривання */
.burger.open span:nth-child(1) {
  transform: rotate(45deg) translateY(11px);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-11px);
}





/* Навігація  для ПК*/
@media screen and (min-width: 1024px) {
    nav {
        display: flex;
        align-items: center;
        
    }
    nav ul {
        display: flex;
        list-style: none;
        padding: 0;
        gap: 50px;
    }

    nav ul li a {
        text-decoration: none;
        color: #979797;
        font-size: 18px;
        font-family: "inter", sans-serif;
        font-weight: 400;
    }
    nav ul li a.active{
        color: #ffffff;
        font-weight: bold;
    }
    nav ul li span {
        text-decoration: none;
        color: #979797;
        font-size: 18px;
        font-family: "inter", sans-serif;
        font-weight: 400;
        cursor: pointer; /* щоб не було посилання */
    }
    nav ul li span.active{
        color: #ffffff;
        font-weight: bold;
    }


    /* робимо риску при наведені на навігацію яка висувається*/

    nav ul li a {
        position: relative;
    }

    nav ul li a::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -7px;
        height: 2px;
        background: #E9C664;
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }


    nav ul li a:hover::after{
        transform: scaleX(1);
    }
    nav ul li a.active::after {
        transform: scaleX(0);
        transition: none;
    }
}

.button-book-appointment{
    text-decoration: none;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: "inter", sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;

    padding: 15px 15px;
    border: #E9C664 solid 2px;

    margin-right: 72px;
}






/* css для мобілки */

@media screen and (min-width: 1023px) {
    .burger{
        display: none;
    }
}


@media screen and (max-width: 1023px) {
    .header{
        height: 72px;
    }
}
@media screen and (max-width: 1023px) {
    .center-header-container{
        margin-top: 20px;
    }
}
@media screen and (max-width: 1023px) {
    .header-left{
        margin-left: 20px;
    }
}



@media screen and (max-width: 1023px) {
    nav{
        position: absolute;
        top: 50px;
        left: -250px;
        transition: left 0.3s ease;

        background-color: #212121;

        width: 250px;
        min-height: 100vh;
        overflow-x: auto;
    }
    nav.open {
        left: 0;
        transition: left 0.3s ease;
    }
    .nav-item a{
        font-family: "inter", sans-serif;
        font-size: 18px;
        font-weight: 400;        
        color: #ffffff;
        text-decoration: none;
    }
    .nav-item span{
        font-family: "inter", sans-serif;
        font-size: 18px;
        font-weight: 400;        
        color: #ffffff;
        text-decoration: none;
    }

    .nav-item span.active{
        color: #E9C664;
        font-weight: bold;
        padding-bottom: 5px;
        border-bottom: #E9C664 solid 3px;
    }

    .nav-item a:hover{
        padding-bottom: 5px;
        border-bottom: #E9C664 solid 3px;
    }
    .header.open {
        background-color: #212121;
    }
    
    .nav-list{
        display: flex;
        flex-direction: column;
        gap: 25px;
        padding: 20px 0 0 20px;
    }
    


    
}






@media screen and (max-width: 1023px) {
    .button-book-appointment{
        margin-right: 20px;
    }
}