@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@700&family=Cormorant:wght@700&display=swap");

body {
    background: #15213f;
    color: #ffffff;
}

.subpage-home {
    min-height: 100vh;
    position: relative;
    background:
        url("../home-assets/bg.jpg") center top / cover no-repeat fixed,
        #15213f !important;
}

.subpage-main {
    padding-top: 442px;
    position: relative;
    z-index: 1;
}

.subpage-hero-logo {
    position: absolute;
    top: 32px;
    right: 420px;
    width: 430px;
    z-index: 1;
    pointer-events: auto;
}

.subpage-hero-logo img {
    width: 100%;
    display: block;
    transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg);
    transform-style: preserve-3d;
    will-change: transform, filter;
    transition:
        transform 0.28s ease-out,
        filter 0.28s ease-out;
    cursor: pointer;
}

.subpage-hero-logo img.is-parallax-active {
    filter: drop-shadow(0 10px 22px rgba(120, 170, 255, 0.18));
}

.subpage-section {
    padding: 28px 0 90px;
}

.subpage-title {
    text-align: center;
    margin-bottom: 54px;
}

.subpage-title h1 {
    font-family: "Cormorant Garamond", serif !important;
    font-size: 65px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    color: #ffefc9 !important;
}

.subpage-title p {
    margin-top: 16px !important;
    font-family: "Intro Book", sans-serif !important;
    font-size: 18px !important;
    line-height: 24px !important;
    color: #d8e1f3 !important;
}

.wrapper {
    background: #15213f !important;
}

.wrapper::after {
    display: none !important;
}

.nav__links::after,
.open-nav,
.inner-page,
.htc__step,
.wiki__nav,
.wiki__content,
.footer,
.main-bottom {
    background-color: rgba(16, 28, 54, 0.78) !important;
    box-shadow: none !important;
}

.inner-page {
    background: transparent !important;
    padding: 0 !important;
    margin-top: 0 !important;
}

.inner-page__content {
    margin-top: 0 !important;
}

.htc {
    max-width: 1400px;
}

.wiki {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 18px;
    display: grid !important;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
    justify-content: stretch;
}

.wiki__nav {
    width: 280px;
    flex: 0 0 280px;
    background: rgba(18, 30, 56, 0.82) !important;
    border-radius: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
}

.wiki__nav-item {
    background: rgba(18, 30, 56, 0.82) !important;
}

.wiki__nav-item.active,
.wiki__nav-item:hover {
    background: rgba(60, 74, 108, 0.82) !important;
}

.wiki__box,
.wiki__content {
    background: rgba(18, 30, 56, 0.82) !important;
}

.wiki__box {
    width: 100% !important;
    min-height: 960px;
    height: auto;
    align-self: stretch;
    min-width: 0;
    position: relative;
    z-index: 3;
    margin: 0 !important;
    overflow: visible;
}

.wiki__content {
    display: none !important;
    position: relative !important;
    inset: auto;
    opacity: 1 !important;
    pointer-events: none !important;
    height: auto !important;
    min-height: 960px;
    z-index: 3;
    overflow: visible;
}

.wiki__content.active {
    display: block !important;
    pointer-events: auto !important;
}

.wiki__content-title {
    background: rgba(60, 74, 108, 0.82) !important;
    border-bottom: 1px solid rgba(216, 226, 245, 0.14) !important;
    border-radius: 0 !important;
}

.wiki__content-main,
.wiki-text-box {
    background: rgba(18, 30, 56, 0.82) !important;
    color: #d8e1f3 !important;
    font-family: "Intro Book", sans-serif !important;
}

.wiki__content-main {
    min-height: 840px;
}

.wiki__content-main b,
.wiki__content-main strong,
.wiki-text-box b,
.wiki-text-box strong,
.wiki__content-main span,
.wiki-text-box span {
    color: #d8e1f3 !important;
}


.wiki__content-main p,
.wiki__content-main li,
.wiki__content-main td,
.wiki__content-main th,
.wiki-text-box p,
.wiki-text-box li,
.wiki-text-box td,
.wiki-text-box th {
    color: #d8e1f3 !important;
}

.wiki__content-main h1,
.wiki__content-main h2,
.wiki__content-main h3,
.wiki__content-main h4,
.wiki-text-box h1,
.wiki-text-box h2,
.wiki-text-box h3,
.wiki-text-box h4 {
    color: #ffefc9 !important;
}

.wiki__content-main hr,
.wiki-text-box hr {
    border: none !important;
    border-top: 1px solid rgba(216, 226, 245, 0.18) !important;
}

.wiki__content-title-name,
.wiki__nav-item-name {
    color: #ffefc9 !important;
}

.wiki__content-title-desc,
.wiki__nav-item-desc {
    color: #d8e1f3 !important;
}

.wiki .icon-title,
.wiki .text-area .icon-title {
    width: 100%;
    padding: 10px 14px;
    border-radius: 6px;
    background: rgba(60, 74, 108, 0.82) !important;
    box-shadow: inset 0 0 0 1px rgba(216, 226, 245, 0.08) !important;
}

.wiki .icon-title__text,
.wiki .text-area .icon-title__text {
    font-family: "Cormorant Garamond", serif !important;
    font-weight: 700 !important;
    color: #ffefc9 !important;
}

.wiki .table,
.wiki table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(18, 30, 56, 0.82) !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(216, 226, 245, 0.08) !important;
}

.wiki .table__tr {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    background: rgba(18, 30, 56, 0.82) !important;
}

.wiki .table__tr:not(:last-child) {
    border-bottom: 1px solid rgba(216, 226, 245, 0.14) !important;
}

.wiki .table__tr:first-child,
.wiki .table__tr:nth-child(n+3):nth-child(odd) {
    background: rgba(60, 74, 108, 0.62) !important;
}

.wiki .table__td {
    color: #d8e1f3 !important;
    background: transparent !important;
}

.wiki .table__tr:first-child .table__td,
.wiki .table__td:first-child,
.wiki .table__td:last-child {
    color: #ffefc9 !important;
}

.wiki .table__td:before {
    color: rgba(216, 225, 243, 0.72) !important;
}

.wiki table td,
.wiki table th,
.wiki table span,
.wiki table b {
    color: #d8e1f3 !important;
    background: transparent !important;
}

.wiki table tr,
.wiki table tbody {
    background: rgba(18, 30, 56, 0.82) !important;
}

.wiki table tr:first-child {
    background: rgba(60, 74, 108, 0.62) !important;
}

.htc__step {
    background: rgba(60, 74, 108, 0.8) !important;
    border-radius: 0 !important;
    padding: 54px 30px !important;
}

.htc__step:not(:last-child) {
    margin-bottom: 22px !important;
}

.htc__step-num span {
    min-width: 110px;
    border-radius: 999px !important;
    background: #705231 !important;
    color: #ffffff !important;
    font-family: "Cormorant Garamond", serif !important;
    font-size: 18px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
}

.htc__step-note {
    margin-top: 24px;
}

.htc__step h2 {
    font-size: 24px !important;
    line-height: 1.15 !important;
}

.htc__step p {
    font-family: "Intro Book", sans-serif !important;
    font-size: 18px !important;
    line-height: 24px !important;
}

.inner-page,
.main-bottom,
.footer {
    color: #ffffff;
}

.nav__links li a,
.wiki__nav-item-name,
.wiki__content-title-name,
.inner-page__title h1,
.htc__step h2,
.text-area h1,
.text-area h2,
.text-area h3,
.text-area h4,
.text-area h5,
.text-area h6 {
    font-family: "Cormorant Garamond", serif !important;
    color: #ffefc9 !important;
}

.inner-page__title p,
.htc__step p,
.text-area,
.wiki__nav-item-desc,
.wiki__content-title-desc,
.footer__cpr p,
.footer__links li a,
.unsimple span {
    color: #d8e1f3 !important;
}

.btn {
    width: 210px;
    min-width: 210px;
    height: auto;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Cormorant Garamond", serif !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase;
    color: #ffffff !important;
    transition: transform 0.35s ease, filter 0.35s ease !important;
    transform: translateY(3px);
}

.btn span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Cormorant Garamond", serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    transform: translateY(6px);
    pointer-events: none;
}

.btn__img {
    width: 100%;
    display: block;
}

.btn__img--hover {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
}

.btn:hover {
    transform: translateY(0) scale(1.035);
    filter: brightness(1.05);
}

.btn:hover .btn__img--hover {
    opacity: 1;
}

.btn:active {
    transform: translateY(2px) scale(0.99);
    filter: brightness(0.98);
}

.header__buttons .btn {
    min-width: 240px;
}

.htc__step-buttons .btn {
    min-width: 198px;
}

@media (max-width: 1080px) {
    .subpage-main {
        padding-top: 24px;
    }

    .subpage-hero-logo {
        position: relative;
        top: auto;
        right: auto;
        width: min(100%, 340px);
        margin: 20px auto 24px;
    }

    .subpage-title h1 {
        font-size: 42px !important;
    }

    .htc__step {
        padding: 36px 18px !important;
    }

    .htc__step p,
    .subpage-title p {
        font-size: 16px !important;
        line-height: 22px !important;
    }

    .wiki {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .wiki__nav {
        width: 100%;
        flex: none;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wiki__nav-item {
        min-height: 100%;
    }

    .wiki__box {
        min-height: 0;
        height: auto;
    }

    .wiki__content {
        position: relative !important;
        inset: auto;
        height: auto !important;
        min-height: 0;
    }

    .wiki__content-main {
        min-height: 0;
    }

    .htc__step-buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }
}

@media (max-width: 760px) {
    .subpage-main {
        padding-top: 12px;
    }

    .subpage-section {
        padding: 20px 0 56px;
    }

    .subpage-hero-logo {
        width: min(100%, 260px);
        margin: 8px auto 18px;
    }

    .wiki__nav {
        grid-template-columns: 1fr;
    }

    .wiki__nav-item {
        padding: 14px 14px !important;
    }

    .wiki__nav-item-name {
        font-size: 16px !important;
        line-height: 1.05 !important;
    }

    .wiki__content-title {
        padding: 20px 16px !important;
    }

    .wiki__content-title-name {
        font-size: 26px !important;
        line-height: 1.05 !important;
    }

    .wiki__content-title-desc,
    .wiki__nav-item-desc {
        font-size: 14px !important;
        line-height: 1.3 !important;
    }

    .wiki__content-main {
        padding: 18px 16px !important;
    }

    .wiki__content-main h1,
    .wiki__content-main h2,
    .wiki-text-box h1,
    .wiki-text-box h2 {
        font-size: 30px !important;
        line-height: 1.08 !important;
    }

    .wiki__content-main p,
    .wiki__content-main li,
    .wiki-text-box p,
    .wiki-text-box li,
    .htc__step p {
        font-size: 15px !important;
        line-height: 22px !important;
    }

    .htc__step {
        padding: 28px 16px !important;
    }

    .htc__step h2 {
        font-size: 22px !important;
    }

    .htc__step-content {
        text-align: center;
    }

    .htc__step-num span {
        min-width: 92px;
        font-size: 16px !important;
    }

    .btn,
    .htc__step-buttons .btn {
        width: min(100%, 210px);
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .subpage-hero-logo {
        width: min(100%, 220px);
    }

    .subpage-section {
        padding-bottom: 44px;
    }

    .wiki__content-title {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }

    .wiki__content-title-icon,
    .wiki__nav-item-icon {
        width: 40px !important;
        height: 40px !important;
        flex: 0 0 40px;
    }

    .wiki__content-title-icon i,
    .wiki__nav-item-icon i {
        font-size: 15px !important;
    }

    .wiki__content-title-name {
        font-size: 22px !important;
    }

    .wiki__content-main h1,
    .wiki__content-main h2,
    .wiki-text-box h1,
    .wiki-text-box h2 {
        font-size: 26px !important;
    }

    .wiki__content-main img,
    .wiki-text-box img {
        max-width: 100%;
        height: auto;
    }

    .wiki__nav-item-info,
    .wiki__content-title-info {
        min-width: 0;
    }

    .wiki__nav-item-desc,
    .wiki__content-title-desc {
        word-break: break-word;
    }

    .htc__step-buttons {
        gap: 10px;
        flex-direction: column;
        align-items: center;
    }

    .btn span {
        font-size: 13px !important;
    }

    .btn,
    .htc__step-buttons .btn {
        width: min(100%, 240px);
    }
}
