.header {
    position: sticky;
    z-index: 99;
    top: -118px;
}


.header__contacts .mg-soc-icons .nav-list {
    margin: 0;
    justify-content: flex-start;
}

.header__contacts .mg-soc-icons .icons__list {
    margin: 0;
    padding: 0;
}

.header__contacts .mg-soc-icons .icons__item {
    margin: 0 !important;
}

.header__contacts .mg-soc-icons .icons__list {
    gap: 12px;
}

.header__contacts .icons__item:has(.icons__link[href*="vk."]) {
    display: none;
}

.mg-soc-icons .icons__link {
    transition: opacity .2s linear;
}

.mg-soc-icons .icons__link:hover {
    opacity: 0.85;
}

.header__top {
    position: sticky;
    top: 0;
    background-color: var(--header-top-color, #131921);
    z-index: 9;
}

.header__social-items {
    display: flex;
    gap: 8px;
}

.header__social-item {
    flex-shrink: 0;
}

.header__social {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__social svg {
    width: 100%;
    height: 100%;
}

.header__social:hover {
    opacity: 0.85;
}

.header__contacts {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header__contacts-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 4px;
}

.header__contacts .back-ring-button {
    background: #fff;
    color: #464a4b;
    margin: 0;
    font-size: 14px;
}

.header__contacts .back-ring-button:hover {
    color: #FFFFFF;
}

.header__contacts .wrapper-back-ring {
    margin: 0;
}

.header__contacts .phone__num {
    margin: 0;
}

.header__contacts .phone__text {
    margin: 0;
}

.header__contacts #form-constract {
    margin: 0;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
}

.header__contacts #form-constract:hover {
    background-color: var(--accent-color);
    color: #FFFFFF;
}

.header-top {
    height: auto !important;
}

@media (max-width: 1269px) {
    .header {
        top: -170px;
    }

    .header__contacts .phone__text {
        display: none;
    }
}

@media (max-width: 1005px) {
    .header {
        top: -134px;
    }

    .header__contacts {
        gap: 8px;
        flex-wrap: wrap;
    }

    .header__contacts-callback {
        display: none;
    }
}

@media (max-width: 640px) {
    .header {
        top: -118px;
    }
    .header__top .container {
        padding: 0 15px !important;
    }

    .header__contacts {
        column-gap: 0;
    }

    .header__contacts-phone {
        padding: 0;
        order: 1;
        width: 50%;
    }

    .header__contacts-mail {
        order: 2;
        margin-left: auto;
        width: 50%;
    }

    .header__contacts-social {
        order: 3;
        width: 50%;
    }

    .header__contacts-request {
        order: 4;
        margin-left: auto;
        width: 50%;
    }

    .header__mail {
        justify-content: flex-end;
    }

    .header__contacts .open-form {
        text-align: right;
    }

    .header__contacts #form-constract {
        margin-left: auto;
    }
}