/* Верхняя панель с поиском и соцсетями */
.top-bar {
    background-color: #3b5998; /* Темно-синий оттенок фона */
    padding: 8px 0;
}
.top-bar .social-links a {
    color: #fff;
    opacity: 0.8;
    font-size: 1.1rem;
    margin-right: 15px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.top-bar .social-links a:hover {
    opacity: 1;
}
.top-bar .search-input {
    border-radius: 0;
    border: none;
    height: 34px;
    font-size: 0.9rem;
}
.top-bar .search-btn {
    background-color: #5b84c4;
    color: white;
    border: none;
    height: 34px;
    padding: 0 20px;
    font-size: 0.9rem;
    border-radius: 0;
}

/* Средняя часть: Логотип и Контакты */
.main-header {
    padding: 25px 0;
    background-color: #fff;
}
.main-header .logo-text h1 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
}
.main-header .logo-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.lang-switcher a {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
}
.lang-switcher a.active {
    color: #111;
}
.header-phone {
    color: #4a75a0;
    font-weight: 500;
    text-decoration: none;
    font-size: 1.05rem;
}

/* Главное меню навигации */
.main-navbar {
    background-color: #6292be; /* Тот самый джинсово-синий цвет */
    padding: 0;
}
.main-navbar .nav-link {
    color: #ffffff !important;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 500;
    padding: 15px 20px !important;
    letter-spacing: 0.5px;
    position: relative;
}
/* Стили для активного пункта (Главная) */
.main-navbar .nav-item.active .nav-link {
    background-color: #467198; /* Более темный синий при активности */
}
/* Маленький белый треугольник под активным пунктом */
.main-navbar .nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent #ffffff transparent;
}
.main-navbar .dropdown-toggle::after {
    vertical-align: middle;
    margin-left: 5px;
}

.logo {
  width: 76px;
  height: 76px;
}

main {
  min-height: 100vh;
}



/* Стили подвала (Footer) */
.main-footer {
    background-color: #4a4a4a; /* Тёмно-серый фон оригинального сайта */
    color: #ffffff;
    padding: 40px 0 30px 0;
    font-size: 0.95rem;
}
.footer-heading {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 25px;
    color: #ffffff;
}
.footer-nav-list {
    list-style: none;
    padding-left: 0;
}
.footer-nav-list li {
    margin-bottom: 12px;
}
.footer-nav-list a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s;
}
.footer-nav-list a:hover {
    opacity: 0.8;
}
.footer-nav-list i {
    font-size: 0.7rem;
    color: #888;
    vertical-align: middle;
}

/* Блок статистики */
.stat-row {
    display: flex;
    background-color: #ffffff;
    color: #333;
    margin-bottom: 8px;
    border-radius: 4px;
    overflow: hidden;
    font-size: 0.9rem;
    max-width: 250px;
}
.stat-label {
    flex-grow: 1;
    padding: 5px 12px;
}
.stat-value {
    background-color: #529ecc; /* Голубой цвет для цифр */
    color: #ffffff;
    padding: 5px 15px;
    min-width: 60px;
    text-align: center;
    font-weight: bold;
}

/* Блок контактов */
.footer-contacts p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}
.footer-contacts i {
    color: #aaa;
    font-size: 1.1rem;
    margin-right: 12px;
    margin-top: 2px;
}

/* Самый нижний бар с копирайтом */
.bottom-footer {
    background-color: #2e2e2e; /* Более темный оттенок */
    color: #aaaaaa;
    padding: 15px 0;
    font-size: 0.85rem;
}
.bottom-footer a {
    color: #529ecc;
    text-decoration: none;
}
.bottom-footer .social-links a {
    color: #aaaaaa;
    margin-left: 15px;
    font-size: 1rem;
}
.bottom-footer .social-links a:hover {
    color: #ffffff;
}

/* Кнопка наверх */
.scroll-top-btn {
    background-color: #7bb1db;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}
.scroll-top-btn:hover {
    background-color: #529ecc;
    color: white;
}



/* news */
.news-page {
    padding-top: 30px;
    padding-bottom: 50px;
}
.news-page h2.page-title {
    font-size: 1.8rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 20px;
}
.breadcrumbs {
    font-size: 0.85rem;
    color: #888;
}
.breadcrumbs a {
    color: #888;
    text-decoration: none;
}

/* Карточка новости в списке */
.news-card-item {
    border-bottom: 1px dashed #dee2e6;
    padding-bottom: 25px;
    margin-bottom: 25px;
}
.news-card-item:last-child {
    border-bottom: none;
}
.news-img-wrapper img {
    width: 100%;
    max-width: 160px;
    height: auto;
    object-fit: cover;
    border: 1px solid #e9ecef;
}
.news-card-title {
    font-size: 1.15rem;
    color: #4a75a0;
    text-decoration: none;
    font-weight: 400;
    line-height: 1.4;
    transition: color 0.2s;
}
.news-card-title:hover {
    color: #335478;
}
.news-card-meta {
    font-size: 0.85rem;
    color: #8c8c8c;
    margin-top: 10px;
    margin-bottom: 10px;
}
.news-card-meta span {
    margin-right: 15px;
}
.news-card-meta i {
    margin-right: 4px;
}
.news-more-link {
    color: #4a75a0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Правая колонка: Категории */
.sidebar-box {
    background-color: #f7f9fb;
    border: 1px solid #eef2f5;
    padding: 20px;
}
.sidebar-title {
    font-size: 1.4rem;
    font-weight: 400;
    color: #4a75a0;
    margin-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}
.category-sidebar-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.category-sidebar-list li {
    padding: 8px 0;
    border-bottom: 1px solid #edf2f7;
}
.category-sidebar-list li:last-child {
    border-bottom: none;
}
.category-sidebar-list a {
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}
.category-sidebar-list a:hover {
    color: #4a75a0;
}
.category-sidebar-list i {
    font-size: 0.7rem;
    color: #a0aec0;
    margin-right: 10px;
}