
/* ==========================================
   КНОПКА «ДИСТАНЦИОННОЕ ОБУЧЕНИЕ»
   ШАБЛОН KIRO — PROJECKT
   ========================================== */

a.header-distance {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;

    padding: 12px 17px !important;

    background: #eaf0fa !important;
    color: #305aa6 !important;

    border: 1px solid transparent !important;
    border-radius: 14px !important;

    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;

    text-decoration: none !important;
    white-space: nowrap !important;

    position: relative !important;
    float: none !important;

    transition: all .25s ease !important;
}

/* ИКОНКА АКАДЕМИЧЕСКОЙ ШАПОЧКИ */

a.header-distance:before {
    content: "" !important;

    display: inline-block !important;
    position: static !important;
    flex-shrink: 0 !important;

    width: 17px !important;
    height: 17px !important;

    margin: 0 !important;
    padding: 0 !important;

    background-color: currentColor !important;

    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 10 10-5 10 5-10 5-10-5Z'/%3E%3Cpath d='M6 12v5c4 3 8 3 12 0v-5'/%3E%3Cpath d='M22 10v6'/%3E%3C/svg%3E") center / contain no-repeat !important;

    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 10 10-5 10 5-10 5-10-5Z'/%3E%3Cpath d='M6 12v5c4 3 8 3 12 0v-5'/%3E%3Cpath d='M22 10v6'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

/* СТРЕЛКА СПРАВА */

a.header-distance:after {
    content: "›" !important;

    display: inline-block !important;
    position: static !important;
    flex-shrink: 0 !important;
    float: none !important;

    width: auto !important;
    height: auto !important;

    margin: 0 0 0 3px !important;
    padding: 0 !important;

    border: none !important;
    transform: none !important;

    font-family: Arial, sans-serif !important;
    font-size: 23px !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    color: #305aa6 !important;

    transition: transform .25s ease, color .25s ease !important;
}

/* ЭФФЕКТ НАВЕДЕНИЯ */

a.header-distance:hover {
    background: #305aa6 !important;
    color: #ffffff !important;

    border-color: #305aa6 !important;

    transform: translateY(-2px) !important;

    box-shadow: 0 4px 12px rgba(48,90,166,.18) !important;
}

/* ИКОНКА И СТРЕЛКА ПРИ НАВЕДЕНИИ */

a.header-distance:hover:before,
a.header-distance:hover:after {
    color: #ffffff !important;
}

a.header-distance:hover:after {
    transform: translateX(3px) !important;
}

/* ПЛАВНОЕ ВОЗВРАЩЕНИЕ */

a.header-distance:not(:hover) {
    transform: translateY(0) !important;
}


/* ==========================================
   КНОПКА «СТАТИСТИЧЕСКИЕ ДАННЫЕ»
   ========================================== */

a.header-statistics {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;

    padding: 12px 17px !important;

    background: #eaf0fa !important;
    color: #305aa6 !important;

    border: 1px solid transparent !important;
    border-radius: 14px !important;

    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;

    text-decoration: none !important;
    white-space: nowrap !important;

    position: relative !important;
    float: none !important;

    transition: all .25s ease !important;
}

/* ИКОНКА ДИАГРАММЫ */

a.header-statistics:before {
    content: "" !important;

    display: inline-block !important;
    position: static !important;
    flex-shrink: 0 !important;

    width: 17px !important;
    height: 17px !important;

    margin: 0 !important;
    padding: 0 !important;

    background-color: currentColor !important;

    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='m19 9-5 5-4-4-5 5'/%3E%3C/svg%3E") center / contain no-repeat !important;

    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='m19 9-5 5-4-4-5 5'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

/* СТРЕЛКА СПРАВА */

a.header-statistics:after {
    content: "›" !important;

    display: inline-block !important;
    position: static !important;
    flex-shrink: 0 !important;
    float: none !important;

    width: auto !important;
    height: auto !important;

    margin: 0 0 0 3px !important;
    padding: 0 !important;

    border: none !important;
    transform: none !important;

    font-family: Arial, sans-serif !important;
    font-size: 23px !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    color: #305aa6 !important;

    transition: transform .25s ease, color .25s ease !important;
}

/* НАВЕДЕНИЕ */

a.header-statistics:hover {
    background: #305aa6 !important;
    color: #ffffff !important;

    border-color: #305aa6 !important;

    transform: translateY(-2px) !important;

    box-shadow: 0 4px 12px rgba(48,90,166,.18) !important;
}

/* ИКОНКА И СТРЕЛКА ПРИ НАВЕДЕНИИ */

a.header-statistics:hover:before,
a.header-statistics:hover:after {
    color: #ffffff !important;
}

a.header-statistics:hover:after {
    transform: translateX(3px) !important;
}

/* ==========================================
   ДОРАБОТКА КНОПОК В ШАПКЕ КИРО
   ========================================== */

/* Расстояние между кнопками */
a.header-distance {
    margin-right: 12px !important;
}

/* Иконка статистики — столбчатый график */
a.header-statistics:before {
    content: "" !important;
    display: inline-block !important;
    flex-shrink: 0 !important;

    width: 17px !important;
    height: 17px !important;

    background-color: currentColor !important;

    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M7 16v-3'/%3E%3Cpath d='M12 16V9'/%3E%3Cpath d='M17 16V5'/%3E%3Cpath d='m5 10 5-5 4 3 6-6'/%3E%3C/svg%3E") center / contain no-repeat !important;

    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M7 16v-3'/%3E%3Cpath d='M12 16V9'/%3E%3Cpath d='M17 16V5'/%3E%3Cpath d='m5 10 5-5 4 3 6-6'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

/* Сохранение цвета иконки при наведении */
a.header-statistics:hover:before {
    background-color: #ffffff !important;
}

/* ==========================================
   ИСПРАВЛЕНИЕ РАСПОЛОЖЕНИЯ ЭЛЕМЕНТОВ ШАПКИ
   ========================================== */

/* Правая часть шапки */
.head .links {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
}

/* Блоки модулей */
.head .links > div {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
}

/* Пункты меню в одну строку */
.head .links ul,
.head .links .nav {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Кнопки */
.head .links a.header-distance,
.head .links a.header-statistics {
    margin: 0 !important;
    flex-shrink: 0 !important;
}

/* Социальные значки */
.head .links img {
    display: inline-block !important;
    vertical-align: middle !important;
    max-width: 100%;
}

/* Запрет переноса содержимого */
.head .links {
    white-space: nowrap !important;
}

