/* Matching header.php + CSS. Adapted from Tilda T228/T451 real CSS. */

:root {
    --es-orange: #ff6b00;
    --es-orange-scroll: rgba(255, 107, 0, .90);
    --es-white: #ffffff;
    --es-header-height: 60px;
    --es-admin-offset: 0px;
    --es-font: "STEM", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body.es-body {
    margin: 0;
    padding: 0;
}

body.es-body {
    font-family: Arial, sans-serif;
}

body.es-mobile-open {
    overflow: hidden;
}

.es-t228-header {
    position: fixed;
    top: var(--es-admin-offset);
    left: 0;
    right: 0;
    width: 100%;
    height: var(--es-header-height);
    z-index: 2000;
    background-color: var(--es-orange);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0);
    transition: background-color .3s linear;
}

body.sl3-standalone #bx-panel {
    position: relative;
    z-index: 3000;
}

body.sl3-standalone .es-page {
    background: #2f2f2d;
}

.es-t228-header.is-scrolled {
    background-color: var(--es-orange-scroll);
}

.es-t228-maincontainer {
    position: relative;
    display: table;
    width: 100%;
    max-width: 1200px;
    height: var(--es-header-height);
    margin: 0 auto;
}

.es-t228-padding {
    display: table-cell;
    width: 20px;
    height: var(--es-header-height);
}

.es-t228-leftside {
    display: table-cell;
    vertical-align: middle;
    height: var(--es-header-height);
    white-space: nowrap;
}

.es-t228-leftcontainer {
    display: inline-block;
    height: var(--es-header-height);
}

.es-t228-imgwrapper {
    display: inline-block;
    height: var(--es-header-height);
    line-height: var(--es-header-height);
    text-decoration: none;
}

.es-t228-imglogo {
    display: inline-block;
    max-width: 30px;
    width: 30px;
    min-width: 30px;
    height: auto;
    margin-right: 30px;
    vertical-align: middle;
}

.es-t228-centerside {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    width: 100%;
    height: var(--es-header-height);
}

.es-t228-centercontainer {
    display: block;
    height: var(--es-header-height);
}

.es-t228-rightside {
    display: table-cell;
    vertical-align: middle;
    text-align: right;
    height: var(--es-header-height);
}

.es-t228-list {
    display: block;
    height: var(--es-header-height);
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 0;
    transition: opacity ease-in-out .2s;
}

.es-t228-list-item {
    clear: both;
    display: inline-block;
    margin: 0;
    padding-left: 15px;
    padding-right: 15px;
    font-family: var(--es-font);
    color: var(--es-white);
    white-space: nowrap;
}

.es-t228-list-item.is-first {
    padding-left: 0;
}

.es-t228-list-item.is-last {
    padding-right: 0;
}

.es-t228-link {
    position: relative;
    display: inline-block;
    height: var(--es-header-height);
    line-height: var(--es-header-height);
    font-family: var(--es-font);
    font-size: 20px;
    font-weight: 700;
    color: var(--es-white);
    text-decoration: none;
    white-space: nowrap;
    transition: color .3s ease-in-out, opacity .3s ease-in-out;
}

.es-t228-link:hover,
.es-t228-link:focus-visible {
    color: var(--es-white);
    opacity: .6;
    outline: none;
}

.es-t228-link.t-active {
    opacity: 1;
}

.es-t228-link.t-active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 16px;
    width: 100%;
    height: 1px;
    border-bottom: 1px solid var(--es-white);
    box-shadow: inset 0 -1px 0 0 var(--es-white);
}

.es-t451-mobilebar,
.es-t451-overlay,
.es-t451-menu {
    display: none;
}

.es-page {
    padding-top: var(--es-header-height);
}

@media screen and (max-width: 1200px) {
    .es-t228-maincontainer {
        max-width: none;
    }

    .es-t228-padding {
        width: 20px;
    }

    .es-t228-imglogo {
        margin-right: 15px;
    }
}

@media screen and (max-width: 1100px) {
    .es-t228-list-item {
        padding-left: 9px;
        padding-right: 9px;
    }

    .es-t228-link {
        font-size: 17px;
    }
}

@media screen and (max-width: 980px) {
    .es-t228-maincontainer {
        display: none;
    }

    .es-t451-mobilebar {
        display: flex;
        align-items: center;
        width: 100%;
        height: 60px;
        padding: 0 20px;
        background: var(--es-orange);
        position: relative;
    }

    .es-t451-leftside,
    .es-t451-rightside {
        display: flex;
        align-items: center;
        flex: 1 0 calc(100% / 3);
        height: 60px;
    }

    .es-t451-leftside {
        justify-content: flex-start;
        order: 1;
    }

    .es-t451-centerside {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1 0 calc(100% / 3);
        height: 60px;
        order: 2;
        text-align: center;
        z-index: 100;
    }

    .es-t451-rightside {
        justify-content: flex-end;
        order: 3;
    }

    .es-t451-logo {
        display: inline-block;
        text-decoration: none;
    }

    .es-t451-logo img {
        display: block;
        width: 35px;
        max-width: 35px;
        height: auto;
    }

    .es-t451-burger {
        position: relative;
        flex-shrink: 0;
        width: 28px;
        height: 20px;
        padding: 0;
        border: 0;
        background: transparent;
        outline: none;
        cursor: pointer;
    }

    .es-t451-burger span {
        position: absolute;
        left: 0;
        display: block;
        width: 100%;
        height: 3px;
        background: var(--es-white);
        transition: .25s ease-in-out;
    }

    .es-t451-burger span:nth-child(1) { top: 0; }
    .es-t451-burger span:nth-child(2),
    .es-t451-burger span:nth-child(3) { top: 8px; }
    .es-t451-burger span:nth-child(4) { top: 16px; }

    .es-t451-burger.is-open span:nth-child(1),
    .es-t451-burger.is-open span:nth-child(4) {
        top: 8px;
        width: 0;
        left: 50%;
    }

    .es-t451-burger.is-open span:nth-child(2) {
        transform: rotate(45deg);
    }

    .es-t451-burger.is-open span:nth-child(3) {
        transform: rotate(-45deg);
    }

    .es-t451-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 99999;
        background: rgba(0, 0, 0, .5);
        opacity: 0;
        visibility: hidden;
        transition: opacity ease-in-out .3s, visibility ease-in-out .3s;
    }

    .es-t451-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }

    .es-t451-menu {
        display: block;
        position: fixed;
        top: var(--es-admin-offset);
        left: 0;
        bottom: 0;
        max-width: 300px;
        width: 100%;
        z-index: 999999;
        overflow: hidden;
        background-color: var(--es-orange);
        transform: translate(-100%, 0);
        transition: transform ease-in-out .3s;
    }

    .es-t451-menu.is-open {
        transform: translate(0, 0);
    }

    .es-t451-close {
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 5px;
        right: 5px;
        z-index: 999999;
        width: 40px;
        height: 40px;
        padding: 0;
        border: none;
        background-color: var(--es-orange);
        cursor: pointer;
    }

    .es-t451-close span {
        position: absolute;
        left: 8px;
        top: 19px;
        display: block;
        width: 24px;
        height: 2px;
        background: var(--es-white);
    }

    .es-t451-close span:nth-child(1),
    .es-t451-close span:nth-child(4) {
        display: none;
    }

    .es-t451-close span:nth-child(2) {
        transform: rotate(45deg);
    }

    .es-t451-close span:nth-child(3) {
        transform: rotate(-45deg);
    }

    .es-t451-menu-container {
        box-sizing: border-box;
        padding: 48px 40px 38px;
        position: relative;
        height: 100%;
    }

    .es-t451-list {
        list-style-type: none;
        margin: 0;
        padding: 0 !important;
    }

    .es-t451-list-item {
        clear: both;
        display: block;
        margin: 0;
        font-family: var(--es-font);
        font-size: 16px;
        color: var(--es-white);
    }

    .es-t451-link,
    .es-t451-phone {
        display: inline-block;
        position: relative;
        margin-bottom: 15px;
        font-family: var(--es-font);
        font-size: 20px;
        font-weight: 700;
        color: var(--es-white);
        text-decoration: none;
        transition: color .3s ease-in-out, opacity .3s ease-in-out;
    }

    .es-t451-list-item:last-child .es-t451-link {
        margin-bottom: 0;
    }

    .es-t451-link:hover,
    .es-t451-phone:hover {
        color: var(--es-white);
        opacity: .75;
    }

    .es-t451-link.t-active::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 100%;
        border-bottom: 2px solid var(--es-white);
        box-shadow: inset 0 -2px 0 0 var(--es-white);
    }

    .es-t451-phone {
        margin-top: 15px;
    }
}

@media screen and (max-width: 640px) {
    .es-t451-menu-container {
        padding: 42px 25px 25px;
    }
}
