:root{
    --color-blue: #4d3bfe;
    --color-white: #fff;
    --dark: #26252d;
    --box: 0 4px 12px rgba(0, 0, 0, 0.06);
}

#header__new{
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 0;
}

#header__new p{
    margin: 0;
}

.lc-profile-container, .site-content-inner{
    padding-top: 30px;
}

.site-content{
    margin-top: 40px;
}

div.achievements-page{
    padding-top: 50px;
}

#header__new .searchNew span{
    color: var(--color-blue);
}

#header__new .header__top, #header__new .header__bottom{
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 24px;
}

#header__new .header__top{
    background: var(--dark);
    color: var(--color-white);
    padding-top: 6px;
    padding-bottom: 6px;
}

#header__new .header__bottom{
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
    box-shadow: var(--box);
}

#header__new .header__logo img{
    max-width: 100%;
    object-fit: contain;
}

#header__new .header__logo{
    max-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
}

#header__new .social-buttons--square .social-button {
    padding: 0;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    margin: 0 0 0 18px;
    transition: background-color 0.2s linear;
    background-color: transparent;
}

#header__new .social-buttons--square .social-button:hover {
    background-color: #e3e5e7;
}

#header__new .social-button:before {
    height: 100%;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

#header__new .search-icon {
    font-size: 1.1em;
}


#header__new .menu *, #header__new .menu, #header__new .menu-top *, #header__new .menu-top{
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#header__new .social-links{
    margin-left: auto;
}

#header__new li.menu-item.menu-item-type-custom.menu-item-object-custom.menu-item-lacorn-messages{
    display: none;
}

#header__new .menu{
    color: #000;
    font-size: 16px;
    font-weight: 600;
}


#header__new .menu, #header__new .menu-top{
    display: flex;
    gap: 30px;
}

#header__new .menu-top a{
    color: var(--color-white);
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s linear;
}

#header__new .menu, #header__new a{
    text-decoration: none;
}

#header__new .has-child>a{
    display: flex;
    gap: 8px;
    align-items: center;
}

#header__new .has-child>a::after{
    content: '';
    width: 16px;
    height: 16px;
    display: block;
    margin-top: -1px;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3e%3cpath d='M4 7L8 11L12 7' stroke='%2384838D' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
}

#header__new .has-child:hover>a::after{
    transform: rotate(180deg);
}

#header__new .menu__item{
    position: relative;
    display: flex;
    flex-direction: column;
}

#header__new .menu>.menu__item>a{
    font-size: 16px;
}

#header__new .header__nav{
    width: 60%;
    margin: 0 auto;
}

#header__new .menu{
    justify-content: space-around;
}

#header__new .menu a{
    color: #000;
    transition: color 0.2s linear;
}

#header__new .sub-menu{
    position: absolute;
    z-index: 1;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
    width: fit-content;
    padding: 16px;
    background: #fff;
    border-radius: 10px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    box-shadow: var(--box);
    transition: all 0.2s linear;
}

#header__new .sub-menu a{
    color: #000;
    font-weight: 600;
    font-size: 13px;
    transition: color 0.2s linear;
}

#header__new .sub-menu a:hover, #header__new .menu a:hover, #header__new .menu-top a:hover{
    color: var(--color-blue);
}

#header__new .has-child:hover .sub-menu{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#header__new .menu__image{
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    width: 40px;
    height: 40px;
    transition: background-color 0.2s linear;
    background-color: var(--color-white);
    outline: none;
}

#header__new .lcab-burger-menu.is-open .lcab-burger-menu__line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -5px);
}

#header__new .lcab-burger-menu.is-open .lcab-burger-menu__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 4px);
}

#header__new .menu__image img{
    width: 90%;
    height: 90%;
    object-fit: contain;
}

#header__new .lcab-burger-menu {
    display: flex;
    border-radius: 8px;
    border: 2px solid #e5e7eb !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    padding: 10px;
    width: 40px;
    height: 40px;
    outline: none;
    transition: background-color 0.2s linear;
    background-color: var(--color-white);
}

#header__new .message.menu__image{
    margin-left: auto;
}

#header__new .lcab-burger-menu__line {
    width: 22px;
    background: var(--color-blue);
}

#header__new .menu__image:hover, #header__new .lcab-burger-menu:hover{
    background-color: #e3e5e7;
}

.image__mobail{
    display: none;
}

#header__new button.menu-toggle{
    display: none;
    padding: 6px;
}

/* Кнопка меню для мобильных (скрыта по умолчанию) */
button.menu-toggle {
    background: none;
    border: none;
    align-items: center;
    gap: 20px;
    border-radius: 8px;
    border: 2px solid #e5e7eb !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    background: var(--color-white);
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.menu-icon {
    display: block;
    width: 20px;
    border-radius: 10px;
    height: 3px;
    background-color: var(--color-blue);
    position: relative;
    transition: background-color 0.3s;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 3px;
    border-radius: 10px;
    background-color: var(--color-blue);
    left: 0;
    transition: transform 0.3s;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    bottom: -8px;
}


/* Мобильное меню (скрыто по умолчанию) */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    transition: right 0.4s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 0;
}

.mobile-nav {
    padding: 20px;
    flex-grow: 1;
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-list li {
    margin-bottom: 10px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    text-decoration: none;
    color: #444;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s;
}

.mobile-nav-link i {
    margin-right: 12px;
    color: #3498db;
    width: 20px;
    text-align: center;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background-color: #f0f7ff;
    color: #3498db;
}

.mobile-actions {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-block {
    width: 100%;
    padding: 14px;
}

.mobile-contacts {
    padding: 10px 20px 20px;
    border-top: 1px solid #eee;
}

.mobile-contacts h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #555;
}

.contact-item i {
    margin-right: 12px;
    color: #3498db;
    width: 20px;
}

/* Затемнение фона */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

#mobileMenu .menu-top, #mobileMenu .mobile-contacts{
    display: none;
}

#mobileMenu ul *, #mobileMenu ul{
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style-type: none;
}

#mobileMenu .mobile-nav a{
    font-weight: 600;
    font-size: 14px;
    color: #000;
    transition: color 0.2s linear;
}

body>.lcab-burger-menu{
    display: none !important;
}

#mobileMenu .mobile-nav a:hover{
    color: var(--color-blue);
}

.mobile-menu-header .logo{
    display: none;
}

.page{
    padding-top: 0;
}

#mobileMenu .close-menu{
    height: 36px;
}

/* Анимация для кнопки меню */
.menu-toggle.active .menu-icon, #mobileMenu .close-menu .menu-icon{
    background-color: transparent;
}

.menu-toggle.active .menu-icon::before, #mobileMenu .close-menu .menu-icon::before{
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .menu-icon::after, #mobileMenu .close-menu .menu-icon::after{
    transform: rotate(-45deg);
    bottom: 0;
}

.mobail-flex{
    display: none !important;
}

/* Адаптация: мобильная версия начиная с 1200px */
@media (max-width: 1200px) {
    .desktop-nav,
    .desktop-actions {
        display: none;
    }
    
    #header__new button.menu-toggle {
        display: flex;
    }
    
    .header {
        padding: 12px 0;
    }
    
    .demo-info {
        flex-direction: column;
    }

    #header__new .header__nav{
        display: none;
    }

    #header__new .lcab-burger-menu__line{
        display: none;
    }

    #header__new .profile{
        display: none;
    }

    .image__mobail{
        display: block;
    }
    
    button.close-menu{
        display: flex;
    }

    .mobail-flex{
        display: flex !important;
    }
}

/* Дополнительная адаптация для очень маленьких экранов */
@media (max-width: 768px) {
    .mobile-menu {
        width: 100%;
    }

    .mobile-menu-header .logo{
        display: flex;
    }

    .header-search{
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .close-menu{
        position: relative;
        top: 0;
        right: 0;
    }

    .mobile-menu-header .logo{
        max-width: 120px;
        margin-right: auto;
    }

    div.lcab-layout {
        padding-top: 60px;
    }

    .mobile-menu-header{
        height: auto;
        padding: 10px;
    }

    #header__new .header__top{
        display: none;
    }

    .searchNew{
        margin-left: auto;
    }

    #header__new .header__bottom{
        gap: 12px;
        padding: 8px 10px 10px;
    }

    #header__new .message.menu__image{
        display: none;
    }

    #mobileMenu .menu-top, #mobileMenu .mobile-contacts{
        display: flex;
    }

    #header__new .header-search {
        position: static;
    }
   
    #mobileMenu .menu-top{
        flex-direction: column;
    }
    
    .logo span {
        font-size: 1.3rem;
    }

    #mobileMenu .sub-menu a{
        font-weight: 400;
    }

    #mobileMenu .sub-menu{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px 10px;
    }

    #mobileMenu .has-child{
        gap: 6px;
        display: flex;
        flex-direction: column;
    }

    #mobileMenu .menu, #mobileMenu .menu-top, #mobileMenu .mobile-nav{
        gap: 8px;
        display: flex;
        flex-direction: column;
    }

    #mobileMenu .menu-top .sub-menu li:nth-child(2){
        order: 3;
    }
}

@media (max-width: 400px) {
    #header__new .header__logo{
        max-width: 110px;
    }
}


