.header #menu-header-menu-deutsch li, .header #menu-header-menu-hebrew li {
    font-weight: 500;
}

.header #menu-header-menu-deutsch li.current-menu-item, .header #menu-header-menu-hebrew li.current-menu-item {
    position: relative;
    font-weight: 500;
}

.header #menu-header-menu-deutsch li a, .header #menu-header-menu-hebrew li a {
    position: relative;
    color: #000;
    font-size: 16px;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

@media only screen and (max-width: 1520px) {
    .header #menu-header-menu-deutsch li a, .header #menu-header-menu-hebrew li a {
        font-size: 16px;
    }
}

.header #menu-header-menu-deutsch li a:before, .header #menu-header-menu-hebrew li a:before {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #03d;
    -webkit-transform-origin: left;
    transform-origin: left;
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

.header #menu-header-menu-deutsch li:hover a, .header #menu-header-menu-hebrew li:hover a {
    color: #03d;
}

.header #menu-header-menu-deutsch li:hover a:before, .header #menu-header-menu-hebrew li:hover a:before {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
}

.header #menu-header-menu-deutsch .sub-menu, .header #menu-header-menu-hebrew .sub-menu {
    margin-top: -6px;
    padding-top: 28px;
    width: 100%;
    display: none;
    position: absolute;
}

.header #menu-header-menu-deutsch .sub-menu li, .header #menu-header-menu-hebrew .sub-menu li {
    padding: 0;
    margin-bottom: 9px;
}

.header #menu-header-menu-deutsch .sub-menu li a, .header .sub-menu li a {
    white-space: nowrap;
}

.header #menu-header-menu-deutsch .sub-menu li a:after, .header #menu-header-menu-hebrew .sub-menu li a:after {
    content: none;
}

.header #menu-header-menu-deutsch .sub-menu li a:before, .header #menu-header-menu-hebrew .sub-menu li a:before {
    width: 12px;
    height: 12px;
    background: url(../../../../../../../themes/emyoli/assets/images/sub-menu-arrow.png);
    background-size: contain;
    background-position: 50%;
    background-repeat: no-repeat;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    left: -31px;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    opacity: 0;
}

.header #menu-header-menu-deutsch .sub-menu li a:hover:before, .header #menu-header-menu-hebrew .sub-menu li a:hover:before {
    opacity: 1;
    left: -18px;
}

.header #menu-header-menu-deutsch .sub-menu li:last-child, .header #menu-header-menu-hebrew .sub-menu li:last-child {
    margin-bottom: 0;
}


.footer__menu #menu-footer-menu-de li, .footer__menu #menu-footer-menu-he li {
    position: relative;
    font-weight: 500;
}

@media only screen and (max-width: 425px) {
    .footer__menu #menu-footer-menu-de li, .footer__menu #menu-footer-menu-he li {
        text-align: center;
        -ms-flex-item-align: center;
        align-self: center;
    }
}

.footer__menu #menu-footer-menu-de li:before, .footer__menu #menu-footer-menu-he li:before {
    position: absolute;
    content: "|";
    top: 2px;
    right: -35px;
}

@media only screen and (max-width: 1520px) {
    .footer__menu #menu-footer-menu-de li:before, .footer__menu #menu-footer-menu-he li:before {
        right: -25px;
    }
}

@media only screen and (max-width: 769px) {
    .footer__menu #menu-footer-menu-de li:before, .footer__menu #menu-footer-menu-he li:before {
        right: -15px;
    }
}

@media only screen and (max-width: 576px) {
    .footer__menu #menu-footer-menu-de li:before, .footer__menu #menu-footer-menu-he li:before {
        content: "";
        right: calc(50% - 10px);
        width: 20px;
        height: 1px;
        background-color: #000;
        top: -15px;
    }
}

.footer__menu #menu-footer-menu-de li:last-of-type:before, .footer__menu #menu-footer-menu-he li:last-of-type:before {
    display: none;
}

@media only screen and (max-width: 576px) {
    .footer__menu #menu-footer-menu-de li:last-of-type:before, .footer__menu #menu-footer-menu-he li:last-of-type:before {
        display: block;
    }
}

@media only screen and (max-width: 576px) {
    .footer__menu #menu-footer-menu-de li:first-of-type:before, .footer__menu #menu-footer-menu-he li:first-of-type:before {
        display: none;
    }
}

.footer__menu #menu-footer-menu-de li.current-menu-item, .footer__menu #menu-footer-menu-he li.current-menu-item {
    position: relative;
    font-weight: 500;
}

.footer__menu #menu-footer-menu-de li a, .footer__menu #menu-footer-menu-he li a {
    position: relative;
    color: #000;
    font-size: 18px;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

@media only screen and (max-width: 1520px) {
    .footer__menu #menu-footer-menu-de li a, .footer__menu #menu-footer-menu-he li a {
        font-size: 16px;
    }
}

@media only screen and (max-width: 576px) {
    .footer__menu #menu-footer-menu-de li a, .footer__menu #menu-footer-menu-he li a {
        font-size: 18px;
    }
}

.footer__menu #menu-footer-menu-de li a:before, .footer__menu #menu-footer-menu-he li a:before {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #03d;
    -webkit-transform-origin: left;
    transform-origin: left;
    transform: scaleX(0);
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

.footer__menu #menu-footer-menu-de li:hover a, .footer__menu #menu-footer-menu-he li:hover a {
    color: #03d;
}

.footer__menu #menu-footer-menu-de li:hover a:before, .footer__menu #menu-footer-menu-he li:hover a:before {
    transform: scaleX(1);
}


.footer__bottom #menu-bottom-footer-menu-de, .footer__bottom #menu-bottom-footer-menu-he {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-item-align: center;
    align-self: center;
    gap: 0 25px;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
}

@media only screen and (max-width: 1520px) {
    .footer__bottom #menu-bottom-footer-menu-de, .footer__bottom #menu-bottom-footer-menu-he {
        gap: 0 20px;
    }
}

@media only screen and (max-width: 769px) {
    .footer__bottom #menu-bottom-footer-menu-de, .footer__bottom #menu-bottom-footer-menu-he {
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
}

@media only screen and (max-width: 375px) {
    .footer__bottom #menu-bottom-footer-menu-de, .footer__bottom #menu-bottom-footer-menu-he {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 10px 0;
        text-align: center;
    }
}

.header .container {
    max-width: 1500px;
}


.language-switcher {
    display: flex;
    gap: 1px;
    align-items: center;
    margin-right: 30px;
}

.language-switcher li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.language-switcher a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 5px 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.language-switcher a:hover {
    background: rgba(30, 64, 175, 0.1);
}

.language-switcher a img {
    border-radius: 2px;
    margin-right: 5px;
}

.language-switcher .current-lang a {
    background: rgba(30, 64, 175, 0.1);
    font-weight: 600;
}


.mobile-language-switcher {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 15px 0;
}

.mobile-language-switcher li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-language-switcher a {
    display: block;
    text-decoration: none;
    padding: 5px;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.mobile-language-switcher a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.mobile-language-switcher a img {
    border-radius: 4px;
    width: 48px !important;
    height: 36px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    display: block;
}

.mobile-language-switcher .current-lang a {
    background: rgba(255, 255, 255, 0.15);
}

/* Адаптивность */
@media (max-width: 768px) {
    .language-switcher {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-language-switcher {
        display: none;
    }


    .hebrew_blocks .hero .container {
        padding-top: 3rem;
    }
}

.hebrew_blocks .hero {
    min-height: 635px;
}


@media (min-width: 1441px) {
    .footer__logo {
        flex: 0 0 15% !important;
    }

    .footer__menu {
        min-width: 980px;
    }

    .h2 {
        font-size: 37px;
    }

    .iq-features {
        padding-right: 20%;
    }

    html[dir="rtl"] .block_4 h2 {
        padding-top: 0px;
        padding-bottom: 4rem;
        margin-top: -6%;
    }

    .project_hero .title {
        margin-top: 30%;
    }


    html[dir="rtl"] .content-block ul > li::before {
        right: 0% !important;
        margin-right: -6% !important;
        left: 100% !important;
    }

    html[dir="rtl"] .content-block ul > li {
        margin-right: 7%;
    }

    .h1-first-p {
        margin-top: -60px;
    }
}

.text--size--19 {
    font-size: 19px !important;
}

html[dir="rtl"] .wpcf7 {
    direction: rtl !important;
}

html[dir="rtl"] .wpcf7 * {
    direction: rtl !important;
}

html[dir="rtl"] .wpcf7-form {
    text-align: center !important;
}

html[dir="rtl"] .wpcf7 .wpcf7-submit {
    margin: 0 auto !important;
}

html[dir="rtl"] .contentCircle {
    left: 9% !important;
}

@media only screen and (min-width: 1024px) {

    /*.project_full_image_block .main img{
        width: 75%!important;
        margin-left: 15%!important;

    }*/

    .project_description .image_block img {
        width: 86% !important;
    }

    .vertical_slider .title_dots li.slick-active {
        /*max-width: 92%!important;*/
        width: 90% !important;
        font-size: 30px !important;
    }

    .animation_block_call_center img {
        bottom: 60px !important;
    }
}

.Description__content:dir(rtl), .testimonials__list:dir(rtl) {
    direction: ltr;
    text-align: left;
}

.slick-prev, .slick-next {
    z-index: 100;
    фыв
}

.menu-header-menu-hebrew-container:dir(rtl) {
    margin-right: 40px;
}

[dir="rtl"] .header-360 {
    margin-left: 35px;
}

[dir="rtl"] .vertical_slider .title_dots li.slick-active::before {
    position: absolute;
    content: "";
    top: -2px;
    left: -46px;
    right: auto;
    width: 26.444px;
    height: 34px;
    background-image: url(../assets/icons/vertical_list__arrow.svg);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: contain;
    transform: scaleX(-1);
}

.vertical_slider .title_dots li.slick-active::before {
    left: calc(100% + 40px) !important;
}

[dir="rtl"] .four_post__article h3,
.rtl .four_post__article h3{
    text-align: right !important;
    /*padding-right: 65px !important;*/
    margin-right: 45%!important;
    max-width: 100% !important;
}

[dir="rtl"] .rtl .button-arrow.rtl-arrow.prev, .rtl .button-arrow.rtl-arrow.next {
    transform: scaleX(1) !important;
}

[dir="rtl"] .btn--download svg{
    margin-right: 10px;
}

[dir="rtl"] .blog_section__article h3 {
    margin-right: 35%!important;
}

[dir="rtl"] .four_post__article a span, .blog_section__article a span{
    padding-right: 44%;
}

@media (max-width: 768px) {
    [dir="rtl"] .four_post__article h3,
    .rtl .four_post__article h3  {
        padding-right: 60px !important;
    }

    [dir="rtl"] .blog_section__article span, .four_post__article span {
        text-align: left !important;
    }

}

html[dir="rtl"] .form .wpcf7-form-control-wrap .wpcf7-checkbox input[type="checkbox"] + span::before {
    left: 66%;
}

@media only screen and (min-width: 992px) {


    html[dir="rtl"] .contact_page form {
        padding-right: 10%;
    }

    html[dir="rtl"] .contact_title {
        text-align: center;
    }


    [dir="rtl"] .projects__dots .dots_block-list li::after {
        position: absolute;
        content: "";
        top: 5px;
        right: -15px;
        width: 1px;
        height: 30px;
        background: rgba(0, 0, 0, .1);
    }

    [dir="rtl"] .footer__menu #menu-footer-menu-de li::after, .footer__menu #menu-footer-menu-he li::after {
        position: absolute;
        content: "|";
        top: 2px;
        right: -35px;
    }

    [dir="rtl"] .footer__menu #menu-footer-menu-de li::before, .footer__menu #menu-footer-menu-he li::before {

        content: "" !important;

    }

    [dir="rtl"] .left-direction .text_block {
        padding-right: 40px;
    }

    [dir="rtl"] .right-direction .text_block {
        padding-left: 40px;
    }


    html[dir="rtl"] .ez-toc-counter nav ul li a::before {
        float: right !important;
        margin-left: 10px;

    }

    html[dir="rtl"] .ez-toc-page-1, .ez-toc-heading-level-3 {
        margin-right: 1% !important;
    }

    /* RTL fix для слайдера */
    html[dir="rtl"] .post__sliders__list,
    .rtl .post__sliders__list {
        direction: ltr; /* Сбрасываем направление для контейнера слайдера */
    }

    html[dir="rtl"] .post__sliders__list .slick-track {
        direction: rtl;
    }

    html[dir="rtl"] .post__sliders__list .slick-slide {
        direction: rtl;
        float: right; /* Вместо float: left */
    }

    html[dir="rtl"] .article .post__sliders .arrows_block {
        right: auto !important;
        left: 0 !important;
    }

}

html[dir="rtl"] .projects,
html[lang="he"] .projects {
    direction: ltr !important;
}

html[dir="rtl"] .dots_block,
html[lang="he"] .dots_block {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .dots_block-list,
html[lang="he"] .dots_block-list {
    justify-content: flex-end;
}

html[dir="rtl"] .btn {
    text-align: center;
}


html[dir="rtl"] .bottom_link::after,
html[lang="he"] .bottom_link::after {
    content: "<" !important;
}

html[lang="he"] .Description__content p {
    unicode-bidi: embed;
}


body.rtl .project__sliders .container {
    direction: rtl;
}

body.rtl .project__sliders .title_block {
    text-align: right;
}

body.rtl .project__sliders .arrows_block {
    left: 0;
    right: auto;
}


body.rtl .arrows_block {
    display: flex;
    gap: 10px;
    position: absolute;
    right: auto;
    left: 0;
}


body.rtl .arrows_block .prev {
    order: 2;
}

body.rtl .arrows_block .next {
    order: 1;
}

html[dir="rtl"] .slick-track blockquote {
    direction: rtl;
    text-align: right;
}

.project__sliders .container {
    position: relative;
}

.title_block {
    display: inline-block;
}

.arrows_block {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
}

body.rtl .project__sliders__list.slick-initialized {
    direction: ltr;
}

body.rtl .project__sliders__list .slick-slide {
    direction: rtl;
    float: right;
}

body.rtl .project__sliders__list .slick-track {
    display: flex;
    flex-direction: row-reverse;
}


@media only screen and (max-width: 1520px) {
    .hero {
        height: 135vh !important;
    }

    #main .page-blocks .container {
        max-width: 1185px !important;
    }
}

@media only screen and (min-width: 769px) and (max-width: 1519px) {
    .wpcf7-not-valid-tip {
        margin-top: -20px !important;
    }
}

.wpcf7-not-valid-tip {
    margin-top: -35px;
}


.wpcf7-response-output {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    max-width: 400px !important;
    width: calc(100vw - 40px) !important;
    padding: 20px 25px 20px 55px !important;
    border: none !important;
    border-radius: 12px !important;
    z-index: 999999 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    animation: cf7SlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transition: all 0.2s ease !important;
    border-left: 4px solid transparent !important;
}

.wpcf7-response-output:hover {
    transform: translateY(-2px) !important;
}


.wpcf7-form.invalid .wpcf7-response-output {
    background: linear-gradient(135deg, #fef2f2, #fecaca) !important;
    color: #991b1b !important;
    border-left-color: #ef4444 !important;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.15) !important;
}

.wpcf7-form.invalid .wpcf7-response-output:hover {
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.25) !important;
}

.wpcf7-form.invalid .wpcf7-response-output::before {
    content: '⚠️' !important;
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 20px !important;
    color: #dc2626 !important;
}


.wpcf7-form:not(.invalid) .wpcf7-response-output {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7) !important;
    color: #166534 !important;
    border-left-color: #22c55e !important;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.15) !important;
}

.wpcf7-form:not(.invalid) .wpcf7-response-output:hover {
    box-shadow: 0 15px 35px rgba(34, 197, 94, 0.25) !important;
}

.wpcf7-form:not(.invalid) .wpcf7-response-output::before {
    content: '✓' !important;
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 20px !important;
    color: #16a34a !important;
    font-weight: bold !important;
}

@keyframes cf7SlideIn {
    0% {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}


@media (max-width: 768px) {
    .wpcf7-response-output {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
        width: calc(100vw - 20px) !important;
        max-width: none !important;
        padding: 18px 20px 18px 50px !important;
        font-size: 14px !important;
    }

    .wpcf7-response-output::before {
        left: 15px !important;
        font-size: 18px !important;
    }

    .wpcf7-not-valid-tip {
        margin-top: -20px;
    }

    #menu-bottom-footer-menu-de {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }

    #menu-bottom-footer-menu-de li {
        width: 100% !important;
        text-align: center !important;
    }
}

.footer__menu {
    text-align: center !important;
}

html[dir="rtl"] .vertical_slider__list .article__content .right li::before {
    position: absolute;
    content: "";
    top: 5px;
    right: 0;
    width: 18px;
    height: 18px;
    background-image: url(../assets/icons/check-broken.svg);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: contain;
}

html[dir="rtl"] .vertical_slider__list .article__content .right li {
    padding-right: 30px;
}

@media (max-width: 576px) {
    .book__main .h2 {
        font-size: 22px;
    }

    .services-three-images p {
        padding-left: 20px;
    }

}

@media (max-width: 992px) {
    .services .section h3 {
        font-size: 22px !important;
    }

    .project_description .img-medium, .project_description .img-small {
         display: none !important;
    }

    .project_description .col-lg-5 .content-block > :first-child {
        max-width: 100% !important;
    }

    html[dir="rtl"] .hero__main .title_block {
        text-align: right!important;
    }
}

@media only screen and (max-width: 576px) {
    .article__small__text h3{
        padding-left: 20px;
        padding-top: 0px;
    }

    .article__small__img {
        min-width: calc(50vw - 15px - 19px) !important;
    }

  .project_description  .image_block{
      display: none;
  }

  .page-blocks h2, .page-blocks h3, .page-blocks h4 {
      word-wrap: break-word;
  }
}

@media only screen and (max-width: 992px) {
    .projects__dots .dots_block-list li {
        width: 10px!important;
        height: 10px!important;
    }
}

.content-block ul > li::before {
    background-color: #000 !important;
    top: 15px;
}

@media only screen and (max-width: 992px) {
    .content-block ul > li::before {
        background-color: #000 !important;
        top: 10px;
    }

    .open_video svg {
        padding-bottom: 24px!important;
    }
    .blog_page .four_post__article .link {
        width: 50px;
        height: 50px;
    }
    .four_post__article h3 {
        word-wrap: break-word;
    }
    .ez-toc-container-direction{
        margin-bottom: 40px;
    }



    /* Мобильный переключатель языков */
    .mobile-language-switcher {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        list-style: none;
        padding: 20px 0;
        margin: 0;
    }

    .mobile-language-switcher .lang-item {
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-language-switcher .lang-item a {
        display: block;
        padding: 5px;
        border-radius: 4px;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .mobile-language-switcher .lang-item a:hover {
        transform: scale(1.1);
    }

    /* Увеличиваем иконки флагов */
    .mobile-language-switcher .lang-item img {
        width: 36px !important;
        height: 27px !important;
        display: block;
        border-radius: 3px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }



    /* Или вариант с рамкой для текущего языка */
    .mobile-language-switcher .lang-item.current-lang img {
        border: 2px solid #fff;
        opacity: 1;
    }

}

#button_top{
    z-index: 20!important;
}