﻿/*----------------------------------------------------------
БАЗОВЫЕ СТИЛИ САЙТА
----------------------------------------------------------*/
body {
    background-color: #ffffff;
    font-size: .75em;
    font-family: Verdana, Helvetica, Sans-Serif;
    margin: 0 auto;
    padding: 20px;
    color: #696969;
}

#main a:link {
    color: #034af3;
    text-decoration: underline;
}

#main a:visited {
    color: #505abc;
}

a:hover {
    color: #1d60ff;
    text-decoration: none;
}

a:active {
    color: #12eb87;
}

p, ul {
    margin-bottom: 20px;
    line-height: 1.6em;
}

/* ЗАГОЛОВКИ */
h1, h2, h3, h4, h5, h6 {
    font-size: 1.5em;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
}

h1 {
    font-size: 2em;
    padding-bottom: 0;
    margin-bottom: 0;
}

h2 {
    padding: 0 0 10px 0;
}

h5, h6 {
    font-size: 1em;
}

/* ОСНОВНАЯ СЕТКА */
.page {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

#main {
    padding: 30px 30px 15px 30px;
    background-color: #fff;
    margin-bottom: 30px;
}

#footer {
    color: #999;
    padding: 10px 0;
    text-align: center;
    font-size: .9em;
}

/* ФОРМЫ И ВАЛИДАЦИЯ */
fieldset {
    padding: 1em;
    border: 1px solid #CCC;
}

input[type="text"], input[type="password"] {
    width: 200px;
    border: 1px solid #CCC;
}

.field-validation-error {
    color: #ff0000;
}

.input-validation-error {
    border: 1px solid #ff0000;
    background-color: #ffeeee;
}

/*----------------------------------------------------------
НОВОЕ ГОРИЗОНТАЛЬНОЕ МЕНЮ (МАКСИМАЛЬНЫЙ ПРИОРИТЕТ)
----------------------------------------------------------*/

/* 1. Контейнер: заставляем его быть Flex-рядом */
.menubg .menu-bar,
.menubg ul.sf-menu {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important; /* Запрет переноса на новую строку */
    width: 100% !important;
    list-style: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: none !important;
    float: none !important;
    clear: both !important;
}

    /* 2. ПУНКТЫ МЕНЮ: Убиваем 100% ширину из grid.css */
    .menubg ul.sf-menu li {
        flex: 0 1 auto !important; /* Запрещаем растягиваться */
        width: auto !important; /* Сброс синей полоски на весь экран */
        display: block !important;
        float: left !important; /* Для старых движков */
        margin: 0 10px !important;
        padding: 0 !important;
        background: none !important;
        border: none !important;
    }

        /* 3. Оформление ссылок и текста */
        .menubg ul.sf-menu li a,
        .menubg ul.sf-menu li span {
            display: block !important;
            padding: 10px 15px !important;
            white-space: nowrap !important; /* Текст строго в одну линию */
            font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
            font-size: 13px;
            font-weight: 600;
            text-transform: uppercase;
            text-decoration: none !important;
            color: #444 !important;
            background: none !important;
            transition: color 0.3s ease;
        }

            /* Эффекты наведения и активный пункт */
            .menubg ul.sf-menu li a:hover {
                color: #6699FF !important;
            }

        .menubg ul.sf-menu li.current-cat a,
        .menubg ul.sf-menu li.current-cat span {
            color: #6699FF !important;
            border-bottom: 2px solid #6699FF !important;
        }

        /* 4. БЛОК ЯЗЫКОВ (EN | UK | RU) */
        .menubg ul.sf-menu li.lang-wrapper {
            display: flex !important;
            flex-direction: row !important;
            align-items: center !important;
            border-left: 1px solid #ddd !important;
            margin-left: 15px !important;
            padding-left: 10px !important;
            width: auto !important;
        }

            .menubg ul.sf-menu li.lang-wrapper a {
                font-size: 11px !important;
                color: #999 !important;
                font-weight: normal !important;
                padding: 4px 6px !important;
                border: none !important;
            }

                .menubg ul.sf-menu li.lang-wrapper a.active-lang {
                    color: #6699FF !important;
                    font-weight: bold !important;
                }

.lang-sep {
    color: #ccc;
    font-size: 10px;
    padding: 0 2px;
}

/*----------------------------------------------------------
ВСПОМОГАТЕЛЬНЫЕ СТИЛИ
----------------------------------------------------------*/
.clear {
    clear: both;
}

DIV.ProgressBar {
    width: 100px;
    border: 1px solid black;
    height: .75em;
    display: inline-block;
}

    DIV.ProgressBar DIV {
        background-color: Green;
        height: 100%;
        float: left;
    }
