/* Version 51 - Cache bust */

/* ОСНОВНОЕ ПРАВИЛО: применяем стили ТОЛЬКО к основным страницам */
body:not(.admin-index):not(.login) .index-statistics_digits h2,
body:not(.admin-index):not(.login) .branch-stats .branch-stats_number {
    color: #009767 !important;
}

body:not(.admin-index):not(.login) .menu-contacts_email a {
    color: #009767 !important;
}

body:not(.admin-index):not(.login) .branch-page_close {
    color: #009767 !important;
}

body:not(.admin-index):not(.login) .branch-page_text a {
    color: #009767 !important;
}

/* Логотипы SVG с inline-атрибутами */
body:not(.admin-index):not(.login) .logo svg[width][height],
body:not(.admin-index):not(.login) .branch-page_logo svg[width][height] {
    max-width: 400px !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 20px !important;
}

/* Скрытие элементов */
body:not(.admin-index):not(.login) .branch-page_auto_image {
    display: none !important;
}

body:not(.admin-index):not(.login) a[href="http://www.eurosib-ab.ru/"] {
    display: none !important;
}

/* Ссылки в футерах */
body:not(.admin-index):not(.login) .branch-footer_item a,
body:not(.admin-index):not(.login) .menu-page-footer_text a,
body:not(.admin-index):not(.login) .menu-page_main-text a,
body:not(.admin-index):not(.login) a[href="mailto:ir@eurosib-group.biz"] {
    color: #009767 !important;
}

/* Тексты в футерах */
body:not(.admin-index):not(.login) .branch-footer_text,
body:not(.admin-index):not(.login) .menu-page-footer_text {
    color: #009767 !important;
}

/* Иконки */
body:not(.admin-index):not(.login) .branch-footer_icon svg path,
body:not(.admin-index):not(.login) .menu-page-footer_icon svg path {
    fill: #009767 !important;
    stroke: #009767 !important;
}

/* Telegram и Dzen */
body:not(.admin-index):not(.login) .menu-page_main-text a[href="http://t.me/eurosibgroup"],
body:not(.admin-index):not(.login) .menu-page_main-text a[href="https://dzen.ru/eurosibgroup"] {
    color: #009767 !important;
}
/* Исправляем перенос email адресов */
a[href="mailto:project@eurosib-group.biz"] {
    white-space: nowrap !important;
    word-break: keep-all !important;
    display: inline-block !important;
}

/* Или для всех email ссылок */
a[href^="mailto:"] {
    white-space: nowrap !important;
    word-break: keep-all !important;
}
/* Исправляем цвет ссылок в меню */
.menu-page_main-text a,
.menu-page_list a,
a[href="#index"],
a[href="#about-page"],
a[href="#invest-page"],
a[href="#work-page"],
a[href="#contacts-page"],
a[href="#branch-transport"],
a[href="#branch-auto"], 
a[href="#branch-management"],
a[href="#social-page"] {
    color: #009767 !important;
}

/* Иконки в меню */
.menu-page_list svg path {
    fill: #009767 !important;
}
/* ТОЛЬКО центровка текста, не трогаем подложку */
.contact_text {
    text-align: center !important;
    max-width: 400px !important;
    margin: 0 auto !important;
}

/* Скрываем пустые блоки */
.contact:has(.contact_name:empty:not(:has(*))) {
    display: none !important;
}
/* Увеличиваем блоки для ФИО */
.contact {
    min-width: 300px !important;
    margin-bottom: 25px !important;
}

.contact_name {
    white-space: nowrap !important;
    /* Убираем многоточие */
    text-overflow: unset !important;
    overflow: visible !important;
}

/* Увеличиваем контейнер контактов */
.menu-page_contacts {
    min-width: 350px !important;
}
/* Расположение в один столбец */
.menu-page_contacts {
    min-width: 350px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 25px !important;
}

.contact {
    min-width: 300px !important;
    display: block !important;
    text-align: left !important;
    width: 100% !important;
}

.contact_name {
    white-space: nowrap !important;
    font-weight: bold !important;
    margin-bottom: 5px !important;
    display: block !important;
    text-align: left !important;
}

.contact_position, .contact_company {
    white-space: nowrap !important;
    display: block !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

/* Убираем любые центрирования и плавающие элементы */
.contact > * {
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    float: none !important;
}
