.header {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white--white100);
    box-shadow: 0 6px 10px 0 rgba(34, 35, 36, 0.10), 0 2px 3px 0 rgba(34, 35, 36, 0.15);
}

.header__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    align-self: stretch;
    padding: 24px 0;
}

.header__name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header__logo-img {
    display: flex;
    width: 48px;
    height: 48px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    aspect-ratio: 1/1;
    border-radius: 10px;
}

.header__company-name {
    font-size: inherit;
    font-weight: 500;
    line-height: 120%;
}

.header__menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header__link {
    transition: color 0.2s ease;
    font-size: inherit;
    font-weight: 500;
    line-height: 120%;
}

.header__link:hover {
    color: var(--azure--azure50);
}

.header__link.active {
    display: flex;
    padding: 8px 0;
    justify-content: center;
    align-items: center;
    color: var(--azure--azure50);
    border-radius: 2px;
    border-bottom: 2px solid var(--azure--azure50);
}

.header__contacts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
}

.header__phone-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    min-width: 180px;
}

.header__contacts-phone {
    font-size: inherit;
    font-weight: 500;
    line-height: 120%;
    transition: color 0.2s ease;
}

.header__contacts-phone:hover {
    color: var(--azure--azure50);
}

.header__social {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 6px;
    align-self: stretch;
}

@media (max-width: 1199px) {
    .header__wrapper {
        flex-wrap: wrap;
        gap: 16px 24px;
        padding: 18px 0;
    }

    .header__menu {
        order: 3;
        width: 100%;
        gap: 16px;
        flex-wrap: wrap;
    }

    .header__contacts {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .header__wrapper {
        gap: 12px;
        padding: 14px 0;
    }

    .header__logo-img {
        width: 40px;
        height: 40px;
    }

    .header__company-name {
        font-size: 14px;
    }

    .header__menu {
        gap: 10px 14px;
    }

    .header__link {
        font-size: 14px;
    }

    .header__contacts {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        margin-left: 0;
    }

    .header__phone-container {
        gap: 4px;
        min-width: auto;
    }

    .header__contacts-phone {
        font-size: 14px;
    }
}