/*
Theme Name:        Виртуальный музей техникума "АМТ"
Theme URI:         
Description:       Это тема разработанная для дипломного проекта
Version:           1.0.0
Author:            ludanceera
Author URI:        https://t.me/hikknight
Tags:              музей, две-колонки, адаптивный, синий
Text Domain:       museum-almt
Requires at least: 6.0
Tested up to:      6.4
Requires PHP:      8.0
*/

/* ============================================
   1. БАЗОВЫЕ СТИЛИ И ПЕРЕМЕННЫЕ
   ============================================ */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --main-color: #009EE0;
    --second-color: #0082B5;
    --bg-warm: #FFFFFF;
    --text-color: #000000;
}

body {
    font-family: 'Oswald', sans-serif;
    background-color: #f9f9f9;
    color: var(--text-color);
    line-height: 1.5;
    height: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

/* ============================================
   2. ШАПКА САЙТА
   ============================================ */
   
header {
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

/* 2.1 Верхний блок (контакты) */
.firstHeadSection {
    background-color: var(--main-color);
}

.firstHeadSection .container-xxl {
    display: flex;
    justify-content: flex-end;
}

.headerContacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    list-style: none;
    padding: 5px 12px;
    margin: 0;
}

.headerContacts li {
    background-color: var(--second-color);
    padding: 4px 10px;
    border-radius: 2px;
}

.headerContacts a {
    color: var(--bg-warm);
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.headerContacts a:hover {
    opacity: 0.85;
}

/* 2.2 Средний блок (логотип + поиск) */
.logotypeHeadSection {
    padding: 15px 0;
    background-color: #f9f9f9;
}

.logotypeRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

.logo-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.logo-img {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logotypeHeadSection .custom-logo {
    width: 50px;
    height: 28px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text b {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.logo-text p {
    font-size: 13px;
    color: #555;
    text-transform: uppercase;
}

/* Поиск */
.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.search-btn:hover {
    transform: scale(1.1);
}

.search-btn svg {
    width: 22px;
    height: 22px;
}

.search-form-wrapper {
    flex: 1;
    margin: 0 15px;
    animation: fadeIn 0.3s ease;
}

.search-form {
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 8px 18px;
    border: 2px solid var(--main-color);
    border-radius: 20px;
    font-size: 15px;
    font-family: 'Oswald', sans-serif;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    border-color: var(--second-color);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 2.3 Нижний блок (навигация) - ИСПРАВЛЕН */
.navigathionHeadSection {
    background-color: var(--main-color);
    position: relative;
}

/* Важно: контейнер внутри должен быть относительным */
.navigathionHeadSection .container,
.navigathionHeadSection .container-xxl,
.navigathionHeadSection .row,
.navigathionHeadSection [class*="col-"] {
    position: static;
}

/* Оборачиваем контент в относительный контейнер */
.nav-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 55px;
}

/* Бургер-кнопка - теперь правильно позиционируется */
.burger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    margin-left: auto;
    z-index: 100;
    order: 2;
}

.burger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #FFFFFF;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Само меню */
#mainNav {
    display: block;
    flex: 1;
    order: 1;
}

#mainNav .navbar-nav {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
    justify-content: flex-start;
}

#mainNav .nav-item {
    position: relative;
}

#mainNav .nav-link {
    color: #FFFFFF !important;
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 500;
    padding: 15px 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    display: inline-block;
}

#mainNav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

#mainNav .nav-item.active .nav-link,
#mainNav .nav-item.current-menu-item .nav-link {
    background-color: var(--second-color);
}

/* Выпадающее меню */
#mainNav .dropdown-menu {
    background-color: var(--second-color);
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    z-index: 1000;
    display: none;
}

#mainNav .dropdown:hover .dropdown-menu,
#mainNav .dropdown-menu.show {
    display: block;
}

#mainNav .dropdown-menu .nav-link {
    font-size: 14px;
    text-transform: none;
    padding: 10px 14px;
    white-space: nowrap;
}

#mainNav .dropdown-menu .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Адаптив для планшетов и телефонов */
@media (max-width: 992px) {
    .nav-wrapper {
        flex-wrap: wrap;
    }
    
    .burger-btn {
        display: flex;
    }
    
    #mainNav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--main-color);
        display: none;
        z-index: 999;
        order: 3;
    }
    
    #mainNav.show {
        display: block;
    }
    
    #mainNav .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    
    #mainNav .nav-item {
        width: 100%;
    }
    
    #mainNav .nav-link {
        white-space: normal;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    #mainNav .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        background-color: rgba(0,0,0,0.2);
        display: none;
    }
    
    #mainNav .dropdown-menu.show {
        display: block;
    }
    
    #mainNav .dropdown .dropdown-menu {
        position: static;
    }
}

/* Десктоп - скрываем бургер, показываем меню */
@media (min-width: 993px) {
    .burger-btn {
        display: none !important;
    }
    
    #mainNav {
        display: block !important;
    }
}
/* ============================================
   3. ПОДВАЛ
   ============================================ */
   
.footer{
    margin-top: 15px;
}
.footer a.btn:hover {
    background-color: var(--second-color) !important;
    color: var(--bg-warm) !important;
    transition: all 0.3s ease;
}

.footer_copyright {
    background-color: var(--second-color);
    padding: 12px 15px;
    margin-top: 25px;
}

.footer-map-widget iframe {
    width: 100%;
    height: 250px;
    border: none;
}

/* ============================================
   4. ГЛАВНАЯ СТРАНИЦА
   ============================================ */
.min-vh-80 {
    min-height: 80vh;
}

.min-vh-70 {
    min-height: 70vh;
}
.museum-hero {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.position-absolute.bottom-0 {
    bottom: -1px !important;
}
/* Адаптивные стили для hero блока */

/* Заголовок */
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
}

/* Подзаголовок */
.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.5;
}

/* Кнопки */
.hero-btn-primary {
    background-color: #fff;
    color: var(--main-color);
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.hero-btn-outline {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.hero-btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Иконка */
.hero-icon {
    opacity: 0.75;
}

/* Планшеты (768px - 991px) */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-btn-primary,
    .hero-btn-outline {
        padding: 12px 30px !important;
        font-size: 0.9rem;
    }
}

/* Мобильные телефоны (576px - 767px) */
@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-btn-primary,
    .hero-btn-outline {
        padding: 10px 25px !important;
        font-size: 0.85rem;
    }
}

/* Маленькие телефоны (до 575px) */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-btn-primary,
    .hero-btn-outline {
        padding: 8px 20px !important;
        font-size: 0.75rem;
    }
    
    .d-flex.gap-3 {
        gap: 10px !important;
    }
}
/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}


/* 4.1 Секция истории */
.history-section {
    background-color: #f8f9fa;
}

.history-section .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.history-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.timeline-year {
    transition: transform 0.3s ease;
}

.card:hover .timeline-year {
    transform: scale(1.1);
}

.history-section .btn:hover {
    transform: translateX(5px);
    background-color: var(--second-color) !important;
}

/* 4.2 Секция музея */
.museum-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.museum-header {
    text-align: center;
    margin-bottom: 50px;
}

.museum-header h2 {
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.museum-header p {
    color: #6c757d;
    font-size: 1.25rem;
}

.museum-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.museum-card {
    display: flex;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.museum-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.museum-card-image {
    flex: 0 0 280px;
    /* Убираем фиксированную высоту */
    overflow: hidden;
    position: relative;
    background-color: #e9ecef; /* Цвет фона на время загрузки */
}

/* Добавляем псевдоэлемент для создания пропорций 4:3 */
.museum-card-image::before {
    content: "";
    display: block;
    padding-bottom: 75%; /* Соотношение 4:3 (высота = 75% от ширины) */
}

.museum-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Изображение заполняет блок, обрезая лишнее */
    object-position: center center;
    transition: transform 0.4s ease;
}

/* Альтернатива для портретных изображений - contain вместо cover */
/* Если хотите видеть изображение целиком без обрезания, раскомментируйте:
.museum-card-image img {
    object-fit: contain;
    background-color: #f8f9fa;
}
*/

.museum-card:hover .museum-card-image img {
    transform: scale(1.03);
}

.museum-card-content {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
}

.museum-card-category {
    display: inline-block;
    background: #009EE0;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    align-self: flex-start;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.museum-card-category:hover {
    background: #0082B5;
    transform: translateY(-2px);
}

.museum-card-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #1a1a2e;
    /* Обрезаем слишком длинные заголовки */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.museum-card-year,
.museum-card-author {
    font-size: 0.85rem;
    color: #009EE0;
    margin-bottom: 5px;
    flex-shrink: 0;
}

.museum-card-text {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.5;
    margin: 15px 0 20px;
    /* Обрезаем слишком длинный текст */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.museum-card-link {
    display: inline-block;
    padding: 8px 24px;
    background: transparent;
    border: 2px solid #009EE0;
    color: #009EE0;
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
    flex-shrink: 0;
}

.museum-card-link:hover {
    background: #009EE0;
    color: #fff;
}

.museum-archive-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: #009EE0;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.museum-archive-link:hover {
    background: #0082B5;
    transform: translateX(5px);
}

.museum-footer-link {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #dee2e6;
}

.museum-all-link {
    display: inline-block;
    padding: 12px 35px;
    background: transparent;
    border: 2px solid #009EE0;
    color: #009EE0;
    text-decoration: none;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.museum-all-link:hover {
    background: #009EE0;
    color: #fff;
    transform: translateX(5px);
}

/* Адаптив для мобильных устройств */
@media (max-width: 768px) {
    .museum-card {
        flex-direction: column;
    }
    
    .museum-card-image {
        flex: 0 0 auto;
    }
    
    .museum-card-image::before {
        padding-bottom: 56.25%; /* 16:9 для мобильных */
    }
    
    .museum-card-title {
        font-size: 1.2rem;
    }
}

/* 4.3 Секция виртуального тура */
.virtual-tour-section {
    position: relative;
    overflow: hidden;
}

.virtual-tour-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

/* 4.4 Секция квеста */
.kiosk-section .kiosk-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.kiosk-section .kiosk-icon svg {
    transition: transform 0.3s;
}

.kiosk-section .kiosk-icon svg:hover {
    transform: scale(1.05);
}

/* ============================================
   5. СТРАНИЦА ПОИСКА
   ============================================ */
.search-page {
    background: #f8f9fa;
    min-height: 70vh;
}

.search-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
}

.found-count {
    color: #6c757d;
    font-size: 16px;
    margin-top: 10px;
}

.search-results-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.search-result-card {
    display: flex;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    min-height: 220px;
}

.search-result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.search-result-image {
    flex: 0 0 220px;
    overflow: hidden;
    background: #e9ecef;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    aspect-ratio: 4/3;
}

.search-result-card:hover .search-result-image img {
    transform: scale(1.03);
}

.search-result-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.search-result-type {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #009EE0;
    margin-bottom: 10px;
}

.search-result-type i {
    font-size: 12px;
}

.search-result-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px;
}

.search-result-title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s;
}

.search-result-title a:hover {
    color: #009EE0;
}

.search-result-meta {
    margin-bottom: 12px;
}

.search-result-date {
    font-size: 13px;
    color: #6c757d;
}

.search-result-date i {
    margin-right: 5px;
}

.search-result-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 15px;
    flex: 1;
}

.search-result-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: #009EE0;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    align-self: flex-start;
}

.search-result-link:hover {
    background: #0082B5;
    gap: 12px;
}

.search-again .form-control {
    border: 1px solid #dee2e6;
    border-radius: 50px;
    padding: 10px 20px;
}

.search-again .form-control:focus {
    border-color: #009EE0;
    box-shadow: 0 0 0 2px rgba(0,158,224,0.2);
    outline: none;
}

.search-again .btn {
    border-radius: 50px;
    padding: 10px 24px;
}

/* Пагинация поиска */
.search-pagination {
    margin-top: 40px;
    text-align: center;
}

.search-pagination .page-numbers,
.navigation .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 5px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #009EE0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.search-pagination .page-numbers:hover,
.navigation .page-numbers:hover {
    background: #009EE0;
    color: #fff;
    border-color: #009EE0;
}

.search-pagination .current,
.navigation .current {
    background: #009EE0;
    color: #fff;
    border-color: #009EE0;
}

.search-pagination .prev,
.search-pagination .next,
.navigation .prev,
.navigation .next {
    padding: 10px 20px;
}

.navigation {
    text-align: center;
    margin-top: 40px;
}

.navigation .nav-links {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

/* Пустое состояние поиска */
.search-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.search-empty-icon {
    margin-bottom: 20px;
}

.search-empty-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.search-empty-text {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 30px;
}

.search-suggestions {
    max-width: 350px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 16px;
    text-align: left;
}

.search-suggestions h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-suggestions li {
    margin-bottom: 10px;
}

.search-suggestions a {
    color: #009EE0;
    text-decoration: none;
    transition: color 0.3s;
}

.search-suggestions a:hover {
    color: #0082B5;
}

/* ============================================
   6. СТРАНИЦЫ ЭКСПОНАТОВ
   ============================================ */
/* 6.1 Страница музея (page-museum) */
.museum-archive {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

.museum-archive-header {
    text-align: center;
    margin-bottom: 50px;
}

.museum-archive-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.museum-archive-description {
    font-size: 18px;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
}

.museum-archive-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.filter-label {
    font-weight: 600;
    color: var(--text-color);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    display: inline-block;
    padding: 6px 18px;
    background: #f8f9fa;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--main-color);
    color: #fff;
}

/* Активная кнопка фильтра */
.filter-btn.active {
    background: var(--main-color, #009EE0);
    color: #fff;
    pointer-events: none; /* Запрещаем клик по активной кнопке */
}

/* Кнопка сброса фильтра */
.filter-clear {
    display: inline-block;
    margin-left: 15px;
    padding: 6px 15px;
    background: #f8f9fa;
    color: #dc3545;
    text-decoration: none;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-clear:hover {
    background: #dc3545;
    color: #fff;
}

/* Сообщение при пустой категории */
.museum-archive-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 20px;
}

.museum-archive-empty p {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 20px;
}

.museum-all-link {
    display: inline-block;
    padding: 10px 25px;
    background: var(--main-color, #009EE0);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.museum-all-link:hover {
    background: #0082B5;
    transform: translateX(5px);
}


.museum-archive-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.museum-archive-card {
    display: flex;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.museum-archive-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Исправленный блок с изображением - фиксированные пропорции */
.museum-archive-card-image {
    flex: 0 0 250px;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

/* Создаем пропорциональный блок 4:3 */
.museum-archive-card-image::before {
    content: "";
    display: block;
    padding-bottom: 75%; /* 4:3 соотношение */
}

.museum-archive-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.4s ease;
}

.museum-archive-card:hover .museum-archive-card-image img {
    transform: scale(1.03);
}

.museum-archive-card-content {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
}

.museum-archive-card-category {
    display: inline-block;
    background: var(--main-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    align-self: flex-start;
    flex-shrink: 0;
}

.museum-archive-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 10px;
    /* Обрезаем длинные заголовки */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.museum-archive-card-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.museum-archive-card-title a:hover {
    color: var(--main-color);
}

.museum-archive-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.museum-archive-card-meta .meta-year,
.museum-archive-card-meta .meta-author {
    color: var(--main-color);
}

.museum-archive-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 20px;
    /* Обрезаем длинный текст до 3 строк */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.museum-archive-card-link {
    display: inline-block;
    padding: 8px 24px;
    background: transparent;
    border: 2px solid var(--main-color);
    color: var(--main-color);
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto; /* Прижимаем кнопку к низу */
    flex-shrink: 0;
}

.museum-archive-card-link:hover {
    background: var(--main-color);
    color: #fff;
}

/* Адаптив для мобильных устройств */
@media (max-width: 992px) {
    .museum-archive-title {
        font-size: 32px;
    }
    
    .museum-archive-description {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .museum-archive-filters {
        flex-direction: column;
        border-radius: 20px;
        padding: 15px;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .filter-clear {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .museum-archive {
        padding: 40px 0;
    }
    
    .museum-archive-title {
        font-size: 28px;
    }
    
    /* Карточка становится вертикальной */
    .museum-archive-card {
        flex-direction: column;
    }
    
    /* Блок с изображением */
    .museum-archive-card-image {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .museum-archive-card-image::before {
        padding-bottom: 60%; /* Немного меняем пропорцию для мобильных */
    }
    
    /* Контент карточки */
    .museum-archive-card-content {
        padding: 20px;
    }
    
    .museum-archive-card-title {
        font-size: 1.2rem;
    }
    
    .museum-archive-card-excerpt {
        font-size: 0.9rem;
        -webkit-line-clamp: 4; /* Показываем больше текста на мобильных */
    }
    
}

@media (max-width: 576px) {
    .museum-archive-title {
        font-size: 24px;
    }
    
    .museum-archive-header {
        margin-bottom: 30px;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .museum-archive-card-content {
        padding: 15px;
    }
    
    .museum-archive-card-title {
        font-size: 1.1rem;
    }
    
    .museum-archive-card-meta {
        gap: 10px;
        font-size: 0.75rem;
    }
    
    .museum-archive-card-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
        margin-bottom: 15px;
    }
    
    .museum-archive-card-link {
        padding: 6px 18px;
        font-size: 0.8rem;
    }
    
    .museum-archive-card-category {
        font-size: 0.65rem;
        padding: 3px 10px;
    }
    
    
    .filter-clear {
        font-size: 11px;
        padding: 4px 12px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 400px) {
    .filter-buttons {
        gap: 5px;
    }
    
    .filter-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .museum-archive-card-image::before {
        padding-bottom: 66.66%; /* 3:2 для очень маленьких */
    }
}

/* Адаптив для страницы категории */
@media (max-width: 768px) {
    .museum-category-card {
        flex-direction: column;
    }
    
    .museum-category-card-image {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .museum-category-card-image::before {
        padding-bottom: 60%;
    }
    
    .museum-category-card-content {
        padding: 20px;
    }
    
    .museum-category-title {
        font-size: 28px;
    }
    
    .museum-category-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .nav-buttons {
        flex-wrap: wrap;
    }
    
    .nav-btn {
        padding: 6px 15px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .museum-category-title {
        font-size: 24px;
    }
    
    .museum-category-card-content {
        padding: 15px;
    }
    
    .museum-category-card-title {
        font-size: 1.1rem;
    }
    
    .museum-category-card-excerpt {
        font-size: 0.85rem;
    }
    
    .museum-category-card-link {
        padding: 6px 18px;
        font-size: 0.8rem;
    }
}

/* 6.2 Одиночный экспонат (single-exhibit) */
.single-exhibit {
    padding: 60px 0;
}

.exhibit-article {
    background: var(--bg-warm);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.exhibit-breadcrumbs {
    margin-bottom: 25px;
    font-size: 14px;
    color: #6c757d;
}

.exhibit-breadcrumbs a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.exhibit-breadcrumbs a:hover {
    color: var(--main-color);
}

.exhibit-breadcrumbs .separator {
    margin: 0 8px;
}

.exhibit-breadcrumbs .current {
    color: var(--main-color);
}

.exhibit-category-badge {
    display: inline-block;
    background: var(--main-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.exhibit-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.2;
}

.exhibit-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding: 15px 0;
    margin-bottom: 30px;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.exhibit-meta > div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6c757d;
}

/* Измененный блок с изображением - БЕЗ обрезания */
.exhibit-thumbnail {
    margin-bottom: 35px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #f8f9fa;
    text-align: center;
}

/* Убираем псевдоэлемент с фиксированными пропорциями */
.exhibit-thumbnail img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 16px;
}

/* Если нужно добавить фон для контраста, когда изображение меньше блока */
.exhibit-thumbnail {
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Или альтернативный вариант - изображение на весь блок, но без обрезания */
/* Раскомментируйте этот блок, если хотите, чтобы изображение растягивалось по ширине, но не обрезалось */
/*
.exhibit-thumbnail {
    position: relative;
    background: #f8f9fa;
}

.exhibit-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}
*/

.exhibit-content {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 50px;
}

.exhibit-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--main-color);
    display: inline-block;
}

.exhibit-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 40px;
    margin-bottom: 15px;
}

/* Изображения внутри контента - тоже без обрезания */
.exhibit-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    display: block;
}
blockquote {
    margin: 1.5rem 0;
    padding: 20px 30px;
    border-left: 4px solid var(--main-color);
    background: #f8f9fa;
    font-style: italic;
    border-radius: 0 12px 12px 0;
}

.exhibit-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

/* Адаптив для мобильных устройств */
@media (max-width: 768px) {
    .exhibit-article {
        padding: 20px;
    }
    
    .exhibit-title {
        font-size: 28px;
    }
    
    .exhibit-meta {
        gap: 15px;
    }
    
    .exhibit-thumbnail img {
        border-radius: 12px;
    }
}
/* ============================================
   7. ИСТОРИЯ ТЕХНИКУМА (custom post type)
   ============================================ */

/* 7.1 Архив и страница категорий */
.history-archive,
.history-category-page {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: 70vh;
}

.history-archive-header {
    text-align: center;
    margin-bottom: 50px;
}

.history-archive-title,
.category-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 45px;
}

.history-archive-description,
.category-description {
    font-size: 18px;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
}

.history-archive-list,
.history-category-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* КАРТОЧКА: картинка СЛЕВА, текст СПРАВА */
.history-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    /* Убираем фиксированную высоту - пусть карточка сама определяет размер */
}

.history-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* КАРТИНКА СЛЕВА - ФИКСИРОВАННЫЙ РАЗМЕР */
.history-card-image {
    flex: 0 0 320px; /* Не растягивается, всегда 320px */
    width: 320px;
    min-width: 320px; /* Запрещаем сжатие */
    overflow: hidden;
    background: #e9ecef;
    position: relative;
}

.history-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.history-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Изображение полностью заполняет область, обрезая лишнее */
    object-position: center;
    transition: transform 0.4s ease;
    display: block;
}

.history-card:hover .history-card-image img {
    transform: scale(1.03);
}

/* ТЕКСТ СПРАВА - ЗАНИМАЕТ ВСЕ ОСТАВШЕЕСЯ МЕСТО */
.history-card-content {
    flex: 1; /* Занимает всю оставшуюся ширину */
    padding: 30px;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Важно для корректного обтекания */
}

.history-card-category {
    display: inline-block;
    background: #009EE0;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 15px;
    width: fit-content;
}

.history-card-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.3;
}

.history-card-title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s;
}

.history-card-title a:hover {
    color: #009EE0;
}

.history-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    color: #6c757d;
}

.history-card-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 20px;
    /* Убираем overflow и max-height - текст отображается полностью */
    overflow: visible;
    max-height: none;
}

.history-card-link {
    display: inline-block;
    padding: 10px 28px;
    background: transparent;
    border: 2px solid #009EE0;
    color: #009EE0;
    text-decoration: none;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    align-self: flex-start;
    margin-top: auto; /* Прижимает кнопку к низу */
}

.history-card-link:hover {
    background: #009EE0;
    color: #fff;
}

/* Адаптив - на мобильных картинка сверху */
@media (max-width: 768px) {
    .history-card {
        flex-direction: column;
    }
    
    .history-card-image {
        flex: 0 0 250px;
        width: 100%;
        min-width: auto;
    }
    
    .history-card-content {
        padding: 20px;
    }
    
    .history-card-title {
        font-size: 22px;
    }
}
/* 7.2 Одиночная запись истории (single-technical_history) */
.single-history {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: 70vh;
}

.history-article {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

.history-breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    color: #6c757d;
}

.history-breadcrumbs a {
    color: #6c757d;
    text-decoration: none;
}

.history-breadcrumbs a:hover {
    color: #009EE0;
}

.history-breadcrumbs .sep {
    margin: 0 8px;
}

.history-breadcrumbs .current {
    color: #009EE0;
}

.history-category {
    display: inline-block;
    background: #009EE0;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.history-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 20px;
    line-height: 1.2;
}

.history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px 0;
    margin-bottom: 30px;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    color: #6c757d;
}

/* ИСПРАВЛЕНО: изображение не обрезается, отображается полностью */
.history-thumbnail {
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
}

.history-thumbnail img {
    width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: contain;
    display: block;
    border-radius: 16px;
}

.history-content {
    font-size: 18px;
    line-height: 1.8;
    color: #2c3e50;
}

.history-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: #1a1a2e;
}

.history-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.history-navigation {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.back-link {
    display: inline-block;
    padding: 10px 30px;
    background: transparent;
    border: 2px solid #009EE0;
    color: #009EE0;
    text-decoration: none;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.back-link:hover {
    background: #009EE0;
    color: #fff;
}

/* Адаптив для телефонов */
@media (max-width: 768px) {
    .single-history {
        padding: 40px 0;
    }
    
    .history-article {
        padding: 20px;
    }
    
    .history-title {
        font-size: 28px;
    }
    
    .history-meta {
        gap: 12px;
    }
    
    .history-content {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .history-title {
        font-size: 24px;
    }
    
    .history-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* ============================================
   7.3 АДАПТИВ ДЛЯ ИСТОРИИ
   ============================================ */
@media (max-width: 992px) {
    .history-card-image {
        flex: 0 0 280px;
    }
    
    .history-card-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .history-card {
        flex-direction: column !important;
    }
    
    .history-card-image {
        flex: 0 0 auto;
        width: 100%;
        height: 220px;
    }
    
    .history-card-image img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
    
    .history-card-content {
        padding: 20px;
    }
    
    .history-card-title {
        font-size: 20px;
    }
    
    .history-archive-title,
    .category-title {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .history-archive-title,
    .category-title {
        font-size: 26px;
    }
    
    .history-card-meta {
        gap: 12px;
        font-size: 12px;
    }
    
    .history-card-image {
        height: 180px;
    }
}
/* ============================================
   8. СТРАНИЦЫ (PAGE)
   ============================================ */
.page-main {
    min-height: 100vh;
    background: #f8f9fa;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-hero {
    position: relative;
    margin-bottom: 60px;
    border-radius: 30px 30px 0 0;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--main-color) 0%, var(--second-color) 100%);
    z-index: 0;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') repeat-x bottom;
    background-size: cover;
    z-index: 1;
    opacity: 0.3;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 40px 100px;
    color: white;
}

.page-hero-title {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 20px;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.page-hero-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0.2));
    margin: 0 auto;
    border-radius: 2px;
}

.page-content-wrapper {
    background: var(--bg-warm);
    border-radius: 0 0 30px 30px;
    margin-top: -30px;
    position: relative;
    z-index: 3;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
}

.page-content-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 30px;
}

.page-article {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.page-content {
    font-size: 18px;
    line-height: 1.8;
    color: #2c3e50;
}

.page-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--main-color);
    color: #1a1a2e;
}

.page-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 35px 0 15px;
    color: #1a1a2e;
}

.page-content p {
    margin-bottom: 1.5em;
    line-height: 1.8;
}

.page-content a {
    color: var(--main-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.page-content a:hover {
    color: var(--second-color);
    border-bottom-color: var(--second-color);
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid var(--main-color);
    padding: 20px 30px;
    margin: 30px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
}


/* ============================================
   9. ОБЩИЕ КОМПОНЕНТЫ (Пагинация, кнопки)
   ============================================ */


/* ============================================
   10. АДАПТИВ
   ============================================ */
/* Телефоны (до 576px) */
@media (max-width: 575.98px) {
    .headerContacts {
        gap: 4px;
        padding: 4px 8px;
    }
    
    .headerContacts li {
        padding: 3px 6px;
    }
    
    .headerContacts a {
        font-size: 11px;
    }
    
    .logotypeHeadSection {
        padding: 10px 0;
    }
    
    .logo-text {
        display: none;
    }
    
    .burger-btn {
        display: flex;
    }
    
    #mainNav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--main-color);
        z-index: 1000;
    }
    
    #mainNav.show {
        display: block !important;
    }
    
    #mainNav .navbar-nav {
        flex-direction: column !important;
    }
    
    #mainNav .nav-link {
        padding: 10px 18px;
        font-size: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .museum-card {
        flex-direction: column;
    }
    
    .museum-card-image {
        flex: 0 0 200px;
    }
    
    .history-card-inner {
        flex-direction: column;
    }
    
    .history-card-image {
        flex: 0 0 200px;
    }
    
    .search-result-card {
        flex-direction: column;
    }
    
    .search-result-image {
        flex: 0 0 200px;
    }
    
    .page-hero-title {
        font-size: 24px;
    }
    
    .exhibit-title,
    .history-title,
    .history-archive-title,
    .category-title,
    .museum-archive-title {
        font-size: 24px;
    }
}

/* Планшеты (576px - 991px) */
@media (min-width: 576px) and (max-width: 991.98px) {
    .burger-btn {
        display: flex;
    }
    
    #mainNav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--main-color);
        z-index: 1000;
    }
    
    #mainNav.show {
        display: block !important;
    }
    
    #mainNav .navbar-nav {
        flex-direction: column !important;
    }
    
    .history-card-inner {
        flex-direction: column;
    }
    
    .history-card-image {
        flex: 0 0 220px;
    }
}

/* Десктоп (от 992px) */
@media (min-width: 992px) {
    .burger-btn {
        display: none !important;
    }
    
    #mainNav {
        display: flex !important;
        justify-content: center;
    }
    
    .logotypeHeadSection .custom-logo {
        width: 55px !important;
        height: 30px !important;
    }
    
    .logo-text b {
        font-size: 22px;
    }
}

/* Дополнительные адаптивные правки */
@media (max-width: 768px) {
    .museum-section,
    .history-archive,
    .history-category-page,
    .single-exhibit,
    .single-history {
        padding: 40px 0;
    }
    
    .museum-header h2,
    .history-archive-title,
    .category-title {
        font-size: 28px;
    }
    
    .exhibit-title,
    .history-title {
        font-size: 28px;
    }
    
    .exhibit-article,
    .history-article {
        padding: 20px;
    }
    
    .exhibit-meta,
    .history-meta {
        gap: 12px;
    }
    
    .page-content {
        font-size: 16px;
    }
    
    .museum-archive-filters {
        flex-direction: column;
        border-radius: 20px;
    }
}

@media (max-width: 576px) {
    .museum-pagination .page-link,
    .museum-archive-pagination .page-link,
    .museum-category-pagination .page-link,
    .search-pagination .page-numbers,
    .navigation .page-numbers {
        min-width: 35px;
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .exhibit-meta,
    .history-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* ============================================
   7. СТРАНИЦА ЗАПИСИ (НОВОСТИ)
   ============================================ */

.single-post {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

.post-article {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

/* Хлебные крошки */
.post-breadcrumbs {
    margin-bottom: 25px;
    font-size: 14px;
    color: #6c757d;
}

.post-breadcrumbs a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-breadcrumbs a:hover {
    color: var(--main-color);
}

.post-breadcrumbs .separator {
    margin: 0 8px;
}

.post-breadcrumbs .current {
    color: var(--main-color);
}

/* Категория бейдж */
.post-category-badge {
    display: inline-block;
    background: var(--main-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 20px;
}

/* Заголовок */
.post-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.2;
}

/* Мета информация */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding: 15px 0;
    margin-bottom: 30px;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.post-meta > div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6c757d;
}

.meta-icon {
    font-size: 16px;
}

/* Миниатюра */
.post-thumbnail {
    margin-bottom: 35px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Контент */
.post-content {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 40px;
}

.post-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--main-color);
    display: inline-block;
}

.post-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 40px;
    margin-bottom: 15px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.post-content blockquote {
    margin: 1.5rem 0;
    padding: 20px 30px;
    border-left: 4px solid var(--main-color);
    background: #f8f9fa;
    font-style: italic;
    border-radius: 0 12px 12px 0;
}

/* Теги */
.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.tags-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    display: inline-block;
    padding: 5px 12px;
    background: #f8f9fa;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: var(--main-color);
    color: #fff;
}

/* Шаринг */
.post-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.share-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f8f9fa;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #333;
}

.share-link:hover {
    transform: translateY(-3px);
}

.share-link.vk:hover {
    background: #4c75a3;
    color: #fff;
}

.share-link.tg:hover {
    background: #0088cc;
    color: #fff;
}

/* Навигация между записями */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

.post-navigation a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-navigation a:hover {
    color: var(--main-color);
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-all {
    text-align: center;
}

/* Адаптив */
@media (max-width: 768px) {
    .single-post {
        padding: 40px 0;
    }
    
    .post-article {
        padding: 20px;
    }
    
    .post-title {
        font-size: 28px;
    }
    
    .post-meta {
        gap: 15px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-content {
        font-size: 16px;
    }
    
    .post-content h2 {
        font-size: 24px;
    }
    
    .post-content h3 {
        font-size: 20px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-previous,
    .nav-next,
    .nav-all {
        text-align: center;
    }
    
    .post-tags {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-share {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .post-title {
        font-size: 24px;
    }
    
    .post-article {
        padding: 15px;
    }
    
    .post-content blockquote {
        padding: 15px;
        font-size: 14px;
    }
}

/* ============================================
   8. СТРАНИЦА КАТЕГОРИИ НОВОСТЕЙ
   ============================================ */

.news-category {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

/* Заголовок категории */
.news-category-header {
    text-align: center;
    margin-bottom: 40px;
}

.news-category-badge {
    display: inline-block;
    background: var(--main-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.news-category-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.news-category-description {
    font-size: 18px;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto 20px;
}

.news-category-back {
    display: inline-block;
    color: var(--main-color);
    text-decoration: none;
    font-size: 15px;
    transition: transform 0.3s ease;
}

.news-category-back:hover {
    transform: translateX(-5px);
}

/* Навигация по категориям */
.news-category-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.nav-label {
    font-weight: 600;
    color: var(--text-color);
}

.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-btn {
    display: inline-block;
    padding: 6px 18px;
    background: #f8f9fa;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav-btn:hover,
.nav-btn.active {
    background: var(--main-color);
    color: #fff;
}

.nav-btn.active {
    pointer-events: none;
}

/* Сетка карточек */
.news-category-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Карточка новости */
.news-category-card {
    display: flex;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Изображение карточки */
.news-category-card-image {
    flex: 0 0 250px;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.news-category-card-image::before {
    content: "";
    display: block;
    padding-bottom: 75%;
}

.news-category-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-category-card:hover .news-category-card-image img {
    transform: scale(1.03);
}

.news-category-card-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-category-card-image.no-image svg {
    width: 100%;
    height: auto;
}

/* Контент карточки */
.news-category-card-content {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
}

.news-category-card-category {
    display: inline-block;
    background: var(--main-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.news-category-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 10px;
}

.news-category-card-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-category-card-title a:hover {
    color: var(--main-color);
}

.news-category-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #6c757d;
}

.news-category-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-category-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-category-card-link {
    display: inline-block;
    padding: 8px 24px;
    background: transparent;
    border: 2px solid var(--main-color);
    color: var(--main-color);
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.news-category-card-link:hover {
    background: var(--main-color);
    color: #fff;
}

/* Пустая категория */
.news-category-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 20px;
}

.news-category-empty p {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 20px;
}

.back-link {
    display: inline-block;
    padding: 10px 25px;
    background: var(--main-color);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: #0082B5;
    transform: translateX(5px);
}

/* Адаптив */
@media (max-width: 768px) {
    .news-category {
        padding: 40px 0;
    }
    
    .news-category-title {
        font-size: 28px;
    }
    
    .news-category-description {
        font-size: 16px;
    }
    
    .news-category-nav {
        flex-direction: column;
        border-radius: 20px;
    }
    
    .news-category-card {
        flex-direction: column;
    }
    
    .news-category-card-image {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .news-category-card-image::before {
        padding-bottom: 56.25%;
    }
    
    .news-category-card-content {
        padding: 20px;
    }
    
    .news-category-card-title {
        font-size: 1.2rem;
    }
    
    .news-category-pagination .page-link {
        min-width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .news-category-title {
        font-size: 24px;
    }
    
    .news-category-card-content {
        padding: 15px;
    }
    
    .news-category-card-title {
        font-size: 1.1rem;
    }
    
    .news-category-card-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
    
    .news-category-card-link {
        padding: 6px 18px;
        font-size: 0.8rem;
    }
    
    .nav-btn {
        padding: 4px 12px;
        font-size: 12px;
    }
}


/* Универсальная пагинация */
.universal-pagination {
    margin-top: 50px;
    text-align: center;
}

.universal-pagination .pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.universal-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    color: var(--text-color, #333);
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.universal-pagination .page-link:hover {
    background: var(--main-color, #009EE0);
    color: #fff;
    border-color: var(--main-color, #009EE0);
    transform: translateY(-2px);
}

.universal-pagination .active .page-link {
    background: var(--main-color, #009EE0);
    color: #fff;
    border-color: var(--main-color, #009EE0);
    cursor: default;
    pointer-events: none;
}

.universal-pagination .prev .page-link,
.universal-pagination .next .page-link {
    padding: 0 16px;
}

.universal-pagination .dots .page-link {
    background: transparent;
    border: none;
    pointer-events: none;
    cursor: default;
}

/* Адаптив */
@media (max-width: 576px) {
    .universal-pagination .page-link {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
        padding: 0 8px;
    }
    
    .universal-pagination .prev .page-link,
    .universal-pagination .next .page-link {
        padding: 0 10px;
    }
}

