/* Visual correction for the login/register header only. No page behavior is changed. */
.header {
    position: relative !important;
    isolation: isolate !important;
    color: #f7fbfa !important;
    background: #22292c !important;
    background-image: none !important;
    overflow: visible !important;
}
.header .header-top {
    position: relative !important;
    z-index: 300 !important;
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    min-height: 66px !important;
    background: #22292c !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(243, 201, 111, .24) !important;
    overflow: visible !important;
}
.header .container {
    width: min(1200px, 82%) !important;
    max-width: 1200px !important;
}
.header .top-cont {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    width: 100% !important;
    min-height: 66px !important;
    height: auto !important;
    padding: 0 !important;
    overflow: visible !important;
}
.header .top-cont .cont-link {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: auto !important;
    flex: 0 0 auto !important;
}
.header .top-cont__logo {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #f7fbfa !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: .01em !important;
    white-space: nowrap !important;
}
.header .top-cont__logo img {
    display: block !important;
    width: 34px !important;
    height: 34px !important;
    object-fit: contain !important;
}
.header .top-cont__logo span { color: #f7fbfa !important; }
.header .top-cont__menu-block {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 28px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: auto !important;
    background: transparent !important;
}
.header .top-cont .main-menu {
    display: flex !important;
    align-items: center !important;
    gap: 26px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    background: transparent !important;
}
.header .top-cont .main-menu__link {
    display: block !important;
    margin: 0 !important;
    color: #ecf4f4 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}
.header .top-cont .main-menu__link:hover { color: #f3c96f !important; }
.header .top-cont .block-link {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    margin: 0 !important;
}
.header .top-cont__score,
.header .top-cont__login {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    padding: 0 17px !important;
    border-radius: 9px !important;
    font-family: 'Jost', Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    filter: none !important;
    box-shadow: none !important;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease !important;
}
.header .top-cont__score {
    color: #151b1b !important;
    background: linear-gradient(135deg, #ffe5a2, #efc15b) !important;
    border: 1px solid #efc15b !important;
}
.header .top-cont__score:hover {
    color: #151b1b !important;
    background: #ffe8b4 !important;
    box-shadow: none !important;
}
.header .top-cont__login {
    color: #f7fbfa !important;
    background: transparent !important;
    border: 1px solid rgba(243, 201, 111, .75) !important;
}
.header .top-cont__login:hover {
    color: #f3c96f !important;
    background: rgba(255,255,255,.04) !important;
}
.header .language-wrapper {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}
.header .language-wrapper .select_wrap3 { width: auto !important; margin: 0 !important; }
.header .language-wrapper .default_option3 { width: auto !important; margin: 0 !important; padding: 0 16px 0 0 !important; }
.header .language-wrapper .select_ul3 {
    z-index: 400 !important;
    background: #22292c !important;
    border: 1px solid rgba(243,201,111,.25) !important;
    border-radius: 9px !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.25) !important;
}
.header .language-wrapper .select_ul3 a { color: #f2f8f7 !important; }

/* Hamburger drawing and its open state use the spans already present in the Blade header. */
.header .top-cont__burger {
    display: none;
    position: relative !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 5px !important;
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    background-image: none !important;
    cursor: pointer !important;
    z-index: 320 !important;
}
.header .top-cont__burger span {
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    flex: 0 0 2px !important;
    border-radius: 2px !important;
    background: #f2f8f7 !important;
    transition: transform .2s ease, opacity .2s ease !important;
}
.header .top-cont__burger.exit,
.header .top-cont__burger.exit:hover { background: none !important; background-image: none !important; }
.header .top-cont__burger.exit span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header .top-cont__burger.exit span:nth-child(2) { opacity: 0; }
.header .top-cont__burger.exit span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .header .container { width: calc(100% - 48px) !important; }
    .header .top-cont { gap: 14px !important; }
    .header .top-cont__menu-block { gap: 14px !important; }
    .header .top-cont .main-menu { gap: 14px !important; }
    .header .top-cont .main-menu__link { font-size: 12px !important; }
    .header .top-cont__score,
    .header .top-cont__login { padding: 0 12px !important; }
}

/* JS already toggles .top-cont__menu-block.pos below 769px. Let the full drawer open and scroll. */
@media (max-width: 768px) {
    .header .header-top { height: auto !important; min-height: 66px !important; }
    .header .top-cont { min-height: 66px !important; height: auto !important; }
    .header .top-cont__burger { display: flex !important; }
    .header .top-cont__menu-block {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 310 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 14px !important;
        width: 100% !important;
        height: auto !important;
        max-height: 0 !important;
        min-height: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        padding: 0 16px !important;
        margin: 0 !important;
        background: #22292c !important;
        border: 0 !important;
        box-sizing: border-box !important;
        transition: max-height .25s ease, opacity .18s ease, padding .18s ease, visibility .18s ease !important;
    }
    .header .top-cont__menu-block.pos {
        height: calc(100vh - 66px) !important;
        height: calc(100dvh - 66px) !important;
        max-height: calc(100vh - 66px) !important;
        max-height: calc(100dvh - 66px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        padding: 16px !important;
        border-top: 1px solid rgba(243,201,111,.24) !important;
        box-shadow: 0 14px 28px rgba(0,0,0,.28) !important;
    }
    .header .top-cont__menu-block .mob-left {
        display: block !important; position: static !important; width: 100% !important;
        height: auto !important; max-height: none !important; overflow: visible !important;
        visibility: visible !important; opacity: 1 !important; margin: 0 !important; padding: 0 !important;
    }
    .header .top-cont__menu-block #indexMenu,
    .header .top-cont__menu-block .main-menu {
        display: flex !important; position: static !important; flex-direction: column !important;
        align-items: stretch !important; justify-content: flex-start !important; gap: 0 !important;
        width: 100% !important; height: auto !important; max-height: none !important; overflow: visible !important;
        visibility: visible !important; opacity: 1 !important; left: auto !important; top: auto !important;
        padding: 0 !important; margin: 0 !important; background: transparent !important; list-style: none !important;
    }
    .header .top-cont__menu-block #indexMenu > li,
    .header .top-cont__menu-block .main-menu > .main-menu__item {
        display: block !important; position: static !important; width: 100% !important;
        height: auto !important; max-height: none !important; overflow: visible !important;
        visibility: visible !important; opacity: 1 !important; margin: 0 !important; padding: 0 !important;
    }
    .header .top-cont__menu-block .main-menu__link {
        display: block !important; width: 100% !important; padding: 11px 0 !important; margin: 0 !important;
        color: #f2f8f7 !important; font-size: 15px !important; line-height: 1.35 !important; white-space: normal !important;
    }
    .header .top-cont__menu-block .block-link {
        display: flex !important; position: static !important; flex-wrap: wrap !important; align-items: flex-start !important;
        justify-content: flex-start !important; gap: 9px !important; width: 100% !important; height: auto !important;
        max-height: none !important; overflow: visible !important; visibility: visible !important; opacity: 1 !important;
        margin: 0 !important; padding: 0 !important;
    }
    .header .top-cont__menu-block > .wrapper,
    .header .top-cont__menu-block .wrapper.language-wrapper {
        display: block !important; position: relative !important; top: auto !important; right: auto !important; left: auto !important;
        align-self: flex-start !important; width: auto !important; height: auto !important; max-height: none !important;
        overflow: visible !important; visibility: visible !important; opacity: 1 !important; margin: 0 !important; padding: 0 !important;
    }
    .header .top-cont__menu-block .select_wrap3 {
        display: inline-block !important; position: relative !important; width: auto !important; height: auto !important;
        max-height: none !important; overflow: visible !important; visibility: visible !important; opacity: 1 !important;
        margin: 0 !important; padding: 0 !important;
    }
    .header .top-cont__menu-block .default_option3 {
        display: block !important; position: relative !important; width: auto !important; height: auto !important;
        max-height: none !important; overflow: visible !important; visibility: visible !important; opacity: 1 !important;
        margin: 0 !important; padding: 0 18px 0 0 !important; list-style: none !important; cursor: pointer !important;
    }
    .header .top-cont__menu-block .select_ul3 {
        position: absolute !important; top: calc(100% + 7px) !important; left: 0 !important; right: auto !important;
        z-index: 400 !important; width: max-content !important; min-width: 112px !important; max-height: none !important;
        overflow: visible !important; padding: 7px !important; margin: 0 !important; background: #22292c !important;
        border: 1px solid rgba(243,201,111,.25) !important; border-radius: 9px !important;
        box-shadow: 0 10px 25px rgba(0,0,0,.28) !important; list-style: none !important;
    }
    .header .top-cont__menu-block .select_wrap3:not(.active) .select_ul3 { display: none !important; }
    .header .top-cont__menu-block .select_ul3 li { display: block !important; position: static !important; width: 100% !important; height: auto !important; margin: 0 !important; padding: 0 !important; }
    .header .top-cont__menu-block .select_ul3 a {
        display: flex !important; align-items: center !important; gap: 9px !important; padding: 8px !important;
        color: #f2f8f7 !important; text-decoration: none !important; white-space: nowrap !important;
    }
}
