@charset "utf-8";

:root {
    --dark_purple: hsl(245, 23%, 21%);
    --light_purple: hsl(240, 22%, 90%);
    --red: hsl(0, 57%, 58%);
    --beige: hsl(0, 10%, 90%);
}

header {
/*    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;*/
    width: 100%;
    height: 90px;
    background-color: var(--dark_purple);
    border: none;
    padding: 10px;
}

.menu {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
}

.header_logo {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: inherit;
}

.header_logo_text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #fff;
    gap: 3px;
}

.header_logo_title {
    font-size: 2rem;
    margin: 0;
    line-height: 1;
}

.header_logo_subtitle {
    font-size: 12px;
    margin: 0;
    line-height: 1;
    color: var(--light_purple);
}

.header_logo img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav ul {
    display: flex;
    justify-content: space-between;
    gap: 2.5rem;
}

nav ul li {
    flex-shrink: 0;
    align-self: center;
    font-weight: 300;
    font-size: 15px;
}

nav ul li a {
    color: #fff;
}

nav li a:hover,
nav li a:active {
    color: var(--light_purple);
    border-bottom: 1px solid var(--light_purple);
}

.header_contacts {
    text-align: right;
    padding-right: 0.7rem;
}

a.header_phone {
    font-size: 2rem;
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-self: center;
    line-height: 1;
    padding-top: 3px;
    color: #fff;
}

.header_phone:hover {
    color: var(--light_purple);
}

.header_phone span {
    display: block;
    font-size: 12px;
    font-weight: 300;
    color: var(--light_purple);
    align-self: flex-end;
    padding-right: 1px;
}

.header_icon,
.header_phone_icon {
    display: none;
}

nav > .social {
    display: none;
}

/*------------------------------------------------*/

@media (max-width: 1115px) {

    .header_logo_title,
    a.header_phone {
        font-size: 1.3rem;
    }

    .header_logo_subtitle,
    .header_phone span {
        font-size: 10px;
    }

}

/*------------------------------------------------*/

@media (max-width: 1025px) {

    .menu {
        gap: 3px;
        align-items: center;
        flex-wrap: nowrap;
    }

    header::before {
        content: "";
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        /*height: 70px;*/
        background-color: var(--dark_purple);
        z-index: 7;
    }

    header {
        height: 70px;
    }

    nav {
        display: block;
        position: fixed;
        z-index: 5;
        left: 0;
        top: -100%;
        width: 100%;
        height: 100%;
        background-color: var(--dark_purple);
        padding: 70px 10px 0 10px;
        transition: 0.6s;
        overflow-y: auto;
        overflow-x: hidden;
        flex-wrap: wrap;
    }

    nav._active {
        top: 0;
    }

    nav ul {
        flex-basis: 100%;
        flex-wrap: wrap;
        gap: 0;
    }

    nav ul li {
        padding: 10px 0;
        flex-basis: 100%;
        border-top: 1px solid var(--light_purple);
    }

    nav ul li a {
        font-size: 12px;
    }

    nav li:nth-last-child(-n+1) {
        margin-bottom: 0;
        border-bottom: none;
    }

    .header_logo_text {
        gap: 3px;
        z-index: 7;
    }

    .header_logo_title {
        font-size: 1.1rem;
    }

    .header_logo_subtitle {
        font-size: 10px;
    }

    .header_logo img {
        width: 40px;
        height: 40px;
        z-index: 7;
    }

    .header_icon {
        z-index: 10;
        display: block;
        position: relative;
        width: 20px;
        height: 8px;
        cursor: pointer;
        margin: 0;
    }

    .header_icon::before,
    .header_icon::after {
        right: 0;
        position: absolute;
        height: 10%;
        width: 100%;
        transition: all 0.3s ease 0s;
        background-color: #fff;
    }

    .header_icon::before,
    .header_icon::after {
        content: "";
    }

    .header_icon::before {
        top: 0;
    }

    .header_icon::after {
        bottom: 0;
    }

    .header_icon._active::before {
        top: 50%;
        transform: rotate(-45deg) translate(0, -50%);
    }

    .header_icon._active::after {
        bottom: 50%;
        transform: rotate(45deg) translate(0, 50%);
    }

    .header_contacts {
        flex-grow: 1;
    }

    a.header_phone {
        position: relative;
        z-index: 10;
        font-size: 16px;
    }

    .header_phone span {
        font-size: 10px;
        align-self: flex-end;
    }

    nav > .social {
        display: block;
        width: 100%;
        position: relative;
        margin: 2rem auto 1rem auto;
        text-align: center;
    }

}

@media (max-width: 385px) {

    .header_contacts {
        display: flex;
        justify-content: flex-end;
        padding-right: 0;
    }

    a.header_phone {
        display: none;
    }

    .header_phone_icon {
        z-index: 10;
        text-align: right;
        width: 30px;
        height: 30px;
        background-image: url("/media/icons/phone.svg");
        background-size: contain;
        background-repeat: no-repeat;
        display: inline-block;
        margin-right: 10px;
    }

}