#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 20px;
    z-index: 1000;
    
    /* Плавное появление/исчезновение */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Класс, который прячет меню */
.hidden {
    /* Сдвигаем меню вверх за пределы экрана и делаем прозрачным */
    transform: translateY(-110%); 
    opacity: 0;
}

/* Добавьте отступ для контента страницы, чтобы он не прятался под зафиксированную шапку */
body {
    margin-top: 80px; /* Высота вашей шапки + небольшой запас */
}





.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Затемненный фон */
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    animation-name: zoom;
    animation-duration: 0.3s;
}

@keyframes zoom {
    from {transform: scale(0);}
    to {transform: scale(1);}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 20px;
}