/* USPI · лендинг «Работа на заводе Фольксваген в Польше» — тёмно-синяя тема в стиле рекламного баннера */
: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;
  --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; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 22px; 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;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.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-ghost { background: rgba(255, 255, 255, .03); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); background: rgba(78, 163, 255, .08); }
.btn-ghost .ic { color: var(--accent-2); }
.btn-icon { padding: 0; width: 48px; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- один экран как на баннере ---------- */
.page { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; padding: 56px 0 40px; }
.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: 75% 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, .95) 0%, rgba(6, 16, 31, .78) 38%, rgba(6, 16, 31, .2) 70%, 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: 800px; margin-bottom: 40px; }
.hero h1 { font-size: clamp(36px, 6vw, 68px); font-weight: 800; line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; max-width: 640px; }
.hl { color: var(--accent); }
.hero-lead { margin-top: 18px; font-size: clamp(17px, 2vw, 21px); color: #d3def5; max-width: 520px; }
.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin-top: 30px; }
.perks li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14.5px; line-height: 1.3; color: #dfe8fb; }
.perk-ic {
  width: 48px; height: 48px; 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: 22px; height: 22px; }
@media (min-width: 900px) { .perks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 719px) {
  .page { padding-top: 40px; }
  .page-bg, .page::before { height: 420px; }
  .page::before { background: linear-gradient(180deg, rgba(6, 16, 31, .55) 0%, rgba(6, 16, 31, .7) 50%, var(--bg) 100%); }
}

/* ---------- вакансии ---------- */
.cards { display: grid; gap: 20px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.job {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r);
  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-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.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) 45%); }
.tag {
  position: absolute; z-index: 1; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px;
  background: rgba(6, 16, 31, .78); border: 1px solid var(--line-2); color: var(--accent-2);
  font-weight: 700; font-size: 12.5px; backdrop-filter: blur(6px);
}
.tag-green { color: var(--ok); border-color: rgba(61, 220, 132, .4); }
.job-body { display: flex; flex-direction: column; flex: 1; padding: 4px 22px 22px; }
.job h3 { font-size: 24px; font-weight: 800; }
.job-cat { display: block; margin-top: 4px; color: var(--accent); font-size: 18px; }
.job-sub { margin-top: 6px; color: #d3def5; font-weight: 600; font-size: 15px; }
.job-text { margin-top: 14px; color: var(--muted); font-size: 15px; }
.pay {
  display: flex; align-items: center; gap: 14px; margin-top: auto; padding: 14px 16px; border-radius: var(--r-sm);
  background: rgba(6, 16, 31, .55); border: 1px solid var(--line-2);
}
.job-text { margin-bottom: 20px; }
.pay-ic { width: 34px; height: 34px; color: var(--accent-2); }
.pay > div { display: flex; flex-direction: column; line-height: 1.2; }
.pay-label { font-size: 13.5px; color: #d3def5; font-weight: 600; }
.pay-sum { font-size: 25px; font-weight: 800; color: var(--accent-2); letter-spacing: -.01em; margin: 2px 0; }
.pay-note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.job-act { display: grid; gap: 10px; margin-top: 18px; }

.perks-bar { margin-top: 36px; padding: 0 4px; }

/* ---------- поп-ап записи ---------- */
.modal {
  width: min(560px, calc(100% - 24px)); max-height: calc(100% - 24px); 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: 30px 22px 24px; }
@media (min-width: 560px) { .modal-card { padding: 36px 34px 30px; } }
.modal-x {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; 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: 28px; font-weight: 800; padding-right: 40px; }
.modal-vac { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(78, 163, 255, .1); border: 1px solid var(--line-2); font-weight: 700; color: var(--accent-2); }
.modal-vac:empty { display: none; }
.modal-lead { margin: 12px 0 22px; color: var(--muted); font-size: 15px; }
body.modal-open { overflow: hidden; }

/* ---------- форма ---------- */
.field { display: flex; flex-direction: column; gap: 8px; margin: 0 0 20px; 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"] {
  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 input::placeholder { color: #6f80a3; }
.field input: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; } }
.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 14px 10px 42px; 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: 14px; 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: 22px; }
.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: 20px; height: 20px; margin: 1px 0 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; }

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

/* телефон в поп-апе */
.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; }
