/* EMOR, посадочная набора из Украины. Версия 2, собрана под конверсию.
   Палитра из фирменного стиля emor.com.pl, акцент тратим только на цифры и действия. */

:root {
    --mint: #25CFAE;
    --mint-2: #60E0A9;
    --mint-ink: #04120E;
    --bg: #080D0C;
    --bg-2: #0B1211;
    --card: #101917;
    --card-2: #0D1514;
    --line: rgba(255, 255, 255, .09);
    --line-mint: rgba(37, 207, 174, .28);
    --text: #DCE5E2;
    --muted: #8C9A96;
    --white: #fff;
    --radius: 14px;
    --max: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
b, strong { color: var(--white); }

h1, h2, h3 { color: var(--white); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(30px, 5vw, 52px); }
h2 { font-size: clamp(24px, 3.4vw, 36px); }
h3 { font-size: clamp(17px, 2vw, 20px); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.num { font-variant-numeric: tabular-nums; }

/* секции с тихой нумерацией */
section { padding: 72px 0; border-top: 1px solid var(--line); }
section[id] { scroll-margin-top: 78px; }
.tag { display: block; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.tag i { font-style: normal; color: var(--mint); margin-right: 10px; }
.lead { font-size: clamp(17px, 1.9vw, 19px); color: var(--text); max-width: 68ch; }
h1 + .lead, h2 + .lead, .uah + .lead { margin-top: 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }

/* шапка */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(8, 13, 12, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 64px; }
.header img { height: 24px; }
.header-right { display: flex; align-items: center; gap: 14px; }
.header .phone { font-weight: 700; color: var(--white); font-size: 15px; }
.lang { display: flex; gap: 2px; }
.lang button { background: none; border: 0; color: var(--muted); font: 700 13px/1 'Montserrat', sans-serif; padding: 7px 9px; cursor: pointer; border-radius: 6px; }
.lang button.on { color: var(--mint-ink); background: var(--mint); }

/* кнопки */
.btn {
    display: inline-flex; align-items: center; justify-content: center; text-align: center;
    background: var(--mint); color: var(--mint-ink); font-weight: 800; font-size: 17px;
    padding: 17px 30px; border: 0; border-radius: 10px; cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--mint-2); transform: translateY(-1px); }
.btn-ghost { background: none; border: 1px solid var(--line-mint); color: var(--white); font-weight: 700; }
.btn-ghost:hover { background: rgba(37, 207, 174, .08); }
.cta-line { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
.cta-line p { color: var(--muted); font-size: 15px; max-width: 34ch; }

/* первый экран */
.hero { padding: 54px 0 64px; border: 0; }
.hero h1 em { font-style: normal; color: var(--mint); white-space: nowrap; }
.hero .lead { margin-top: 20px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-proof span { color: var(--muted); font-size: 14px; }
.hero-proof b { color: var(--white); }

/* три направления */
.dirs { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin-top: 30px; }
.dir {
    position: relative; text-align: left; background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px 22px 20px; cursor: pointer; color: var(--text); font: inherit;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.dir:hover { border-color: var(--line-mint); background: var(--card-2); transform: translateY(-2px); }
.dir b { display: block; color: var(--white); font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.dir .pay { display: block; color: var(--mint); font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.dir span.desc { display: block; color: var(--muted); font-size: 15px; line-height: 1.5; }
.dir .go { display: inline-block; margin-top: 14px; color: var(--white); font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--line-mint); padding-bottom: 2px; }

/* расчёт как выписка */
.calc { background: var(--card-2); border: 1px solid var(--line-mint); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); margin-top: 28px; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.calc-row:last-of-type { border-bottom: 0; }
.calc-row span { color: var(--muted); font-size: 15px; }
.calc-row b { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: clamp(16px, 2.4vw, 20px); color: var(--white); font-weight: 600; white-space: nowrap; }
.calc-total { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line-mint); }
.calc-total b { color: var(--mint); font-size: clamp(22px, 4vw, 32px); font-weight: 700; }
.calc-note { margin-top: 16px; font-size: 14px; color: var(--muted); }


/* вместе с друзьями и семьёй */
.together { background: var(--card-2); border: 1px solid var(--line-mint); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); margin-top: 26px; }
.together b { display: block; color: var(--mint); font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.together p { color: var(--text); max-width: 70ch; }

/* конвертация под заголовком */
.uah { margin-top: 14px; font-size: clamp(16px, 1.9vw, 18px); color: var(--muted); }
.uah b { font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--white); font-weight: 600; }

/* анкета */
.quiz { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.quiz-step { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.bar { height: 3px; background: rgba(255, 255, 255, .08); border-radius: 999px; overflow: hidden; margin: 12px 0 22px; }
.bar i { display: block; height: 100%; background: var(--mint); width: 16%; transition: width .35s ease; }
.opts { display: grid; gap: 9px; margin-top: 18px; }
.opt { text-align: left; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 15px 17px; color: var(--text); font: 600 16px/1.4 'Montserrat', sans-serif; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.opt:hover, .opt.on { border-color: var(--line-mint); background: rgba(37, 207, 174, .07); }
.field { margin-top: 15px; }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 7px; }
.field input { width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 15px 17px; color: var(--text); font: 500 16px/1.3 'Montserrat', sans-serif; }
.field input:focus { outline: 2px solid var(--mint); outline-offset: 1px; }
.field.bad input { border-color: #E4736B; }
.err { display: none; color: #E4736B; font-size: 13px; margin-top: 6px; }
.field.bad .err { display: block; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.quiz-actions { display: flex; align-items: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.back { background: none; border: 0; color: var(--muted); font: 600 14px 'Montserrat', sans-serif; cursor: pointer; }
.quiz-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.result { background: var(--bg-2); border: 1px solid var(--line-mint); border-radius: 10px; padding: 18px; margin-bottom: 18px; }
.result span { display: block; color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.result b { font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--mint); font-size: clamp(20px, 3.4vw, 26px); font-weight: 700; }
.result p { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* строки фактов вместо карточек */
.facts { margin-top: 28px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: 10px 28px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.facts h3 { font-size: 17px; font-weight: 700; }
.facts p { color: var(--muted); font-size: 15px; }

/* шаги */
.steps { counter-reset: s; display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.steps li { list-style: none; display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.steps li::before { counter-increment: s; content: "0" counter(s); color: var(--mint); font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 3px; }
.steps b { grid-column: 2; display: block; color: var(--white); margin-bottom: 3px; }
.steps p { grid-column: 2; color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { margin-top: 26px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 700; color: var(--white); font-size: 17px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 6px; top: 18px; color: var(--mint); font-size: 22px; font-weight: 400; }
details[open] summary::after { content: '\2212'; }
details p { padding: 0 0 20px; color: var(--muted); font-size: 15px; max-width: 72ch; }

/* подвал */
.foot { padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot img { height: 22px; margin-bottom: 16px; opacity: .85; }
.foot p { margin-bottom: 8px; max-width: 80ch; }

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

@media (max-width: 680px) {
    body { font-size: 16px; }
    section { padding: 48px 0; }
    .wrap { padding: 0 18px; }
    .header img { height: 21px; }
    .header .phone { display: none; }
    .btn { width: 100%; }
    .cta-line { gap: 12px; align-items: stretch; }
    .cta-line p { max-width: none; }
    .facts div { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
    .quiz-actions { gap: 10px; }
    .quiz-actions .btn { width: auto; flex: 1; }
    /* строки расчёта в две строки, иначе цифра жмёт подпись */
    .calc-row { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 0; }
    .calc-row b { white-space: normal; }
    .hero-proof { flex-direction: column; gap: 6px; }
    .steps li { grid-template-columns: 30px 1fr; gap: 12px; padding: 16px 0; }
    .dirs, .grid { gap: 10px; }
    summary { font-size: 16px; padding: 17px 34px 17px 0; }
    summary::after { top: 15px; }
}
