* {
    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;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Мобильный 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;
}

.contacts {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 1vw;
    margin-top: 2vw;
    margin-bottom: 2vw;
    flex: 1;
}
form input {
    border: none;
    border-bottom: 0.1vw solid #595D5E;
    font-family: Hero_regular;
    font-size: 1.2vw;
    color: #595D5E;
    padding: 0.2vw 0.5vw;
    width: 25vw;
    background-color: #F6F9FA;
}
form textarea{
    height: 12vw;
    width: 30vw;
    border: none;
    border-bottom: 0.1vw solid #595D5E;
    font-family: Hero_regular;
    font-size: 1.2vw;
    color: #595D5E;
    padding: 0.2vw 0.5vw;
    resize: none;
    background-color: #F6F9FA;
}
.contacts_all{
    border: 0.15vw solid #595D5E;
    border-radius: 0.8vw;
    padding: 3vw 5vw 2vw 5vw;
    width: 68vw;
}
form button {
    font-family: Hero_regular;
    font-size: 1.2vw;
    border: none;
    background-color: #595D5E;
    color: #F6F9FA;
    padding: 0.8vw 5vw;
    border-radius: 0.8vw;
    width: auto;
}

form button:hover {
    background-color: #F6F9FA;
    color: #595D5E;
    border: 0.1vw solid #595D5E;
    transition: 0.5s;
}
.contacts p{
    font-family: Hero_regular;
    font-size: 1.4vw;
    color: #12171D;
    text-align: center;
    margin: 2vw 0;
}
.contacts2{
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.contacts1{
    display: flex;
    flex-direction: column;
    gap: 3.35vw;
}
form{
    display: flex;
    flex-direction: column;
    gap: 3vw;
    align-items: center;
    width: 100%;
}
.contacts_icons img{
    height: 1.7vw;
}
.contacts_icons{
    display: flex;
    gap: 2vw;
    margin-top: 3vw;
    margin-bottom: 1vw;
}
footer {
    background-color: #595D5E;
    height: 5vw;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
}

footer p {
    font-family: Hero_regular;
    font-size: 1vw;
    color: #F6F9FA;
}

.copyright {
    font-size: 2vw !important;
    margin-right: 0.3vw;
}


/* Стили для чекбокса согласия с политикой конфиденциальности */
.privacy-consent {
    margin: 20px 0;
    display: flex;
    justify-content: flex-start;
}

.privacy-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: Hero_light;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: left;
}

.privacy-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #595D5E;
}

.privacy-text {
    color: #12171D;
    flex: 1;
}

.privacy-text a {
    color: #595D5E;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.privacy-text a:hover {
    color: #12171D;
}

/* Мобильные стили */
@media (max-width: 768px) {
    .container {
        margin: 0 5vw;
    }

    body {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    /* Мобильный 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;
    }

    /* Контент контактов */
    .contacts {
        margin-top: 30px;
        margin-bottom: 30px;
        gap: 20px;
        flex: 1;
        padding: 0 20px;
        justify-content: start;
    }

    h2 {
        font-size: 32px;
        text-align: center;
    }

    .line {
        width: 80px;
        height: 2px;
        margin-bottom: 20px;
    }

    .contacts p {
        font-size: 16px;
        text-align: center;
        margin: 20px 0;
        line-height: 1.5;
    }

    .contacts_all {
        width: 100%;
        max-width: 400px;
        border: 2px solid #595D5E;
        border-radius: 15px;
        padding: 30px 20px;
        background-color: #fff;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    form {
        gap: 25px;
    }

    .contacts2 {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .contacts1 {
        gap: 20px;
    }

    form input {
        width: 100%;
        font-size: 16px;
        padding: 12px 0;
        border-bottom: 2px solid #595D5E;
        color: #12171D;
        box-sizing: border-box;
        background-color: #fff;
    }

    form input::placeholder {
        color: #595D5E;
        opacity: 0.7;
    }

    form textarea {
        width: 100%;
        height: 120px;
        font-size: 16px;
        padding: 12px 0;
        border-bottom: 2px solid #595D5E;
        color: #12171D;
        box-sizing: border-box;
        background-color: #fff;
    }

    form textarea::placeholder {
        color: #595D5E;
        opacity: 0.7;
    }

    form button {
        font-size: 18px;
        padding: 15px 40px;
        border-radius: 25px;
        width: auto;
        min-width: 150px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    form button:hover {
        background-color: #F6F9FA;
        color: #595D5E;
        border: 2px solid #595D5E;
    }

    .contacts_icons {
        display: flex;
        gap: 20px;
        margin-top: 30px;
        margin-bottom: 20px;
        justify-content: center;
    }

    .contacts_icons img {
        height: 40px;
        width: 40px;
        transition: transform 0.3s ease;
    }

    .contacts_icons img:hover {
        transform: scale(1.1);
    }

    /* Footer */
    footer {
        height: auto;
        padding: 20px;
        margin-top: auto;
    }

    footer p {
        font-size: 14px;
    }

    .copyright {
        font-size: 20px !important;
        margin-right: 5px;
    }

    /* Мобильные стили для чекбокса согласия */
    .privacy-consent {
        margin: 15px 0;
        padding: 0 10px;
    }

    .privacy-checkbox {
        font-size: 0.85rem;
    }

    .privacy-checkbox input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin-right: 8px;
    }
}

/* Прокрутка мобильного меню и списка пунктов */
@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;
    }
}