/* ===================================================
   ТОКЕНЫ
=================================================== */

:root {

    --blue: #0f63f3;
    --blue-dark: #0b4fc0;
    --blue-light: #eaf1ff;

    --text: #14171f;
    --text-muted: #5b6472;

    --border: #e4e8ef;

    --bg: #ffffff;
    --bg-soft: #f7f9fc;

    --radius: 16px;
    --radius-sm: 12px;

    --shadow: 0 18px 40px rgba(20, 35, 70, .08);

    --container: 1160px;
}


/* ===================================================
   БАЗА
=================================================== */

* {

    box-sizing: border-box;
}

html, body {

    margin: 0;

    padding: 0;
}

body {

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    color: var(--text);

    background: var(--bg);

    line-height: 1.5;
}

h1, h2, h3 {

    margin: 0;

    font-weight: 700;

    letter-spacing: -0.02em;
}

p {

    margin: 0;
}

a {

    color: inherit;

    text-decoration: none;
}

ul {

    margin: 0;

    padding: 0 0 0 18px;
}

img {

    max-width: 100%;

    display: block;
}

.container {

    width: 100%;

    max-width: var(--container);

    margin: 0 auto;

    padding: 0 24px;
}


/* ===================================================
   КНОПКИ
=================================================== */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    height: 50px;

    padding: 0 24px;

    border-radius: var(--radius-sm);

    font-size: 15px;

    font-weight: 600;

    white-space: nowrap;

    border: 1px solid transparent;

    cursor: pointer;

    transition: all .2s ease;
}

.btn--primary {

    background: var(--blue);

    color: #fff;
}

.btn--primary:hover {

    background: var(--blue-dark);
}

.btn--ghost {

    background: #fff;

    color: var(--text);

    border-color: var(--border);
}

.btn--ghost:hover {

    border-color: var(--blue);

    color: var(--blue);
}

.btn--lg {

    height: 58px;

    padding: 0 36px;

    font-size: 16px;
}

.btn--block {

    width: 100%;
}


/* ===================================================
   ШАПКА
=================================================== */

.header {

    position: sticky;

    top: 0;

    z-index: 50;

    background: rgba(255, 255, 255, .9);

    backdrop-filter: blur(8px);

    border-bottom: 1px solid var(--border);
}

.header__inner {

    display: flex;

    align-items: center;

    justify-content: space-between;

    height: 88px;

    gap: 24px;
}

.nav {

    display: flex;

    align-items: center;

    gap: 32px;

    flex: 1;
}

.nav a {

    font-size: 15px;

    font-weight: 500;

    color: var(--text-muted);

    transition: color .2s ease;
}

.nav a:hover {

    color: var(--blue);
}

.logo {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-shrink: 0;
}

.logo img {

    height: 28px;
}

.logo span {

    font-size: 19px;

    font-weight: 800;

    letter-spacing: -0.01em;
}

.header__actions {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 12px;

    flex: 1;
}

.nav-toggle {

    display: none;

    flex-direction: column;

    justify-content: center;

    gap: 5px;

    width: 36px;

    height: 36px;

    border: none;

    background: none;

    cursor: pointer;
}

.nav-toggle span {

    display: block;

    height: 2px;

    background: var(--text);

    border-radius: 2px;
}


/* ===================================================
   HERO
=================================================== */

.hero {

    position: relative;

    overflow: hidden;

    padding: 96px 0 110px;

    background: linear-gradient(180deg, #f4f8ff 0%, #ffffff 75%);
    isolation: isolate;
}

.hero__shapes {

    position: absolute;

    inset: 0;

    z-index: 0;
}

.shape {

    position: absolute;

    border-radius: 28px;

    background: linear-gradient(135deg, rgba(15,99,243,.22), rgba(15,99,243,.04));

    border: 1px solid rgba(15,99,243,.18);

    backdrop-filter: blur(2px);
}

.shape--1 {

    width: 360px;

    height: 360px;

    top: -120px;

    right: -60px;

    transform: rotate(24deg);

    background: linear-gradient(135deg, rgba(15,99,243,.28), rgba(15,99,243,.02));
}

.shape--2 {

    width: 220px;

    height: 220px;

    top: 60px;

    right: 220px;

    transform: rotate(-12deg);

    background: linear-gradient(135deg, rgba(15,99,243,.16), rgba(15,99,243,.02));
}

.shape--3 {

    width: 150px;

    height: 150px;

    top: 280px;

    right: 40px;

    transform: rotate(45deg);

    background: linear-gradient(135deg, rgba(15,99,243,.12), rgba(15,99,243,.01));
}

.shape--4 {

    width: 90px;

    height: 90px;

    top: 20px;

    left: -30px;

    transform: rotate(20deg);

    background: linear-gradient(135deg, rgba(15,99,243,.1), rgba(15,99,243,0));
}

.hero__inner {

    position: relative;

    z-index: 1;

    max-width: 720px;

    text-align: center;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 28px;
}

.hero h1 {

    font-size: 48px;

    line-height: 1.15;
}

.hero-text {

    font-size: 17px;

    color: var(--text-muted);

    line-height: 1.6;
}


/* ===================================================
   ПРЕИМУЩЕСТВА
=================================================== */

.advantages {

    padding: 90px 0;
}

.advantages__grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 56px 64px;
}

.card img {

    width: 40px;

    height: 40px;

    margin-bottom: 18px;
}

.card h3 {

    font-size: 19px;

    color: var(--blue);

    margin-bottom: 10px;
}

.card p {

    font-size: 15px;

    color: var(--text-muted);

    line-height: 1.65;
}


/* ===================================================
   FAQ
=================================================== */

.faq {

    padding: 0 0 100px;
}

.faq h2 {

    font-size: 32px;

    margin-bottom: 36px;
}

.faq__list {

    display: flex;

    flex-direction: column;

    gap: 14px;
}

.faq__item {

    background: var(--bg-soft);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 4px 24px;

    transition: border-color .2s ease;
}

.faq__item[open] {

    background: #fff;

    box-shadow: var(--shadow);

    border-color: var(--border);
}

.faq__item summary {

    list-style: none;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

    padding: 22px 0;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;
}

.faq__item summary::-webkit-details-marker {

    display: none;
}

.faq__item[open] summary {

    color: var(--blue);
}

.faq__icon {

    flex-shrink: 0;

    width: 22px;

    height: 22px;

    border-radius: 50%;

    background: #fff;

    border: 1px solid var(--border);

    position: relative;

    transition: transform .2s ease;
}

.faq__icon::before,
.faq__icon::after {

    content: "";

    position: absolute;

    top: 50%;

    left: 50%;

    width: 8px;

    height: 2px;

    background: var(--text);

    transform: translate(-50%, -50%);
}

.faq__icon::after {

    transform: translate(-50%, -50%) rotate(90deg);

    transition: opacity .2s ease;
}

.faq__item[open] .faq__icon::after {

    opacity: 0;
}

.faq__item[open] .faq__icon {

    border-color: var(--blue);
}

.faq__answer {

    padding: 0 0 24px;

    font-size: 14px;

    color: var(--text-muted);

    line-height: 1.7;
}

.faq__answer p {

    margin-bottom: 10px;
}

.faq__answer ul {

    margin: 6px 0 14px;
}

.faq__answer li {

    margin-bottom: 6px;
}


/* ===================================================
   ФОРМА ЗАЯВКИ
=================================================== */

.contacts {

    padding: 0 0 100px;
}

.contacts__inner {

    background: linear-gradient(135deg, #f4f8ff 0%, #eef3fc 100%);

    border-radius: 28px;

    padding: 64px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 48px;

    align-items: center;
}

.contacts__intro h2 {

    font-size: 32px;

    line-height: 1.2;

    margin-bottom: 16px;
}

.contacts__intro p {

    font-size: 15px;

    color: var(--text-muted);

    margin-bottom: 28px;
}

.contacts__tg {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    font-size: 15px;

    font-weight: 600;
}

.contacts__tg-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 38px;

    height: 38px;

    border-radius: 50%;

    background: var(--text);
}

.contacts__form {

    background: #fff;

    border-radius: var(--radius);

    padding: 32px;

    box-shadow: var(--shadow);
}

.form-group {

    margin-bottom: 16px;
}

.form-group label {

    display: block;

    margin-bottom: 8px;

    font-size: 14px;

    font-weight: 500;

    color: #444;
}


/* ОБЕРТКА SELECT */

.select-wrapper {

    position: relative;

    width: 100%;
}


/* САМ SELECT */

.select-wrapper select {

    width: 100%;

    height: 58px;

    padding: 0 45px 0 15px;

    border: 1px solid var(--border);

    border-radius: 14px;

    background: #ffffff;

    color: #222;

    font-size: 16px;

    outline: none;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    transition: all .2s ease;
}

.select-wrapper select:hover {

    border-color: var(--blue);
}

.select-wrapper select:focus {

    border-color: var(--blue);

    box-shadow: 0 0 0 3px rgba(15,99,243,.15);
}

.select-wrapper::after {

    content: "";

    position: absolute;

    right: 18px;

    top: 50%;

    width: 10px;

    height: 10px;

    border-right: 2px solid #666;

    border-bottom: 2px solid #666;

    transform: translateY(-70%) rotate(45deg);

    pointer-events: none;
}

.select-wrapper select option {

    font-size: 16px;

    color: #222;
}


/* ПОЛЯ ВВОДА */

.field-input {

    width: 100%;

    height: 58px;

    padding: 0 15px;

    border: 1px solid var(--border);

    border-radius: 14px;

    background: #ffffff;

    color: #222;

    font-size: 16px;

    outline: none;

    transition: all .2s ease;

    font-family: inherit;
}

.field-input::placeholder {

    color: #9aa3b2;
}

.field-input:hover {

    border-color: var(--blue);
}

.field-input:focus {

    border-color: var(--blue);

    box-shadow: 0 0 0 3px rgba(15,99,243,.15);
}

.contacts__form .btn--block {

    margin-top: 8px;
}

.contacts__consent {

    margin-top: 14px;

    font-size: 12.5px;

    line-height: 1.5;

    color: var(--text-muted);
}

.contacts__consent a {

    color: var(--blue);

    text-decoration: underline;
}


/* ===================================================
   ФУТЕР
=================================================== */

.footer {

    border-top: 1px solid var(--border);

    padding: 28px 0;
}

.footer__inner {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

    font-size: 13px;

    color: var(--text-muted);
}

.footer__inner a:hover {

    color: var(--blue);
}


/* ===================================================
   АДАПТИВ
=================================================== */

@media (max-width: 900px) {

    .contacts__inner {

        grid-template-columns: 1fr;

        padding: 40px 28px;
    }

    .advantages__grid {

        grid-template-columns: 1fr;

        gap: 40px;
    }
}

@media (max-width: 768px) {

    .nav,
    .header__actions {

        display: none;
    }

    .nav-toggle {

        display: flex;
    }

    .header__inner {

        height: 72px;
    }

    .hero {

        padding: 64px 0 80px;
    }

    .hero h1 {

        font-size: 32px;
    }

    .hero-text {

        font-size: 15px;
    }

    .faq h2,
    .contacts__intro h2 {

        font-size: 26px;
    }

    .footer__inner {

        flex-direction: column;

        text-align: center;
    }
}

/* НАПРАВЛЕНИЕ ОБМЕНА — бейдж валюты в полях "Отдаю"/"Получаю" */

.amount-wrapper {

    position: relative;

    width: 100%;
}

.amount-wrapper .field-input {

    padding-right: 70px;
}

.amount-currency {

    position: absolute;

    right: 16px;

    top: 50%;

    transform: translateY(-50%);

    font-size: 14px;

    font-weight: 600;

    color: var(--text-muted);

    pointer-events: none;
}