/* «Парсер вакансий» — дизайн-система.
   Мир: рынок труда как биржа. Бумага + чернила, банкнотный зелёный,
   жёлтый маркер-хайлайтер. Заголовки — Piazzolla (антиква), текст — Golos Text. */

:root {
    --bg: #fafaf7;
    --surface: #ffffff;
    --ink: #14201b;
    --muted: #5c6b63;
    --line: #e4e6df;
    --primary: #0f6b4f;
    --primary-hover: #0c5940;
    --primary-ink: #ffffff;
    --highlight: #ffe24a;
    --ok: #0f6b4f;
    --err: #b3261e;
    --radius: 14px;
    --font-display: "Piazzolla", "Times New Roman", serif;
    --font-body: "Golos Text", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    text-wrap: balance;
}
h2 { font-size: 30px; }

/* Маркер-хайлайтер — единственное смелое пятно */
.hl {
    background: linear-gradient(0deg, var(--highlight) 0%, var(--highlight) 88%, transparent 88%);
    padding: 0 3px;
    border-radius: 2px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* ── Шапка ─────────────────────────────────────────────────────────────── */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.topbar nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.topbar nav a { color: var(--ink); }
.topbar nav .cta { background: var(--primary); color: var(--primary-ink); padding: 9px 16px; border-radius: 10px; }
.topbar nav .cta:hover { text-decoration: none; background: var(--primary-hover); }
.inline { display: inline; margin: 0; }
.linklike { background: none; border: 0; color: var(--primary); cursor: pointer; font: inherit; padding: 0; }

.wrap { max-width: 1020px; margin: 0 auto; padding: 28px 22px 64px; }

/* ── Карточки и формы ──────────────────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    margin-bottom: 20px;
}
.card.auth { max-width: 430px; margin-left: auto; margin-right: auto; }

h1 { margin-top: 0; font-size: 30px; }

label { display: block; margin: 12px 0; font-weight: 600; font-size: 14px; }
input[type="email"], input[type="password"], input[type="text"], select {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    font-weight: 400;
    background: var(--surface);
    color: var(--ink);
}
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button, .btn {
    display: inline-block;
    padding: 11px 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
button:hover, .btn:hover { text-decoration: none; }
button:not(:disabled):hover, .btn:not(.disabled):hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(20, 32, 27, .10); }
button:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; }
.btn.primary, button[type="submit"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.btn.primary:hover, button[type="submit"]:not(:disabled):hover { background: var(--primary-hover); }
.btn.big { font-size: 17px; padding: 15px 28px; }

.muted { color: var(--muted); font-size: 14px; }

.alert { padding: 11px 15px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.alert.error { background: #fdeceb; color: var(--err); }
.alert.success { background: #e8f3ee; color: var(--ok); }
.alert.info { background: #eef2ee; color: var(--ink); }

.badge { display: inline-block; padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.badge.ok { background: #e8f3ee; color: var(--ok); }
.badge.trial { background: var(--highlight); color: var(--ink); }

/* ── Результаты парсера (кабинет) ──────────────────────────────────────── */
.row2 { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.summary { margin-top: 26px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 15px; text-align: center; }
.stat-v { font-size: 23px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-l { font-size: 12px; color: var(--muted); margin-top: 4px; }
.top-emp { margin: 8px 0 0; padding-left: 20px; }
.top-emp li { margin: 4px 0; }
.table-wrap { margin-top: 26px; overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.table-wrap th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.table-wrap td:nth-child(3) { font-variant-numeric: tabular-nums; }

/* ── Лендинг: hero ─────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding: 52px 0 30px; }
.hero h1 { font-size: 46px; line-height: 1.12; margin: 0 0 14px; }
.lead { font-size: 18px; color: var(--muted); margin: 14px 0; max-width: 46ch; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 22px; }
@media (max-width: 780px) {
    .hero { grid-template-columns: 1fr; padding-top: 30px; }
    .hero h1 { font-size: 33px; }
    .row2 { grid-template-columns: 1fr; }
}

/* Мокап-терминал в hero */
.demo-window {
    background: var(--ink);
    color: #e8efe9;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(20, 32, 27, .25);
    padding: 16px 18px 20px;
    transform: rotate(.6deg);
}
.demo-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.demo-bar span { width: 10px; height: 10px; border-radius: 50%; background: #3c4a42; }
.demo-q { background: #1f2d26; border-radius: 8px; padding: 9px 13px; font-size: 14px; color: #a9bab0; }
.demo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.demo-stats div { background: #1f2d26; border-radius: 8px; padding: 11px 8px; text-align: center; }
.demo-stats b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.demo-stats div:nth-child(2) b { color: var(--highlight); }
.demo-stats i { font-style: normal; font-size: 11px; color: #a9bab0; }
.demo-rows { display: flex; flex-direction: column; gap: 8px; }
.demo-row { position: relative; height: 27px; background: #1f2d26; border-radius: 6px; overflow: hidden; }
.demo-row span { position: absolute; inset: 0 auto 0 0; background: #2e6b52; border-radius: 6px; }
.demo-row em { position: relative; font-style: normal; font-size: 12px; line-height: 27px; padding-left: 10px; color: #e8efe9; }

/* Тикер рынка — бегущая строка */
.ticker {
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 26px -22px 0;
    padding: 10px 0;
    background: var(--surface);
    white-space: nowrap;
}
.ticker-track { display: inline-block; animation: ticker 48s linear infinite; }
.ticker span { display: inline-block; padding: 0 26px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ticker b { color: var(--ink); font-weight: 600; }
.ticker i { font-style: normal; color: var(--primary); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; }
    button, .btn { transition: none; }
}

/* ── Лендинг: секции ───────────────────────────────────────────────────── */
.pain { text-align: center; margin: 52px 0; }
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 22px 0; }
.pain-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; font-size: 15px; text-align: left; }
.pain-answer { font-size: 18px; }

.how { margin: 52px 0; text-align: center; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 22px; text-align: left; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step-n {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--ink); color: var(--bg);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700; margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 52px 0; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feat h3 { margin: 0 0 8px; font-size: 17px; }
.feat p { margin: 0; color: var(--muted); font-size: 14px; }

.audience { margin: 52px 0; text-align: center; }
.aud-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 22px; text-align: left; }
.aud { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.aud h3 { margin: 0 0 6px; font-size: 17px; }
.aud p { margin: 0; color: var(--muted); font-size: 14px; }

/* Тарифы — карточки-«банкноты»: водяной номинал, двойная рамка, шкала выгоды */
.pricing { text-align: center; margin: 52px 0; }
.plans { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: stretch; margin-top: 28px; }
.plan {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 5px var(--line); /* двойная рамка купюры */
    border-radius: var(--radius);
    padding: 28px 22px 22px;
    width: 196px;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform .12s ease, box-shadow .12s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 5px var(--line), 0 14px 30px rgba(20, 32, 27, .10); }

/* Водяной знак-номинал (месяцы) */
.plan-wm {
    position: absolute;
    right: 6px;
    bottom: -22px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 110px;
    line-height: 1;
    color: rgba(15, 107, 79, .07);
    pointer-events: none;
    user-select: none;
}

.plan-flag {
    position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    background: var(--highlight); color: var(--ink);
    font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    padding: 3px 10px; border-radius: 999px; white-space: nowrap;
    z-index: 1;
}
.plan-name { font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.plan-price { font-family: var(--font-display); font-size: 31px; font-weight: 700; margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.plan-full { font-size: 12px; color: var(--muted); min-height: 18px; font-variant-numeric: tabular-nums; }
.plan-full s { opacity: .75; }
.plan-permon { font-size: 14px; font-weight: 600; margin-top: 10px; font-variant-numeric: tabular-nums; }

/* Шкала выгоды */
.save-bar { height: 6px; background: var(--line); border-radius: 999px; margin-top: 8px; overflow: hidden; }
.save-bar span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.save-label { font-size: 12px; color: var(--muted); margin: 5px 0 0; }

.plan .btn, .plan form { margin-top: auto; }
.plan .btn { width: 100%; margin-top: 14px; text-align: center; }
.plan form .btn, .plan form button { width: 100%; margin-top: 14px; }

/* Featured (12 мес) — инверсная чернильная купюра */
.plan.featured {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--bg);
    box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 5px rgba(250, 250, 247, .28), 0 16px 36px rgba(20, 32, 27, .22);
    padding-top: 40px;
}
.plan.featured:hover { box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 5px rgba(250, 250, 247, .28), 0 20px 42px rgba(20, 32, 27, .30); }
.plan.featured .plan-wm { color: rgba(255, 226, 74, .12); }
.plan.featured .plan-name { color: #a9bab0; }
.plan.featured .plan-full, .plan.featured .save-label, .plan.featured .plan-permon { color: #cdd8d1; }
.plan.featured .save-bar { background: #2e3b34; }
.plan.featured .save-bar span { background: var(--highlight); }
.plan.featured .btn.primary, .plan.featured button[type="submit"] {
    background: var(--highlight); color: var(--ink); border-color: var(--highlight);
}
.plan.featured .btn.primary:hover, .plan.featured button[type="submit"]:hover { background: #f5d63a; }

/* Проба — приглушённая */
.plan-trial { background: var(--bg); }
.plan-trial .plan-wm { color: rgba(92, 107, 99, .08); }

.billing-plans .plan { width: 205px; }
.price { font-family: var(--font-display); font-size: 30px; font-weight: 700; margin: 12px 0; }
.price span { font-size: 15px; font-weight: 500; color: var(--muted); font-family: var(--font-body); }

/* FAQ */
.faq { max-width: 720px; margin: 52px auto; }
.faq h2 { text-align: center; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 15px 20px; margin: 10px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { color: var(--muted); margin: 10px 0 2px; }

/* Финальный CTA */
.final-cta {
    text-align: center;
    margin: 56px 0 20px;
    background: var(--ink);
    color: var(--bg);
    border-radius: var(--radius);
    padding: 44px 22px;
}
.final-cta h2 { color: var(--bg); margin-top: 0; }
.final-cta .muted { color: #a9bab0; }
.final-cta .btn.primary { background: var(--highlight); color: var(--ink); border-color: var(--highlight); }
.final-cta .btn.primary:hover { background: #f5d63a; }

/* Юридические страницы */
.legal { max-width: 760px; margin: 0 auto; }
.legal h3 { margin-top: 22px; }
.legal mark { background: var(--highlight); padding: 1px 4px; border-radius: 3px; }

.center { text-align: center; }

/* Подвал */
.foot { text-align: center; padding: 26px 22px; color: var(--muted); font-size: 13px; }
.foot-links { display: flex; gap: 18px; justify-content: center; margin-bottom: 8px; flex-wrap: wrap; }
