header {

    nav li.menu-item-has-children:after {
        content: url('/wp-content/themes/royal/assets/icon/arrow-drop.svg');
        color: inherit;
        position: relative;
        margin-top: -4px;
    }
    nav li.menu-item-has-children ul{
        position: relative;

    }

    nav li.menu-item-has-children ul {
        display: none;
        position: absolute;
        padding: 20px 25px;

        top: calc(100% );
        border-radius: 10px;
        width: max-content;
        margin-left: 20px;
        background: rgb(203 185 255 / 0.1);
        /*backdrop-filter: blur(50px);*/
    }
    @media (min-width: 991px) {
        nav li.menu-item-has-children:hover ul {
            display: block;

        }
        nav li.menu-item-has-children:hover ul li{
            display: block;
            padding: 4px 0;
        }
    }


}



footer nav li.menu-item-has-children ul {
        /*display: none;*/
        padding-left: 15px;
    }
@media (max-width: 991px) {
    header nav li.menu-item-has-children ul {
        display: flex;
        flex-direction: column;
        gap: 16px;
        position: relative;
        background: none;
        margin-top: 0;
        padding: 0px;
        margin: 0;
    }
    header nav li.menu-item-has-children:after{
        content: none;
    }

}
/* ================= HEADER ================= */
header{
    /*position: absolute;*/
    z-index: 9;
    width: 100%;
    /*max-width: 1920px;*/
    position: fixed;
    top: 0;
    transition: top 0.5s;
}
header.header--hidden{
    top: -100%;
}
header.color-bg{
    background-color: #090B3280;
    backdrop-filter: blur(50px)

}

@media (min-width: 1921px) {
    /*header{*/
    /*    left: calc(50% - 960px);*/
    /*}*/
}
.header {
    width: 100%;
    margin: 0 auto;
    padding: 16px 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.header .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}
.header .logo img{
    max-width: 100%;
    max-height: 60px;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}
.header .logo .h1 {
    font-size: 18px;
    text-transform: uppercase;
    color: #eabe89;
    font-weight: 200;
    text-decoration: none;
    user-select: none;
    -webkit-user-drag: none;

}
.header .logo-front{
    display: flex;
    flex-direction: column;
    text-decoration: none;
    gap: 1px;
    align-items: center;
}
.header .logo-front h1{
    font-size: 18px;
    text-transform: uppercase;
    color: #eabe89;
    font-weight: 200;
}


.header .logo-front img{
    width: 70px;
}

@media (max-width: 1200px) {
    .header .logo-front img{
        width: 65px !important;
    }
}
@media (max-width: 900px) {
    .header .logo-front h1{
        font-size: 16px;
    }
}
.header nav ul{
    display: flex;
    margin-top: 0;
    color: #fff;
    position: relative;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.header nav li  {
    list-style: none;
    display: block;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 0;
    position: relative;
    flex: 0 0 auto;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}
.header nav li:has( .sub-menu){
    display: flex;
    gap: 8px;
}

@media (max-width: 991px) {
    .header nav li:has( .sub-menu){
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
}
.header nav a {
    position: relative;
    width: fit-content;
    font-family: 'Inter-my', sans-serif;
    font-weight: 500;
    color: #fff;
    font-size: 14px;
    letter-spacing: 0;
    line-height: normal;
    text-decoration: none;
    text-transform: uppercase;
}
.header nav a:hover{
    text-decoration: underline;
}

.header .arrow-stroke-wrapper {
    position: relative;
    width: 10px;
    height: 6px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header .arrow-stroke {
    position: absolute;
    top: 2px;
    left: 0;
    width: 10px;
    height: 6px;
    aspect-ratio: 0.57;
}
.header .burger{
    display: none;
}
/* интерактивные состояния header */

.header .arrow-stroke-wrapper:hover {
    opacity: 0.8;
}

.header .arrow-stroke-wrapper:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

.header .view:hover .text-wrapper {
    opacity: 0.8;
}

.header .view:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
    border-radius: 2px;
}
.header .menu .lang ul{
    display: flex;
    gap: 4px;
}
.header .menu .lang ul li{
    list-style: none;

}
.header .menu .lang ul li a{
    font-family: Inter-my, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    text-transform: uppercase;
    color: #737373;
    text-decoration: none;
}
.header .menu .lang ul li:not(:last-child) a:after{
    content: "/";
    margin-left: 4px;
    color: #737373;

}
.header .menu .lang ul li.current-lang a{
    color: #fff;
}
/* ================= FOOTER ================= */



footer{
    width: 100%;
    background-color: #090B32;
    color: #fff;
    position: relative;
    z-index: 5;
    font-family: Inter-my,sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 130%;
}
footer .footer-inner-top a{
    color: #fff;
    text-decoration: none;
    font-family: Inter-my,sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 130%;
    width: fit-content;
}

footer .footer-inner-top{
    display: grid;
    grid-template-columns:230px 1fr 165px 1.3fr;
    column-gap: 100px;
    row-gap: 40px;
    padding: 30px 0 60px;


}
footer .footer-inner-top .name-block{
    display: block;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 11px;
    font-weight: 300;
    font-size: 16px;
    line-height: 130%;
}
footer .footer-inner-top .div-1 img{
    width: 150px;
}
footer .footer-inner-top .contacts{
    margin: 22px 0 18px;
}
footer .footer-inner-top .contacts .tel,
footer .footer-inner-top .mail{
    display: flex;
    flex-direction: column;
    gap: 8px;
}
footer .footer-inner-top .div-3 span{
    font-size: 20px;
}
footer .footer-inner-top .div-4 ul li{
    list-style: none;
    padding: 6px 0;
}
footer .footer-inner-top .div-4 ul li a{
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
}
footer .footer-inner-top .social{
    display: flex;
    gap: 12px;
    margin-top: 40px;

}
footer .footer-inner-top .social img{
    width: 28px;
    opacity: 0.4;
    transition: opacity 0.2s;
}
footer .footer-inner-top .social a:hover img{
    opacity: 0.8;
}
footer .footer-inner-top .div-5{
    display: flex;
    flex-direction: column;
}
footer .footer-inner-top .div-5 .title-form{
    font-weight: 300;
    font-size: 16px;
    line-height: 130%;
    margin-bottom: 20px;
}
footer .footer-inner-top .div-5 .wpcf7{
    width: 100%;
}
footer .footer-inner-top .div-5 input:not([type="submit"]){
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #fff;
    box-sizing: border-box;
    box-shadow: none;
    border-radius: 0;
    font-weight: 300;
    font-size: 12px;
    line-height: 130%;
    padding:8px;
    margin-bottom: 8px;
    color: #fff;
    opacity: 0.5;
}
footer .footer-inner-top .div-5 input::placeholder{
    color: rgba(255, 255, 255, 0.5);
}

footer .footer-inner-top .div-5 input:not([type="submit"]):focus-visible{
    outline: none;
}

footer .footer-inner-top .div-5 input[type="submit"]{
    background-color: #fff;
    color:#090B32;
    opacity: 0.5;
    border-radius: 5px;
    width: fit-content;
    border: none;

    padding: 8px 40px;
    cursor: pointer;
    margin-top: 20px;
    transition: opacity 0.2s;
}

footer .footer-inner-top .div-5 input[type="submit"]:hover{
    opacity: 1;
}

footer .footer-inner-bottom{
    border-top: 0.5px solid #FFFFFF;

}
footer .footer-inner-bottom-inner{
    display: flex;
    justify-content: space-between;

    gap: 20px;
    align-items: center;
    padding: 22px 0;
}
footer .footer-inner-bottom-inner a,
footer .footer-inner-bottom-inner span,
footer .footer-inner-bottom-inner div{
    font-weight: 500;
    font-size: 16px;
    line-height: 130%;
    color: rgba(255, 255, 255, 0.5);

}
footer .footer-inner-bottom-inner div{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
footer .footer-inner-bottom-inner div p{
    margin: 0;
    margin-left: auto;
}
footer .footer-inner-top .map-points{
    margin-top: 12px;
    display: flex;
    gap: 20px;
}
footer .footer-inner-top .map-points a{
    display: flex;
    width: fit-content;
    gap: 5px;
    align-items: center;
    text-decoration: underline;
    line-height: 1.5;
    opacity: 0.5;
}
footer .footer-inner-top .div-3{
    grid-column: 1;
    grid-row: 2 ;
}
footer .footer-inner-top .div-2{
    grid-row: 1;
    grid-column: 2;
}

footer .footer-inner-top .div-2-2{
    grid-column: 2;
    grid-row: 2;
}

footer .footer-inner-top .div-5,
footer .footer-inner-top .div-4{
    grid-row:span 2;
}
footer .wpcf7-spinner{;
    display: none;
}
footer .footer-inner-top a:hover{
    opacity: 1;
    text-decoration: underline;
}
footer .footer-inner-bottom a:hover{
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 600px) {
    footer .footer-inner-top a,
    footer .footer-inner-top .div-4 ul li a,
    footer .footer-inner-top .div-5 .title-form{
        font-size:14px ;
    }
    footer .footer-inner-top .div-1 img{
        width: 110px;
    }
}



/* ============ MEDIA QUERIES (АДАПТИВ) ============ */

@media (max-width: 1700px) {

    .header nav ul {
        gap: 30px;
    }
    footer .footer-inner-top{
        gap: 80px;
    }
    footer .footer-inner-bottom-inner  {
        flex-direction: column;
        align-items: normal;
    }
    footer .footer-inner-bottom-inner div:first-child{

    }
    footer .footer-inner-bottom-inner .info p{
        margin: 0;
    }
    footer a.webfox{
        margin-left: auto;
    }
    footer .footer-inner-bottom-inner a,
    footer .footer-inner-bottom-inner span,
    footer .footer-inner-bottom-inner div{
        font-size: 15px;
    }
}

@media (max-width: 1550px) {
    footer .footer-inner-top{
        column-gap: 60px;
        row-gap: 20px;
    }
}
@media (max-width: 1500px) {
    .header nav ul{
        gap: 30px;
    }
    footer .footer-inner-top{
        grid-template-columns: 230px 1fr 150px 1fr;
    }
}

@media (max-width: 1300px) {
    footer .footer-inner-top .map-points{
        flex-direction: column;
        gap: 8px;
    }
    footer .footer-inner-top{
        column-gap: 30px;
    }
}

@media (max-width: 1200px) {
    footer .footer-inner-bottom-inner{
        max-width: calc(100% - 85px);
    }
}
@media (max-width: 1100px) {
    footer .footer-inner-top{
        grid-template-columns: 1fr 0.7fr;
        gap: 30px;
    }
    footer .footer-inner-top .div-1,
    footer .footer-inner-top .div-2,
    footer .footer-inner-top .div-2-2,
    footer .footer-inner-top .div-4,
    footer .footer-inner-top .div-5{
        grid-row: auto;
        grid-column: auto;
    }
    footer .footer-inner-top .div-3 {
        grid-column: 2;
        grid-row: 1;
    }
    footer .footer-inner-top .div-4{
        grid-column: 2;
        grid-row: 2/4;
    }
    footer .footer-inner-top .div-5{
        grid-column: 1;
    }
}
@media (max-width: 1200px) {
    .header .logo img {
        max-height: 50px;

    }
    .header .logo .h1{
        font-size: 16px;
    }
    .header nav ul {
        gap: 45px;
    }
}
@media (max-width: 991px) {
    .header nav {
        position: fixed;
        right: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        max-width: 400px;
        margin: auto;
        padding-top: 100px;
        transition: right 0.4s;
        background-color: #250365;
        z-index: 20;
    }
    .header nav.active{
        right: 0;
    }

    .header nav ul{
        flex-direction: column;
        gap: 16px;
    }
    .header nav a {
        font-size: 16px;
    }
    .header .burger{
        display: flex;
        flex-direction: column;
        gap: 6px;
        z-index: 21;
    }
    .header nav.active + .burger{
        /*position: fixed;*/
        /*right: 40px;*/
        /*top: 40px;*/
    }
    .header .burger span{
        background-color: #fff;
        display: block;
        width: 30px;
        height: 3px;
    }
    html:has(.header nav.active){
        overflow: hidden;
    }

}

@media (max-width: 800px) {
    footer .footer-inner-bottom-inner div:first-child{
        flex-direction: column;
        gap: 8px;
        align-items: start;
    }
}
@media (max-width: 600px) {

    footer .footer-inner-top .div-5{
        grid-column: 1/-1;
        text-align: center;
        max-width: 500px;
        margin: auto;
    }
    .header{
        padding: 8px 15px;
    }
    footer .footer-inner-bottom-inner a, footer .footer-inner-bottom-inner span, footer .footer-inner-bottom-inner div {
        font-size: 14px;
    }
}
@media (max-width: 450px) {
    footer .footer-inner-top .div-3 span{
        font-size: 18px;
    }
    footer{
        font-size: 14px;
    }
}
@media (max-width: 350px) {
    footer .footer-inner-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    footer .footer-inner-top .div-3 {
        grid-column:auto;
        grid-row: 2;
    }
    footer .footer-inner-top .div-4 {
        grid-column: auto;
        grid-row: auto;
    }
}