/* Small, self-contained refresh of the public site's header and footer. */
html,
body {
    overscroll-behavior-y: none;
}

.headermain .header {
    height: 108px;
    background: linear-gradient(110deg, #25313d 0%, #304352 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.headermain .top {
    padding-top: 0;
    height: 108px;
    display: flex;
    align-items: center;
}

.headermain .logo {
    float: none;
    min-width: 0;
}

.headermain .logo .site-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    width: auto;
    height: auto;
    max-width: calc(100% - 55px);
    color: #fff;
    text-decoration: none;
}

.site-brand__logo {
    width: 86px;
    height: 86px;
    flex: 0 0 86px;
    object-fit: contain;
}

.site-brand__text {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    line-height: 1.2;
    padding-left: 15px;
    border-left: 2px solid #52bfc0;
}

.site-brand__text strong {
    font: 700 25px/1.15 "Segoe UI", Arial, sans-serif;
    letter-spacing: -.025em;
    color: #fff;
}

.site-brand__text > span {
    font: 12px/1.45 "Segoe UI", Arial, sans-serif;
    letter-spacing: .015em;
    color: #bfd6dc;
    max-width: 570px;
}

.site-brand:hover .site-brand__text strong,
.site-brand:focus-visible .site-brand__text strong {
    color: #e4f7f7;
}

@media (min-width: 641px) {
    .headermain .logo .site-brand {
        max-width: 100%;
    }

    .site-brand__text {
        gap: 3px;
        width: max-content;
        transform: translateY(5px);
    }

    .site-brand__text > span {
        font-size: clamp(12px, 1.6vw, 19px);
        max-width: none;
        white-space: nowrap;
    }
}

.headermain .ad_menu_button {
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 10px;
    background: rgba(255, 255, 255, .05);
    padding: 9px;
    width: 44px;
    height: 44px;
    transition: background .2s ease, border-color .2s ease;
}

.headermain .ad_menu_button:hover,
.headermain .ad_menu_button:focus-visible {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .55);
}

.headermain .ad_menu_button span {
    display: block;
    width: 23px;
    height: 2px;
    margin: 5px auto;
    padding: 0;
    background: #fff;
    border-radius: 2px;
    font-size: 0;
    line-height: 0;
}

html.mobile-menu-open,
body.mobile-menu-open {
    overflow: hidden;
}

.mobile-menu-backdrop[hidden],
#menu-mobile.mobile-menu[hidden] {
    display: none !important;
}

.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1190;
    background: rgba(10, 23, 32, .55);
}

#menu-mobile.mobile-menu {
    position: fixed;
    display: flex;
    flex-direction: column;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, calc(100vw - 44px));
    height: 100dvh;
    padding: 20px 18px 28px;
    overflow-y: auto;
    z-index: 1200;
    background: #263947;
    box-shadow: -18px 0 45px rgba(8, 19, 27, .3);
    color: #e7f1f3;
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.3;
}

#menu-mobile .mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 2px 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

#menu-mobile .mobile-menu__header span {
    margin: 0;
    color: #fff;
    font: 700 18px/1.2 "Segoe UI", Arial, sans-serif;
}

#menu-mobile .mobile-menu__close {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 9px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font: 27px/1 Arial, sans-serif;
    cursor: pointer;
}

#menu-mobile.mobile-menu .menu {
    position: static;
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

#menu-mobile.mobile-menu .menu > li {
    float: none;
    display: block;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

#menu-mobile.mobile-menu .menu > li > a,
#menu-mobile.mobile-menu .menu > li > .mobile-menu__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 12px 8px;
    border: 0;
    background: transparent;
    color: #edf5f6;
    font: 600 14px/1.4 "Segoe UI", Arial, sans-serif;
    text-align: left;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
}

#menu-mobile.mobile-menu .menu > li > .mobile-menu__toggle::after {
    content: '+';
    position: static;
    width: auto;
    height: auto;
    background: none;
    color: #81d5d3;
    font: 22px/1 Arial, sans-serif;
}

#menu-mobile.mobile-menu .menu > li > .mobile-menu__toggle[aria-expanded="true"]::after {
    content: '−';
}

#menu-mobile.mobile-menu .menu > li > a::after,
#menu-mobile.mobile-menu .menu .sub a::after,
#menu-mobile.mobile-menu .menu li::before {
    content: none;
    display: none;
}

#menu-mobile.mobile-menu .menu > li > a:hover,
#menu-mobile.mobile-menu .menu > li > .mobile-menu__toggle:hover,
#menu-mobile.mobile-menu .menu a:focus-visible,
#menu-mobile.mobile-menu .menu button:focus-visible {
    color: #9de8e5;
    outline: none;
}

#menu-mobile.mobile-menu .menu .sub[hidden] {
    display: none !important;
}

#menu-mobile.mobile-menu .menu .sub:not([hidden]) {
    position: static;
    display: block;
    min-width: 0;
    visibility: visible;
    opacity: 1;
    margin: 0 0 9px;
    padding: 0 0 0 12px;
    background: none;
}

#menu-mobile.mobile-menu .menu .sub::before {
    content: none;
}

#menu-mobile.mobile-menu .menu .sub li {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}

#menu-mobile.mobile-menu .menu .sub a {
    display: block;
    padding: 9px 8px;
    color: #bad1d7;
    font: 13px/1.4 "Segoe UI", Arial, sans-serif;
    text-transform: none;
    text-decoration: none;
}

#menu-mobile.mobile-menu .mobile-menu__search {
    display: flex;
    gap: 8px;
    margin-top: 22px;
    padding: 0 2px;
}

#menu-mobile.mobile-menu .mobile-menu__search input {
    min-width: 0;
    flex: 1;
    height: 40px;
    padding: 9px 11px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 8px;
    background: #f4f8f9;
    color: #243745;
    font: 13px "Segoe UI", Arial, sans-serif;
}

#menu-mobile.mobile-menu .mobile-menu__search button {
    border: 0;
    border-radius: 8px;
    padding: 0 12px;
    background: #75d0d0;
    color: #18333e;
    font: 600 13px "Segoe UI", Arial, sans-serif;
    cursor: pointer;
}

@media (min-width: 641px) {
    #menu-mobile.mobile-menu,
    .mobile-menu-backdrop {
        display: none !important;
    }
}

#topmenu.hmenu {
    background: #293845;
    box-shadow: 0 4px 12px rgba(18, 31, 43, .14);
    border-top: 0;
    border-bottom: 3px solid #157b82;
}

#topmenu > .container > ul > li > a {
    color: #d7e3e8;
    text-decoration: none;
    transition: color .2s ease;
}

#topmenu > .container > ul > li:hover > a,
#topmenu > .container > ul > li > a:focus-visible {
    color: #fff;
}

#topmenu .rside {
    float: none;
    margin-top: 0;
}

#topmenu .search {
    float: none;
    width: clamp(170px, 18vw, 220px);
    height: 40px;
    margin-top: 8px;
}

#topmenu .search form {
    height: 100%;
}

#topmenu .search input[name="search_query"] {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0 46px 0 15px;
    background: #f5f8f9;
    border: 1px solid #b8d2d5;
    border-radius: 12px;
    color: #283845;
    font: 14px "Segoe UI", Arial, sans-serif;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

#topmenu .search input[name="search_query"]::placeholder {
    color: #647d87;
    opacity: 1;
}

#topmenu .search input[name="search_query"]:focus {
    outline: none;
    border-color: #2a9299;
    box-shadow: 0 0 0 3px rgba(42, 146, 153, .23);
}

#topmenu .search-submit {
    position: absolute;
    top: 4px;
    right: 4px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: #dceff0;
    color: #156f77;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

#topmenu .search-submit svg {
    width: 17px;
    height: 17px;
}

#topmenu .search-submit:hover,
#topmenu .search-submit:focus-visible {
    background: #157b82;
    color: #fff;
}

#topmenu .search-submit:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

#footer.footer {
    height: auto;
    background: radial-gradient(circle at 12% 0, rgba(43, 138, 146, .2), transparent 36%), #202e39;
    border-top: 4px solid #157b82;
}

#footer .container {
    padding: 38px 0 42px;
}

#footer .footer-brand {
    margin-bottom: 30px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

#footer .footer-brand__link {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    max-width: 100%;
    color: #fff;
    text-decoration: none;
}

#footer .footer-brand__logo {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    object-fit: contain;
}

#footer .footer-brand__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding-left: 18px;
    border-left: 2px solid #52bfc0;
}

#footer .footer-brand__text strong {
    color: #fff;
    font: 700 22px/1.2 "Segoe UI", Arial, sans-serif;
    letter-spacing: -.02em;
}

#footer .footer-brand__text > span {
    color: #c6dce0;
    font: 15.5px/1.4 "Segoe UI", Arial, sans-serif;
}

#footer .footer-brand__link:hover .footer-brand__text strong,
#footer .footer-brand__link:focus-visible .footer-brand__text strong {
    color: #a9e7e5;
}

#footer .ulfooter {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 42px;
    padding: 0;
    margin: 0;
    list-style: none;
}

#footer .ulfooter li,
#footer .ulfooter li:first-child,
#footer .ulfooter li:nth-child(2),
#footer .ulfooter li:last-child {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    text-align: left;
    color: #c0d0d8;
    font: 15.5px/1.55 "Segoe UI", Arial, sans-serif;
}

#footer .footer-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #fff;
    font: 600 16px/1.2 "Segoe UI", Arial, sans-serif;
    letter-spacing: .02em;
}

#footer .footer-heading::before {
    content: "";
    width: 18px;
    height: 2px;
    flex: 0 0 18px;
    background: #52bfc0;
}

#footer .ulfooter li p,
#footer .ulfooter li p.email,
#footer .ulfooter li:last-child p {
    margin: 0 0 9px;
    padding: 0;
    color: #c0d0d8;
    font: 15.5px/1.55 "Segoe UI", Arial, sans-serif;
}

#footer .ulfooter li p::after {
    content: none;
}

#footer .ulfooter li a {
    display: table;
    margin-bottom: 8px;
    color: #9edbdb;
    font: 15.5px/1.55 "Segoe UI", Arial, sans-serif;
    text-decoration: none;
    transition: color .2s ease;
}

#footer .ulfooter li p.email a {
    margin-bottom: 0;
}

#footer .ulfooter li a:hover,
#footer .ulfooter li a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 1140px) {
    .headermain .top,
    #topmenu > .container,
    #footer > .container {
        padding-left: 22px;
        padding-right: 22px;
    }
}

@media (max-width: 768px) {
    #footer .ulfooter {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    #footer .ulfooter li:last-child {
        grid-column: 1 / -1;
        padding-top: 22px;
        border-top: 1px solid rgba(255, 255, 255, .12);
    }
}

@media (max-width: 640px) {
    .headermain .header,
    .headermain .top {
        height: auto;
        min-height: 104px;
    }

    .headermain .top {
        padding-top: 12px;
        padding-bottom: 12px;
        padding-right: 70px;
    }

    .headermain .logo {
        margin-bottom: 0;
    }

    .headermain .logo .site-brand {
        gap: 11px;
        max-width: 100%;
    }

    .site-brand__logo {
        width: 66px;
        height: 66px;
        flex-basis: 66px;
    }

    .site-brand__text {
        gap: 3px;
        padding-left: 9px;
    }

    .site-brand__text strong {
        font-size: 17px;
        letter-spacing: -.03em;
    }

    .site-brand__text > span {
        display: block;
        font-size: 10px;
        line-height: 1.3;
        letter-spacing: 0;
    }

    .headermain .ad_menu_button {
        display: block;
        top: 50%;
        right: 16px;
        transform: translateY(-50%);
    }
}

@media (max-width: 480px) {
    .headermain .container {
        min-width: 0;
    }

    .headermain .header,
    .headermain .top {
        min-height: 88px;
    }

    .headermain .top {
        box-sizing: border-box;
        height: 88px;
        padding: 10px 68px 10px 16px;
    }

    .headermain .logo .site-brand {
        gap: 9px;
    }

    .site-brand__logo {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }

    .site-brand__text {
        padding-left: 10px;
    }

    .site-brand__text strong {
        font-size: 17px;
    }

    .site-brand__text > span {
        font-size: 11px;
    }
}

@media (max-width: 375px) {
    .headermain .header,
    .headermain .top {
        min-height: 96px;
    }

    .headermain .top {
        height: 96px;
        padding-right: 64px;
    }

    .headermain .logo .site-brand {
        gap: 8px;
    }

    .site-brand__logo {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .site-brand__text {
        padding-left: 9px;
    }

    .site-brand__text strong {
        font-size: 15px;
    }

    .site-brand__text > span {
        font-size: 10.5px;
    }

    .headermain .ad_menu_button {
        right: 12px;
    }
}

@media (max-width: 520px) {
    #footer .footer-brand {
        margin-bottom: 24px;
        padding-bottom: 24px;
    }

    #footer .footer-brand__link {
        gap: 12px;
    }

    #footer .footer-brand__logo {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    #footer .footer-brand__text {
        padding-left: 12px;
    }

    #footer .footer-brand__text strong {
        font-size: 18px;
    }

    #footer .footer-brand__text > span {
        font-size: 13px;
    }

    #footer .ulfooter {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    #footer .ulfooter li:last-child {
        grid-column: auto;
    }

    #footer .container {
        padding-top: 28px;
        padding-bottom: 28px;
    }
}
