:root {
    --font-source-sans-pro: 'Source Sans Pro', sans-serif;
}

.nav {
    position: absolute;
    top: 0;
    width: 100%;
    margin: 20px 0;
    background-color: transparent;
    z-index: 1000;
}

.nav .box_content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav .logo {
    display: flex;
    align-items: center;
}

.nav .sprite.navbar-logo {
    position: relative;
    top: 18px;
    padding: 0;
    display: inline-block;
}

.nav .sprite.navbar-logo.active {
    border-bottom: none;
}

.nav ul.website {
    display: flex;
    gap: 24px;
    margin: auto;
    padding: 25px 0 0;
    list-style: none;
}

.nav ul.website li {
    position: relative;
    margin: 0;
    font: 400 0.90rem var(--font-source-sans-pro);
}

.nav ul.website a {
    display: block;
    padding: 2px 0;
    color: #58595b;
    text-decoration: none;
}

.nav ul.website a.active {
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #ff9966;
}

.nav ul.website ul.submenu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    min-width: 220px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #fff;
    border-radius: 10px;
}

.nav ul.website ul.submenu.show {
    display: flex;
}

.nav ul.website ul.submenu li {
    margin: 0;
    padding: 10px;
}

.nav ul.website ul.submenu li a {
    font-size: 17px;
}

.nav ul.website ul.submenu li a:hover,
.nav ul.website ul.submenu li a:focus,
.nav ul.website ul.submenu li a:active {
    color: #339999;
}

.nav ul.website ul.submenu::after {
    content: "";
    position: absolute;
    top: -6px;
    left: 30px;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
    border-left: 6px solid transparent;
}

.about .nav,
.contact .nav,
.anti-fraud .nav,
.borrower .nav,
.faq .nav,
.statistics .nav,
.product .nav {
    background-color: #fff;
    position: relative;
}

.contact .nav,
.statistics .nav {
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.button_container {
    display: none;
    position: absolute;
    top: 20px;
    right: 25px;
    width: 25px;
    height: 25px;
    cursor: pointer;
    transition: opacity 0.25s ease;
    z-index: 900;
}

.button_container:hover {
    opacity: 0.7;
}

.button_container.active {
    position: fixed;
    top: 30px;
    right: 25px;
}

.button_container.active .top {
    transform: translateY(7px) rotate(45deg);
    background: #f7f7f7;
}

.button_container.active .middle {
    opacity: 0;
    background: #f7f7f7;
}

.button_container.active .bottom {
    transform: translateY(-7px) rotate(-45deg);
    background: #f7f7f7;
}

.button_container span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #231f20;
    border: none;
    cursor: pointer;
    transition: all 0.35s ease;
}

.button_container span:nth-of-type(2) {
    top: 7px;
}

.button_container span:nth-of-type(3) {
    top: 14px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    background: #353430;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.35s,
        visibility 0.35s,
        height 0.35s;
}

.overlay.open {
    opacity: 0.9;
    visibility: visible;
    height: 100%;
    z-index: 800;
}

.overlay.open li {
    animation: fadeInRight 0.25s ease forwards;
    animation-delay: calc(0.25s + (var(--index) * 0.1s));
}

.overlay nav {
    position: relative;
    top: 50%;
    height: 100%;
    transform: translateY(-50%);
    font: 12px/28px var(--font-source-sans-pro);
    text-align: center;
}

.overlay ul {
    position: relative;
    top: 20%;
    display: inline-block;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.overlay ul li {
    display: block;
    position: relative;
}

.overlay ul li a {
    display: block;
    position: relative;
    min-height: 20px;
    padding: 8px 0;
    font-size: 16px;
    color: #f7f7f7;
    text-decoration: none;
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    .nav {
        margin: 10px 0;
    }

    .nav .box_content {
        justify-content: left;
    }

    .nav ul.website {
        display: none;
    }

    .navbar-status {
        margin-left: auto;
        margin-right: 50px;
    }

    .button_container {
        display: block;
    }
}

@media screen and (max-width: 480px) {
    .home .logo {
        margin-right: 1rem !important;
    }
}