/* Layout 2026 Responsive: Header */
@media (max-width: 1720px) {
    .ot26-header .ot26-header__nav-inner ul.list-item-group {
        gap: 12px;
    }
}
@media (max-width: 1440px) {
    .ot26-header .ot26-header__nav-inner {
        grid-template-columns:
            150px minmax(300px, 520px) minmax(390px, 1fr)
            178px;
        gap: 24px;
        padding: 0 36px;
    }

    .ot26-header .ot26-header__menu,
    .ot26-header .ot26-header__nav .ot26-header__menu.list-item-group.horizon {
        gap: 24px;
    }

    .ot26-header .ot26-header__account {
        width: 178px;
        min-width: 178px;
    }
}

@media (max-width: 1280px) {
    .ot26-header .ot26-header__nav-inner {
        grid-template-columns:
            140px minmax(120px, 1fr) minmax(380px, auto)
            220px;
        padding: 0 24px;
    }

    .ot26-header .ot26-header__menu {
        gap: 20px;
    }

    .ot26-header .ot26-header__account {
        display: none;
    }
}

@media (max-width: 991px) {
    .ot26-header .ot26-header__ministry {
        height: 42px;
        min-height: 42px;
        padding: 0 14px;
        font-size: 12px;
    }

    .ot26-header .ot26-header__nav {
        height: auto;
        min-height: 64px;
    }

    .ot26-header .ot26-header__nav-inner {
        position: relative;
        height: auto;
        min-height: 64px;
        grid-template-columns: 128px minmax(0, 1fr) auto 42px;
        gap: 12px;
        padding: 14px 18px;
    }

    .ot26-header .ot26-header__actions {
        grid-column: 3;
        grid-row: 1;
    }

    .ot26-header .ot26-header__mobile-toggle {
        display: block;
        grid-column: 4;
        grid-row: 1;
        justify-self: end;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .ot26-header .ot26-header__nav.fixed .ot26-header__mobile-toggle .overlay {
        top: 64px;
    }

    .ot26-header .ot26-header__menu,
    .ot26-header .ot26-header__nav .ot26-header__menu.list-item-group.horizon {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 10;
        width: min(360px, 100vw);
        height: 100vh;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        pointer-events: none;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
        justify-content: flex-start;
        align-items: stretch;
        white-space: normal;
        margin: 0;
        padding: 18px 12px 0;
        background: #ffffff;
        transform: translate3d(-100%, 0, 0);
        transition: all 0.3s ease;
    }

    .ot26-header .ot26-header__nav .ot26-header__menu.list-item-group.horizon.active {
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        overflow-x: hidden;
        visibility: visible;
        pointer-events: auto;
        transform: translate3d(0, 0, 0);
    }

    .ot26-header .ot26-header__nav .ot26-header__menu.list-item-group.horizon .list-item {
        width: 100%;
    }

    .ot26-header .ot26-header__nav
        .ot26-header__menu.list-item-group.horizon
        > .list-item
        > .list-item-link {
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .ot26-header .ot26-header__menu .has-dropdown-list {
        position: static;
        display: none;
        max-height: none;
        min-width: 0;
        width: 100%;
        overflow: visible;
        margin: 0;
        padding: 0 0 0 14px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .ot26-header .ot26-header__menu .has-dropdown-list.show {
        display: block;
    }

    .ot26-header
        .ot26-header__nav
        .ot26-header__menu.list-item-group.horizon
        .list-item
        .has-dropdown-list {
        position: static;
        width: 100%;
        min-width: 0;
        max-width: none;
        max-height: 0;
        overflow: hidden;
        padding: 0 0 0 14px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .ot26-header
        .ot26-header__nav
        .ot26-header__menu.list-item-group.horizon
        .list-item
        .has-dropdown-list.show {
        max-height: 100vh;
        display: block;
        padding-left: 20px;
    }

    .ot26-header
        .ot26-header__nav
        .ot26-header__menu.list-item-group.horizon
        .list-item
        .has-dropdown-list
        .list-item {
        margin: 0;
        padding: 0;
    }

    .ot26-header
        .ot26-header__nav
        .ot26-header__menu.list-item-group.horizon
        .list-item
        .has-dropdown-list
        .list-item
        .list-item-link {
        min-height: 0;
        display: block;
        padding: 8px;
        color: #000 !important;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.5;
    }

    .ot26-header .ot26-header__search {
        height: 46px;
        grid-template-columns: 34px minmax(0, 1fr) 34px;
    }

    .ot26-header .ot26-header__search button {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
}

@media (max-width: 575px) {
    .ot26-header .ot26-header__nav-inner {
        grid-template-columns: 112px minmax(0, 1fr) auto 42px;
        gap: 8px;
        padding: 12px;
    }

    .ot26-header .ot26-header__logo {
        width: 112px;
    }

    .ot26-header .ot26-header__search input {
        font-size: 13px;
    }

    .ot26-header .ot26-header__search {
        min-width: 0;
        /* grid-template-columns: minmax(0, 1fr) 34px; */
        gap: 2px;
        padding: 0 6px;
    }

    .ot26-header .ot26-header__search-menu {
        display: none;
    }

    .ot26-header .ot26-header__actions {
        gap: 6px;
    }

    .ot26-header .ot26-header__actions-item {
        padding: 0;
    }

    .ot26-header .ot26-header__actions-item a {
        width: auto;
        padding: 8px 10px;
        white-space: nowrap;
    }

    .ot26-header .ot26-header__nav.fixed .ot26-header__mobile-toggle .overlay {
        top: 70px;
    }

    .ot26-header .ot26-header__nav .ot26-header__menu.list-item-group.horizon.active {
        max-height: calc(100vh - 70px);
    }

    .ot26-header .ot26-header__menu a {
        font-size: 14px;
    }
}

@media (max-width: 375px) {
    .ot26-header .ot26-header__nav-inner {
        grid-template-columns: 96px minmax(0, 1fr) auto 42px;
        gap: 6px;
        padding: 8px;
    }

    .ot26-header .ot26-header__logo {
        width: 96px;
    }

    .ot26-header .ot26-header__search {
        width: 100%;
        min-width: 42px;
        /* grid-template-columns: 34px; */
        padding: 0 4px;
    }

    /* .ot26-header .ot26-header__search input {
        display: none;
    } */

    .ot26-header .ot26-header__actions-item {
        padding: 0;
    }

    .ot26-header .ot26-header__actions-item a {
        font-size: 13px;
        padding: 7px 5px;
    }

    .ot26-header .ot26-header__nav.fixed .ot26-header__mobile-toggle .overlay {
        top: 64px;
    }

    .ot26-header .ot26-header__nav .ot26-header__menu.list-item-group.horizon.active {
        max-height: calc(100vh - 64px);
    }
}

/* Layout 2026 Responsive: Footer */
@media (max-width: 1180px) {
    .ot26-footer__container {
        width: min(1320px, calc(100% - 96px));
    }

    .ot26-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 42px;
    }

    .ot26-footer__connection {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    .ot26-footer__container {
        width: min(100% - 32px, 560px);
    }

    .ot26-footer__main {
        padding: 42px 0 48px;
    }

    .ot26-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ot26-footer__connection {
        grid-column: auto;
    }

    .ot26-footer__host-logos {
        flex-wrap: wrap;
        gap: 18px;
    }

    .ot26-footer__license p:first-child {
        align-items: center;
        flex-direction: column;
    }
}
