/* =========================================================
   Дела сердечные — Вакансии
   Careers page styles
   ========================================================= */

/* ---------- Breadcrumbs + Title (shared with priem) ---------- */
.page-head {
  padding: 14px 0 10px;
  text-align: center;
}
/* .breadcrumbs — канон в styles.css (не дублировать) */
.page-title {
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}

/* ---------- Hero УТП-плашки над кнопкой (канон .hpill) ---------- */
/* Раскладка и отступы — как на внутренних баннерах (.priem-hero-card):
   всё сгруппировано и выровнено по центру по вертикали, равные интервалы. */
.hero .hero-card { justify-content: center; }
.hero .hero-sub { font-size: 17px; line-height: 1.55; max-width: 100%; }
.hero .hero-card > .btn { align-self: flex-start; margin-top: 4px; }
.priem-hero-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 4px;
}
.hpill {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hpill-ico {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: 0 4px 14px rgba(48, 30, 110, 0.10);
  display: grid;
  place-items: center;
  color: var(--violet);
  flex-shrink: 0;
}
.hpill-ico svg { width: 24px; height: 24px; }
.hpill-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hpill-text strong {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.hpill-text span {
  font-size: 14px;
  color: var(--text);
  line-height: 1.35;
}
@media (max-width: 720px) {
  .priem-hero-pills { grid-template-columns: 1fr; }
  .hero .hero-card > .btn { width: 100%; align-self: stretch; }
}

/* =========================================================
   2 · Benefits
   ========================================================= */
.vac-benefits .section-title,
.vac-jobs .section-title { text-align: center; }
.vac-sub {
  text-align: center;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 40em;
  margin: -22px auto 44px;
  line-height: 1.55;
}
.vac-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* =========================================================
   3 · Open positions
   ========================================================= */
/* Фильтр вакансий — кнопки используют канон .spec-tab (styles.css).
   .vac-filters — только позиционная обёртка (центрирование + хук для
   мобильной выпадашки spec-tabs-select.js). */
.vac-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--title-gap);
}

.vac-jobs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.vac-job {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 0;
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease-out, cubic-bezier(0.22,1,0.36,1)),
              box-shadow 0.4s ease;
}
.vac-job:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}
.vac-job-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.vac-job-title {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
  color: var(--text);
}
.vac-job-salary {
  flex: none;
  background: var(--green-pill);
  color: var(--green-text);
  font-weight: 700;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: var(--r-md);
  white-space: nowrap;
}
.vac-job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}
.vac-job-tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--green-text);
  background: color-mix(in srgb, var(--green-pill) 50%, #fff);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.vac-job-desc {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
}
.vac-job-details { margin: 16px 0 0; }
.vac-job-details-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--violet, #6054b1);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}
.vac-job-details-toggle::-webkit-details-marker { display: none; }
.vac-job-details-toggle::marker { content: ""; }
.vac-job-details-toggle:hover { color: var(--violet-hover, #4f44a0); }
.vac-job-details-toggle:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
  border-radius: 2px;
}
.vac-job-details-toggle svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}
.vac-job-details[open] .vac-job-details-toggle svg { transform: rotate(-90deg); }
.vac-job-details-content {
  display: grid;
  gap: 18px;
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--violet-soft);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}
.vac-job-details-content > :first-child { margin-top: 0; }
.vac-job-details-content > :last-child { margin-bottom: 0; }
.vac-job-details-content p { margin: 0 0 10px; }
.vac-job-details-content ul,
.vac-job-details-content ol { margin: 8px 0 12px; padding-left: 22px; }
.vac-job-details-content ul { list-style: disc; }
.vac-job-details-content ol { list-style: decimal; }
.vac-job-details-content a { color: var(--violet); text-decoration: underline; }
.vac-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 18px 0 24px;
}
.vac-job-meta div {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--text-muted);
}
.vac-job-meta svg { color: var(--violet); flex: none; }
.vac-job-meta b { color: var(--text); font-weight: 600; }
.vac-job-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.vac-job .btn { height: 44px; padding: 0 26px; font-size: 15px; }
.vac-job-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--violet);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vac-job-link:hover { color: var(--violet-hover); }
.vac-job.is-hidden { display: none; }

/* =========================================================
   4 · Hiring steps
   ========================================================= */
.vac-steps-bg { background: var(--bg-soft); }
.vac-steps .section-title { text-align: center; }
.vac-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: vstep;
}
.vac-step {
  position: relative;
  background: #fff;
  border-radius: var(--r-xl);
  padding: 32px 26px;
  border: 1px solid var(--border);
}
.vac-step-num {
  font-size: 15px;
  font-weight: 800;
  color: var(--violet);
  background: var(--violet-soft);
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.vac-step h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.vac-step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* =========================================================
   5 · CTA — send resume
   ========================================================= */
.vac-cta-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  background: var(--violet);
  border-radius: var(--r-2xl);
  padding: clamp(32px, 4.5vw, 60px);
  color: #fff;
  position: relative;
  overflow: hidden;
}
/* Static soft blob (decor) */
.vac-cta-wrap::before {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  top: -120px; right: 28%;
  pointer-events: none;
}
/* Cursor-following glow — fades in on hover (matches .booking-wrap) */
.vac-cta-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px circle at var(--bx, 70%) var(--by, 40%), rgba(255,255,255,0.14), transparent 50%),
    radial-gradient(350px circle at var(--bx, 70%) var(--by, 40%), rgba(180,160,255,0.20), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}
.vac-cta-wrap:hover::after { opacity: 1; }
.vac-cta-content {
  position: relative;
  z-index: 2;
}
.vac-cta-content h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 16px;
  text-wrap: balance;
}
.vac-cta-title {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 16px;
  color: #fff;
  text-wrap: balance;
  max-width: 14em;
}
.vac-cta-desc {
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 32px;
  color: rgba(255,255,255,0.82);
  max-width: 30em;
}
/* Contact list (phone / email / Max) */
.vac-cta-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin-top: 4px;
}
.vac-cta-line {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vac-cta-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.vac-cta-phone {
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}
.vac-cta-email {
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  transition: color 0.2s ease;
}
.vac-cta-email:hover { color: rgba(255,255,255,0.8); }
.vac-cta-max { margin-top: 6px; }
.vac-cta-max {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--text);
  padding: 14px 22px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.vac-cta-max:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,0.18); }
.vac-cta-max .max-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(140deg, #2563EB 0%, #7C3AED 50%, #9333EA 100%);
  display: grid; place-items: center;
}
.vac-cta-form {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: var(--r-xl);
  padding: 26px;
  box-shadow: var(--shadow-lift);
}
.vac-cta-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 5px;
}
.vac-cta-form .field { margin-bottom: 14px; }
.vac-cta-form .req { color: var(--coral); font-weight: 700; }
/* Policy checkbox */
.vac-cta-form .vac-check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 22px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-muted);
  cursor: pointer;
}
.vac-cta-form .vac-check input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  flex: none;
  border: 1.5px solid color-mix(in srgb, var(--violet) 35%, transparent);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.vac-cta-form .vac-check input:hover { border-color: var(--violet); }
.vac-cta-form .vac-check input:checked {
  border-color: var(--violet);
  background-color: var(--violet);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6.2l2.6 2.6L10 3.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px;
  box-shadow: 0 4px 12px rgba(96, 84, 177, 0.30);
}
.vac-cta-form .vac-check input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--violet-soft);
}
.vac-check a { color: var(--violet); text-decoration: underline; }
.vac-cta-form input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0 14px;
  font-size: 15px;
  color: var(--text);
  background: var(--bg-soft);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.vac-cta-form input:focus {
  outline: none;
  border-color: var(--violet);
  background: #fff;
}
.vac-cta-form .btn { width: 100%; height: 50px; margin-top: 4px; }
/* Attach-file control */
.vac-cta-form .vac-file {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 14px;
  border: 1px dashed color-mix(in srgb, var(--violet) 32%, transparent);
  border-radius: var(--r-md);
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.vac-cta-form .vac-file:hover { border-color: var(--violet); color: var(--violet); background: var(--violet-soft); }
.vac-file-ico { color: var(--violet); flex: none; display: block; }
.vac-file-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1; }
.vac-cta-form .vac-file.has-file {
  border-style: solid;
  border-color: var(--violet);
  background: #fff;
  color: var(--text);
}
.vac-cta-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-light);
  text-align: center;
}
.vac-cta-note a { color: var(--violet); text-decoration: underline; }

/* =========================================================
   Responsive
   ========================================================= */
/* Мобильная выпадашка фильтра (общий стиль .custom-select) */
.spec-tabs-select { display: none; }
.spec-tabs-select .custom-select-trigger {
  width: 100%;
  background: #fff;
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
  font-weight: 600;
}
@media (max-width: 980px) {
  .vac-benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .vac-jobs-grid { grid-template-columns: 1fr; }
  .vac-steps-grid { grid-template-columns: repeat(2, 1fr); }
  .vac-cta-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .vac-benefits-grid { grid-template-columns: 1fr; }
  .vac-steps-grid { grid-template-columns: 1fr; }
  .vac-job { padding: 24px; }
  .vac-job-title { font-size: 20px; }
  .vac-job-foot { flex-direction: column; align-items: stretch; }
  .vac-job-foot .btn { width: 100%; }
  .vac-job-link { justify-content: center; }
  /* подзаголовки компактнее */
  .vac-sub { font-size: 15px; line-height: 1.5; }
  /* табы → выпадашка */
  .vac-filters { display: none; }
  .spec-tabs-select { display: block; margin: 0 auto var(--title-gap); max-width: 360px; }
  /* CTA-форма по аналогии с отзывами: шире контент, компактнее */
  .vac-cta-wrap { padding: 18px 16px 22px; }
  .vac-cta-content h2, .vac-cta-title { font-size: 23px; }
  .vac-cta-desc { font-size: 14px; line-height: 1.5; }
  .vac-cta-phone, .vac-cta-email { font-size: 21px; }
  .vac-cta-form { padding: 20px 18px 22px; }
  .vac-cta-form input, .vac-cta-form .field { min-width: 0; max-width: 100%; }
}
