/*------------------
    Контакты в шапке: телефон и email столбиком с иконками (base/header.tpl, .header_contacts)
------------------*/
header .cont.row
{
    flex-wrap: nowrap;
}

header .menu.row
{
    flex-wrap: nowrap;
}

header .header_contacts
{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;

    font-size: 14px;
    line-height: 1.2;
}

header .header_contacts a
{
    display: inline-flex;
    align-items: center;
    gap: 8px;

    transition: color .2s;
    white-space: nowrap;
    text-decoration: none;

    color: #6d7995;
}

header .header_contacts a:hover
{
    color: #151824;
}

header .header_contacts .ic
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 22px;
    height: 22px;

    transition: background .2s;

    border-radius: 50%;
    background: #ecf2ff;
}

header .header_contacts .ic svg
{
    width: 12px;
    height: 12px;

    transition: fill .2s;

    fill: #6d7995;
}

header .header_contacts a:hover .ic
{
    background: #6d7995;
}

header .header_contacts a:hover .ic svg
{
    fill: #fff;
}


/* Крупнее там, где есть место */
@media (min-width: 1366px)
{
    /* компенсация высоты крупных контактов — шапка остаётся прежней высоты */
    header .cont.row
    {
        padding-top: 21px;
        padding-bottom: 21px;
    }

    header .header_contacts
    {
        gap: 5px;

        font-size: 16px;
    }

    header .header_contacts .ic
    {
        width: 26px;
        height: 26px;
    }

    header .header_contacts .ic svg
    {
        width: 14px;
        height: 14px;
    }
}

@media (min-width: 1600px)
{
    header .cont.row
    {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    header .header_contacts
    {
        gap: 6px;

        font-size: 17px;
    }

    header .header_contacts a
    {
        gap: 10px;
    }

    header .header_contacts .ic
    {
        width: 28px;
        height: 28px;
    }

    header .header_contacts .ic svg
    {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 1439px)
{
    header .menu.row
    {
        gap: 22px;
    }
}

@media (max-width: 1279px)
{
    header .menu.row
    {
        gap: 16px;
    }

    header .menu.row .menu_item:first-child
    {
        margin-right: 48px;
    }
}

header .menu.row .menu_item > a
{
    white-space: nowrap;
}

/* Узкие ноутбуки, планшеты, телефоны: контакты — кнопки-иконки (номер и адрес — в подсказке/по нажатию) */
@media (max-width: 1199px)
{
    header .menu.row
    {
        gap: 14px;
    }

    header .menu.row .menu_item:first-child
    {
        margin-right: 24px;
    }

    header .header_contacts
    {
        flex-direction: row;
        gap: 10px;
    }

    header .header_contacts .t
    {
        display: none;
    }

    header .header_contacts .ic
    {
        width: 33px;
        height: 33px;

        border: 1px solid rgb(152, 185, 213);
        border-radius: 5px;
        background: #fff;
    }

    header .header_contacts .ic svg
    {
        width: 15px;
        height: 15px;
    }

    header .header_contacts a:hover .ic
    {
        border-color: #6d7995;
    }
}

@media (max-width: 1023px)
{
    header .menu.row .menu_item:first-child
    {
        margin-right: 0;
    }
}
