/* ============================================================
   StackBridge, витрина вакансий: стили
   ============================================================ */

:root {
  --c-blue: #1f6feb;
  --c-blue-dark: #1858c0;
  --c-blue-deep: #0b2a5b;
  --c-blue-soft: #eaf2ff;
  --c-ink: #0f172a;
  --c-text: #334155;
  --c-muted: #64748b;
  --c-line: #e2e8f0;
  --c-bg: #ffffff;
  --c-bg-soft: #f4f7fb;
  --c-footer: #0b2a5b;
  --c-footer-text: #c8d8f2;
  --c-ok: #15803d;
  --c-ok-soft: #ecfdf3;
  --c-err: #b91c1c;
  --c-err-soft: #fef2f2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

.container {
  width: min(1160px, 100% - 2 * var(--container-pad, 20px));
  margin-inline: auto;
}

.center { text-align: center; }

h1, h2, h3 { color: var(--c-ink); line-height: 1.25; margin: 0 0 .5em; }

.text-accent { color: var(--c-blue); }

.section { padding: 72px 0; }
.section--muted { background: var(--c-bg-soft); }

.section__title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}

.section__title--left { text-align: left; }

.section__subtitle {
  text-align: center;
  color: var(--c-muted);
  max-width: 620px;
  margin: 0 auto 36px;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.btn--primary { background: var(--c-blue); color: #fff; }
.btn--primary:hover { background: var(--c-blue-dark); }

.btn--ghost { background: transparent; color: var(--c-blue-deep); border-color: var(--c-blue); }
.btn--ghost:hover { background: var(--c-blue-soft); }

.btn--lg { padding: 15px 30px; font-size: 16px; }

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--c-ink);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
}

.logo__mark { color: var(--c-blue); display: inline-flex; }
.logo__accent { color: var(--c-blue); }
.logo__text { white-space: nowrap; }

.nav__list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }

.nav__link {
  color: var(--c-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color .2s;
}
.nav__link:hover { color: var(--c-blue); }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(31, 111, 235, .16), transparent 60%),
    radial-gradient(700px 380px at 5% 110%, rgba(31, 111, 235, .10), transparent 60%),
    var(--c-bg);
  padding: 88px 0 80px;
}

.hero__inner { text-align: center; max-width: 820px; }

.hero__badge {
  display: inline-block;
  background: var(--c-blue-soft);
  color: var(--c-blue-deep);
  font-weight: 700;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 18px;
}

.hero__title {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 18px;
}

.hero__text {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--c-muted);
  max-width: 640px;
  margin: 0 auto 30px;
}

.hero__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ---------- Карточки вакансий ---------- */

.vacancy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.vacancy-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.vacancy-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15, 23, 42, .12); }

.vacancy-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.vacancy-card__meta { color: var(--c-muted); font-size: 13px; }

.card__tag {
  align-self: flex-start;
  background: var(--c-blue-soft);
  color: var(--c-blue-deep);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.vacancy-card__title { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.vacancy-card__title a { color: var(--c-ink); text-decoration: none; }
.vacancy-card__title a:hover { color: var(--c-blue); }
.vacancy-card__short { margin: 0 0 16px; color: var(--c-muted); font-size: 15px; }

.vacancy-card__facts,
.vacancy__facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  margin: 0 0 20px;
}
.vacancy-card__facts div,
.vacancy__facts div { background: var(--c-bg-soft); border-radius: 10px; padding: 10px 12px; }
.vacancy-card__facts dt,
.vacancy__facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); font-weight: 700; }
.vacancy-card__facts dd,
.vacancy__facts dd { margin: 2px 0 0; color: var(--c-ink); font-weight: 600; font-size: 14px; }

.vacancy-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}
.vacancy-card__actions .btn { padding: 10px 16px; font-size: 14px; }
.vacancy-card__more { margin-left: auto; color: var(--c-blue); font-weight: 600; font-size: 14px; text-decoration: none; }
.vacancy-card__more:hover { text-decoration: underline; }

.empty-note {
  background: var(--c-blue-soft);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--c-blue-deep);
  font-weight: 600;
}

/* ---------- О компании ---------- */

.about__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
.about__content p { margin: 0 0 14px; }

.about__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}

.about__fact {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow);
}

.about__fact strong { display: block; color: var(--c-blue); font-size: 28px; font-weight: 800; line-height: 1.1; margin-bottom: 6px; }
.about__fact span { color: var(--c-muted); font-size: 14px; }

.about__note { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.about__note h3 { margin-bottom: 14px; }

.steps, .list-num { margin: 0 0 22px; padding-left: 22px; }
.steps li, .list-num li { margin-bottom: 10px; }
.steps li:last-child { margin-bottom: 0; }
.steps strong { color: var(--c-ink); }

/* ---------- Страница вакансии ---------- */

.breadcrumbs { font-size: 14px; color: var(--c-muted); padding-top: 20px; }
.breadcrumbs a { color: var(--c-blue); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span[aria-hidden] { margin: 0 8px; }

.section--vacancy { padding-top: 28px; }

.vacancy { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }

.vacancy__title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 10px; }
.vacancy__short { color: var(--c-muted); font-size: 17px; margin: 0 0 20px; }
.vacancy__facts { grid-template-columns: repeat(3, 1fr); }
.vacancy__main h2 { font-size: 22px; margin-top: 30px; }

.test-task {
  margin-top: 30px;
  background: var(--c-blue-soft);
  border-radius: var(--radius);
  padding: 24px;
}
.test-task h2 { margin-top: 0; }
.test-task__text { white-space: pre-line; }
.test-task__hint { margin: 14px 0 0; font-size: 14px; color: var(--c-muted); }

/* ---------- Форма ---------- */

.form-wrap {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 36px;
  max-width: 760px;
  margin: 0 auto;
}
.form-wrap--narrow { max-width: 640px; }
.form-wrap--wide { max-width: 860px; }
.vacancy__side .form-wrap { max-width: none; position: sticky; top: 92px; padding: 28px; }

.form__title { font-size: 24px; }
.form__sub { color: var(--c-muted); font-size: 14px; margin: 0 0 18px; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; gap: 16px; }
.form__row--2 { grid-template-columns: repeat(2, 1fr); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-weight: 700; color: var(--c-ink); font-size: 14px; }
.field__hint { font-size: 12px; color: var(--c-muted); }
.field__hint a { color: var(--c-blue); }
.req { color: var(--c-err); }

.field__input {
  font-family: inherit;
  font-size: 15px;
  color: var(--c-ink);
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fbfdff;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}

.field__input:focus { outline: none; border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(31, 111, 235, .15); }
.field__input--area { resize: vertical; min-height: 110px; }

.checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.checkbox__input { position: absolute; opacity: 0; }

.checkbox__box {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  margin-top: 2px;
  position: relative;
  transition: background .2s, border-color .2s;
}

.checkbox__input:checked + .checkbox__box { background: var(--c-blue); border-color: var(--c-blue); }

.checkbox__input:checked + .checkbox__box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox__input:focus-visible + .checkbox__box { outline: 2px solid var(--c-blue); outline-offset: 2px; }
.checkbox__label { font-size: 14px; color: var(--c-muted); }
.checkbox__label a { color: var(--c-blue); font-weight: 600; }
.checkbox__label a:hover { text-decoration: underline; }

.form__submit { align-self: center; min-width: 220px; }
.form__hint { margin: 0; text-align: center; font-size: 13px; color: var(--c-muted); }

.form__error { background: var(--c-err-soft); color: var(--c-err); padding: 12px 14px; border-radius: 10px; font-size: 14px; margin: 0 0 16px; }
.form__success { background: var(--c-ok-soft); color: var(--c-ok); padding: 18px; border-radius: 12px; }
.form__success p { margin: 0 0 8px; }
.form__success a { color: var(--c-blue); font-weight: 600; }

/* ---------- Футер ---------- */

.footer { background: var(--c-footer); color: var(--c-footer-text); padding: 56px 0 0; margin-top: 72px; }

.footer__grid { display: flex; justify-content: center; align-items: flex-start; gap: clamp(24px, 5vw, 80px); flex-wrap: wrap; }
.footer__brand { max-width: 260px; }
.footer .logo { color: #fff; }
.footer .logo__mark, .footer .logo__accent { color: #6ea8ff; }
.footer__tagline { margin: 12px 0 0; font-size: 14px; color: #93b4e8; }
.footer__col { min-width: 200px; }

.footer__heading { color: #fff; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; }

.footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; text-align: center; align-items: center; }
.footer__link { color: #6ea8ff; text-decoration: none; font-size: 15px; transition: color .2s; }
.footer__link:hover { color: #a8c8ff; text-decoration: underline; }
.footer__text { font-size: 15px; }

.footer__info { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 44px; padding: 20px 0 24px; }
.footer__copyright { margin: 0; text-align: center; font-size: 14px; color: #93b4e8; }

/* ---------- Политика ---------- */

.privacy__operator { text-align: center; color: var(--c-muted); margin: 0 0 26px; }
.privacy-body h2 { font-size: 20px; margin-top: 28px; }
.privacy-body p { margin: 0 0 14px; }
.privacy-body a { color: var(--c-blue); font-weight: 600; }
.privacy-body a:hover { text-decoration: underline; }
.privacy__contacts { margin-top: 24px; font-weight: 600; color: var(--c-ink); }

/* ---------- Адаптив ---------- */

@media (max-width: 960px) {
  .vacancy-grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .vacancy { grid-template-columns: 1fr; }
  .vacancy__side .form-wrap { position: static; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .header__cta { display: none; }
  .form__row--2 { grid-template-columns: 1fr; }
  .about__facts { grid-template-columns: 1fr; }
  .form-wrap { padding: 24px 18px; }
  .vacancy__facts { grid-template-columns: 1fr 1fr; }
  .hero { padding: 56px 0 52px; }
  .section { padding: 52px 0; }
  .vacancy-card__actions .btn { flex: 1 1 100%; }
  .vacancy-card__more { margin-left: 0; }
}
