@media screen and (min-width:710px) {
    .header {
        position: fixed;
        z-index: 599;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100%;
        box-shadow: 0 30%;
        background-color: #ffffff;
        transition: left 0.3s ease;
        box-shadow: 4px 0px 30px rgba(14, 46, 87, 0.3);
    }

    .header.active {
        left: 0px;
    }

    .header__logo {
        width: 80px;
        height: 80px;
    }

    .header__container {
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .header__logo {
        width: 80%;
        display: block;
        margin: 0 auto;
    }

    .header__list {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 5px;
        text-align: center;

    }

    .header__item {
        font-family: "KoHo Regular";
        font-size: 20px;
        color: #000000;
        cursor: pointer;
        transition: color 0.3s ease, box-shadow 0.3s ease;
        box-shadow: inset 0 0 0 0 #54b3d6;
    }

    .header__item:hover {
        background-color: #0E2E57;
        color: white;
    }

    .header__item.active {
        border-bottom: 1px solid #0E2E57;
    }

    .header__telephone-number {
        display: flex;
        font-family: "KoHo Regular";
        font-size: 20px;
        margin: 30px auto 0 auto;
        text-decoration: none;
        color: #222222;
        
    }

    
    .panel {
        position: fixed;
        top: 20px;
        left: 154px;
        z-index: 999;
        border: none;
    }

    .header__button {
        
        border: none;
        border-radius: 50%;
        color: #0E2E57;
        font-size: 30px;
        width: 40px;
        height: 40px;
        cursor: pointer;
        left: -90px;
        position: relative;
        transform: translateX(18px);
        transition: all 0.3s ease;
        z-index: 500;
    }

    .circle__button { 
        display: none;
        position: absolute;
        top: 0;
        left: 0 ;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        background-color: var(--main-blue);
        z-index: -1;
    }

    .circle__button.show { 
        display: block;
    }

    .header__button.active {
        left: 50px;
        transform: translateX(-10px);
    }

    .line {
        display: block;
        width: 70%;
        height: 2px;
        left: 15%;
        background-color: #ffffff;
        position: absolute;
        transition: transform 0.3s, top 0.3s, background-color 0.3s ease;
    }

    .line:nth-child(1) {
        top: 10px;
    }

    .line:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .line:nth-child(3) {
        bottom: 10px;
    }

    .header__button.active .line:nth-child(1) {
        transform: rotate(45deg);
        top: 19px;
        
        background-color: #0E2E57;
    }

    .header__button.active .line:nth-child(2) {
        display: none;
    }

    .header__button.active .line:nth-child(3) {
        transform: rotate(-45deg);
        bottom: 18px;
        background-color: #0E2E57;


    }

    .line.blue { 
        background-color: var(--main-blue);
    }
}


@media screen and (max-width: 710px) {
    .header {
        position: fixed;
        top: 0%;
        left: 0;
        width: 100%;
        height: 100px;

        transition: top 0.3s ease, transform 0.3s ease;
        transition-delay: 0.2s;

        z-index: 998;
    }

    .header.active {
        top: 0;
    }

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

    .header.header-down {
        transform: translateY(0%);
    }


    .header__logo {
        width: 60px;
        height: 60px;
    }

    .header__container {
        padding: 10px 20px;
        background-color: #ffffff;
        border-radius: 0px 0px 30px 30px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .header__logo {

        display: block;

    }

    .header__list {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 5px;
        text-align: center;
        display: none;

    }

    .header__item {
        font-family: "KoHo Regular";
        font-size: 20px;
        color: #000000;
        cursor: pointer;
        transition: color 0.3s ease;
    }

    .header__item.active {
        border-bottom: 1px solid #0E2E57;
    }

    .header__telephone-number {
        display: none;
        font-family: "KoHo Regular";
        font-size: 20px;
        margin-top: 30px;
        text-decoration: none;
        color: #222222;
    }

    .panel {
        position: fixed;
        display: flex;
        width: 100%;
        height: 40px;
        z-index: 999;
    }


    .header__button {
        background: #fff;
        padding: 0 7px;
        border: none;
        border-radius: 50%;
        color: #0E2E57;
        font-size: 30px;
        cursor: pointer;
        position: relative;
        top: 19px;
        left: 85vw;
        z-index: 999;
        
        width: 40px;
        height: 40px;
        transition: all 0.3s ease;
    }

    .header__button.header-up {
        transform: translateX(20vw);
    }

    .header__button.header-down {
        transform: translateX(0%);
    }


    .line {
        display: block;
        width: 70%;
        height: 2px;
        left: 15%;
        background-color: #0E2E57;
        position: absolute;
        transition: transform 0.3s, top 0.3s;
    }

    .line:nth-child(1) {
        top: 10px;
    }

    .line:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .line:nth-child(3) {
        bottom: 10px;
    }

    .header__button.active .line:nth-child(1) {
        transform: rotate(45deg);
        top: 19px;


    }

    .header__button.active .line:nth-child(2) {
        display: none;
    }

    .header__button.active .line:nth-child(3) {
        transform: rotate(-45deg);
        bottom: 18px;


    }
}