/* USPI · витрина горячих вакансий для англоязычных (en.uspi-work.com).
   Основа — style.css лендинга VW (тёмно-синяя тема баннера); добавлены быстрые переходы к вакансиям,
   список условий в карточке, шаги, подвал и липкая панель на телефоне. Вёрстка сначала под телефон. */
:root {
  --bg: #06101f;
  --bg-2: #0a1830;
  --card: #0d1f3d;
  --card-2: #102649;
  --line: rgba(130, 175, 255, .18);
  --line-2: rgba(130, 175, 255, .32);
  --text: #eef3ff;
  --muted: #a8b7d4;
  --accent: #4ea3ff;
  --accent-2: #8cc4ff;
  --accent-ink: #04122a;
  --hot: #ffb23e;
  --wa: #25d366;
  --wa-2: #1fb457;
  --ok: #3ddc84;
  --err: #ff8a8a;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, .7);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-2); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }
ul[role="list"], ol { list-style: none; margin: 0; padding: 0; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1.5px solid transparent;
  font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .18s, border-color .18s, transform .12s, box-shadow .18s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -12px rgba(78, 163, 255, .7); }
.btn-primary:hover { background: var(--accent-2); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 30px -12px rgba(37, 211, 102, .65); }
.btn-wa:hover { background: var(--wa-2); }
.btn-wa .ic { width: 1.4em; height: 1.4em; }
.btn-icon { padding: 0; width: 56px; flex: none; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- первый экран ---------- */
.page { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; padding: 28px 0 32px; }
.page-bg { position: absolute; inset: 0 0 auto 0; height: min(78vw, 720px); z-index: -2; }
.page-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 30%; }
.page::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: min(78vw, 720px); z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 16, 31, .96) 0%, rgba(6, 16, 31, .82) 40%, rgba(6, 16, 31, .25) 72%, rgba(6, 16, 31, .05) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(6, 16, 31, 0) 45%);
}
.page::after {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background: radial-gradient(1000px 600px at 50% 100%, rgba(40, 90, 180, .25), transparent 70%), var(--bg);
}
.hero { max-width: 760px; margin-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: #dfe8fb; margin-bottom: 22px; }
.brand-mark { width: 30px; height: 30px; flex: none; border-radius: 8px; }
.brand-sub { color: var(--muted); font-weight: 600; }
.hero h1 { font-size: clamp(34px, 6vw, 64px); font-weight: 800; line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; max-width: 660px; }
.hot { display: inline-flex; align-items: center; gap: .12em; color: var(--hot); }
.hot .ic { width: .85em; height: .85em; }
.hl { color: var(--accent); }
.hero-lead { margin-top: 16px; font-size: clamp(16.5px, 2vw, 20px); color: #d3def5; max-width: 560px; }
.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; margin-top: 24px; }
.perks li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; line-height: 1.3; color: #dfe8fb; }
.perk-ic {
  width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line-2); background: rgba(10, 24, 48, .6); color: var(--accent-2);
}
.perk-ic .ic { width: 20px; height: 20px; }
@media (min-width: 900px) {
  .perks { max-width: 560px; }
  .perk-ic { width: 48px; height: 48px; }
  .perk-ic .ic { width: 22px; height: 22px; }
}
/* десктоп: фото — справа от колонки текста, люди не попадают под заголовок */
@media (min-width: 1100px) {
  .page-bg { left: 34%; }
  .page-bg img { object-position: 70% 30%; }
  .hero { max-width: 640px; }
}
.hero-act { display: grid; gap: 10px; margin-top: 26px; }
@media (min-width: 560px) { .hero-act { display: flex; flex-wrap: wrap; gap: 12px; } }
.who {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; max-width: 560px;
  font-size: 14px; line-height: 1.45; color: var(--muted);
}
.who .ic { color: var(--accent-2); margin-top: 1px; }
.who b { color: #dfe8fb; }
@media (max-width: 719px) {
  .page-bg, .page::before { height: 380px; }
  .page::before { background: linear-gradient(180deg, rgba(6, 16, 31, .62) 0%, rgba(6, 16, 31, .78) 50%, var(--bg) 100%); }
}
/* планшет: люди на фото уже под текстом — затемняем сильнее, как на телефоне */
@media (min-width: 720px) and (max-width: 1099px) {
  .page::before { background: linear-gradient(180deg, rgba(6, 16, 31, .7) 0%, rgba(6, 16, 31, .84) 60%, var(--bg) 100%); }
}

/* ---------- быстрые переходы к вакансиям ---------- */
.jump { margin: 0 0 22px; }
.jump-title { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--hot); margin-bottom: 10px; }
.jump-list {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none;
}
.jump-list::-webkit-scrollbar { display: none; }
.jump-list li { flex: none; scroll-snap-align: start; }
.jump-list a {
  display: flex; flex-direction: column; gap: 2px; min-height: 56px; padding: 9px 14px; border-radius: 12px;
  background: rgba(13, 31, 61, .85); border: 1px solid var(--line-2); color: var(--text); text-decoration: none;
  font-size: 14px; line-height: 1.25;
}
.jump-list a span { color: var(--accent-2); font-weight: 700; font-size: 13.5px; }
.jump-list a:hover { border-color: var(--accent); }
@media (min-width: 720px) { .jump-list { margin: 0; padding: 2px 0 8px; flex-wrap: wrap; overflow: visible; } }

/* ---------- вакансии ---------- */
.cards { display: grid; gap: 18px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1060px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.job {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r); scroll-margin-top: 16px;
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: border-color .2s, transform .2s;
}
.job:hover { border-color: var(--line-2); transform: translateY(-2px); }
.job.is-pick { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.job:target { border-color: var(--accent); }
.job-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
@media (min-width: 760px) { .job-media { aspect-ratio: 3 / 2; } }
.job-media img { width: 100%; height: 100%; object-fit: cover; }
.job-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--card-2) 0%, rgba(16, 38, 73, 0) 42%); }
.tag {
  position: absolute; z-index: 1; top: 12px; left: 12px; padding: 5px 11px; border-radius: 999px;
  background: rgba(6, 16, 31, .8); border: 1px solid var(--line-2); color: var(--accent-2);
  font-weight: 700; font-size: 12.5px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.tag-green { color: var(--ok); border-color: rgba(61, 220, 132, .4); }
.tag-gold { color: var(--hot); border-color: rgba(255, 178, 62, .45); }
.job-body { display: flex; flex-direction: column; flex: 1; padding: 2px 18px 18px; }
@media (min-width: 560px) { .job-body { padding: 2px 22px 22px; } }
.job-loc { display: flex; align-items: center; gap: 6px; color: var(--accent-2); font-weight: 700; font-size: 14px; }
.job-loc .ic { width: 16px; height: 16px; }
.job h3 { margin-top: 6px; font-size: 22px; font-weight: 800; }
.job-text { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.facts { display: grid; gap: 7px; margin: 14px 0 18px; }
.facts li { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; color: #dfe8fb; }
.facts .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--ok); }
.pay {
  display: flex; align-items: center; gap: 14px; margin-top: auto; padding: 12px 14px; border-radius: var(--r-sm);
  background: rgba(6, 16, 31, .55); border: 1px solid var(--line-2);
}
.pay-ic { width: 32px; height: 32px; color: var(--accent-2); }
.pay > div { display: flex; flex-direction: column; line-height: 1.2; }
.pay-label { font-size: 13px; color: #d3def5; font-weight: 600; }
.pay-sum { font-size: 23px; font-weight: 800; color: var(--accent-2); letter-spacing: -.01em; margin: 2px 0; }
.pay-note { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.pay-note b { color: var(--hot); }
.job-act { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.job-act .btn { padding: 0 12px; }

/* ---------- как это работает ---------- */
.steps {
  margin-top: 34px; padding: 22px 18px; border-radius: var(--r);
  background: rgba(13, 31, 61, .6); border: 1px solid var(--line);
}
@media (min-width: 720px) { .steps { padding: 28px; } }
.steps h2 { font-size: 24px; font-weight: 800; }
.steps-list { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 860px) { .steps-list { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.steps-list li { display: flex; gap: 12px; align-items: flex-start; }
.steps-list div { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.steps-list b { color: var(--text); font-size: 16px; }
.step-n {
  width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 800;
}
.free-note {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 12px 14px; border-radius: var(--r-sm);
  background: rgba(61, 220, 132, .08); border: 1px solid rgba(61, 220, 132, .3); font-size: 14.5px; color: #dfe8fb; line-height: 1.45;
}
.free-note .ic { color: var(--ok); margin-top: 1px; }

/* ---------- подвал ---------- */
.foot { margin-top: 26px; padding: 0 2px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.foot p + p { margin-top: 6px; }
.foot a { color: var(--accent-2); white-space: nowrap; }

/* ---------- липкая панель на телефоне ---------- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(6, 16, 31, .94);
  border-top: 1px solid var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transform: translateY(110%); transition: transform .22s ease-out;
}
.sticky .btn-primary { flex: 1; min-height: 52px; }
.sticky .btn-icon { min-height: 52px; width: 60px; }
.sticky.is-on { transform: none; }
body.has-sticky { padding-bottom: 76px; }
@media (min-width: 900px) { .sticky { display: none; } body.has-sticky { padding-bottom: 0; } }

/* ---------- поп-ап заявки ---------- */
.modal {
  width: min(560px, calc(100% - 20px)); max-height: calc(100% - 20px); padding: 0; margin: auto;
  border: 1px solid var(--line-2); border-radius: 22px; background: var(--card); color: var(--text);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); overflow: auto; overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(2, 7, 16, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal[open] { animation: pop .2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-card { position: relative; padding: 26px 18px 22px; }
@media (min-width: 560px) { .modal-card { padding: 34px 32px 28px; } }
.modal-x {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer;
}
.modal-x:hover { border-color: var(--accent); }
.modal-kicker { font-size: 13px; font-weight: 700; color: var(--accent-2); text-transform: uppercase; letter-spacing: .06em; }
.modal h2 { margin-top: 6px; font-size: 26px; font-weight: 800; padding-right: 44px; }
.modal-lead { margin: 10px 0 20px; color: var(--muted); font-size: 15px; }
body.modal-open { overflow: hidden; }

/* ---------- форма ---------- */
.field { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 0; }
.field legend { margin-bottom: 10px; }
.field input[type="text"], .field input[type="tel"], .field select {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 12px; font: 500 16px var(--font);
  background: var(--bg); color: var(--text); border: 1.5px solid var(--line-2); transition: border-color .15s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%238cc4ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px;
}
.field input::placeholder { color: #6f80a3; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(78, 163, 255, .2); }
.hint { font-size: 13px; color: var(--muted); }
.opts { display: grid; gap: 8px; }
@media (min-width: 520px) { .opts { grid-template-columns: 1fr 1fr; } }
.opts-chips { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 520px) { .opts-chips { grid-template-columns: repeat(3, 1fr); } }
.opt { position: relative; display: flex; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: flex; align-items: center; width: 100%; min-height: 48px; padding: 10px 12px 10px 40px; border-radius: 12px;
  border: 1.5px solid var(--line-2); background: var(--bg); font-weight: 600; font-size: 14.5px; line-height: 1.3; position: relative;
}
.opt span::before {
  content: ""; position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  border: 2px solid #5d74a0; transition: border .15s, background .15s;
}
.opt input:checked + span { border-color: var(--accent); background: rgba(78, 163, 255, .1); }
.opt input:checked + span::before { border: 6px solid var(--accent); }
.opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.field-check { margin-bottom: 20px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500 !important; font-size: 14px !important; color: var(--muted); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--accent); }
.is-invalid input[type="text"], .is-invalid input[type="tel"], .is-invalid .opt span { border-color: var(--err); }
.err { color: var(--err); font-size: 13.5px; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 12px; font-size: 14.5px; font-weight: 600; min-height: 1em; }
.form-status.is-error { color: var(--err); }
.form-done { text-align: center; padding: 18px 6px; }
.form-done:focus { outline: none; }
.done-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(61, 220, 132, .15); color: var(--ok); }
.done-ic .ic { width: 32px; height: 32px; }
.form-done h3 { margin-top: 18px; font-size: 24px; font-weight: 800; }
.form-done p { margin: 10px auto 22px; color: var(--muted); max-width: 380px; }
.modal-alt { margin-top: 14px; text-align: center; font-size: 15px; color: var(--muted); }
.modal-alt a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent-2); text-decoration: none; white-space: nowrap; }
.modal-alt a:hover { text-decoration: underline; }
.modal-alt .ic { width: 16px; height: 16px; }
.form-done .modal-alt { margin-top: 16px; }

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