/* Вакансии (Figma 1:5143 desktop, 1:5391 mobile) + модалка отклика (1:5628) */

/* --- Hero: светлый баннер с тёмным текстом --- */
.careers__hero {
  min-height: 400px;
  background-image: url("../../img/careers-hero.png");
}

.careers__hero::before {
  background: rgba(255, 255, 255, 0.85);
}

.careers__hero-content {
  gap: 20px;
}

.careers__hero-title {
  color: var(--text-brown-dark);
  line-height: 1.1;
}

.careers__hero-text {
  max-width: 1157px;
  font-size: 18px;
  line-height: 1.714;
  letter-spacing: var(--ls-base);
  color: var(--text-slate);
}

/* --- Список вакансий --- */
.vacancies {
  display: flex;
  flex-direction: column;
  gap: 34px;
  margin-top: 40px;
  margin-bottom: 100px;
}

.vacancies__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vacancy-card {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 121px;
  padding: 24px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-white);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.1));
}

.vacancy-card__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 0;
  min-width: 0;
}

.vacancy-card__title {
  font-weight: var(--fw-bold);
  font-size: 20px;
  line-height: 1.2;
  color: var(--text-brown-dark);
}

.vacancy-card__salary {
  font-size: 14px;
  color: var(--text-gray-400);
}

.vacancy-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 40px;
  padding: 10px 25px;
  border-radius: 90px;
  background: var(--yellow-500);
  font-weight: var(--fw-bold);
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text-brown-dark);
}

.vacancy-card__btn:hover {
  background: var(--yellow-450);
}

/* Мобильный вариант текста кнопки по умолчанию скрыт */
.vacancy-card__btn-label--mobile {
  display: none;
}

/* --- Модалка отклика (1:5628, 340x678) --- */
.modal-career {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 340px;
  max-width: 100%;
  padding: 16px 15px;
  border-radius: 16px;
  background: var(--bg-white);
}

.modal-career__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-career__head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-career__title {
  font-weight: var(--fw-medium);
  font-size: 22px;
  color: var(--text-brown-dark);
}

.modal-career__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  flex-shrink: 0;
}

.modal-career__desc {
  max-width: 254px;
  font-size: 14px;
  color: var(--text-slate);
}

.modal-career__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-career__fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-career__input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid var(--border-400);
  border-radius: 6px;
  background: var(--bg-white);
  font-size: 15px;
  color: var(--text-dark-900);
  outline: none;
}

.modal-career__input::placeholder {
  color: var(--text-gray-300);
}

.modal-career__input:focus {
  border-color: var(--yellow-500);
}

.modal-career__input.is-error {
  border-color: var(--error);
}

.modal-career__textarea {
  height: 106px;
  padding: 16px;
  resize: none;
}

.modal-career__file {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 60px;
  padding: 0 16px;
  border: 1px dashed var(--divider);
  border-radius: 8px;
  background: #f9f9f9;
  cursor: pointer;
}

.modal-career__file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 100px;
  background: #ffe100;
}

.modal-career__file-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.modal-career__file-title {
  font-size: 14px;
  color: var(--text-dark-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-career__file-hint {
  font-size: 12px;
  color: var(--text-gray-300);
}

.modal-career__agree {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 12px;
  color: #4d4d4d;
  cursor: pointer;
}

.modal-career__checkbox {
  width: 32px;
  height: 32px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--yellow-500);
  border: 1.5px solid var(--border-400);
  border-radius: 3px;
}

.modal-career__agree.is-error span {
  color: var(--error);
}

.modal-career__submit-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.modal-career__submit {
  width: 100%;
  height: 54px;
  border-radius: 8px;
  background: #ffd600;
  font-weight: var(--fw-bold);
  font-size: 15px;
  color: var(--text-dark-900);
}

.modal-career__submit:hover {
  background: var(--yellow-450);
}

.modal-career__note {
  font-size: 11px;
  color: var(--text-gray-300);
}

/* --- Адаптив --- */
@media (max-width: 767px) {
  .careers__hero {
    min-height: 280px;
  }

  .careers__hero-text {
    font-size: 14px;
    line-height: 1.6;
  }

  .vacancies {
    gap: 20px;
    margin-top: 8px;
    margin-bottom: 48px;
  }

  .vacancy-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    min-height: 0;
    padding: 20px 16px;
  }

  .vacancy-card__title {
    font-size: 16px;
  }

  .vacancy-card__btn {
    width: 100%;
  }

  /* На мобильном кнопка называется «Подробнее» (Figma 1:5404) */
  .vacancy-card__btn-label--desktop {
    display: none;
  }

  .vacancy-card__btn-label--mobile {
    display: inline;
  }
}
