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

@font-face {
    font-family: Hero_light;
    src: url(../Fonts/Hero\ light.ttf);
}

@font-face {
    font-family: Hero_regular;
    src: url(../Fonts/Hero\ regular.ttf);
}

@font-face {
    font-family: BonaNova;
    src: url(../Fonts/BonaNovaSC-Regular.ttf);
}

.container {
    margin: 0 8.5vw;
}

body {
    background-color: #F6F9FA;
}

/* Мобильный header */
.mobile-header {
    display: none;
}

header {
    background-color: #595D5E;
    height: 5vw;
}

.mobile-menu {
    margin: 0 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5vw;
}

.mobile-menu h1 {
    font-family: BonaNova;
    font-weight: 100;
    font-size: 3vw;
    color: #F6F9FA;
    padding-top: 0.5vw;
}

/* Стили для десктопного меню */
.main_menu {
    display: flex;
    list-style-type: none;
    align-items: center;
    gap: 2vw;
}

.main_menu a {
    text-decoration: none;
    font-family: Hero_regular;
    font-size: 1.2vw;
    color: #F6F9FA;
}

.menu-search, .menu-header {
    display: none;
}

.desktop-icons {
    display: flex;
    gap: 1vw;
}

.desktop-icons img {
    height: 1.5vw;
}

/* Подменю */
.sub_menu {
    display: none;
    position: absolute;
    background-color: #595D5E;
    list-style: none;
    padding: 1vw;
    border-radius: 0.5vw;
    margin-top: 1vw;
}

.main_menu li:hover .sub_menu {
    display: block;
}

.sub_menu li {
    margin: 0.5vw 0;
}

h2 {
    font-family: Hero_regular;
    font-size: 2.5vw;
    color: #12171D;
    font-weight: 100;
}

.line {
    width: 9vw;
    height: 0.2vw;
    background-color: #595D5E;
}

.preview {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 1vw;
    margin-top: 2vw;
    margin-bottom: 2vw;
}

.preview_content img {
    width: 10vw;
    height: auto;
}

.preview_content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 16vw;
}

.preview_text {
    width: 66vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0vw;
}

.preview_text_padding {
    /* padding: 4vw 0 1vw 0; */
    height: auto;
}

.preview_text p {
    font-family: Hero_regular;
    font-size: 1.8vw;
    color: #12171D;
}

.preview_text a {
    font-family: Hero_regular;
    font-size: 1.2vw;
    color: #12171D;
    text-decoration: none;
    border: 1px solid #595D5E;
    border-radius: 10px;
    padding: 0.5vw 1.5vw;
    margin-top: 1vw;
}

.preview_text a:hover {
    color: #F6F9FA;
    background-color: #595D5E;
    transition: 0.5s;
}

.preview_content_all {
    width: 100%;
    margin-top: 2vw;
    margin-bottom: 2vw;
    display: flex;
    flex-direction: column;
    gap: 4vw;
}

footer {
    background-color: #595D5E;
    height: 5vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
}

footer p {
    font-family: Hero_regular;
    font-size: 1vw;
    color: #F6F9FA;
}

.copyright {
    font-size: 2vw !important;
    margin-right: 0.3vw;
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .preview_content{
        width: 70% !important;
        gap: 2vw;
    }
    .preview_text p{
        font-size: 1.5vw !important;
    }
}

/* Мобильные стили */
@media (max-width: 768px) {
    .container {
        margin: 0 5vw;
    }

    /* Мобильный header */
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 10px 5px 10px;
        background-color: #595D5E;
        position: relative;
        z-index: 1001;
        width: 100%;
    }

    .mobile-header h1 {
        font-family: BonaNova;
        font-weight: 100;
        font-size: 9vw;
        color: #F6F9FA;
        margin: 0;
        padding: 0;
    }

    /* Бургер меню */
    .burger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 20px;
        width: 30px;
        cursor: pointer;
        z-index: 1000;
    }

    .search-icon {
        height: 24px;
    }

    .burger-menu span {
        width: 100%;
        height: 2px;
        background-color: #F6F9FA;
        transition: all 0.3s;
    }

    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Скрытие десктопного меню */
    header {
        height: auto;
    }

    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #595D5E;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 0 20px;
        transition: left 0.3s ease;
        z-index: 999;
        margin: 0;
        box-sizing: border-box;
    }

    .mobile-menu.active {
        display: block;
    }

    .mobile-menu h1 {
        display: none;
    }

    .menu-search, .menu-header {
        display: block;
        margin-bottom: 20px;
    }

    .menu-search {
        position: absolute;
        top: 80px;
        left: 20px;
        padding: 0 20px;
    }

    .menu-search img {
        width: 24px;
        height: 24px;
    }

    .menu-header {
        position: absolute;
        top: 100px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        padding: 0;
    }

    .menu-header a {
        display: flex;
        align-items: center;
        gap: 5px;
        text-decoration: none;
        font-family: Hero_regular;
        font-size: 20px;
        color: #F6F9FA;
    }


    .menu-header img {
        width: 32px;
        height: 32px;
    }

    .mobile-controls {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .main_menu {
        position: relative;
        top: 95px;
        transform: none;
        text-align: center;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .main_menu li {
        width: 100%;
        margin: 0;
        padding: 18px 0;
        border-bottom: 1px solid #f6f9fa3f;
    }

    .main_menu li:last-child {
        border-bottom: none;
    }

    .main_menu a {
        font-size: 20px;
        font-weight: 100;
        font-family: Hero_light;
    }

    .sub_menu {
        display: none;
    }

    .desktop-icons {
        display: none;
    }

    /* Контент афиши */
    h2 {
        font-size: 32px;
        text-align: center;
    }

    .line {
        width: 80px;
        height: 2px;
    }

    .preview {
        margin-top: 30px;
        margin-bottom: 30px;
        gap: 20px;
    }

    .preview_content {
        flex-direction: column;
        height: auto;
        gap: 3vw;
        padding: 4vw;
        background-color: white;
        border-radius: 2vw;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        box-sizing: border-box;
    }

    .preview_content img {
        width: 100%;
        max-width: 70vw;
        height: auto;
    }

    .preview_text {
        width: 100%;
        gap: 2vw;
        text-align: center;
        align-items: center;
    }

    .preview_text_padding {
        padding: 0;
        height: auto;
        width: 100%;
    }

    .preview_text p {
        font-size: 4vw;
        line-height: 1.4;
    }

    .preview_text a {
        font-size: 3.5vw;
        padding: 2vw 4vw;
        margin-top: 3vw;
        align-self: center;
    }

    .preview_content_all {
        gap: 6vw;
        margin-top: 4vw;
        width: 100%;
    }

    /* Footer */
    footer {
        height: 15vw;
        padding: 3vw;
    }

    footer p {
        font-size: 3vw;
    }

    .copyright {
        font-size: 5vw !important;
        margin-right: 1vw;
    }
}


/* Модальное окно для просмотра фотографий */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.photo-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-modal-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-modal img {
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
    max-width: 85vw;
    max-height: 85vh;
}

.photo-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #F6F9FA;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-modal-close:hover {
    color: #595D5E;
}

.photo-clickable {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.photo-clickable:hover {
    opacity: 0.8;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.5);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}
/* Прокрутка мобильного меню и списка пунктов */
@media screen and (max-width: 768px) {
    .mobile-menu {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-height: 100vh;
        padding: 60px 16px 16px; /* если уже есть — можно не дублировать */
    }
    .mobile-menu .main_menu {
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Усиление для горизонтальной ориентации маленьких телефонов */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .mobile-menu {
        padding-top: 56px;
        max-height: 100vh;
        overflow-y: auto;
    }
    .mobile-menu .main_menu {
        top: 30px; /* если используется относительное позиционирование */
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
}