/* Лендинг набора в Бразилии. Фирменный стиль EMOR:
   почти чёрный фон, мятный акцент, Montserrat, карточки radius 10px с тонкой мятной обводкой.
   Mobile-first, без библиотек. */

:root {
    --mint: #25CFAE;
    --mint-2: #60E0A9;
    --mint-deep: #44A078;
    --bg: #05100D;
    --bg-2: #0A1714;
    --card: #0C1A16;
    --card-2: #0F221C;
    --line: rgba(37, 207, 174, .22);
    --line-soft: rgba(255, 255, 255, .07);
    --text: #E9F3F0;
    --muted: #9DB2AC;
    --white: #FFFFFF;
    --err: #E4685D;
    --radius: 10px;
    --max: 1120px;
    --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--mint); text-decoration: none; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.18; letter-spacing: -.02em; color: var(--white); }
h1 { font-size: clamp(29px, 6.4vw, 48px); }
h2 { font-size: clamp(25px, 4.6vw, 38px); }
h3 { font-size: clamp(19px, 3.2vw, 23px); font-weight: 700; }
h4 { font-size: 17.5px; font-weight: 700; }

p + p { margin-top: 14px; }
strong { font-weight: 800; color: var(--white); }

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

.eyebrow {
    display: inline-block; font-size: 12.5px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--mint);
    margin-bottom: 14px;
}

section { padding: 62px 0; }
section + section { border-top: 1px solid var(--line-soft); }

/* ---------- шапка ---------- */

.header {
    padding: 16px 0; border-bottom: 1px solid var(--line-soft);
    background: var(--bg-2); position: sticky; top: 0; z-index: 30;
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.header-logo img { height: 26px; width: auto; }
.header .btn { padding: 11px 20px; font-size: 14.5px; min-height: 0; width: auto; }
@media (max-width: 560px) { .header .btn { display: none; } }

/* ---------- кнопки ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--mint); color: #04140F;
    padding: 17px 32px; border: 1px solid transparent; border-radius: var(--radius);
    font: inherit; font-weight: 800; font-size: 17.5px; letter-spacing: -.01em;
    cursor: pointer; text-align: center; transition: background .18s, border-color .18s;
    min-height: 56px; width: 100%;
}
.btn:hover { background: var(--mint-2); }
.btn:focus-visible { outline: 3px solid var(--mint-2); outline-offset: 3px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: transparent; border-color: var(--mint); color: var(--white); }

@media (min-width: 620px) { .btn { width: auto; min-width: 320px; } }

/* ---------- первый экран ---------- */

.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 520px at 78% 6%, rgba(37, 207, 174, .13), transparent 66%),
        var(--bg);
    padding: 52px 0 58px;
    border-top: none;
}
.hero-inner { position: relative; z-index: 2; }
.hero-photo {
    position: relative; border-radius: var(--radius);
    border: 1px solid var(--line); overflow: hidden;
    min-height: 220px; margin-top: 32px;
    background: linear-gradient(160deg, var(--card-2), var(--card));
    display: flex; align-items: center; justify-content: center;
}
.hero-photo span { color: var(--muted); font-size: 13px; text-align: center; padding: 20px; }

.hero-pay {
    font-size: clamp(20px, 4.6vw, 28px); font-weight: 800; line-height: 1.3;
    color: var(--mint); margin-top: 16px; letter-spacing: -.02em;
}
.hero-facts { margin-top: 18px; color: var(--muted); font-size: 17px; }
.hero-free {
    margin-top: 22px; padding: 16px 18px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    font-weight: 800; font-size: 16.5px; color: var(--white);
}
.hero .btn { margin-top: 26px; }
.hero-kraz { margin-top: 18px; font-size: 14px; color: var(--muted); }

@media (min-width: 900px) {
    .hero { padding: 74px 0 80px; }
    .hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: center; }
    .hero-photo { margin-top: 0; min-height: 400px; height: 100%; }
}

/* ---------- доверие ---------- */

.trust-grid { display: grid; gap: 20px; margin-top: 30px; }
.trust-photo {
    background: linear-gradient(160deg, var(--card-2), var(--card));
    border: 1px solid var(--line); border-radius: var(--radius); min-height: 200px;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 13.5px; text-align: center; padding: 20px;
}
.card {
    background: var(--card); border: 1px solid var(--line-soft);
    border-radius: var(--radius); padding: 24px 22px;
}
.card h4 { margin-bottom: 7px; }
.card p { color: var(--muted); font-size: 16.5px; }
.card-lead { grid-column: 1 / -1; }
.card-lead p { color: var(--text); }

@media (min-width: 900px) {
    .trust-grid { grid-template-columns: 280px 1fr 1fr; gap: 22px; align-items: stretch; }
    .trust-photo { grid-row: span 2; min-height: 100%; }
    .card-lead { grid-column: 2 / 4; }
}

/* ---------- вакансии ---------- */

.vaga {
    background: var(--card); border: 1px solid var(--line-soft);
    border-radius: var(--radius); padding: 28px 22px; margin-top: 26px;
}
.vaga-main { border-color: var(--line); box-shadow: 0 0 0 1px rgba(37,207,174,.06), 0 18px 50px -30px rgba(37,207,174,.5); }
.vaga h3 { margin-bottom: 10px; }
.vaga-intro { color: var(--muted); font-size: 16.5px; }

.rate {
    font-family: var(--mono); font-size: clamp(28px, 6.4vw, 40px); font-weight: 700;
    color: var(--mint); letter-spacing: -.035em; margin: 24px 0 4px;
}
.rate small { font-family: 'Montserrat', sans-serif; font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }

/* таблица расчёта: главный элемент страницы, выглядит как выписка */
.calc-wrap {
    overflow-x: auto; margin: 20px 0 10px; -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
}
.calc { border-collapse: collapse; width: 100%; min-width: 470px; font-variant-numeric: tabular-nums; }
.calc th, .calc td { padding: 14px 16px; text-align: right; border-bottom: 1px solid var(--line-soft); }
.calc th:first-child, .calc td:first-child { text-align: left; }
.calc thead th {
    font-size: 12px; text-transform: uppercase; letter-spacing: .07em;
    color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line);
}
.calc td { font-family: var(--mono); font-size: 17px; color: var(--text); }
.calc td:first-child { font-family: 'Montserrat', sans-serif; font-weight: 600; color: var(--white); }
.calc td:last-child { font-weight: 700; color: var(--mint); font-size: 18.5px; }
.calc tbody tr:last-child td { border-bottom: none; }
.calc-note { font-size: 13.5px; color: var(--muted); }

.vaga-block { margin-top: 22px; }
.vaga-block h4 { margin-bottom: 6px; }
.vaga-block p { color: var(--muted); font-size: 16.5px; }
.lead-in { font-weight: 800; color: var(--white); }

.vagas-two { display: grid; gap: 22px; }
@media (min-width: 940px) { .vagas-two { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ---------- шаги ---------- */

.steps { counter-reset: krok; margin-top: 30px; }
.step {
    position: relative; padding-left: 54px; padding-bottom: 26px;
    border-left: 1px solid var(--line-soft); margin-left: 17px;
}
.step:last-child { border-left-color: transparent; padding-bottom: 0; }
.step::before {
    counter-increment: krok; content: counter(krok);
    position: absolute; left: -18px; top: -2px;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg); border: 1px solid var(--line); color: var(--mint);
    font-weight: 800; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
}
.step h4 { margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 16.5px; }
.step-last { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 20px 54px; margin-left: 17px; }
.step-last::before { background: var(--mint); border-color: var(--mint); color: #04140F; }

@media (min-width: 980px) {
    .steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
    .step { border-left: none; padding: 52px 0 0 0; margin-left: 0; }
    .step::before { left: 0; top: 0; }
    .step-last { padding: 52px 18px 18px; margin-left: 0; }
    .step-last::before { left: 18px; top: 16px; }
}

/* ---------- фото ---------- */

.fotos { display: grid; gap: 14px; margin-top: 28px; grid-template-columns: 1fr; }
.foto {
    background: linear-gradient(160deg, var(--card-2), var(--card));
    border: 1px solid var(--line-soft); border-radius: var(--radius);
    aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 13.5px; text-align: center; padding: 18px;
}
@media (min-width: 660px) { .fotos { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .fotos { grid-template-columns: repeat(3, 1fr); } }

/* ---------- FAQ ---------- */

.faq { margin-top: 26px; border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
    padding: 19px 38px 19px 0; cursor: pointer; font-weight: 700; font-size: 17.5px;
    position: relative; list-style: none; color: var(--white);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    font-size: 26px; font-weight: 400; color: var(--mint); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.faq-body { padding: 0 0 20px; color: var(--muted); font-size: 16.5px; }

/* ---------- форма ---------- */

.form-section { background: var(--bg-2); }
.form-card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 30px 22px; max-width: 640px; margin: 0 auto;
}
.form-card:empty { display: none; }   /* вторая форма приезжает скриптом, пустую рамку не показываем */
.form-card h2 { margin-bottom: 4px; }
.form-sub { color: var(--muted); margin-bottom: 26px; }

.f { margin-bottom: 18px; }
.f label, .f legend { display: block; font-weight: 600; font-size: 14.5px; color: var(--muted); margin-bottom: 7px; }
.f input[type=text], .f input[type=tel], .f input[type=number], .f input[type=month], .f select {
    width: 100%; padding: 13px 15px; font: inherit; font-size: 16.5px;
    background: var(--bg-2); color: var(--text);
    border: 1px solid var(--line-soft); border-radius: var(--radius);
    transition: border-color .18s, box-shadow .18s; min-height: 52px;
}
.f select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 52%, calc(100% - 14px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.f select option { background: var(--bg-2); color: var(--text); }
.f input:focus, .f select:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(37,207,174,.14); }
.f.has-error input, .f.has-error select, .f.has-error .f-group { border-color: var(--err); }
.f-err { display: none; color: var(--err); font-size: 14px; margin-top: 7px; }
.f.has-error .f-err { display: block; }

.f-check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 13px; font-size: 16px; line-height: 1.45; cursor: pointer; color: var(--text); }
.f-check input { width: 21px; height: 21px; flex: 0 0 21px; margin-top: 3px; accent-color: var(--mint); }
fieldset { border: none; }
.f-group { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 15px 15px 4px; }
.f-group legend { padding: 0; }

.f-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-card .btn { margin-top: 12px; width: 100%; }
.form-legal { font-size: 13.5px; color: var(--muted); margin-top: 16px; }
.form-fail { display: none; color: var(--err); font-size: 15px; margin-top: 12px; font-weight: 700; }

/* ---------- подвал ---------- */

.footer { background: var(--bg-2); border-top: 1px solid var(--line-soft); color: var(--muted); padding: 40px 0; font-size: 14.5px; }
.footer-logo { height: 24px; width: auto; margin-bottom: 18px; opacity: .85; }
.footer p + p { margin-top: 8px; }
.footer-strong { color: var(--white); font-weight: 700; margin-top: 18px; }

/* ---------- страница благодарности ---------- */

.obrigado { padding: 58px 0 70px; }
.obrigado h1 { margin-bottom: 24px; }
.obrigado h2 { font-size: 21px; margin: 30px 0 8px; }
.obrigado p { color: var(--muted); }
.ob-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 10px; }
.obrigado .btn { margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}
