body {
    overflow-x: hidden;
}

.header-redesign .header-logo {
    position: relative;
    z-index: 999;
}

.header-redesign a {
    text-decoration: none;
    color: inherit;
}

.header-flex-menu li::before {
    display: none !important;
}

.header-flex-menu li {
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}

.header-flex-menu ul {
    margin-top: 0;
    margin-bottom: 0;
}


.header-redesign-container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1230px;
}

.header-redesign__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 72px;
}

.header-flex-menu {
    display: flex;
    align-items: start;
    position: static;
}

.header-flex-menu li {
    position: static !important;
}

.header-redesign .header-redesign__btn {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: #004EC9;
    border: 1px solid #3371D4;
    height: 36px;
    padding: 0px 12px;
    border-radius: 8px;
    transition: all 0.3 ease-in-out;
}

.header-redesign .header-redesign__btn:hover {
    opacity: 0.8;
}

.header-flex-menu > li {
    margin-right: 24px;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #212A3A;
    transition: all 0.2s ease-in-out;
}

.header-flex-menu > li.menu-children-active {
    color: #004EC9;
}

.header-flex-menu > li:not(.menu-item-has-children) a:hover {
    color: #004EC9;
}

.header-flex-menu .sub-menu {
    position: absolute;
    z-index: 99;
    top: 64px;
    left: 0;
    height: 0px;
    overflow: hidden;

    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #FFFFFF;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 100%;
    box-shadow: 0px 24px 48px -12px #11111333;
}

.header-flex-menu .sub-menu.sub-menu-active {
    overflow: visible;
    height: 364px;
    border: 1px solid #E9EAEB;
}


/* Стандартна стрілка вниз */
.header-flex-menu .menu-item-has-children::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M5%207.5L9.29289%2011.7929C9.68342%2012.1834%2010.3166%2012.1834%2010.7071%2011.7929L15%207.5%22%20stroke%3D%22%23212A3A%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    transition: all 0.2s ease-in-out;
}

/* Змінена стрілка вгору при активному підменю */
.header-flex-menu .menu-item-has-children.menu-children-active::after {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M5%2012.5L9.29289%208.20711C9.68342%207.81658%2010.3166%207.81658%2010.7071%208.20711L15%2012.5%22%20stroke%3D%22%23004EC9%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
}

.header-flex-menu .sub-menu::after {
    content: '';
    position: absolute;
    top: 0;
    left: 364px;
    background: #E9EAEB;
    height: 100%;
    width: 1px;
}

.header-flex-menu .sub-menu-second {
    position: absolute;
    left: 364px;
    top: 0px;
    z-index: 99;
    padding: 16px !important;
    width: 100%;
    max-width: calc(100% - 365px);

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 4px;
    column-gap: 24px;
    display: none;
}

.header-flex-menu .sub-menu-second.sub-menu-second-active {
    display: grid;
}

.header-flex-menu .sub-menu > li:first-child {
    margin-top: 16px;
    margin-left: 16px;
}

.header-flex-menu .sub-menu > li:not(:first-child) {
    margin-left: 16px;
    margin-top: 4px;
}

.header-flex-menu .sub-menu .menu-item-has-children-second > a {
    padding: 10px 16px 10px 10px;
    border-radius: 12px;
    background: #FFFFFF;
    display: block;
    width: 340px;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #5E6470;
    position: relative;
}

.header-flex-menu .sub-menu .menu-item-has-children-second > a:hover {
    background: #F8F8F8;
    color: #212A3A;
}

/* Базова стрілка — сіра (#D3D4D8) */
.header-flex-menu .sub-menu .menu-item-has-children-second > a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M6%2013.3337L11.3333%208.00033L6%202.66699%22%20stroke%3D%22%23D3D4D8%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

/* Стрілка змінюється при ховері */
.header-flex-menu .sub-menu .menu-item-has-children-second > a:hover::after {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M6%2013.3337L11.3333%208.00033L6%202.66699%22%20stroke%3D%22%235E6470%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
}

.header-flex-menu .sub-menu .menu-item-has-children-second.menu-children-second-active > a::after {
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M6%2013.3337L11.3333%208.00033L6%202.66699%22%20stroke%3D%22%235E6470%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
}


/* За замовчуванням: показуємо іконку default, приховуємо alt */
.header-flex-menu .sub-menu .menu-item-has-children-second .menu-item-icon.icon-default {
  display: inline-block;
  margin-right: 12px;
}

.header-flex-menu .sub-menu .menu-item-has-children-second .menu-item-icon.icon-alt {
  display: none;
  margin-right: 12px;
}

/* Якщо активна друга вкладеність — переключити іконки */
.header-flex-menu .sub-menu .menu-item-has-children-second.menu-children-second-active .icon-default {
  display: none;
}

.header-flex-menu .sub-menu .menu-item-has-children-second.menu-children-second-active .icon-alt {
  display: inline-block;
}

/* Показуємо alt-іконку при наведенні */
.header-flex-menu .sub-menu .menu-item-has-children-second a:hover .menu-item-icon.icon-default {
  display: none;
}

.header-flex-menu .sub-menu .menu-item-has-children-second a:hover .menu-item-icon.icon-alt {
  display: inline-block;
}


.header-flex-menu .menu-item-has-children .sub-menu .menu-item-has-children-second .sub-menu-second li a .icon-alt {
    display: inline-block;
}

.header-flex-menu .sub-menu .menu-item-has-children-second .sub-menu-second li a {
    width: 100%;
    padding: 10px 16px 10px 10px;
    border-radius: 12px;
    background: #FFFFFF;
    display: flex;
    align-items: center;

    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #212A3A;

}

.header-flex-menu .sub-menu .menu-item-has-children-second .sub-menu-second li a:hover {
    background: #F8F8F8;
}

.header-flex-menu .sub-menu .menu-item-has-children-second .sub-menu-second li a .menu-item-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin-right: 12px;
}

.header-redesign .mob-header-redesign__menu .mob-header-redesign__btn {
    display: none;
}

.header-redesign .header-redesign__close-btn {
    display: none;
}

@media screen and (min-width: 768px) {
    body.home .header-redesign {
        position: absolute;
        z-index: 99999999;
        width: 100%;
    }

    body.home .header-flex-menu > li.menu-item-object-page {
        color: #FFFFFF;
    }

    body.home .header-flex-menu > li.menu-children-active {
        color: #004EC9;
    }

    body.home .header-flex-menu .sub-menu {
        border: none;
    }

    body.home .header-flex-menu .menu-item-has-children::after {
        background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M5%207.5L9.29289%2011.7929C9.68342%2012.1834%2010.3166%2012.1834%2010.7071%2011.7929L15%207.5%22%20stroke%3D%22white%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
    }

    body.home .header-flex-menu .menu-item-has-children.menu-children-active::after {
        background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M5%2012.5L9.29289%208.20711C9.68342%207.81658%2010.3166%207.81658%2010.7071%208.20711L15%2012.5%22%20stroke%3D%22%23004EC9%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
    }

    body.home .header-logo-mobile {
        display: none;
    }

    body.home .header-logo-desktop {
        display: block;
    }

    body.home .header-redesign__btn {
        background: #FFFFFF1F;
        border: 1px solid #FFFFFF3D;
        color: #FFFFFF;
    }
}

@media screen and (max-width: 768px) {

    .body.home .header-logo-mobile {
        display: block;
    }

    body.home .header-logo-desktop {
        display: none;
    }
    
    .header-redesign-container {
        padding-right: 0px;
        padding-left: 0px;
    }

    .header-flex-menu {
        flex-direction: column;
        position: relative;
        width: 100%;
    }

    .header-flex-menu .menu-item-has-children::after {
        position: absolute;
        right: 16px;
        top: 8px;
    }

    .header-flex-menu .sub-menu .menu-item-has-children-second > a::after {
        right: 8px;
    }

    .header-flex-menu .sub-menu > li:first-child {
        margin-top: 0;
        margin-left: 0;
    }

    .header-flex-menu .sub-menu > li:not(:first-child) {
        margin-top: 0;
        margin-left: 0;
    }

    .header-flex-menu .sub-menu .sub-menu-second {
        z-index: 9999;
        max-width: 100%;
        width: 100%;
        height: 100vh;
        left: 0px;
        top: 0px;
        background: #ffffff;
        display: none;
        position: absolute;
    }

    .header-flex-menu .sub-menu .sub-menu-second .sub-menu-second__back {
        position: absolute !important;
        top: -48px;
        left: 0;
        width: 100%;
        height: 48px;
        background-color: white; 
        z-index: 2;
        display: flex;
        align-items: center;
    }

    .header-flex-menu .sub-menu .sub-menu-second.menu-children-second-active {
        display: block !important;
    }

    .header-flex-menu .sub-menu .menu-item-has-children-second > a {
        width: 100%;
    }

    .header-flex-menu > li {
        margin-right: 0px;
        width: 100%;
    }

    .header-flex-menu .sub-menu::after {
        display: none;
    }

    .header-redesign .header-redesign__btn {
        display: none;
    }

    .header-redesign .mob-header-redesign__menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;

        position: absolute;
        z-index: 99;
        top: 64px;
        left: 0;
        overflow: visible;

        border-radius: 0px;
        border: none;
        width: 100%;
        box-shadow: none;

        background: #ffffff;
        height: 100vh;
        padding: 12px;
    }

    .header-flex-menu > li {
        font-weight: 500;
        font-size: 18px;
        line-height: 28px;
        padding: 12px 0px;
    }

    .header-redesign .mob-header-redesign__menu.mob-header-redesign__menu-active {
        display: flex;
    }

    .header-redesign .mob-header-redesign__menu .mob-header-redesign__btn {
        display: block;
        font-weight: 400;
        font-size: 14px;
        line-height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #FFFFFF;
        background: #004EC9;
        border: 1px solid #3371D4;
        height: 36px;
        padding: 0px 12px;
        border-radius: 8px;
        transition: all 0.3 ease-in-out;
    }


    .header-flex-menu .sub-menu {
        border: none;
        position: relative;
        z-index: 99;
        top: auto;
        left: auto;
        height: 0px;
        overflow: hidden;

        background: #FFFFFF;
        border-radius: 16px;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        width: 100%;
        box-shadow: none;
    }

    .header-flex-menu .sub-menu.sub-menu-active {
        overflow: visible;
        height: fit-content;
        border-radius: 0%;
        border: none;
        margin-top: 16px !important;
    }

    .header-flex-menu .sub-menu .menu-item-has-children-second > a {
        padding: 10px 16px 10px 0px;
        border-radius: 0px;
        background: #FFFFFF;
        display: block;
        width: auto;
        font-weight: 500;
        font-size: 14px;
        line-height: 20px;
        color: #5E6470;
        position: relative;
    }

    .header-redesign .header-redesign__close-btn {
        display: block;
        cursor: pointer;
        margin-right: 15px;
    }

    .header-redesign__close-btn .close-btn__close {
        display: none;
    }

    .header-redesign__close-btn.close-btn-active .close-btn__main {
        display: none;
    }

    .header-redesign__close-btn.close-btn-active .close-btn__close {
        display: inline-block;
    }

    .header-redesign .header-logo {
        margin-left: 15px;
    }


}


.footer-redesign {
    background: #212A3A;
    position: relative;
}

.footer-redesign .footer-redesign-container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1230px;
}

.footer-redesign .footer-redesign__wrapper {
    padding-top: 64px;
    padding-bottom: 64px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.footer-redesign .footer-logo {
    max-height: 35px;
    margin-bottom: 34px;
}

.footer-redesign .footer-clutch {
    max-height: 50px;
}

.footer-redesign .footer-redesign__main {
    max-width: 180px;
}

.footer-redesign .footer-redesign__col {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 280px;
}

.footer-redesign .footer-redesign__col h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 20px;
    line-height: 28px;
    color: #FFFFFF;
}

.footer-redesign .footer-redesign__col .footer-redesign__col-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-redesign .footer-redesign__col .footer-redesign__col-list a {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 12px;
    color: #FFFFFFB8;
    text-decoration: none;
}

.footer-redesign .footer-redesign__contacts .footer-redesign__col-list a {
    display: flex;
    align-items: flex-start;
}

.footer-redesign .footer-redesign__contacts .footer-redesign__col-list a img {
    margin-right: 8px;
}

.footer-redesign .footer-redesign__contacts .footer-redesign__contacts-top {
    margin-bottom: 12px;
}

.footer-redesign .footer-redesign__contacts-social {
    margin-bottom: 36px;
}

.footer-redesign .footer-redesign__contacts-social a {
    margin-right: 6px;
}

.footer-redesign .footer-redesign__contacts-partners a:not(:last-child) {
    margin-right: 24px;
}

.footer-redesign .footer-redesign__col-arrow {
    display: none;
}

/* ========= */

.blog main, .carrer-wrap, .single-post main, main.secondary-page {
    padding-bottom: 0px;
}

@media (min-width: 769px) {
  .footer-redesign__services .footer-redesign__col-list {
    max-height: 340px;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .footer-redesign__services .footer-redesign__col-list.expanded {
    max-height: 1000px;
  }

  .footer-redesign__services .footer-redesign__show-more-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #FFFFFF;
    padding: 0 !important;
  }

  .footer-redesign__services .footer-redesign__btn-icon {
    transition: transform 0.3s ease;
    font-weight: normal;
    margin-left: 8px;
    height: 20px;
    width: 20px;
  }

  .footer-redesign__services .footer-redesign__show-more-btn.expanded .footer-redesign__btn-icon {
    transform: rotate(180deg);
  }
}

@media (max-width: 768px) {
  .footer-redesign__services .footer-redesign__show-more-btn {
    display: none !important;
  }
}


/* ========= */

@media screen and (max-width: 992px) {
    .footer-redesign .footer-redesign__wrapper {
        display: grid;
        grid-template-columns: repeat(2,1fr);
        gap: 32px;
    }
}

@media screen and (max-width: 768px) {

    .footer-redesign .footer-redesign__wrapper {
        display: flex;
        flex-direction: column;
    }

    .footer-redesign .footer-redesign__col-arrow {
        display: block;
        position: absolute;
        top: 0;
        right: 8px;
        width: 24px;
        height: 24px;
        transition: transform 0.2s ease;
    }

    .footer-redesign .footer-redesign__col {
        max-width: 100%;
        width: 100%;
        border-bottom: 1px solid #FFFFFF1F;
    }

    .footer-redesign .footer-redesign__col-list {
        max-height: 0px;
        overflow: hidden;
        transition: max-height 0.2s ease;
    }

    .footer-redesign .footer-redesign__contacts.footer-redesign__col {
        border-bottom: none;
    }

    .footer-redesign .footer-redesign__contacts .footer-redesign__contacts-top {
        width: 100%;
        border-bottom: 1px solid #FFFFFF1F;
    }

    .footer-redesign .footer-redesign__col h3 {
        margin-bottom: 24px;
        width: 100%;
    }

    .footer-redesign .footer-redesign__col .footer-redesign__contacts-bottom h3 {
        width: 100%;
    }

    .footer-redesign .footer-redesign__contacts-bottom {
        margin-top: 12px;
    }

    .footer-redesign .footer-redesign__col-list.list-active {
        max-height: 1000px;
        overflow: visible;
    }

    .footer-redesign .footer-redesign__col-arrow.arrow-active {
        transform: rotate(180deg);
    }

}



#CookiebotWidget .CookiebotWidget-open .CookiebotWidget-widgetContent ul li::before {
    display: none !important;
}