/* Начало стилей для шапки мобильного меню */

/* Начало стилей для скрытого мобильного меню */
.main-menu-sandwich {
    position: fixed; /* Изменено с absolute на fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: rgba(0, 0, 0, 0);
    z-index: 1000; /* Увеличено значение z-index */
    transition: transform 0.3s ease; /* Добавлена анимация для плавного скрытия/показа */
}
.main-menu-sandwich.hidden {
    transform: translateY(-100%); /* Скрывает меню за верхним краем */
}
.transparent-text {
    color: white; /* Для лучшей видимости текста на прозрачном фоне */
    margin: 0;
    padding: 10px;
}
#header-mobile-content {
    position: relative; /* Необходимо для корректного позиционирования absolute-потомков */
}
.top-line {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.logo {
    text-align: left;
}
.mnubtn {
    text-align: right;
    padding: 0;
    margin: 0;
    cursor: pointer;
}
.mnuline {
    width: 100%;
}
.block-padding {
    padding: 20px;
}
.main-menu-mobile {
    position: fixed; /* Изменили с absolute на fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 20;
    overflow-y: auto; /* Добавили возможность прокрутки */
    -webkit-overflow-scrolling: touch; /* Для плавной прокрутки на iOS */
}
.close-btn {
    color: white;
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}
/* Конец стилей для скрытого мобильного меню */

/* Начало стилей для раскрытого мобильного меню */
.main-menu-mobile-full {
    font-family: Arial, sans-serif;
    width: 100%;
    min-height: 100%; /* Добавили минимальную высоту */
    padding-bottom: 20px; /* Добавили отступ снизу */
}
.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.menu-item {
    position: relative;
}
.menu-item > a {
    display: inline-block;
    color: #0066cc;
    font-weight: bold;
    text-decoration: none;
    padding: 12px 15px;
    width: calc(100% - 40px);
}
.toggle-icon {
    position: absolute;
    right: 15px;
    top: 12px;
    color: #0066cc;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.menu-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 0 15px;
}
.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.submenu li a {
    display: block;
    color: #0066cc;
    font-weight: normal;
    text-decoration: none;
    padding: 10px 25px;
}
.submenu.active {
    max-height: 500px; /* Достаточно большое значение для плавного раскрытия */
}
.toggle-icon.active {
    transform: rotate(180deg);
}
/* Конец стилей для раскрытого мобильного меню */

/* Конец стилей для шапки мобильного меню */

