:root {
    --fc-bg: #0e1114;
    --fc-surface: #171b20;
    --fc-inset: #12161a;
    --fc-line: rgba(244, 241, 234, 0.12);
    --fc-text: #f4f1ea;
    --fc-muted: #9a948a;
    --fc-gold: #e2b657;
    --fc-ink: #1a1408;
}

html,
body {
    overflow-x: clip;
}

html,
body,
button,
input,
select,
textarea,
a,
h1,
h2,
h3,
p,
li,
span,
label,
.chosen-container,
.chosen-container * {
    font-family: Formular, "Segoe UI", sans-serif !important;
}

body.fc-home {
    background: var(--fc-bg) !important;
    color: var(--fc-text);
}

body.fc-home main {
    background: var(--fc-bg);
}

.header-menu {
    position: sticky !important;
    top: 0;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 20px;
    width: 100% !important;
    max-width: none !important;
    height: 72px !important;
    margin: 0 !important;
    padding: 0 28px !important;
    border-radius: 0 !important;
    background: var(--fc-bg) !important;
    border-bottom: 1px solid var(--fc-line);
    box-shadow: none !important;
    z-index: 40;
}

.fc-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--fc-text) !important;
    text-decoration: none !important;
    font-family: Formular, sans-serif;
    font-size: 16px;
    letter-spacing: -0.03em;
    margin-right: auto;
}

.fc-mark {
    width: 28px;
    height: 28px;
    display: block;
}

.header-menu__buttons {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    position: static !important;
    display: flex !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    flex: 0 1 auto;
    min-width: 0;
}

.header-mobile-menu,
.header__mobile-menu_content {
    display: none !important;
}

.wrapper {
    width: min(1100px, calc(100% - 32px)) !important;
    max-width: calc(100% - 32px) !important;
    box-sizing: border-box !important;
}

.header-menu__select {
    position: relative !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 0 0 12px !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    flex: 0 0 auto !important;
}

.header-menu__select select,
.header-menu__select::before {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
}

.select__lang {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 42px !important;
    height: 32px !important;
    padding: 0 !important;
    display: grid;
    place-items: center;
    font-size: 18px !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 1px solid var(--fc-line);
    border-radius: 999px;
    color: var(--fc-text) !important;
}

.header-menu__select ul {
    position: absolute !important;
    right: 20px !important;
    top: 60px;
    z-index: 60;
    background: var(--fc-surface) !important;
    border: 1px solid var(--fc-line);
    max-height: 280px;
    overflow: auto;
}

.header-menu__buttons > ul {
    display: flex;
    align-items: center;
    justify-content: flex-end !important;
    gap: 18px;
    width: auto !important;
    margin: 0;
    padding: 0;
    font-size: 14px !important;
}

.header-menu__buttons a,
.header-menu__select {
    color: var(--fc-muted) !important;
    font-family: Formular, sans-serif !important;
    text-shadow: none !important;
}

.header-menu__buttons a:hover {
    color: var(--fc-text) !important;
}

.fc-hero {
    position: relative;
    padding: 56px 0 24px;
    background: var(--fc-bg) !important;
    background-image: none !important;
    min-height: 0 !important;
    overflow: hidden;
}

.fc-hero::before {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    right: -80px;
    top: -40px;
    border: 1px solid rgba(226, 182, 87, 0.28);
    border-radius: 50%;
    pointer-events: none;
}

.fc-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -10px;
    top: 30px;
    border: 1px solid rgba(244, 241, 234, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.fc-hero .wrapper {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100% - 40px));
    margin: 0 auto;
}

.fc-kicker {
    margin: 0 0 10px;
    color: var(--fc-gold);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fc-hero h1 {
    margin: 0;
    max-width: 14ch;
    color: var(--fc-text) !important;
    background: none !important;
    -webkit-text-fill-color: var(--fc-text);
    font-family: Formular, sans-serif !important;
    font-size: 48px !important;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-shadow: none !important;
}

.fc-lead {
    max-width: 42ch;
    margin: 14px 0 0;
    color: var(--fc-muted);
    font-size: 16px;
}

.fc-home .header-flex,
.fc-home .header-flex__left {
    display: block !important;
    width: auto !important;
    background: none !important;
}

.fc-home .header-flex__calc {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 28px 0 0 !important;
    padding: 22px !important;
    background: var(--fc-surface) !important;
    border: 1px solid var(--fc-line);
    border-radius: 18px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.fc-home .header-flex__buttons {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    background: transparent !important;
}

.fc-home .header-flex__buttons .header-flex__button {
    background: transparent !important;
    color: var(--fc-muted) !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    font-family: Formular, sans-serif !important;
    padding: 8px 12px !important;
    width: auto !important;
}

.fc-home .header-flex__buttons .header-flex__button_active {
    background: var(--fc-inset) !important;
    color: var(--fc-text) !important;
}

.fc-home .header-flex__calc-main {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: transparent !important;
}

.fc-field {
    background: var(--fc-inset);
    border-radius: 14px;
    padding: 14px 16px 12px;
}

.fc-label {
    display: block;
    margin-bottom: 8px;
    color: var(--fc-muted);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fc-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.fc-home .header-flex__calc-select,
.fc-home .calc-main {
    width: auto !important;
    margin: 0 !important;
    background: transparent !important;
}

.fc-home .form-control-mod {
    flex: 1 1 auto;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--fc-text) !important;
    font-family: Formular, sans-serif !important;
    font-size: 32px !important;
    font-weight: 500;
    letter-spacing: -0.03em;
    text-align: right;
    font-variant-numeric: tabular-nums;
    height: auto !important;
}

.fc-home #ans,
.fc-home #ans2 {
    color: var(--fc-gold) !important;
}

.fc-flip {
    align-self: center;
    width: 36px;
    height: 36px;
    margin: 8px 0;
    border-radius: 50%;
    border: 1px solid var(--fc-line);
    background: var(--fc-surface);
    color: var(--fc-muted);
    display: grid;
    place-items: center;
}

.fc-quote {
    position: static !important;
    margin: 16px 4px 6px !important;
    color: var(--fc-gold);
    font-variant-numeric: tabular-nums;
    font-size: 14px;
}

.fc-agent {
    margin: 0 4px 16px;
    color: var(--fc-muted);
    font-size: 13px;
}

.fc-home .header-flex__calc form {
    margin: 0;
}

.fc-home #btn,
.fc-home #btn_fiat {
    width: 100% !important;
    height: 52px;
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--fc-gold) !important;
    color: var(--fc-ink) !important;
    font-family: Formular, sans-serif !important;
    font-size: 16px !important;
    font-weight: 500;
    text-shadow: none !important;
    box-shadow: none !important;
}

.fc-home .header-flex__fiat-imgs {
    display: none !important;
    gap: 8px;
    margin-top: 12px;
}

.fc-home form:has(#btn_fiat:not(.d-none)) ~ .header-flex__fiat-imgs {
    display: flex !important;
}

.fc-home .header-flex__fiat-imgs img {
    height: 22px;
    width: auto;
    background: transparent;
}

.fc-home .chosen-container {
    width: auto !important;
    min-width: 108px;
    font-family: Formular, sans-serif !important;
}

.fc-home .chosen-container-single .chosen-single {
    height: 40px;
    line-height: 38px;
    padding: 0 28px 0 14px;
    border: 1px solid var(--fc-line) !important;
    border-radius: 999px !important;
    background: var(--fc-surface) !important;
    box-shadow: none !important;
    color: var(--fc-text) !important;
}

.fc-home .chosen-container-single .chosen-single span {
    color: var(--fc-text) !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 14px;
}

.fc-home .chosen-container .chosen-drop {
    background: var(--fc-surface);
    border: 1px solid var(--fc-line);
    border-radius: 12px;
    box-shadow: none;
}

.fc-home .chosen-container .chosen-results li {
    color: var(--fc-text);
    text-transform: uppercase;
}

.fc-home .chosen-container .chosen-results li.highlighted {
    background: var(--fc-inset);
    color: var(--fc-gold);
}

.fc-facts {
    padding: 8px 0 0;
}

.fc-facts .wrapper,
.fc-steps .wrapper,
.fc-pairs .wrapper {
    width: min(760px, calc(100% - 40px));
    margin: 0 auto;
}

.fc-facts ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.fc-facts li {
    padding-top: 12px;
    border-top: 1px solid var(--fc-line);
    color: var(--fc-muted);
    font-size: 14px;
}

.fc-steps {
    padding: 48px 0 8px;
}

.fc-steps ol {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.fc-steps li {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.fc-steps span {
    display: block;
    margin-bottom: 8px;
    color: var(--fc-muted);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
}

.fc-pairs {
    padding: 36px 0 64px;
}

.fc-pairs h2 {
    margin: 0 0 14px;
    color: var(--fc-muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fc-pair-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.fc-pair-links a {
    color: var(--fc-text);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}

.fc-pair-links a:hover {
    color: var(--fc-gold);
}

body.fc-home footer.section,
body.fc-home .footer-main {
    background: var(--fc-bg) !important;
    color: var(--fc-muted) !important;
}

body.fc-home footer.section .section__h2,
body.fc-home .footer-content,
body.fc-home .footer__p a,
body.fc-home .footer__links a {
    color: var(--fc-muted) !important;
    text-shadow: none !important;
    font-family: Formular, sans-serif !important;
}

body.fc-home .footer__img {
    display: none;
}

@media (max-width: 800px) {
    .header-menu {
        height: auto !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        padding: 10px 16px !important;
        gap: 10px 12px;
    }

    .fc-brand {
        margin-right: 0 !important;
    }

    .header-menu__select {
        margin-left: auto !important;
    }

    .header-menu__buttons {
        display: flex !important;
        flex: 1 0 100% !important;
        order: 3;
    }

    .header-menu__buttons > ul {
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
        gap: 8px 14px;
    }

    .fc-hero h1 {
        font-size: 34px !important;
    }

    .fc-home .form-control-mod {
        font-size: 22px !important;
    }

    .fc-home .chosen-container {
        min-width: 0 !important;
        max-width: 46%;
    }

    .fc-facts ul,
    .fc-steps ol {
        grid-template-columns: 1fr 1fr;
    }

    .fc-steps li:last-child {
        grid-column: 1 / -1;
    }
}
