* {
    margin: 0;
    padding: 0;
}

@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: Old_Classic;
    src: url(../Fonts/Old\ Classic.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;
}
.biography img{
    width: 45vw;
    margin: 1vw 0 2vw 0;
}
.biography p{
    font-family: Hero_light;
    font-size: 1vw;
    color: #12171D;
}
.biography{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 1vw;
    margin-top: 2vw;
    margin-bottom: 2vw;
}
footer {
    background-color: #595D5E;
    height: 5vw;
    display: flex;
    justify-content: center;
    align-items: center;
}
footer p {
    font-family: Hero_regular;
    font-size: 1vw;
    color: #F6F9FA;
}
.copyright {
    font-size: 2vw !important;
    margin-right: 0.3vw;
}

/* Мобильные стили */
@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;
    }

    .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 20px 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;
    }

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

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

    .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;
    }

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

    .biography img {
        width: 90vw;
        margin: 3vw 0;
    }

    .biography p {
        font-size: 3.5vw;
        line-height: 1.6;
        text-align: justify;
    }

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

    footer p {
        font-size: 3vw;
    }

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



/* Стили для поиска */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 23, 29, 0.9);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    background: #F6F9FA;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: translateY(-30px);
    transition: transform 0.3s ease;
}

.search-modal.active .search-modal-content {
    transform: translateY(0);
}

.search-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #E0E0E0;
    background: #FFFFFF;
}

.search-input {
    flex: 1;
    font-family: Hero_regular;
    font-size: 18px;
    padding: 12px 0;
    border: none;
    outline: none;
    background: transparent;
    color: #12171D;
}

.search-input::placeholder {
    color: #595D5E;
}

.search-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #595D5E;
    cursor: pointer;
    padding: 8px;
    margin-left: 15px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-close:hover {
    background: #f0f0f0;
    transform: rotate(90deg);
}

.search-results-container {
    max-height: 60vh;
    overflow-y: auto;
}

.search-results {
    padding: 20px;
}

.search-placeholder {
    text-align: center;
    padding: 40px 20px;
}

.search-placeholder-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.search-placeholder p {
    font-family: Hero_regular;
    font-size: 16px;
    color: #595D5E;
    margin-bottom: 30px;
}

.search-suggestions p {
    font-family: Hero_regular;
    font-size: 14px;
    color: #12171D;
    margin-bottom: 15px;
}

.search-suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.search-tag {
    background: #595D5E;
    color: #F6F9FA;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: Hero_light;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-tag:hover {
    background: #12171D;
    transform: translateY(-2px);
}

.search-loading {
    text-align: center;
    padding: 40px 20px;
}

.search-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E0E0E0;
    border-top: 3px solid #595D5E;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-loading p {
    font-family: Hero_regular;
    color: #595D5E;
    font-size: 16px;
}

.search-results-header {
    font-family: Hero_regular;
    font-size: 14px;
    color: #595D5E;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E0E0E0;
}

.search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.search-result-item:hover {
    background: rgba(116, 128, 127, 0.1);
}

.search-result-icon {
    font-size: 24px;
    margin-top: 5px;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-family: Hero_regular;
    font-size: 16px;
    color: #12171D;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.search-result-title:hover {
    color: #595D5E;
}

.search-result-description {
    font-family: Hero_light;
    font-size: 14px;
    color: #595D5E;
    margin-bottom: 8px;
}

.search-result-match {
    font-family: Hero_light;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.search-result-match mark {
    background: #FFE066;
    color: #12171D;
    padding: 2px 4px;
    border-radius: 3px;
}

.search-no-results, .search-error {
    text-align: center;
    padding: 40px 20px;
}

.search-no-results-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.search-no-results p, .search-error p {
    font-family: Hero_regular;
    color: #595D5E;
    margin-bottom: 10px;
}
/* Прокрутка мобильного меню и списка пунктов */
@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;
    }
}