/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #1a2530 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: white;
}

.logo-img {
    height: 60px;
    width: auto;
}

.logo-text h1 {
    font-family: 'PT Serif', serif;
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: white;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.8;
    color: white;
}

.header-contacts {
    text-align: right;
}

.header-contacts p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* Навигация */
.nav {
    background: rgba(0,0,0,0.1);
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    flex: 1;
}

.nav-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-list a:hover {
    background: rgba(255,255,255,0.1);
    border-bottom-color: #4C75A3;
}

.nav-list a.active {
    background: rgba(255,255,255,0.15);
    border-bottom-color: #4C75A3;
}

/* Хлебные крошки */
.breadcrumbs {
    background: #f5f5f5;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumbs a {
    color: #4C75A3;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: #666;
}

/* Основной контент */
.main-content {
    padding: 40px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-family: 'PT Serif', serif;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.page-subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* Стили для кнопки ВКонтакте - УПРОЩЕННЫЕ */
.vk-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background-color: #4C75A3 !important;
    color: white !important;
    text-decoration: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    margin: 5px 0 !important;
    min-height: 44px !important;
    box-shadow: 0 4px 6px rgba(76, 117, 163, 0.2) !important;
    border: 2px solid transparent !important;
    font-family: 'Open Sans', sans-serif !important;
    cursor: pointer !important;
}

/* ИКОНКА ВК - МАКСИМАЛЬНО ПРОСТО */
.vk-button i,
.vk-button i.fab.fa-vk {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 1.2em !important;
    color: white !important;
    margin-right: 8px !important;
}

.vk-button:hover {
    background-color: #3a5a80 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(76, 117, 163, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.vk-button:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(76, 117, 163, 0.2) !important;
}

.vk-button:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(76, 117, 163, 0.3) !important;
}

/* Стили для кнопки PDF - ДОБАВЛЕНО */
.pdf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    margin: 15px 0;
    min-height: 44px;
    box-shadow: 0 4px 6px rgba(44, 62, 80, 0.2);
    border: 2px solid transparent;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdf-button i {
    font-size: 1.2em;
    color: white;
}

.pdf-button:hover {
    background-color: #1a2530;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(44, 62, 80, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.pdf-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(44, 62, 80, 0.2);
}

.pdf-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.3);
}

/* Стили для блока с информацией об основателях - ДОБАВЛЕНО */
.founders-preview {
    background: #f8f9fa;
    border-left: 4px solid #4C75A3;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.founders-preview h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-family: 'PT Serif', serif;
    font-size: 1.2rem;
}

.founders-preview p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Исправление для кнопки ВК в контактах на странице "О музее" */
.contact-detail .vk-button {
    display: inline-flex !important;
    width: auto !important;
    margin-top: 10px !important;
}

/* Для страницы экспозиций */
.contact-details .vk-button {
    display: inline-flex !important;
    margin: 10px 0 !important;
}

/* Для футера */
.footer .vk-button {
    margin-top: 15px !important;
}

/* Для мобильной версии - отдельные стили */
@media screen and (max-width: 768px) {
    .vk-button {
        display: flex !important;
        width: 100% !important;
        padding: 14px 20px !important;
        margin: 15px 0 !important;
    }
    
    .vk-button i,
    .vk-button i.fab.fa-vk {
        display: inline !important;
        margin-right: 8px !important;
        font-size: 1.2em !important;
    }
    
    /* Стили для кнопки PDF на мобильных - ДОБАВЛЕНО */
    .pdf-button {
        width: 100%;
        padding: 14px 20px;
        margin: 15px 0;
    }
    
    .founders-preview {
        padding: 15px;
        margin: 15px 0;
    }
}

/* Герой секция */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 40px;
}

.slide-content h2 {
    font-family: 'PT Serif', serif;
    font-size: 2rem;
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background: #4C75A3;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #3a5a80;
    transform: translateY(-2px);
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.slider-controls button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-controls button:hover {
    background: rgba(255,255,255,0.3);
}

/* О музее на главной */
.about-preview {
    margin: 60px 0;
}

.about-preview-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Экспозиции на главной */
.exhibitions-preview {
    margin: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-family: 'PT Serif', serif;
    font-size: 2rem;
    color: #2c3e50;
}

.section-link {
    color: #4C75A3;
    text-decoration: none;
    font-weight: 600;
}

.section-link:hover {
    text-decoration: underline;
}

.exhibitions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.exhibition-preview {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.exhibition-preview:hover {
    transform: translateY(-5px);
}

.exhibition-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.exhibition-preview h3 {
    padding: 15px;
    font-size: 1.1rem;
    color: #2c3e50;
}

.exhibition-preview p {
    padding: 0 15px 15px;
    color: #666;
    font-size: 0.9rem;
}

/* Подвал */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h3 {
    font-family: 'PT Serif', serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: white;
}

.footer-col p {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin: 10px 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-links a.active {
    color: #4C75A3;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

/* Стили для страницы О музее */
.about-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 40px 0;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-family: 'PT Serif', serif;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.image-caption {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 10px;
}

.mission-section {
    margin: 60px 0;
}

.mission-section h2 {
    text-align: center;
    font-family: 'PT Serif', serif;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 40px;
}

.mission-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mission-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.mission-card i {
    font-size: 2.5rem;
    color: #4C75A3;
    margin-bottom: 20px;
}

.mission-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.halls-section {
    margin: 60px 0;
}

.halls-section h2 {
    font-family: 'PT Serif', serif;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 40px;
}

.halls-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.hall-card {
    display: flex;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    /* ИСПРАВЛЕНИЕ: Убираем фиксированную высоту для карточки */
    min-height: 200px; /* Минимальная высота вместо фиксированной */
}

/* ИСПРАВЛЕНИЕ: Делаем изображение растягивающимся по высоте контейнера */
.hall-card img {
    width: 200px;
    height: auto; /* Убираем фиксированную высоту */
    object-fit: cover; /* Сохраняем пропорции и заполняем область */
    flex-shrink: 0; /* Запрещаем сжатие изображения */
}

.hall-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Центрируем содержимое по вертикали */
}

.hall-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.additional-info {
    margin-top: 40px;
}

.additional-info h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.additional-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.additional-card {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.additional-card i {
    font-size: 2rem;
    color: #4C75A3;
    margin-bottom: 15px;
}

.additional-card h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.contact-info-section {
    margin: 60px 0;
}

.contact-info-section h2 {
    font-family: 'PT Serif', serif;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 40px;
}

.contact-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.contact-detail i {
    font-size: 1.5rem;
    color: #4C75A3;
    margin-top: 5px;
}

.contact-detail h4 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.contact-detail > div {
    flex: 1;
}

/* Стили для страницы Экспозиции */
.all-exhibitions {
    margin: 40px 0;
}

.exhibitions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.exhibition-card {
    display: flex;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.exhibition-image {
    width: 300px;
    height: 255.92px;
    overflow: hidden;
}

.exhibition-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exhibition-content {
    flex: 1;
    padding: 25px;
}

.exhibition-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.exhibition-period {
    color: #4C75A3;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.exhibition-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.exhibition-details {
    display: flex;
    gap: 20px;
    color: #888;
    font-size: 0.9rem;
}

.exhibition-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.museum-info {
    margin: 60px 0;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-card {
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.info-card i {
    font-size: 2.5rem;
    color: #4C75A3;
    margin-bottom: 20px;
}

.info-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.info-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.info-link {
    color: #4C75A3;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.info-link:hover {
    text-decoration: underline;
}

.contact-section {
    margin: 60px 0;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.contact-section h2 {
    font-family: 'PT Serif', serif;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 30px;
}

.contact-details p {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-details a {
    color: #4C75A3;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Мобильное меню - базовые стили */
.mobile-menu-footer {
    display: none;
}

/* Анимация для мобильного меню */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для видео секции */
.video-section {
    margin: 50px 0;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 соотношение сторон */
    height: 0;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background: #000;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container:hover .video-controls {
    opacity: 1;
}

.video-controls button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-controls button:hover {
    background: rgba(255,255,255,0.3);
}

.video-progress {
    flex-grow: 1;
    height: 5px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    overflow: hidden;
}

.video-progress-filled {
    height: 100%;
    background: #4C75A3;
    width: 0%;
}

.video-description {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
}

.video-description h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-family: 'PT Serif', serif;
    font-size: 1.5rem;
}

.video-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.video-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-info-item i {
    color: #4C75A3;
    min-width: 20px;
}

/* Анимация для загрузки видео */
@keyframes videoLoad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-section {
    animation: videoLoad 0.6s ease forwards;
}

/* Альтернативный вариант для старых браузеров */
.video-fallback {
    display: none;
}

.no-js .video-fallback {
    display: block;
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 10px;
}

.no-js .video-fallback p {
    margin-bottom: 20px;
    color: #666;
}