/* Сайт вакансий jobkz.kz: светлая тёплая тема, тёмная — по системе */
:root {
  --bg: #f6f3ee; --bg2: #efe9e0; --card: #ffffff; --ink: #14202e; --muted: #5d6b7a; --line: #e4ddd2;
  --accent: #ff5a36; --accent-ink: #fff; --accent-soft: #ffe7df; --teal: #0d7c72; --teal-soft: #dcf2ee;
  --shadow: 0 1px 2px rgba(20, 32, 46, .06), 0 8px 24px rgba(20, 32, 46, .07);
  --radius: 18px; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e131b; --bg2: #121925; --card: #171f2c; --ink: #eef2f7; --muted: #9aa7b6; --line: #253041;
    --accent: #ff7451; --accent-ink: #1a0d08; --accent-soft: #3a2119; --teal: #41c3b3; --teal-soft: #13302d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25); color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
.muted { color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 14px max(20px, calc((100vw - 1120px) / 2 + 20px));
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.top > .logo { margin-right: auto; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; text-decoration: none; letter-spacing: -.03em; }
.logo-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 18px; }
.top nav { display: flex; gap: 20px; }
.top nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.top nav a:hover { color: var(--ink); }
.team-link { text-decoration: none; font-size: 14px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.team-link:hover { color: var(--ink); border-color: var(--ink); }

/* Кнопки и поля */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 13px 22px; font: inherit; font-weight: 650;
  cursor: pointer; text-decoration: none; background: var(--accent); color: var(--accent-ink); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { box-shadow: none; border-color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
input, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
input:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 1px; border-color: transparent; }
label { display: block; font-size: 14px; font-weight: 600; }
label > input, label > textarea { margin-top: 6px; }
label span.muted { font-weight: 400; }

/* Первый экран */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: 0; pointer-events: none; }
.hero::before { width: 460px; height: 460px; background: var(--accent-soft); right: -80px; top: -120px; }
.hero::after { width: 380px; height: 380px; background: var(--teal-soft); left: -140px; bottom: -160px; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.kicker { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; color: var(--teal); background: var(--teal-soft); padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); margin: 18px 0 16px; font-weight: 850; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 540px; margin: 0 0 28px; }
.search { display: flex; gap: 10px; max-width: 560px; background: var(--card); padding: 8px; border-radius: 16px; box-shadow: var(--shadow); }
.search input { border: 0; background: transparent; padding: 10px 12px; }
.search input:focus { outline: none; }
.perks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; color: var(--muted); font-size: 15px; }
.perks span::before { content: "✓"; color: var(--teal); font-weight: 800; margin-right: 8px; }

/* Декоративная стопка карточек справа */
.stack { position: relative; height: 340px; }
.stack .mini { position: absolute; width: 290px; background: var(--card); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.stack .mini b { display: block; font-size: 17px; margin-bottom: 4px; }
.stack .mini .muted { font-size: 14px; }
.stack .mini .pill { margin-top: 12px; }
.stack .m1 { top: 0; right: 30px; transform: rotate(3deg); }
.stack .m2 { top: 110px; right: 110px; transform: rotate(-4deg); z-index: 2; }
.stack .m3 { top: 220px; right: 0; transform: rotate(2deg); }
.pill.ok { background: var(--teal); color: #fff; margin-left: 6px; }

/* Вакансии */
section { padding: 56px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(28px, 4vw, 40px); }
.sec-head p { margin: 8px 0 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg2); color: var(--muted); }
.pill.money { background: var(--teal-soft); color: var(--teal); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.vac { display: flex; flex-direction: column; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  text-decoration: none; box-shadow: var(--shadow); transition: transform .18s, border-color .18s; }
.vac:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.vac h3 { font-size: 21px; }
.vac .meta { color: var(--muted); font-size: 14px; }
.vac p { margin: 0; color: var(--muted); }
.vac .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.vac .go { color: var(--accent); font-weight: 650; }
.empty { text-align: center; padding: 48px 20px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* Как это работает */
.how { background: var(--bg2); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { background: var(--card); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 18px; margin-bottom: 14px; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }

/* Рекрутерам */
.rec { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; background: var(--ink); color: var(--bg); border-radius: 28px; padding: 44px; }
.rec h2 { font-size: clamp(26px, 3.5vw, 36px); }
.rec p { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.rec ul { padding-left: 20px; color: color-mix(in srgb, var(--bg) 85%, transparent); }
.rec-list { display: grid; gap: 10px; }
.rec-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 10%, transparent); text-decoration: none; }
.rec-item:hover { background: color-mix(in srgb, var(--bg) 18%, transparent); }
.rec-item span:last-child { color: var(--accent); font-weight: 650; white-space: nowrap; }

/* Страница вакансии */
.back { display: inline-block; margin: 28px 0 8px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); }
.vpage { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; padding-bottom: 64px; }
.vhead { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.vhead h1 { font-size: clamp(30px, 4.5vw, 44px); margin: 12px 0; }
.vhead .teaser { font-size: 18px; color: var(--muted); margin: 0; }
.vhead .pills { display: flex; flex-wrap: wrap; gap: 8px; }
.vsec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 32px; margin-top: 16px; }
.vsec h2 { font-size: 21px; margin-bottom: 12px; }
.vsec ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.vsec li { position: relative; padding-left: 28px; }
.vsec li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); transform: rotate(45deg); }
.apply { position: sticky; top: 84px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.apply h2 { font-size: 22px; }
.apply p { margin: 0; }
.file { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; cursor: pointer; font-weight: 500; }
.file:hover { border-color: var(--accent); }
.file input { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { color: #d93a1a; font-size: 14px; min-height: 1em; margin: 0; }
.done { text-align: center; padding: 18px 6px; }
.done .big { font-size: 44px; }
.or { text-align: center; font-size: 14px; }

/* Подвал */
.foot { border-top: 1px solid var(--line); padding: 36px 0; margin-top: 24px; }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 0 20px; display: grid; gap: 6px; }
.foot p { margin: 0; color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .hero .wrap, .vpage, .rec { grid-template-columns: 1fr; }
  .stack { display: none; }
  .steps { grid-template-columns: 1fr; }
  .apply { position: static; }
  .rec { padding: 28px 22px; border-radius: 22px; }
}
@media (max-width: 640px) {
  .top { gap: 12px; }
  .top nav { display: none; }
  .hero { padding: 40px 0 32px; }
  .hero .lead { font-size: 17px; }
  .search { flex-direction: column; }
  .grid { grid-template-columns: 1fr; }
  .vhead, .vsec { padding: 22px; }
  section { padding: 40px 0; }
}

/* Приглашение рекрутера */
.join { max-width: 560px; margin: 64px auto; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 36px; box-shadow: var(--shadow); display: grid; gap: 14px; justify-items: start; }
.join h1 { font-size: clamp(26px, 4vw, 34px); }
.join .lead { color: var(--muted); margin: 0; }
.join .done { justify-self: stretch; }
.small-note { font-size: 14px; margin: 0; }
@media (max-width: 640px) { .join { margin: 24px auto; padding: 24px; } }
