/* Сброс и базовые настройки */
html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    color: #34495e;
    line-height: 1.6;
}

/* Заголовки — современный стиль */
h1 {
    font-size: 24px;
    color: #2c3e50;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
}

h2 {
    font-size: 20px;
    color: #3498db;
    font-weight: bold;
    margin-top: 25px;
    margin-bottom: 12px;
}

h3 {
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

h4 {
    font-size: 16px;
    color: #e74c3c;
    font-weight: bold;
    margin: 15px 0 10px;
}

h5 {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: bold;
    margin: 5px 0 12px;
}

/* Текст и списки */
p {
    font-size: 16px;
    color: #34495e;
    margin: 0 0 16px;
    line-height: 1.6;
}

li {
    margin-bottom: 6px;
    line-height: 1.6;
}

/* Ссылки */
a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

a:visited {
    color: #3498db;
}

a.underline,
a.underline:visited {
    text-decoration: underline;
}

/* Специфичные ссылки меню */
a.ml,
a.ml:visited {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    padding: 8px 12px 8px 16px;
    border-left: 3px solid #3498db;
    margin: 4px 0;
    background-color: #ecf0f1;
    border-radius: 0 4px 4px 0;
    transition: all 0.2s;
    text-decoration: none;
}

a.ml:hover {
    color: #2980b9;
    border-left-color: #2980b9;
    background-color: #dfe6e9;
    transform: translateX(4px);
}

/* Заголовки меню */
.mh {
    font-size: 14px;
    color: #fff;
    background-color: #2c3e50;
    font-weight: bold;
    padding: 8px 12px;
    margin: 10px 0 6px;
    border: none;
    border-radius: 4px;
}

/* Элементы меню */
.mi {
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.mi:hover {
    background-color: transparent;
}

/* Блоки макета */
.bb1 {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.logo {
    background-color: #2c3e50;
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.logo img {
    border-radius: 8px;
}

.header {
    background-color: #2c3e50;
    color: white;
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.header img {
    display: none; /* скрываем старое изображение заголовка — текст лучше */
}

.menubar {
    padding: 20px 0;
    background-color: #f8f9fa;
    border-right: 1px solid #eee;
    width: 186px;
}

.tdcontent {
    background-color: #ffffff;
    padding: 24px;
    border-bottom: none;
    font-size: 16px;
}

.tdcontent table {
    margin-bottom: 20px;
    width: 100%;
}

/* Футер */
.footer {
    padding: 14px;
    font-size: 13px;
    color: #7f8c8d;
    background-color: #2c3e50;
    text-align: center;
    border-top: 1px solid #34495e;
}

.footer a {
    color: #ecf0f1;
    text-decoration: underline;
    font-size: 13px;
}

.footer a:hover {
    color: #3498db;
}

/* Утилиты */
.bt1 {
    font-size: 18px;
    color: #3498db;
    font-weight: bold;
}

.mas {
    background-color: #ecf0f1;
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0;
}

.hide { display: none; }
.show { display: block; }
.ubtop { margin-top: 16px; }

a.ubtext,
a.ubtext:visited,
a.ubtext:hover {
    color: #34495e;
}

/* Макет */
.outerwrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.centercol {
    flex: 1;
    min-width: 300px;
    display: block;
    float: none;
    margin: 0;
}

.leftcol, .rightcol {
    display: none;
}

@media screen and (min-width: 1400px) {
    .leftcol {
        display: block;
        width: 180px;
        padding: 10px;
    }
    .rightcol {
        display: block;
        width: 180px;
        padding: 10px;
        position: sticky;
        top: 20px;
        align-self: flex-start;
    }
}

/* Cookie banner (оставим как есть, но чуть улучшим) */
.cc_container {
    background: #fff8e1;
    color: #5d4037;
    border: 1px solid #ffcc80;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    padding: 12px 16px;
    z-index: 9001;
}

.cc_container .cc_btn {
    background-color: #ffb300;
    color: #000;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.cc_container .cc_btn:hover {
    background-color: #ff8f00;
}

.cc_container a {
    color: #1a237e;
    font-weight: bold;
}

/* Анимация баннера */
@keyframes slideUp {
    from { transform: translateY(40px); }
    to { transform: translateY(0); }
}
.cc_container {
    animation: slideUp 0.6s ease-out;
}
.header {
    background-color: #2c3e50; /* Темно-синий фон */
    padding: 20px 0;
    text-align: center;
    border-bottom: 3px solid #3498db; /* Голубая линия снизу */
}

.header .header-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header h1 {
    margin: 0;
    font-size: 28px;
    color: white;
    font-weight: bold;
    letter-spacing: 1px;
}

.header hr {
    border: 0;
    border-top: 1px solid #3498db;
    width: 80%;
    margin: 10px auto;
}

.header p {
    margin: 0;
    font-size: 16px;
    color: #ecf0f1;
    font-style: italic;
}