/* =========================================================
   01 — HEADER
   ========================================================= */

.site-header {
    width: 100%;
    background: #eef4fb;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.header-top,
.header-nav {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   TOP
   ========================================================= */

.header-top {
    min-height: 76px;

    display: flex;
    align-items: center;
}


/* =========================================================
   LOGO
   ========================================================= */

.header-logo {
    color: var(--color-blue-dark);

    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .04em;

    text-decoration: none;
    white-space: nowrap;
}


/* =========================================================
   PHONE
   ========================================================= */

.header-phone {
    margin-left: auto;

    color: var(--color-blue-dark);

    font-size: 17px;
    font-weight: 700;

    text-decoration: none;
    white-space: nowrap;
}

.header-phone-icon {
    display: none;
}

.header-phone:hover {
    color: var(--color-blue-accent);
}


/* =========================================================
   LANGUAGE
   ========================================================= */

.header-lang {
    margin-left: 28px;

    display: flex;
    align-items: center;
    gap: 5px;

    font-size: 15px;
    line-height: 30px;
}

.header-lang a {
    color: #666;
    text-decoration: none;
}

.header-lang a.active {
    color: var(--color-blue-dark);
    font-weight: 700;
}

.header-lang a:hover {
    color: var(--color-blue-dark);
    font-weight: 700;
}

.header-lang span {
    color: #666;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.header-nav {
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;

    border-top: 1px solid #d6e1ee;
}

.header-nav a {
    padding: 14px 0;

    color: #555;

    font-size: 14px;
    line-height: 1;

    text-decoration: none;

    transition: color .2s ease;
}

.header-nav a:hover {
    color: var(--color-blue-dark);
}


/* =========================================================
   360–575
   ========================================================= */

@media (max-width: 575px) {

    .header-top,
    .header-nav {
        width: calc(100% - 30px);
    }

    .header-top {
        min-height: 64px;
    }

    .header-logo {
        font-size: 20px;
    }

    .header-phone {
        display: flex;
        align-items: center;
        justify-content: center;
    
        margin-left: auto;
        margin-right: 14px;
    
        color: var(--color-blue-dark);
        text-decoration: none;
    }
    
    .header-phone-number {
        display: none;
    }
    
    .header-phone-icon {
        display: block;
        font-size: 20px;
        line-height: 1;
    }

    .header-lang {
        margin-left: 0;
        font-size: 14px;
    }


    /* Навигация — одна строка */

    .header-nav {
        min-height: auto;

        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 0;
        flex-wrap: nowrap;

        border-top: 1px solid #d6e1ee;
    }

    .header-nav a {
        padding: 11px 2px;

        font-size: 12px;
        line-height: 1;
        text-align: center;

        white-space: nowrap;
    }

}


/* =========================================================
   576–767
   ========================================================= */

@media (min-width: 576px) and (max-width: 767px) {

    .header-top,
    .header-nav {
        width: calc(100% - 30px);
    }

    .header-phone {
        margin-left: auto;
    }

    .header-lang {
        margin-left: 22px;
    }

    .header-nav {
        justify-content: center;
        gap: 22px;
    }
}


/* =========================================================
   768–1280
   ========================================================= */

@media (min-width: 768px) and (max-width: 1280px) {

    .header-top,
    .header-nav {
        width: calc(100% - 40px);
    }

    .header-nav {
        gap: 24px;
    }
}