@import url("/assets/css/site-footer.css?v=1");

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@600;700;800&display=swap");
@import url("/assets/css/notifications.css?v=5");
@import url("/assets/css/account-controls.css?v=3");


.site-header {
    position: relative;
    z-index: 1000;

    width: 100%;

    background: #ffffff;
    border-bottom: 1px solid #dfe7e2;
}


.site-header-inner {
    width: min(1440px, 100%);
    min-height: 72px;

    margin: 0 auto;
    padding: 0 28px;

    display: flex;
    align-items: center;

    gap: 30px;
}


.site-brand {
    flex: 0 0 auto;
    min-width: 190px;

    display: flex;
    flex-direction: column;

    color: #17211c;

    text-decoration: none;
}


.site-brand-name {
    font-size: 22px;
    line-height: 1;

    font-weight: 800;

    letter-spacing: -.6px;
    white-space: nowrap;
}


.site-brand-name strong {
    color: #16a66a;
}


.site-brand-subtitle {
    margin-top: 5px;

    color: #7a867f;

    font-size: 9px;
    line-height: 1.1;

    letter-spacing: .35px;
    text-transform: uppercase;
    white-space: nowrap;
}


.site-nav {
    flex: 1 1 auto;
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 24px;
}


.site-nav a {
    min-height: 72px;

    display: inline-flex;
    align-items: center;

    color: #26312b;
    border-bottom: 2px solid transparent;

    font-size: 13px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;
    white-space: nowrap;

    transition:
        color .15s ease,
        border-color .15s ease;
}


.site-nav a:hover,
.site-nav a.active {
    color: #16a66a;
    border-bottom-color: #16a66a;
}


.site-account {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    margin-left: auto;
}


.site-login {
    min-height: 40px;

    padding: 0 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #26312b;
    background: #ffffff;

    border: 1px solid #dfe7e2;
    border-radius: 9px;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    transition:
        border-color .15s ease,
        color .15s ease,
        background .15s ease;
}


.site-login:hover {
    color: #13875a;
    border-color: #bcdccd;
    background: #f7fcf9;
}


.site-profile-fallback {
    display: flex;
    align-items: center;

    gap: 9px;

    color: #26312b;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}


.site-profile-avatar {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eaf7f1;
    color: #16a66a;

    font-weight: 800;
}


.site-menu-toggle {
    width: 42px;
    height: 42px;

    padding: 0;

    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 5px;

    background: transparent;
    border: 1px solid #dfe7e2;
    border-radius: 9px;

    cursor: pointer;
}


.site-menu-toggle span {
    width: 18px;
    height: 2px;

    display: block;

    border-radius: 10px;
    background: #26312b;

    transition:
        transform .15s ease,
        opacity .15s ease;
}


.site-header.is-menu-open
.site-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}


.site-header.is-menu-open
.site-menu-toggle span:nth-child(2) {
    opacity: 0;
}


.site-header.is-menu-open
.site-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/*
 * Existing account controls are reused by the common header.
 */
.site-header .evm-account-controls {
    display: flex;
    align-items: center;

    gap: 4px;
}


@media (max-width: 1240px) {

    .site-header-inner {
        gap: 20px;
    }

    .site-nav {
        gap: 17px;
    }

    .site-brand {
        min-width: 175px;
    }

    .site-nav a {
        font-size: 12px;
    }

}


@media (max-width: 1020px) {

    .site-header-inner {
        min-height: 64px;

        padding-left: 20px;
        padding-right: 20px;

        gap: 12px;
    }


    .site-brand {
        min-width: 0;
        margin-right: auto;
    }


    .site-brand-name {
        font-size: 20px;
    }


    .site-menu-toggle {
        display: flex;
        order: 2;
    }


    .site-account {
        order: 1;

        margin-left: 0;
    }


    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        padding: 8px 20px 16px;

        display: none;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        background: #ffffff;
        border-bottom: 1px solid #dfe7e2;

        box-shadow: 0 12px 28px rgba(22, 35, 28, .08);
    }


    .site-header.is-menu-open .site-nav {
        display: flex;
    }


    .site-nav a {
        min-height: 46px;

        padding: 0 4px;

        border-bottom: 1px solid #edf2ef;

        font-size: 14px;
    }


    .site-nav a:last-child {
        border-bottom: 0;
    }


    .site-nav a.active {
        border-bottom-color: #edf2ef;
    }

}


@media (max-width: 620px) {

    .site-header-inner {
        min-height: 60px;

        padding-left: 14px;
        padding-right: 14px;

        gap: 9px;
    }


    .site-brand-name {
        font-size: 18px;
    }


    .site-brand-subtitle {
        display: none;
    }


    .site-profile-name,
    .site-header .evm-account-name,
    .site-header .evm-username {
        display: none;
    }


    .site-login {
        min-height: 38px;

        padding-left: 13px;
        padding-right: 13px;
    }


    .site-menu-toggle {
        width: 38px;
        height: 38px;
    }


    .site-nav {
        padding-left: 14px;
        padding-right: 14px;
    }

}


/* =========================================================
   UNIFIED HEADER CONTRACT
   Этот блок намеренно находится в конце файла.
   Геометрия шапки не должна зависеть от CSS конкретной страницы.
   ========================================================= */

html {
    scrollbar-gutter: stable;
}


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


.site-header {
    height: 72px;

    margin: 0;
    padding: 0;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.5;

    color: #17211c;

    background: #ffffff;
    border-bottom: 1px solid #dfe7e2;
}


.site-header-inner {
    width: min(1440px, 100%);
    height: 72px;
    min-height: 72px;

    margin: 0 auto;
    padding: 0 28px;
}


.site-header a,
.site-header a:link,
.site-header a:visited {
    text-decoration: none;
}


.site-header button,
.site-header input,
.site-header select,
.site-header textarea {
    font-family: inherit;
}


.site-header .site-brand {
    min-width: 190px;
}


.site-header .site-brand-name {
    font-size: 22px;
    line-height: 1;

    font-weight: 800;
    letter-spacing: -.6px;
}


.site-header .site-brand-subtitle {
    margin-top: 5px;

    font-size: 9px;
    line-height: 1.1;
    font-weight: 400;

    letter-spacing: .35px;
}


.site-header .site-nav {
    gap: 24px;
}


.site-header .site-nav a,
.site-header .site-nav a:link,
.site-header .site-nav a:visited {
    min-height: 72px;
    height: 72px;

    padding: 0;

    display: inline-flex;
    align-items: center;

    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;

    background: transparent;

    color: #26312b;

    font-size: 13px;
    line-height: 1;
    font-weight: 600;

    white-space: nowrap;
}


.site-header .site-nav a:hover,
.site-header .site-nav a.active,
.site-header .site-nav a.active:link,
.site-header .site-nav a.active:visited {
    color: #16a66a;

    background: transparent;
    border-bottom-color: #16a66a;
}


@media (max-width: 1240px) {

    .site-header .site-nav {
        gap: 17px;
    }

}


@media (max-width: 1020px) {

    .site-header {
        height: 64px;
    }


    .site-header-inner {
        height: 64px;
        min-height: 64px;
    }


    .site-header .site-nav {
        height: auto;
    }


    .site-header .site-nav a,
    .site-header .site-nav a:link,
    .site-header .site-nav a:visited {
        width: 100%;
        height: 46px;
        min-height: 46px;
    }

}


@media (max-width: 620px) {

    .site-header {
        height: 60px;
    }


    .site-header-inner {
        height: 60px;
        min-height: 60px;
    }

}

@media (max-width:620px){.site-header .evm-profile-trigger .fa-angle-down{display:none}.site-header .evm-user-controls,.site-header .evm-account-controls{gap:4px}}

@media (max-width:1020px){.site-header .site-nav a,.site-header .site-nav a:link,.site-header .site-nav a:visited{height:40px;min-height:40px}}

@media (max-width:1020px){.site-header .site-nav a,.site-header .site-nav a:link,.site-header .site-nav a:visited{height:36px;min-height:36px}}


/* EVMOTION typography */
.site-header {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

.site-header .site-brand-name {
    font-family:
        "Manrope",
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}


/* =========================================================
   EVMOTION — HEADER LOGO
   ========================================================= */

.site-header .site-brand {
    min-width: 215px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.site-header .site-brand-logo {
    display: block;
    width: auto;
    height: 48px;
    max-width: 215px;
    object-fit: contain;
}

@media (max-width: 1020px) {
    .site-header .site-brand {
        min-width: 190px;
    }

    .site-header .site-brand-logo {
        height: 44px;
        max-width: 195px;
    }
}

@media (max-width: 620px) {
    .site-header .site-brand {
        min-width: 0;
    }

    .site-header .site-brand-logo {
        height: 40px;
        max-width: 178px;
    }
}


/* =========================================================
   EVMOTION — DESKTOP HEADER SIZE
   ========================================================= */

@media (min-width: 1021px) {

    .site-header {
        height: 88px;
    }

    .site-header-inner {
        height: 88px;
        min-height: 88px;
    }

    .site-header .site-brand {
        min-width: 285px;
    }

    .site-header .site-brand-logo {
        width: auto;
        height: 64px;
        max-width: 285px;
        object-fit: contain;
    }
}

/* EVMOTION GUEST AUTH ACTIONS */

.site-header .site-account {
    gap: 8px;
}

.site-header .site-register {
    min-height: 40px;

    padding: 0 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border: 1px solid #16a66a;
    border-radius: 9px;

    background: #16a66a;
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
    line-height: 1;

    text-decoration: none;
    white-space: nowrap;

    transition:
        background .15s ease,
        border-color .15s ease,
        transform .15s ease;
}

.site-header .site-register:link,
.site-header .site-register:visited {
    color: #ffffff;
}

.site-header .site-register:hover {
    background: #138b5b;
    border-color: #138b5b;
    color: #ffffff;
}

.site-header .site-register:active {
    transform: translateY(1px);
}

@media (max-width: 620px) {

    .site-header .site-account {
        gap: 6px;
    }

    .site-header .site-login,
    .site-header .site-register {
        min-height: 38px;

        padding-left: 12px;
        padding-right: 12px;
    }

}


/* Mobile header fit */
@media (max-width: 620px) {

    .site-header .site-header-inner {
        padding-left: 10px;
        padding-right: 10px;
        gap: 6px;
    }

    .site-header .site-brand {
        min-width: 0;
        flex: 1 1 auto;
        margin-right: 0;
    }

    .site-header .site-brand-logo {
        width: 100%;
        height: auto;
        max-width: 160px;
        max-height: 38px;
    }

    .site-header .site-account {
        flex: 0 0 auto;
        gap: 4px;
    }

    .site-header .site-login,
    .site-header .site-register {
        min-height: 36px;
        padding-left: 9px;
        padding-right: 9px;
        font-size: 12px;
    }

    .site-header .site-menu-toggle {
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
    }

}
