/* Adaptive styles for nicolesassaman.com */
/* Fixes for mobile menu */
.back_li {display: none;}
#header ul li span.arrow {display: none;}
#header ul li span.back {display: none;}
body #header ul ul {margin: 5px 0 0 -5px;}

/* Tablets and mobile devices (up to 1120px) */
@media only screen and (max-width: 1120px) {
    /* General styles */
    .zoom {background: none;}
    /*#content {min-width: 768px;}*/

    /* Heather */
    body #header ul {margin: 20px 0 0 0;}
    #header ul li ul li a {font-size: 12px;}
    body #header ul ul {margin: 15px 0 0 0;}
    #header ul li ul {padding: 0;}
    #header ul li:hover ul {padding: 0 10px 6px 0;}
    #header ul li a:hover, #header ul li span:hover {color: #000;}
    #header ul li a:after, #header ul li span:after {background: #777;}

    /* GRID */
    .grid {width: 756px;}

    /* Typography */
    h2 {font-size: 21px;}
    .btn {font-size: 10px;}

    /* Elements */
    .item {margin: 0 28px 70px 0;}

    /* Foot */
    #footer {padding: 0 0 70px 0;}
    #footer .socials a {font-size: 12px;}

    /* Cover */
    /*.pt-page, #cover #parallax {background-size: 1600px auto !important;}*/
    /*.pt-perspective, #cover #parallax {position: fixed;}*/
    /*#cover .slide_arrow {margin-top: -14px;}*/
    /*body #cover #second_title {display: none;}*/
    /*#cover #cover_title {position: absolute; margin-top: 0;}*/
    /*.page {margin-top: 0 !important; z-index: 3; position: relative;}*/

    /* Corrections for Heder */
    body #header ul ul {margin: 9px 0 0 0;}
    #header ul li:hover ul, #header ul li ul {padding: 0;}
    #header ul li.hover ul {max-height: 128px; padding: 0 10px 6px 0;}
}

/* Smartphones (up to 992px) */
@media only screen and (max-width: 992px) {
    /* General styles */
    body #header ul {margin: 13px 0 0 0;}
    #header ul li a:after, #header ul li span:after {background: #777;}
    #header ul li ul {background: transparent!important;}
    #header ul li:hover ul {padding: 4px 10px 6px 0;}

    /* Grid and containers */
    .grid {width: 468px;}
    .item {margin: 0 12px 40px 0;}


    /* Heather */
    #header ul li {
        padding: 0 1px 0 2px;
        display: flex;
        flex-direction: column;
    }
    #header ul li a:after, #header ul li span:after {background: transparent!important;}
    #header ul li span.arrow {display: none;}
    body #header ul ul {margin: 6px 0 0 -4px;}

    /* Foot */
    #footer {padding: 0 0 40px 0;}
    #footer .socials a {font-size: 10px;}

    /* Typography */
    h2 {font-size: 18px;}
    .btn {font-size: 9px;}

    /* Corrections for Heder */
    body #header ul ul {margin: 3px 0 0 -3px;}
    #header ul li:hover ul, #header ul li ul {
        max-height: initial;
        padding: 0;
        position: initial;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .menu .menu-link {
        font-weight: 700;
        font-size: 1.5rem !important;
    }
    .sub-menu .menu-link {
        font-weight: 400;
        font-size: 1.2rem !important;
    }
    #header ul li ul li {opacity: 1;}
    #header ul li.hover ul {max-height: 128px; padding: 4px 10px 6px 0;}
}

/* Small screens of smartphones (up to 479px) */
@media only screen and (max-width: 479px) {
    /* General styles */
    body {font-size: 13px;}
    .wrapper {width: 300px; padding: 0 10px;}
    #content {min-width: 320px;}
    .grid {width: 300px;}
    .item {margin: 0 0 30px 0;}

    /* Foot */
    #footer {padding: 0 0 40px 0;}
    #footer .socials {padding-top: 15px;}
    #footer .socials a {
        display: list-item;
        list-style: none;
        line-height: 19px;
        font-size: 12px;
    }
}

/* iPhone 5 & 5S в портретной ориентации */
@media only screen
and (min-device-width: 320px)
and (max-device-width: 568px)
and (orientation: portrait) {
    #homepage_bg {
        height: 568px !important;
        background-size: auto 568px !important;
    }
}

/* iPhone 6 в портретной ориентации */
@media only screen
and (min-device-width: 375px)
and (max-device-width: 667px)
and (orientation: portrait) {
    #homepage_bg {
        height: 667px !important;
        background-size: auto 667px !important;
    }
}

/* iPhone 6 Plus в портретной ориентации */
@media only screen
and (min-device-width: 414px)
and (max-device-width: 736px)
and (orientation: portrait) {
    #homepage_bg {
        height: 736px !important;
        background-size: auto 756px !important;
    }
}

/* Corrections for certain screens */
@media (width: 568px) {
    #about_gallery_2 {width: 568px;}
}

/* Для высоких экранов */
@media (min-height: 899px) {
    #download #block_1 #block_1_inner #block_1_inner_block {
        background-size: auto 100% !important;
        background-position: left top !important;
    }
    #download #block_3 {
        background-size: auto 100% !important;
        background-position: right top !important;
    }
    #download #block_2 {
        background-size: auto 100% !important;
        background-position: center top !important;
    }
}

/* Интеграция с Elementor для адаптивного дизайна */
@media only screen and (max-width: 1120px) {
    .elementor-section .elementor-container {
        max-width: 728px !important;
    }
}

@media only screen and (max-width: 992px) {
    .elementor-section .elementor-container {
        max-width: 456px !important;
    }
}

@media only screen and (max-width: 479px) {
    .elementor-section .elementor-container {
        max-width: 300px !important;
    }
}

/* Общие стили для мобильного меню Astra */
.menu-toggle {
    background-color: transparent!important;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 5px;
    height: 40px;
    z-index: 1000;
}

.alter .menu-toggle.active .menu-icon {
    background-color: transparent;
}
.alter .menu-toggle .menu-icon,
.alter .menu-toggle .menu-icon::before,
.alter .menu-toggle .menu-icon::after,
.alter_mobile .menu-toggle .menu-icon,
.alter_mobile .menu-toggle .menu-icon::before,
.alter_mobile .menu-toggle .menu-icon::after {
    background-color: #555;
}

.menu-toggle.active .menu-icon::before,
.menu-toggle.active .menu-icon::after {
    background-color: #fff;
}
.menu-toggle:focus {
    outline: none;
}

.menu-toggle .menu-icon {
    width: 30px;
    height: 3px;
    background-color: #fff;
    display: block;
    position: relative;
}

.menu-toggle.active,
.menu-toggle .menu-icon:focus {
     background-color: #555!important;
     border-bottom-color: #555!important;
}

.menu-toggle .menu-icon::before,
.menu-toggle .menu-icon::after {
    content: '';
    width: 30px;
    height: 3px;
    background-color: #fff;
    position: absolute;
    left: 0;
    transition: all 0.3s ease-in-out;
}

.menu-toggle .menu-icon::before {
    top: -8px;
}

.menu-toggle .menu-icon::after {
    top: 8px;
}

/* Открытое меню */
.menu-toggle.active .menu-icon {
    background-color: transparent;
}

.menu-toggle.active .menu-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .menu-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Стили для меню */
#site-navigation {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999;
}
body.admin-bar #site-navigation {
    top: 32px;
}
#site-navigation.active {
    display: flex;
    justify-content: center;
}

#site-navigation .menu {
    display: flex;
    flex-direction: column;
    padding: 15px;
    justify-content: center;
}

#site-navigation .menu li {
    margin-bottom: 20px;
    text-align: center;
}
#site-navigation .sub-menu li {
    margin-bottom: 0;
    text-align: left;
}

#site-navigation .menu li a {
    color: #fff;
    font-size: 15px;
    text-decoration: none;
}

#site-navigation .menu li a:hover {
    color: #f4f4f4;
}

/* Медиа-запросы */
@media only screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    #site-navigation {
        display: none;
    }
    #site-navigation .menu li a {
        color: #fff!important;
        font-size: 24px;
        line-height: normal;
        padding: 0;
    }
}

@media only screen and (min-width: 992px) {
    .menu-toggle {
        display: none;
    }
    #site-navigation {
        display: flex;
        position: unset;
        background: transparent;
        width: unset;
    }
    #site-navigation .menu {
        flex-direction: row;
        justify-content: center;
        padding: 0;
    }
}



