/* CoinX static landing — branding and small fixes on top of theme style.css */

/* Render without waiting for JS */
body {
    visibility: visible;
}

/* ---------- Logo ---------- */
.cx-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    max-width: none;
}

.cx-logo__mark {
    display: block;
    width: 6.4rem;
    height: 6.4rem;
    flex: none;
}

.cx-logo__word {
    font: 700 3.2rem/1 Unbounded, sans-serif;
    letter-spacing: -0.02em;
    color: #fff;
    white-space: nowrap;
}

.light .cx-logo__word {
    color: #4D7BF1;
}

@media only screen and (max-width: 640px) {
    .cx-logo__mark {
        width: 4.4rem;
        height: 4.4rem;
    }
    .cx-logo__word {
        font-size: 2.4rem;
    }
}

/* ---------- Language switcher ---------- */
.cx-lang {
    position: relative;
    font-size: 1.6rem;
    line-height: 2rem;
}

.cx-lang__current {
    position: relative;
    padding: 1.2rem 2.4rem 1.2rem 1.6rem;
    font: inherit;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid #D7DEE9;
    border-radius: 2.2rem;
    background-color: #fff;
    color: var(--Color-primary);
}

.cx-lang__current:after {
    content: "";
    position: absolute;
    right: 0.7rem;
    top: 50%;
    width: 1.4rem;
    height: 1.4rem;
    transform: translateY(-50%);
    background: url(images/arrow_drop_down_check.svg) no-repeat center;
    background-size: contain;
}

.cx-lang__current:hover {
    filter: brightness(96%);
}

.cx-lang__list {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 0.4rem;
    padding: 1.6rem 0;
    min-width: 11rem;
    background-color: var(--Color-primary);
    border: 1px solid #AAC0F8;
    border-radius: 1.6rem;
    box-shadow: 0 0.8rem 2.4rem 0 rgba(0, 0, 0, 0.08);
    z-index: 16;
}

.cx-lang.is-open .cx-lang__list {
    display: block;
}

.cx-lang__item {
    display: block;
    padding: 1.2rem 2.4rem;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
}

.cx-lang__item:hover {
    opacity: 0.8;
}

.cx-lang__item.is-active {
    font-weight: 600;
}

body:not(.light) .cx-lang__current {
    background-color: #333;
    border-color: #314372;
    color: #fff;
}

/* ---------- Advantages icons ---------- */
.icon-card__icon img {
    width: 8rem;
    height: 8rem;
    object-fit: contain;
}

/* ---------- Footer logo ---------- */
.cx-logo--footer {
    margin-bottom: 2rem;
}

.cx-logo--footer .cx-logo__mark {
    width: 4.8rem;
    height: 4.8rem;
}

.cx-logo--footer .cx-logo__word {
    font-size: 2.4rem;
    color: #4D7BF1;
}

/* ---------- Homepage wrapper breathing room ---------- */
.homepage_wrap > .section:last-child,
.homepage_wrap > .widget_cbr_div:last-child {
    margin-bottom: 0;
}

/* ---------- Mobile fixes ---------- */
@media only screen and (max-width: 640px) {
    /* keep the burger visible next to the logo */
    .logo_operator_wrapper {
        width: auto;
    }
    .info_lang_menu_wrapper {
        margin-left: auto;
    }

    /* stack welcome text and phone */
    .hometext-wrapper .hometext-wrapper_ins {
        flex-direction: column;
        align-items: flex-start;
    }
    .hometext-wrapper__img {
        order: -1;
        margin: 0 auto 2rem;
        max-width: 22rem;
    }

    /* copyright should wrap instead of overflowing */
    .footer .cop {
        white-space: normal;
    }
}
