* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
}

main {
    display: block;
    width: 100%;
    height: 100%;
}

.museum-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.museum-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/background-placeholder.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    object-fit: contain;
}

.halls-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* АДАПТИВНЫЙ ЛОГОТИП - используем относительные единицы */
.main-logo {
    position: absolute;
    top: 0%;
    left: 0%;
    z-index: 10;
    width: 19%; /* Используем проценты вместо фиксированных пикселей */
    max-width: 400px; /* Максимальный размер */
    min-width: 40px; /* Минимальный размер */
    height: auto;
    pointer-events: none;
    transition: width 0.3s ease; /* Плавное изменение размера */
}

/* Адаптивные размеры для разных экранов */
@media (max-width: 1200px) {
    .main-logo {
        width: 15%;
        max-width: 350px;
    }
}

@media (max-width: 992px) {
    .main-logo {
        width: 15%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .main-logo {
        width: 18%;
        max-width: 250px;
        top: 0%;
        left: 0%;
    }
}

@media (max-width: 576px) {
    .main-logo {
        width: 15%;
        max-width: 180px;
        top: 0%;
        left: 0%;
    }
}

@media (max-width: 480px) {
    .main-logo {
        width: 12%;
        max-width: 120px;
        top: 1%;
        left: 1%;
    }
}

/* Остальные ваши стили для кнопок оставьте без изменений */
.hall-button {
    position: absolute;
    border: none;
    cursor: pointer;
    padding: 0;
    overflow: visible;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    background: none;
    border-radius: 0 0 30px 0;
}

.hall-button:nth-child(1) { animation-delay: 0.2s; }
.hall-button:nth-child(2) { animation-delay: 0.5s; }
.hall-button:nth-child(3) { animation-delay: 0.8s; }

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

.hall-button:hover {
    transform: scale(1.05) translateY(-5px);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
}

.hall-button:active {
    transform: scale(0.98);
}

.button-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
    border-radius: 0 0 30px 0;
    overflow: hidden;
}

.hall-button:hover .button-image {
    transform: scale(1.05);
}

.title-overlay {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 3;
    pointer-events: none;
    animation: slideDown 0.8s ease-out;
}

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

.title-overlay h1 {
    color: white;
    font-size: 56px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
    letter-spacing: 3px;
    font-weight: 700;
}

.title-overlay p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

@media (max-width: 1024px) {
    .hall-button {
        transform: scale(0.85);
        transform-origin: top left;
    }
    
    .hall-button:nth-child(2) {
        transform-origin: top right;
    }
    
    .hall-button:nth-child(3) {
        transform-origin: bottom right;
    }
    
    .title-overlay h1 {
        font-size: 42px;
    }
    
    .title-overlay p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .hall-button {
        transform: scale(0.7);
        transform-origin: top left;
    }
    
    .hall-button:nth-child(2) {
        transform-origin: top right;
    }
    
    .hall-button:nth-child(3) {
        transform-origin: bottom right;
    }
    
    .title-overlay h1 {
        font-size: 28px;
    }
    
    .title-overlay p {
        font-size: 12px;
    }
}

@keyframes pulse {
    0% {
        filter: drop-shadow(0 0 0 0 rgba(255, 255, 255, 0.4));
    }
    70% {
        filter: drop-shadow(0 0 0 15px rgba(255, 255, 255, 0));
    }
    100% {
        filter: drop-shadow(0 0 0 0 rgba(255, 255, 255, 0));
    }
}

.hall-button:focus {
    outline: none;
    animation: pulse 1s;
}

.hall-button::-moz-focus-inner {
    border: 0;
}

/* Добавьте эти стили в конец вашего css/style.css */

/* Адаптивные размеры кнопок в зависимости от размера экрана */
@media (max-width: 1200px) {
    .hall-button {
        width: 18% !important;
        height: 22% !important;
    }
}

@media (max-width: 992px) {
    .hall-button {
        width: 16% !important;
        height: 20% !important;
    }
}

@media (max-width: 768px) {
    .hall-button {
        width: 15% !important;
        height: 18% !important;
    }
}

@media (max-width: 576px) {
    .hall-button {
        width: 12% !important;
        height: 15% !important;
    }
}

/* Убираем фиксированные трансформации для адаптивности */
@media (max-width: 1024px) {
    .hall-button {
        transform: none !important;
    }
}

@media (max-width: 768px) {
    .hall-button {
        transform: none !important;
    }
}
