/* =========================
   Header
   ========================= */
header {
    position: fixed;
    z-index: 1000;
    top: 24px;
    left: 50%;

    width: calc(100% - 120px);
    height: 80px;

    background: #fff;
    border-radius: 12px;
    transform: translateX(-50%);
    box-shadow: 0 2px 10px rgba(37, 59, 102, 0.08);
}

header.menu-open {
    background: #fff;
}

.header-wrapper {
    display: flex;
    align-items: center;

    height: 80px;
    padding: 0 40px;
}

.navbar {
    position: relative;
    z-index: 1001;

    display: flex;
    width: 100%;
    height: 80px;
    padding: 24px 40px;
    align-items: center;
    margin: 0;
}

.navbar-collapse {
    margin-left: auto;
}

/* =========================
   Logo
   ========================= */
.header-logo,
.header-img {
    display: flex;
    align-items: center;

    height: 100%;
}

.header-logo img,
.header-img img {
    width: 153px;
    height: auto;
}

.header-img img {
    margin: 0 40px;
}

/* =========================
   Navigation
   ========================= */
.header-btn {
    padding: 0 40px;
}

.header-btn ul {
    display: flex;
    align-items: center;

    gap: 24px;
}

.navbar-nav {
    display: flex;
    align-items: center;

    gap: 24px;
}

.nav-link:nth-of-type(1),
.nav-link:nth-of-type(2) {
    font-size: 14px;

    color: #363636;
}

/* =========================
   Button
   ========================= */
.material-btn,
.form-btn {
    display: flex;
    width: 180px;
    height: 44px;
    min-width: 86px;
    padding: 25px 8px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-weight: 700;

    border-radius: 50px;
    transition: .3s ease;
    font-style: normal;
}

.material-btn {
    margin-left: 46px;

    color: #fff;
    background: #253B66;
}

.material-btn:hover {
    color: #253B66;
    background: #fff;
    border: 1px solid #264476;
}

.form-btn {
    border: 1px solid #264476;
    background: #FFF;
    color: #264476;
}

.form-btn:hover {
    color: #fff;
    background: #264476;
}

/* =========================
   Menu
   ========================= */
.sp-menu {
    display: none;
}

.sp-menu {
    position: fixed;
    z-index: 999;
    flex-direction: column;
    width: 100%;
    background: #fff;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 300ms ease-in, visibility 0s linear 300ms;
}

.sp-menu-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sp-menu-links li {
    border-bottom: 1px solid #f0f2f6;
}

.sp-menu-links a {
    display: block;
    padding: 20px 8px;
    color: #545454;
    font-size: 16px;
    line-height: 1.5;
    text-decoration: none;
}

.sp-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 64px;
}

.sp-menu-actions .material-btn,
.sp-menu-actions .form-btn {
    box-sizing: border-box;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 12px;
}

.sp-menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.sp-menu-icon {
    display: flex;
    width: 24px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
}

.sp-menu-icon span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: #555;
    transition: transform 200ms ease-in, opacity 200ms ease-in;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open .sp-menu {
    visibility: visible;
    transform: translateX(0);
    transition: transform 300ms ease-out, visibility 0s;
}

body.menu-open .sp-menu-icon span {
    transition-timing-function: ease-out;
}

body.menu-open .sp-menu-icon span:first-child {
    transform: translateY(11.25px) rotate(45deg);
}

body.menu-open .sp-menu-icon span:nth-child(2) {
    opacity: 0;
}

body.menu-open .sp-menu-icon span:last-child {
    transform: translateY(-11.25px) rotate(-45deg);
}

/* =========================
   Top Button
   ========================= */
#top-btn {
    transition: 0.3s ease;
}

#top-btn:hover {
    opacity: 0.5;
}

/* =========================
   Mobile
   ========================= */
@media screen and (max-width: 1024px) {
    header,
    .header-wrapper,
    .navbar {
        height: 56px;
    }

    header {
        top: 0;
        width: 100%;
        border-radius: 0;
    }

    .navbar {
        padding: 0 14px;
    }

    .navbar .navbar-collapse.collapse {
        display: none !important;
    }

    .header-logo img {
        width: 184px;
    }

    .header-img img {
        margin: 0 12px;
    }

    .header-btn {
        padding: 0 12px;
    }

    .header-btn ul {
        gap: 12px;
    }

    .sp-menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .sp-menu {
        display: flex;
        top: 56px;
        left: 0;
        box-sizing: border-box;
        height: calc(100vh - 56px);
        overflow-y: auto;
        padding: 30px 13px 40px;
    }

    .sp-menu-actions {
        margin-top: 48px;
    }
}
