/* Sarmat Broker — витрина. Светлая тема, синий акцент. */

:root {
    --brand: #1257c7;
    --brand-dark: #0e4099;
    --brand-soft: #eaf1fd;
    --brand-line: #c9dcfa;

    --ink: #0b1b33;
    --text: #3a4a63;
    --muted: #6e7f99;

    --bg: #ffffff;
    --alt: #f4f8fd;
    --line: #e3eaf4;

    --red: #d64545;
    --green: #17a06a;

    --radius: 14px;
    --wrap: 1160px;
    --shadow: 0 2px 4px rgba(11, 27, 51, .04), 0 12px 28px rgba(11, 27, 51, .07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.25; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.ico { width: 22px; height: 22px; flex: 0 0 auto; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ── Кнопки ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    font-weight: 600;
    padding: 11px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    white-space: nowrap;
}

.btn_primary { background: var(--brand); color: #fff; }
.btn_primary:hover:not(:disabled) { background: var(--brand-dark); }
.btn_primary:disabled { opacity: .6; cursor: default; }

.btn_ghost { background: transparent; border-color: var(--brand-line); color: var(--brand); }
.btn_ghost:hover { background: var(--brand-soft); }

.btn_lg { padding: 14px 26px; font-size: 17px; }
.btn_wide { width: 100%; padding: 14px; font-size: 16px; }

/* ── Шапка ─────────────────────────────────────────────────────────────── */
.hdr { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }

.topbar { background: var(--ink); color: #cfe0f8; font-size: 13px; }

.topbar__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 38px;
}

.topbar__contacts { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar__contacts a { display: inline-flex; align-items: center; gap: 7px; }
.topbar__contacts a:hover { color: #fff; }
.topbar .ico { width: 15px; height: 15px; }

.langs { display: flex; gap: 4px; }

.langs__item {
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 12px;
    letter-spacing: .02em;
}

.langs__item:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.langs__item.is-active { background: var(--brand); color: #fff; }

.hdr__in { display: flex; align-items: center; gap: 20px; min-height: 68px; }

.logo { display: flex; align-items: center; gap: 11px; }

.logo__mark {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: linear-gradient(140deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-weight: 800;
    font-size: 19px;
    display: grid;
    place-items: center;
}

.logo__text { font-weight: 800; letter-spacing: .06em; color: var(--ink); font-size: 16px; }

.nav { display: flex; gap: 26px; margin-left: 14px; margin-right: auto; }
.nav a { font-size: 15px; color: var(--text); }
.nav a:hover { color: var(--brand); }

.burger { display: none; width: 42px; height: 38px; background: none; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; margin: 3px auto; background: var(--ink); border-radius: 2px; }

/* ── Первый экран ──────────────────────────────────────────────────────── */
.hero {
    background:
        radial-gradient(90% 120% at 88% 0%, rgba(18, 87, 199, .10), transparent 60%),
        var(--alt);
    border-bottom: 1px solid var(--line);
}

.hero__in {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 44px;
    align-items: center;
    padding-top: 64px;
    padding-bottom: 64px;
}

.hero__title { font-size: 42px; letter-spacing: -.01em; }
.hero__sub { margin-top: 16px; font-size: 18px; color: var(--text); max-width: 34em; }

.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__facts { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }

.hero__facts li {
    font-size: 13px;
    color: var(--brand-dark);
    background: #fff;
    border: 1px solid var(--brand-line);
    border-radius: 999px;
    padding: 6px 14px;
}

.hero__card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 10px;
}

.hero__card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 16px;
    border-radius: 11px;
    font-weight: 600;
    color: var(--ink);
}

.hero__card-row:nth-child(odd) { background: var(--alt); }
.hero__card-row b { color: var(--green); }
.hero__card-row_muted { color: var(--muted); font-weight: 500; }

/* ── Цифры ─────────────────────────────────────────────────────────────── */
.stats { background: var(--brand); color: #fff; }

.stats__in {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding-top: 30px;
    padding-bottom: 30px;
    text-align: center;
}

.stats__value { font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stats__label { font-size: 14px; opacity: .85; }

/* ── Секции ────────────────────────────────────────────────────────────── */
.section { padding: 66px 0; scroll-margin-top: 90px; }
.section_alt { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section__title { font-size: 30px; text-align: center; }
.section__title_left { text-align: left; }
.section__sub { margin-top: 10px; text-align: center; color: var(--muted); }

/* ── Карточки ──────────────────────────────────────────────────────────── */
.cards {
    margin-top: 34px;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow .15s, border-color .15s, transform .15s;
}

.card:hover { border-color: var(--brand-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.card_flat { background: transparent; border: none; padding: 4px; }
.card_flat:hover { box-shadow: none; transform: none; }

.card__ico {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand);
    display: grid;
    place-items: center;
}

.card__ico .ico { width: 24px; height: 24px; }
.card__ico_sm { width: 40px; height: 40px; border-radius: 10px; }

.card__title { font-size: 18px; }
.card__text { color: var(--text); font-size: 15px; }

.card__link { margin-top: auto; padding-top: 8px; color: var(--brand); font-weight: 600; font-size: 15px; }
.card__link:hover { color: var(--brand-dark); }

/* ── Шаги ──────────────────────────────────────────────────────────────── */
.steps {
    margin-top: 34px;
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    counter-reset: step;
}

.step { position: relative; padding-left: 60px; }

.step__num {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    display: grid;
    place-items: center;
}

.step__title { font-size: 18px; padding-top: 8px; }
.step__text { margin-top: 8px; font-size: 15px; }

/* ── Партнёры ──────────────────────────────────────────────────────────── */
.partners {
    margin-top: 30px;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.partners__item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    height: 90px;
    display: grid;
    place-items: center;
    padding: 14px;
}

.partners__item img { max-height: 100%; width: auto; object-fit: contain; }

/* ── О компании ────────────────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: start; }
.about__text p { margin-top: 16px; }

.about__list { display: grid; gap: 10px; }

.about__list li {
    position: relative;
    padding-left: 30px;
    color: var(--ink);
    font-weight: 500;
}

.about__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 16px;
    height: 9px;
    border-left: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(-45deg);
}

/* ── Заявка ────────────────────────────────────────────────────────────── */
.request {
    background: linear-gradient(160deg, var(--ink), #14315e);
    color: #d8e4f5;
    padding: 62px 0;
    scroll-margin-top: 80px;
}

.request__in { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }

.request__title { color: #fff; font-size: 30px; }
.request__sub { margin-top: 12px; font-size: 17px; }

.request__contacts { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.request__contacts a { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: #fff; }
.request__contacts a:hover { color: var(--brand-line); }

.form {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

.field { display: block; margin-bottom: 14px; }
.field__label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }

.field input,
.field select,
.field textarea {
    width: 100%;
    font: inherit;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 13px;
}

.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.field input.is-error { border-color: var(--red); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form__error {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fdecec;
    border: 1px solid #f3c2c2;
    color: #a52c2c;
    font-size: 14px;
}

.form__legal { margin-top: 12px; font-size: 12px; color: var(--muted); }

.form__done {
    position: absolute;
    inset: 0;
    background: #fff;
    border-radius: 16px;
    display: grid;
    place-content: center;
    text-align: center;
    padding: 30px;
    gap: 8px;
}

.form__done[hidden] { display: none; }

.form__done-ico {
    width: 56px;
    height: 56px;
    margin: 0 auto 6px;
    border-radius: 50%;
    background: #e6f6ef;
    color: var(--green);
    font-size: 26px;
    display: grid;
    place-items: center;
}

.form__done p { color: var(--muted); }

/* ── Контакты ──────────────────────────────────────────────────────────── */
.contacts {
    margin-top: 32px;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contacts__item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contacts__item .ico { color: var(--brand); margin-bottom: 6px; }
.contacts__item span { font-size: 13px; color: var(--muted); }
.contacts__item a, .contacts__item b { color: var(--ink); font-weight: 600; }
.contacts__item a:hover { color: var(--brand); }

/* ── Подвал ────────────────────────────────────────────────────────────── */
.ftr { background: var(--ink); color: #a9bcd6; }

.ftr__in {
    display: grid;
    gap: 30px;
    grid-template-columns: 1.4fr .8fr .8fr;
    padding-top: 46px;
    padding-bottom: 34px;
}

.logo_ftr .logo__text { color: #fff; }
.ftr__about { margin-top: 14px; font-size: 14px; max-width: 30em; }
.ftr__col { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.ftr__col a:hover { color: #fff; }
.ftr__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0; font-size: 13px; }

/* ── Адаптив ───────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .hero__in { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; padding-bottom: 44px; }
    .hero__title { font-size: 32px; }
    .hero__art { order: -1; }
    .about { grid-template-columns: 1fr; gap: 24px; }
    .request__in { grid-template-columns: 1fr; gap: 28px; }
    .ftr__in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
    .topbar__contacts a:not(:first-child) { display: none; }
    .hdr__cta { display: none; }
    .burger { display: block; }

    .nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 8px 20px 16px;
        margin: 0;
    }

    .nav.is-open { display: flex; }
    .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .hdr__in { position: relative; justify-content: space-between; }

    .section { padding: 46px 0; }
    .section__title { font-size: 24px; }
    .hero__title { font-size: 27px; }
    .hero__sub { font-size: 16px; }
    .ftr__in { grid-template-columns: 1fr; }
    .form { padding: 20px; }
}
