@media(min-width: 768px) {
    /* Добавляем стрелку для пунктов меню с вложенными элементами */
    .menu-item-has-children > a::after {
        content: "▼"; /* или "▶" для бокового меню */
        font-size: 0.7em;
        margin-left: 6px;
        display: inline-block;
        transition: transform 0.3s ease;
    }

    /* Когда раскрыто подменю (WordPress добавляет класс .sub-menu), можно анимировать */
    .menu-item-has-children:hover > a::after,
    .menu-item-has-children.focus > a::after {
        transform: rotate(120deg);
    }
    /* Подменю */
    .sub-menu {
        list-style: none;
        position: absolute;
        left: 0;
        top: 100%;
        background: #fff;
        border: 1px solid #ddd;
        min-width: 250px;
        padding: 10px 0;
        margin: 0;
        display: none;
        z-index: 99;
        top: var(--headerHeight);
        border-radius: 0 0 var(--fz30) var(--fz30);
        box-shadow: 0px 5px 10px #3FDBFF;
    }
    .sub-menu li {
        transition: .3s;
    }
/*    .sub-menu li:hover {
        letter-spacing: 1.02px;
    }*/

    .sub-menu li a {
        padding: 8px 15px;
        color: #444;
    }

    /*.sub-menu li a:hover {*/
    /*    background: #f5f5f5;*/
    /*}*/

    .ih_navs {
        height: 100%;
    }
    .ih_navs li {
        height: 100%;
        position: relative;
        display: flex;
        align-items: center;
        transition: .3s;
    }
    .ih_navs li:hover a {
        color: var(--c-blue);
    }
    .header__nav {
        height: 100%;
        display: flex;
        align-items: center;
    }
    .ih_navs li {
        position: relative;
    }
    .header__nav .menu-item .sub-menu a + a {
        margin-top: 1rem;
    }
    .header__nav .menu-item .sub-menu a {
        color: var(--c-black);
    }

    /* Отображение при наведении */
    .menu-item-has-children:hover > .sub-menu {
        display: block;
    }

    /* Для вложенных меню (право) */
    .sub-menu .menu-item-has-children:hover > .sub-menu {
        left: 100%;
        top: 0;
    }
    /* Стили для подменю */
    .menu-item-has-children .sub-menu {
        background: rgba(255,255,255,0.8);
        backdrop-filter: blur(12px);
        border-radius: 0 0 var(--fz30) var(--fz30);
        padding: 12px 0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: all 0.4s ease;
    }

    .menu-item-has-children:hover > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        right: 0;
    }

    /* Сами ссылки внутри */
    .menu-item-has-children .sub-menu li a {
        display: block;
        color: #222;
        text-decoration: none;
        transition: background 0.2s ease, color 0.2s ease;
    }

    /* Эффект при наведении */
    .menu-item-has-children .sub-menu li a:hover {
        box-shadow: 3px 5px 5px #3FDBFF;
        color: var(--c-black);
        border-radius: 4px;
    }
    .menu-item-has-children .sub-menu li {
        width: 100%;
    }
    .menu-item-has-children .sub-menu li a {
        width: 100%;
    }


}
@media(max-width: 1200px) {
    .other-news-item {
        flex-direction: column;
    }
    .other-news-thumb {
        width: 100%;
    }
    .other-news-title {
        font-size: 12px;
    }
    .inn_newsright {
        width: calc((100% - 50rem) - var(--fz50));
    }
    .inn_newsleft {
        width: 50rem;
    }
}
@media(max-width: 991px) {
    :root {
        --mtop180:60px;
        --fz60:3rem;
    }
    #services .dbiw_item:nth-last-child(1):nth-child(odd)  {
        grid-column: unset;     /* растянуть на всю строку */
        justify-self: center;    /* но выровнять по центру */
        width: 100%;             /* чтобы сохранить ширину ячейки */
        max-width: 100%; /* ширина как у остальных колонок */
    }
    #services .dbiwi_bx {
        max-width: unset;
    }
    .ih_langs {
        margin-right: 30px;
    }
    body.showBurger {
        overflow: hidden;
    }
    .burger { display: flex; }
    .mobile-menu-panel .ih_tels a {
        color: var(--c-white);
        font-size: 16px;
        padding: 5px 0;
    }
    .menu-item-inner a {
        color: var(--c-white);
    }
    .single-nashi_resheniya .abhw_right img {
        height: 300px;
    }
    .ih_tels {
        margin-left: unset;
    }
    .cf7-col input {
        font-size: 13px;
    }
    .cf_right {
        margin-top: 20px;
    }
    .header_tel {
        line-height: 120%;
        font-size: 12px;
    }
    .addres_foot {
        font-size: 14px;
    }
    .cf7-custom-form br {
        display: none;
    }
    .selection span {
        font-size: 13px;
    }
    .select2-container--default .select2-results__group {
        font-size: 14px;
    }
    .wpcf7-list-item-label {
        font-size: 12px;
        line-height: 110%;
    }
    .cf7-title p {
        font-size: 16px;
    }
    .mobile-menu-panel .ih_tels a {
        color: var(--c-white);
    }
    .submenu-toggle svg path {
        fill: var(--c-white);
    }
    .header__nav {
        display: none;
    }
    header > .inn_header > .ih_tels {
        display: none;
    }
    .mobile-menu-list .sub-menu li a {
        font-size: 14px;
        line-height: 120%;
        padding: 5px 0;
    }
    .menu-item-has-children .menu-item-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .single-uslugi .abhw_right img {
        height: 400px;
        object-fit: contain;
    }
    .page-template-services-page .inn_hero p, .page-template-uslugi-page .inn_hero p {
        max-width: 100%;
    }
    main #breadcrumbs {
        margin-top: calc(var(--headerHeight) + 10px);
    }
    .single-uslugi #resheniya_hero, .single-nashi_resheniya #resheniya_hero {
        margin-top: 20px;
    }
    .menu-item-has-children {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-direction: column;
    }
    .menu-item-has-children .submenu-toggle {
        min-width: 25px;
        max-width: 25px;
    }
    .abh_wrap {
        gap: 70px;
    }
    .abhw_left {
        width: 400px;
    }
    .abhw_right {
        width: calc((100% - 400px) - 70px);
    }
    .vakansii_wrap {
        --elems:1;
        --gap: 10px;
    }
    .single-uslugi .resheniya_wrap h2, .single-nashi_resheniya .resheniya_wrap h2 {
        max-width: 80%;
    }
    .single-uslugi .dbiwj_imgs, .single-nashi_resheniya .dbiwj_imgs {
        --elems:4;
    }
}
@media(max-width: 768px) {
    :root {
        --headerHeight:60px;
        --fz18:12px;
        --fz20:18px;
        --fz24:20px;
        --fz40:25px;
    }
    .db_item.it_autsorsing .dbi_wrap, .db_item.it_uslugi .dbi_wrap {
        grid-template-columns: repeat(1,1fr);
        max-width: unset;
    }
    .custom-logo-link img {
        max-width: 100px;
    }
    .single-uslugi .abh_wrap {
        height: 100%;
    }
    .cf7-title {
        max-width: 100%;
    }
    .single-uslugi .resheniya_wrap h2, .single-nashi_resheniya .resheniya_wrap h2 {
        max-width: 100%;
    }
    .single-uslugi .dbiwj_imgs, .single-nashi_resheniya .dbiwj_imgs {
        --elems:3;
    }
    .vakansiiw_item a h4 {
        font-size: 20px;
    }
    .contactser {
        position: relative;
        top: 0;
        transform: unset;
        z-index: 2;
        background-color: var(--c-white);
        border-radius: 30px;
        overflow: hidden;
        padding: 25px;
        max-width: 100%;
        left: 0;
        margin-bottom: 20px;
    }
    .news-image img {
        height: 200px;
    }
    .vakansiiw_item a img {
        max-width: 50px;
        max-height: 50px;
    }
    .abh_wrap {
        flex-direction: column;
        gap: 20px;
        margin-top: 35px;
    }
    .single-nashi_resheniya .abh_wrap {
        gap: 20px;
    }
    .abhw_left h1 {
        margin-top: unset;
    }
    .sw_sl h4 {
        font-size: 14px;
    }
    .page-template-page-about .abhw_right {
        height: 300px;
    }
    .single-uslugi .resheniya_wrap h2, .single-nashi_resheniya .resheniya_wrap h2 {
        margin: 20px auto 0;
    }
    .resheniya_wrap h2 p {
        font-size: 18px;
        padding: 0 15px;
    }
    .abhw_left {
        width: 100%;
        max-width: unset;
    }
    .sw_sl {
        height: 100%;
        padding: 10px;
    }
    .abhw_right {
        width: 100%;
        height: 390px;
    }
    .burger {
        width: 40px;
        height: 40px;
    }
    .inh_subtitle {
        font-size: 18px;
    }
    .hero {
        min-height: calc(100vh - var(--headerHeight) - 10rem);
    }
    .dbi_wrap {
        grid-template-columns: repeat(1,1fr);
    }
    .db_item.it-uslugi .dbi_wrap,
    .db_item.it_autsorsing .dbi_wrap
    {
        grid-template-columns: repeat(1,1fr);
        max-width: unset;
    }
    .dbi_title {
        font-size: 18px;
    }
    .dbiw_hidden {
        display: block;
    }
    .dbiw_item {
        height: 270px;
    }
    .dbiw_item::after {
        background: rgba(20, 20, 20, 0.8);
        backdrop-filter: blur(5px);
    }
    #services .dbiwi_bx img{
        height: 120px;
    }
    .faq_wrap {
        --elems:1;
        --gap:10px;
    }
    .faqw_item:nth-child(7) {
        --elems:1;
    }
    .faqw_item {
        border-radius: 20px;
    }
    .foot_menu {
        margin-left: unset;
        margin-top: 20px;
    }
    .footer__nv .menu-item a {
        font-size: 14px;
        line-height: 120%;
    }
    .footer_img_web {
        max-width: 250px;
    }
    .footer_bot {
        padding: 10px;
    }
    .fb_right a {
        font-size: 14px;
    }
    .footm_title {
        margin-bottom: 15px;
    }
	
	.foot_uslugi .footer__nav {
	columns: 1;	
	}
	
    .foot_uslugi {
		width: 100%;
        margin-top: 35px;
    }
    .footm_title {
        font-size: 20px;
    }
    .footc_tels {
        font-size: 12px;
    }
    .mail_foot {
        font-size: 12px;
    }
    .addres_foot {
        font-size: 12px;
    }
    .language-dropdown li:not(.active-lang) {
        display: none;
    }
    .language-dropdown li:not(.active-lang) {
        background-color: var(--c-white);
    }
    .language-dropdown li:not(.active-lang) a {
        color: var(--c-black);
    }
    .language-dropdown a, .language-dropdown span {
        font-size: 16px;
    }
    .rank-math-breadcrumb span {
        font-size: 12px;
        line-height: 120%;
    }
    .news-page {
        margin-top: 30px;
    }
    .language-dropdown.open {
        padding-top: 55px;
        flex-direction: column-reverse;
    }
    .rank-math-breadcrumb a {
        font-size: 14px;
    }
    .inn_header > a > img {
        max-width: 130px;
    }
    .language-dropdown {
        flex-direction: column;
    }
    .language-dropdown.open li {
        display: block;
    }

    .language-dropdown.open .active-lang {
        display: block; /* активный язык всегда виден */
    }

    .footer_bx {
        display: flex;
        flex-direction: column;
        margin-top: 40px;
    }
    .ip_wrap {
        --elems:3;
    }
    .language-dropdown .active-lang span {
        font-size: 16px;
    }
    .news-image a{
        height: 200px;
        display: block;
    }
    .news-grid {
        --elems:1;
        --gap: 10px;
    }
    .db_tabs {
        flex-direction: column;
        width: 100%;
        border-radius: 10px;
    }
    .news-card {
        height: 100%;
        border-radius: 10px;
    }
    .news-content .news-btn {
        margin-top: 15px;
        font-size: 16px;
    }
    .vakansiiw_item a svg {
        min-width: 40px;
        max-width: 40px;
        transition: .3s;
    }
    .vakansiiw_item a img {
        max-width: 40px;
        max-height: 40px;
    }
    .vakansiiw_item a h4 {
        font-size: 16px;
    }
    .vakansiiw_item a {
        padding: 20px;
        border-radius: 15px;
    }
    .news-content {
        margin-top: 15px;
    }
    .news-date {
        font-size: 14px;
    }
    .news-heading {
        font-size: 16px;
    }
    .submitting p .btn {
        width: 100%;
    }
    .submitting p {
        display: flex;
        flex-direction: column;
    }
    .cf7-submit-row .cf7-col-full {
        display: flex;
        flex-direction: column;
    }
    .faqwih_desc {
        font-size: 14px;
    }
    .btn {
        font-size: 14px;
        height: 50px;
    }
    .cf7-custom-form {
        display: flex;
        flex-direction: column;
    }
    #services .dbiw_item {
        height: 330px;
    }
    .db_tab {
        font-size: 16px;
        padding: 15px;
        width: 100%;
        border-radius: 10px;
    }
    .dbiwj_text {
        max-width: 90%;
        margin-top: 10px;
    }
    .dbiw_item {
        justify-content: center;
        padding: 15px;
    }
    .dbiw_js {
        font-size: 14px;
        margin-top: unset;
        line-height: 130%;
    }

    .inner_news {
        flex-direction: column;
        position: relative;
        z-index: 2  ;
    }
    .inn_newsleft img {
        height: 300px;
    }
    .inn_newsleft h2 {
        font-size: 26px;
    }
    .inn_newsleft {
        width: 100%;
    }
    .inn_newsright {
        width: 100%;
    }
    .other-news-thumb {
        height: 200px;
    }
    .single-uslugi .abhw_right {
        display: flex;
        align-items: center;
        width: 100%;
    }
    .single-uslugi .abhw_right img {
        height: 300px;
        object-fit: contain;
    }
}