/* EMOR, посадочная набора из Украины. Светлая версия.
   Тёмный текст на тёплой бумаге, мятный акцент EMOR затемнён до читаемого на белом. */

:root {
    --mint: #12876F;
    --mint-2: #0E6E5A;
    --mint-soft: #E6F5F1;
    --mint-ink: #FFFFFF;
    --bg: #FBFBF9;
    --bg-2: #F3F5F3;
    --card: #FFFFFF;
    --card-2: #FFFFFF;
    --line: #E3E8E6;
    --line-mint: #BFE0D7;
    --text: #22302C;
    --muted: #61706B;
    --white: #0C1512;
    --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(251, 251, 249, .94); 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; filter: brightness(0) saturate(100%) invert(9%) sepia(12%) saturate(1200%) hue-rotate(120deg); }
.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); }
.theme-link { color: var(--muted); font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--line-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;
    box-shadow: 0 8px 20px rgba(18, 135, 111, .18);
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--mint-2); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(18, 135, 111, .24); }
.btn-ghost { background: none; border: 1px solid var(--line-mint); color: var(--white); font-weight: 700; box-shadow: none; }
.btn-ghost:hover { background: var(--mint-soft); }
.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; background: linear-gradient(180deg, var(--mint-soft) 0%, rgba(230, 245, 241, 0) 62%); }
.hero h1 em { font-style: normal; color: var(--mint); white-space: nowrap; }
.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; }
.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;
    box-shadow: 0 1px 2px rgba(12, 21, 18, .04);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.dir:hover { border-color: var(--line-mint); box-shadow: 0 10px 24px rgba(12, 21, 18, .08); 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(--mint); font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--line-mint); padding-bottom: 2px; }

/* расчёт как выписка */
.calc { background: var(--card); border: 1px solid var(--line-mint); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); margin-top: 28px; box-shadow: 0 10px 30px rgba(12, 21, 18, .06); }
.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(--mint-soft); 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-2); font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.together p { color: var(--text); max-width: 70ch; }


/* маршруты автобуса */
.cities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.cities span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; font-size: 15px; font-weight: 600; color: var(--white); background: var(--card); }
.route-notes { display: grid; gap: 10px; margin-top: 22px; }
.route-notes div { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; padding: 16px 18px; border: 1px solid var(--line-mint); border-radius: var(--radius); background: var(--card-2); }
.route-notes b { color: var(--mint); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 17px; white-space: nowrap; }
.route-notes p { color: var(--text); font-size: 15px; }

/* анкета */
.quiz { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: 0 12px 34px rgba(12, 21, 18, .07); }
.quiz-step { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.bar { height: 3px; background: var(--bg-2); 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); 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(--mint); background: var(--mint-soft); }
.field { margin-top: 15px; }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 7px; }
.field input { width: 100%; background: var(--bg); 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: #C0453B; }
.err { display: none; color: #C0453B; 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(--mint-soft); 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-2); 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; background: var(--bg-2); }
.foot img { height: 22px; margin-bottom: 16px; filter: brightness(0) saturate(100%) invert(9%) sepia(12%) saturate(1200%) hue-rotate(120deg); opacity: .8; }
.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, .theme-link { 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; }
    .route-notes div { grid-template-columns: 1fr; gap: 4px; }
    .cities span { font-size: 14px; padding: 7px 13px; }
    summary { font-size: 16px; padding: 17px 34px 17px 0; }
    summary::after { top: 15px; }
}
