/* ============================================================
   vacancy.css — стили вакансий (рекрутёр + соискатель)
   - Списки/формы вакансий рекрутёра
   - Поиск вакансий и детальная страница соискателя
   - Кнопки отклика (откликнуться / отклик оставлен / отклонён)
   ============================================================ */

/* ---------- Unified search toggle (popup in input) ---------- */

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-type-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}

.search-type-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 25px;
  padding: 0 12px;
  background: #2e3238;
  border: 1px solid #2e3238;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
  font-size: 13px;
  font-family: 'Nunito', sans-serif;
  transition: background 0.15s, color 0.15s;
}

.search-type-toggle__btn:hover {
  background: #2e3238;
  color: #fff;
}

.search-type-toggle__label {
  font-weight: 600;
  white-space: nowrap;
}

.search-type-popup {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1.5px solid #d6d6d6;
  border-radius: 10px;
  padding: 6px 0;
  z-index: 100;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  min-width: 160px;
  white-space: nowrap;
}

.search-type-popup__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Nunito', sans-serif;
  color: #333;
  transition: background 0.12s;
}

.search-type-popup__item:hover {
  background: #f0f7ff;
}

.search-type-popup__item input[type="radio"] {
  accent-color: #0088cc;
  margin: 0;
  cursor: pointer;
}

.search-type-popup__item label {
  cursor: pointer;
  user-select: none;
}

/* ---------- Общая обёртка секции и верхняя панель ---------- */
.header_inner {
  background-color: #f8f8f8;
}

.vacancies-search-section {
  color: black;
  padding: 0 150px;
  margin-top: 20px;
  font-size: 15px;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
}

.vacancies-search-section__main {
  gap: 40px;
  display: grid;
  grid-template-columns: 1.5fr 0.5fr;
}

.vacancies-search-section__main > div:last-child {
  width: 100%;
  min-width: 0;
}

.vacancies-search-section__main_outside {
  display: grid;
  grid-template-columns: 1fr;
}

.vacancies-search-section__vacancies::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

.vacancies-search-section__vacancies {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.vacancies-search-nav__top-panel {
  margin: 0 0 20px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  max-width: 50%;
}

.vacancies-search-nav__search-group {
  display: flex;
  flex: 1;
}

.vacancies-search-nav__search-input {
  border: 1px solid #000;
  border-radius: 10px;
  padding: 0 140px 0 15px;
  margin: 0;
  display: flex;
  align-items: center;
  flex: 1;
  font-size: 14px;
  background-color: transparent;
  color: rgba(0, 0, 0, 0.4);
  height: 40px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.vacancy-filters__apply-btn {
  padding: 5px 20px;
  background: #0088cc;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
}

.vacancy-filters__apply-btn:hover {
  background: #006699;
}

.active-filters-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: #e8f0fe;
  border: 1px solid #0088cc;
  border-radius: 4px;
  font-size: 12px;
  color: #0088cc;
}

.filter-chip__remove {
  background: none;
  border: none;
  color: #0088cc;
  font-size: 15px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  opacity: 0.7;
}

.filter-chip__remove:hover {
  opacity: 1;
}

.vacancies-search-nav__search-input:focus {
  border: 1px solid #0088cc; /* или любой другой цвет */
  outline: none;
}

.vacancies-search-nav__search-btn {
  padding: 10px 30px;
  background-color: #0088cc;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.vacancies-search-nav__search-btn:hover {
  background-color: #0077b3;
}

.vacancy-search-form .vacancies-search-nav__search-btn {
  border-radius: 10px;
}

.breadcrumbs {
  color: #808080;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 15px;
}

.breadcrumbs a {
  color: #808080;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #0088cc;
  /* text-decoration: underline; */
}

/* ---------- Карточка вакансии (общий контейнер форм) ---------- */
.vacancies-card {
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  overflow-x: clip;
}

.vacancies-card:hover {
  border-color: #0088cc;
}

.vacancies-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.vacancies-card__grid.form_t {
  grid-template-columns: 1fr;
}

.vacancies-card__info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: space-between;
  position: relative;
}

/* В формах сами карточки без рамки/паддингов, контент собирается в столбцах */
.vacancies-form .vacancies-card,
.vacancies-form .vacancies-card:hover {
  border: none;
  padding: 0;
}

.vacancies-form .vacancies-card__info {
  gap: 0;
}

.info-title {
  text-align: left;
}

.info-wrapper {
  display: flex;
  gap: 20px;
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background-color: #f9f9f9;
  gap: 10px;
  min-width: 33%;
}

.info-item.dop {
  background-color: transparent;
  max-width: 25%;
  min-width: 25%;
  justify-content: center;
  font-size: 20px;
  color: #b2b2b2;
}

/* ---------- Радио-кнопки и переключатели формы ---------- */
.row_format {
  flex-direction: row;
  justify-content: start;
  display: flex;
  gap: 5px;
  align-items: center;
}

.space_bet {
  justify-content: space-between;
}

.space_bet p {
  font-size: 20px;
  font-weight: 600;
}

.btn_style-wrapper {
  display: flex;
  background-color: #999;
  padding: 10px 40px;
  border-radius: 5px;
  margin: 0 30px 0 0;
  cursor: pointer;
}

.btn_style-wrapper.active {
  background-color: #0088cc;
  color: #fff;
}

.btn_style-wrapper--locked {
  background-color: #d6d6d6;
  color: #888;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.7;
}

.btn_style-wrapper input {
  display: none;
}

.btn_style-wrapper p,
.btn_style-wrapper_white p {
  font-size: 20px;
  font-weight: bold;
}

.btn_style-wrapper_white {
  display: flex;
  background-color: transparent;
  padding: 10px 40px;
  border: 1px solid #000;
  border-radius: 5px;
  margin: 0 15px 0 0;
  cursor: pointer;
}

.btn_style-wrapper_white.active {
  background-color: #0088cc;
  color: #fff;
  border: none;
}

.btn_style-wrapper_white input {
  display: none;
}

.schedule_btn,
.hours_btn {
  padding: 10px;
  margin: 0 10px 0 0;
  width: 52px;
}

.hours_btn {
  justify-content: center;
}

.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.toggle-switch input[type='checkbox'] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}

.toggle-switch__slider {
  display: inline-block;
  width: 65px;
  height: 22px;
  background-color: transparent;
  border: 1px solid #000;
  border-radius: 30px;
  position: relative;
  transition: border-color 0.3s ease;
  flex-shrink: 0;
  box-sizing: border-box;
}

.toggle-switch__slider::before {
  content: '';
  position: absolute;
  width: 40px;
  height: 20px;
  left: 0;
  top: 0;
  background-color: #ccc;
  border-radius: 26px;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.toggle-switch input[type='checkbox']:checked + .toggle-switch__slider::before {
  transform: translateX(23px);
  background-color: #0088cc;
}

/* ---------- Редактор описания вакансии ---------- */
.editor-toolbar {
  display: flex;
  gap: 5px;
  padding: 8px;
  background: #f5f5f5;
  border: 1px solid #000;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
}

.toolbar-btn {
  width: 30px;
  height: 30px;
  background-color: #f6f8fb;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
}

.toolbar-btn:hover {
  background: #e9ecef;
  border-color: #999;
}

.toolbar-btn.active {
  border: 1px solid #000;
}

.list-icon {
  font-size: 10px;
  line-height: 1;
  letter-spacing: 1px;
}

.text-wrapper {
  position: relative;
  border: 1px solid #000;
  border-top: none;
  border-radius: 0 0 5px 5px;
  height: 300px;
  width: 100%;
}

.editor-area {
  height: 300px;
  padding: 15px;
  outline: none;
  position: relative;
  z-index: 2;
  background: transparent;
  overflow-y: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-all;
  box-sizing: border-box;
}

.editor-area-error {
  outline: 2px solid #ff4444;
  outline-offset: -2px;
  border-radius: 6px;
}

.editor-area ul,
.editor-area ol {
  margin: 10px 0;
  padding-left: 20px;
}

.editor-area li {
  margin-bottom: 5px;
}

.editor-area::-webkit-scrollbar {
  width: 8px;
}

.editor-area::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.editor-area::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.editor-area::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.placeholder-overlay {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  pointer-events: none;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #999;
  font-family: Arial, sans-serif;
  height: calc(300px - 30px);
}

.placeholder-line {
  opacity: 0.7;
  transition: opacity 0.3s;
}

.placeholder-line.middle {
  margin-top: auto;
  margin-bottom: auto;
}

.placeholder-line.hidden {
  opacity: 0;
}

/* ---------- Кнопка «Сохранить» в формах ---------- */
.btn_wrapper {
  margin-bottom: 20px;
}

.confirm_btn {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  background: #0088cc;
  border: none;
  font-weight: 600;
}

/* ---------- Таблица вакансий рекрутёра (мои вакансии) ---------- */
.vacancies-top-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.vacancies-create-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0088cc;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.vacancies-create-btn:hover {
  background-color: #006699;
  color: #fff;
  text-decoration: none;
}

.vacancies-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.tab_link {
  border: 1px solid #2e3238;
  padding: 5px 20px;
  border-radius: 5px;
  color: #000;
  text-decoration: none;
}

.tab_link.active {
  background-color: #2e3238;
  color: #fff;
}

.vacancies-table-wrapper {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
  margin: 0 0 20px;
}

.vacancies-table {
  width: 100%;
  min-width: 900px;
}

.vacancies-table-header {
  display: flex;
  background-color: #f8f9fa;
  border-bottom: 2px solid #e0e0e0;
  font-weight: 600;
  color: #555;
  font-size: 14px;
  width: 100%;
  gap: 10px;
}

.vacancies-table-header .vacancies-table-cell {
  padding: 10px;
  white-space: normal;
  line-height: 1.3;
  text-align: center;
}

.vacancies-table-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
  position: relative;
  width: 100%;
  gap: 10px;
}

.vacancies-table-row:hover {
  background-color: #f8f9ff;
}

.vacancies-table-row:last-child {
  border-bottom: none;
}

.vacancies-row-link {
  display: flex;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.vacancies-row-link:hover {
  text-decoration: none;
  color: inherit;
}

.vacancy-name-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.vacancy-name-link:hover .vacancy-name {
  color: #0088cc;
}

.vacancies-edit-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 100%;
  height: 100%;
}

.vacancies-table-cell {
  padding: 20px 10px;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #333;
  box-sizing: border-box;
  overflow: hidden;
}

.col-option {
  width: 50px;
  min-width: 50px;
  justify-content: center;
}

.col-name {
  width: 18%;
  min-width: 160px;
}

.col-city {
  width: 12%;
  min-width: 100px;
}

.col-manager {
  width: 15%;
  min-width: 120px;
}

.col-date {
  width: 9%;
  min-width: 80px;
}

.col-views,
.col-responses,
.col-invites {
  width: 8%;
  min-width: 70px;
  justify-content: center;
}

.col-suitable {
  width: 9%;
  min-width: 80px;
  justify-content: center;
}

.vacancy-name {
  font-weight: 500;
  color: #0088cc;
  overflow: hidden;
  /* text-overflow: ellipsis;
  white-space: nowrap; */
  display: block;
  width: 100%;
}

.vacancy-city,
.vacancy-manager,
.vacancy-date {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  width: 100%;
}

.vacancy-stat {
  font-weight: 600;
  color: #666;
  text-align: center;
  width: fit-content;
}

a.vacancy-stat--link {
  color: #0088cc;
  text-decoration: none;
  display: inline-block;
}

a.vacancy-stat--link:hover {
  color: #0077b3;
  text-decoration: underline;
}

.vacancy-stat-new {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #1aab5f;
  margin-left: 10px;
}

.dots-vertical {
  font-size: 10px;
  color: #666;
  cursor: pointer;
  writing-mode: vertical-lr;
  display: inline-block;
  /* border: 1px solid #000; */
  padding: 5px 0;
}

/* ---------- Триггер «•••» в строке вакансии ---------- */
.vacancies-actions-trigger {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.vacancies-actions-trigger:hover .dots-vertical {
  color: #08c;
  border-color: #08c;
}

/* ---------- Состояние «скрытой» строки (publ='0') ---------- */
.vacancies-table-row--hidden {
  background: #fafafa;
}

.vacancies-table-row--hidden .vacancy-name,
.vacancies-table-row--hidden .vacancy-city,
.vacancies-table-row--hidden .vacancy-manager,
.vacancies-table-row--hidden .vacancy-date,
.vacancies-table-row--hidden .vacancy-stat {
  color: #b0b0b0;
}

.vacancies-table-row--hidden .vacancy-name {
  color: #a8c8d8;
}

/* ---------- Popover-меню действий ---------- */
.vacancy-actions-menu {
  position: fixed;
  z-index: 1000;
  min-width: 180px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  font-family: inherit;
}

.vacancy-actions-menu[hidden] {
  display: none;
}

.vacancy-actions-menu__item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 22px;
  font-size: 15px;
  color: #2e3238;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition:
    background 0.12s ease,
    color 0.12s ease;
}

.vacancy-actions-menu__item:hover {
  background: #f4f7fa;
  color: #08c;
}

.vacancy-actions-menu__item.is-disabled,
.vacancy-actions-menu__item:disabled {
  color: #b8b8b8;
  cursor: not-allowed;
  background: transparent;
}

.vacancy-actions-menu__item.is-disabled:hover,
.vacancy-actions-menu__item:disabled:hover {
  background: transparent;
  color: #b8b8b8;
}

.vacancy-actions-menu__item--danger {
  color: #e02424;
}

.vacancy-actions-menu__item--danger:hover {
  background: #fdecec;
  color: #c20e0e;
}

.vacancies-empty {
  padding: 60px 20px;
  text-align: center;
  color: #999;
}

.vacancies-empty p {
  font-size: 18px;
  margin-bottom: 20px;
}

/* ---------- Сайдбар ---------- */
.sidebar-menu {
  border: 1px solid #000;
  border-radius: 10px;
  padding: 25px 50px;
  text-align: left;
  margin: 0 0 20px;
}

.sidebar-menu__list {
  list-style-type: none;
  font-size: 15px;
  font-weight: 600;
  padding: 0;
  margin: 0;
}

.sidebar-menu__list li {
  margin-bottom: 10px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.sidebar-menu__list li:hover {
  opacity: 0.7;
}

.sidebar-banner {
  border-radius: 10px;
}
.sidebar-banner img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* ---------- Поля ввода ---------- */
.input-wrapper {
  width: 100%;
}

.input-field {
  width: 100%;
  padding: 10px 16px;
  font-size: 15px;
  border: 1.5px solid #aaa;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s;
  background: #fff;
  color: #000;
  font-weight: 500;
}

.input-field:focus {
  border-color: #0088cc;
}

.input-field::placeholder {
  color: #8f8f8f;
  font-weight: 400;
  font-size: 12px;
}

.input-field.text_field {
  height: 200px;
}

/* ---------- Поиск вакансий соискателем — карточки ---------- */
.vacancy-card {
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.vacancy-card--has-img {
  grid-template-columns: 1fr 0.7fr;
  gap: 20px;
}

.vacancy-card--compact {
  grid-template-columns: 1fr auto 150px;
  gap: 20px;
  align-items: center;
}

.vacancy-card:hover {
  border-color: #0088cc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.vacancy-card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vacancy-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  text-decoration: none;
}

.vacancy-card__title:hover {
  color: #0088cc;
}

.vacancy-card__spec {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}

.vacancy-card__salary {
  font-size: 16px;
  font-weight: 600;
  color: #000;
}

.vacancy-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vacancy-card__tag {
  border: 1px solid #bbb;
  border-radius: 5px;
  padding: 3px 10px;
  font-size: 13px;
  color: #333;
  background: #fafafa;
  white-space: nowrap;
}

.vacancy-card__address {
  font-size: 14px;
  color: #444;
}

.vacancy-card__org {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vacancy-card__org-logo {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #eee;
}

.vacancy-card__org-name {
  font-size: 14px;
  color: #555;
}

.vacancy-card__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.vacancy-cancel-resp {
  /* flex-basis: 100%; */
  background: none;
  border: none;
  padding: 0;
  /* margin: -4px 0 0; */
  color: #888;
  font-size: 13px;
  /* font-family: inherit; */
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: color 0.2s ease;
}

.vacancy-cancel-resp:hover {
  color: #c0392b;
  text-decoration: underline;
}

.vacancy-cancel-resp:disabled {
  opacity: 0.6;
  cursor: wait;
}

.vacancy-card__fav {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #aaa;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.vacancy-card__fav:hover {
  color: #e04040;
}

.vacancy-card__share {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  opacity: 0.55;
  transition: opacity 0.2s;
}

.vacancy-card__share:hover {
  opacity: 1;
}

.vacancy-card__share img {
  width: 20px;
  height: 20px;
  display: block;
}

.vacancy-card-img {
  height: fit-content;
  margin: auto 0;
}

.vacancy-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

.vacancy-card-img--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  border: 1px solid #eee;
}

.vacancy-card-img--logo img {
  object-fit: contain;
}

.vacancy-card__tags-col {
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.vacancy-card-logo {
  /* width: 90px;
  height: 90px; */
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #eee;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vacancy-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ---------- Подробная страница вакансии (соискатель) ---------- */
.vacancy-detail {
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 30px;
  background: #fff;
  margin-bottom: 20px;
}

.vacancy-detail__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.vacancy-detail__title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #000;
}

.vacancy-detail__salary {
  font-size: 22px;
  font-weight: 700;
  color: #000;
  margin: 0 0 8px;
}

.vacancy-detail__company {
  font-size: 17px;
  color: #444;
  margin-bottom: 4px;
}

.vacancy-detail__spec {
  font-size: 14px;
  color: #777;
}

.vacancy-detail__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.vacancy-detail__tag {
  /* border: 1px solid #000; */
  color: #fff;
  border-radius: 5px;
  padding: 4px 12px;
  font-size: 14px;
  background: #2e3238;
}

.vacancy-detail__section-title {
  font-size: 18px;
  font-weight: 600;
  margin: 25px 0 10px;
  color: #000;
}

.vacancy-detail__desc {
  font-size: 15px;
  line-height: 1.6;
  color: #222;
}

/* Сброс инлайн-стилей из стороннего редактора (Word, Google Docs и пр.):
   приводим шрифт, размер и цвет всех потомков к стилю сайта. */
.vacancy-detail__desc,
.vacancy-detail__desc * {
  font-family: 'Nunito', sans-serif !important;
  font-size: 15px !important;
  color: #222 !important;
  background-color: transparent !important;
  line-height: 1.6 !important;
}

.vacancy-detail__desc b,
.vacancy-detail__desc strong,
.vacancy-detail__desc b *,
.vacancy-detail__desc strong * {
  font-weight: 700 !important;
}

.vacancy-detail__desc i,
.vacancy-detail__desc em,
.vacancy-detail__desc i *,
.vacancy-detail__desc em * {
  font-style: italic !important;
}

.vacancy-detail__desc ul,
.vacancy-detail__desc ol {
  padding-left: 20px;
  margin: 10px 0;
}

.vacancy-detail__map {
  width: 100%;
  height: 360px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
}

.vacancy-detail__map-address {
  font-size: 14px;
  color: #555;
  margin: 0 0 8px;
}

.vacancy-detail__back {
  display: inline-block;
  color: #0088cc;
  text-decoration: none;
  margin-bottom: 15px;
  font-size: 14px;
  align-self: flex-start;
}

.vacancy-detail__back:hover {
  text-decoration: underline;
}

/* ---------- Кнопка отклика (3 состояния) ---------- */
.apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    filter 0.2s ease,
    background-color 0.2s ease;
  min-width: 120px;
}

.apply-btn:hover {
  filter: brightness(0.95);
}

.apply-btn:disabled {
  cursor: default;
}

.apply-btn--idle {
  background-color: #0088cc;
  color: #fff;
}

.apply-btn--about {
  background-color: #2e3238;
  color: #fff;
}

.apply-btn--pending {
  background-color: #f5c400;
  color: #000;
  cursor: default;
}

.apply-btn--declined {
  background-color: #d92121;
  color: #000;
  cursor: default;
}

.apply-btn--seen {
  background-color: #c8f0d2;
  color: #1c5f31;
  cursor: default;
}

.apply-btn--lg {
  font-size: 15px;
  padding: 10px 15px;
  /* min-width: 220px; */
}

/* ---------- Боковые фильтры (поиск вакансий соискателя) ---------- */
.vacancy-filters {
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 20px 25px;
  margin: 0 0 20px;
}

.vacancy-filters__group {
  border: none;
  padding: 0;
  margin: 0 0 15px;
}

.vacancy-filters__group:last-of-type {
  margin-bottom: 0;
}

.vacancy-filters__legend {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 14px;
}

.vacancy-filters__option {
  display: block;
  margin: 4px 0;
  font-size: 14px;
  cursor: pointer;
}

.vacancy-filters__reset {
  margin-top: 15px;
  text-align: center;
}

.vacancy-filters__reset a {
  color: #0088cc;
  text-decoration: none;
  font-size: 14px;
}

.vacancy-filters__reset a:hover {
  text-decoration: underline;
}

.vacancy-search-results__title {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

.vacancy-search-form {
  display: flex;
  flex: 1;
  gap: 10px;
}

/* ---------- Блок «Уровень дохода» ---------- */
.salary-row {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.salary-input {
  width: 140px;
  padding: 10px 16px;
  font-size: 15px;
  border: 1.5px solid #000;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: #000;
  font-weight: 500;
}

.salary-input:focus {
  border-color: #0088cc;
}

.salary-input::placeholder {
  color: #8f8f8f;
  font-weight: 400;
}

.salary-type-wrapper {
  display: flex;
  gap: 10px;
}

.salary-type-btn {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid #000;
  border-radius: 6px;
  padding: 9px 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  user-select: none;
}

.salary-type-btn input {
  display: none;
}

.salary-type-btn.active {
  background: #0088cc;
  color: #fff;
  border-color: #0088cc;
}

.salary_field {
  width: 20%;
}

#full_address {
  box-sizing: border-box;
  padding-right: 5px;
}

.vacancy-disclaimer {
  margin: 6px 0 0 0;
  font-size: 12px;
  color: #888;
}

.vac-media--hidden {
  display: none;
}

.salary_type {
  padding: 10px 18px;
  margin: 0;
}

.salary_type p {
  font-size: 15px;
  font-weight: 500;
}

/* ---------- Блок «Ключевые навыки» (форма вакансии) ---------- */
.vac-skills__wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.vac-skills__wrapper:empty {
  margin-bottom: 0;
}

.vac-skills__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0088cc;
  color: #fff;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 14px;
}

.vac-skills__tag-remove {
  cursor: pointer;
  opacity: 0.85;
  font-weight: bold;
}

.vac-skills__tag-remove:hover {
  opacity: 1;
}

.vac-skills__input-wrap,
.vac-spec__input-wrap {
  position: relative;
  width: 100%;
}

.vac-skills__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #000;
  border-radius: 8px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 50;
  margin-top: 4px;
}

.vac-skills__dropdown-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
}

.vac-skills__dropdown-item:hover {
  background: #f0f9ff;
}

.vac-skills__dropdown-item--empty {
  color: #999;
  cursor: default;
}

/* ---------- Блок «Место работы» (Яндекс.Карты) ---------- */
.vac-map {
  border: 1px solid #d0d0d0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #fff;
}

.vac-map__search-wrap {
  padding: 10px;
  background: #fff;
}

.vac-map__search {
  width: 100%;
  height: 44px;
  padding: 0 12px 0 40px;
  border: none;
  border-radius: 8px;
  outline: none;
  background: #f3f3f3
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23808080' stroke-width='2'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>")
    no-repeat 12px center;
  background-size: 18px;
  font-size: 15px;
}

.vac-map__container {
  width: 100%;
  height: 360px;
  background: #eef0f1;
}

.vac-map__hide-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 5px 0;
}

.vac-map__hide-label {
  font-size: 15px;
  color: #000;
}

/* ---------- Прочие утилиты ---------- */
.search-empty {
  padding: 40px 20px;
  text-align: center;
  color: #777;
}

.profile-form__social-icon {
  width: 25px;
  height: 25px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

/* ============================================================
   Медиа-блок вакансии (форма редактирования):
   - баннер (одно изображение)
   - центральный/нижний слайдер (несколько изображений + DnD)
   - видео-ссылка
   Видимость карточки и групп задаёт vacancy.js
   (is-empty → вся карточка спрятана для Стандарта,
    is-visible → конкретная группа показана)
   ============================================================ */

/* Карточка всегда видима. Группы недоступные при текущем vac_type
   получают .is-locked (заблюренный preview + оверлей-тизер) вместо скрытия. */

.vac-media__hint {
  margin: -4px 0 18px;
  color: #777;
  font-size: 13px;
  line-height: 1.4;
}

.vac-media__group {
  position: relative;
  display: block;
  margin-bottom: 24px;
}

.vac-media__group:last-child {
  margin-bottom: 0;
}

/* Оверлей-тизер для недоступных групп: фростед-стекло поверх содержимого
   + иконка замка + подпись «Доступно при типе ...». Контент под ним
   слегка заблюрен и не кликается. */
.vac-media__lock-overlay {
  display: none;
}

.vac-media__group.is-locked > *:not(.vac-media__lock-overlay) {
  filter: blur(2px);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

.vac-media__group.is-locked .vac-media__lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 10px;
  text-align: center;
  pointer-events: auto;
}

.vac-media__lock-icon {
  font-size: 28px;
  color: #0088cc;
}

.vac-media__lock-text {
  font-size: 14px;
  font-weight: 600;
  color: #2e3238;
  max-width: 320px;
  line-height: 1.4;
}

.vac-media__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.vac-media__label-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #08c;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.vac-media__label-text {
  font-size: 15px;
  font-weight: 600;
  color: #000;
}

.vac-media__dropzone.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ---------- Баннер (одна картинка): широкий блок ---------- */
.vac-media__dropzone--single {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.vac-media__dropzone--single .vac-media__preview {
  width: 100%;
  aspect-ratio: 16 / 5;
  min-height: 150px;
}

.vac-media__dropzone--single .vac-media__pick {
  width: 100%;
  aspect-ratio: 16 / 5;
  min-height: 150px;
}

/* ---------- Слайдеры: единая сетка плиток (превью + «+») ---------- */
.vac-media__dropzone--multi {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

/* Грид-контейнер «растворяем» — его дочерние плитки попадают в основную сетку */
.vac-media__dropzone--multi .vac-media__grid {
  display: contents;
}

/* ---------- Плитка превью (стиль как у портфолио кандидата) ---------- */
.vac-media__preview {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: #f0f0f0;
  cursor: grab;
  user-select: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.vac-media__preview:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.vac-media__preview:active {
  cursor: grabbing;
}

.vac-media__preview.is-dragging {
  opacity: 0.4;
  transform: scale(0.97);
  box-shadow: none;
}

.vac-media__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  pointer-events: none;
}

/* Крестик удаления — в стиле .delete-btn из профиля кандидата */
.vac-media__del {
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 0 10px 0 10px;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
  transition: all 0.25s ease;
}

.vac-media__del:hover {
  background: rgba(220, 38, 38, 0.85);
  transform: scale(1.08);
}

.vac-media__del:active {
  transform: scale(0.95);
}

/* ---------- Кнопка «+» загрузки: такая же плитка, в той же сетке ---------- */
.vac-media__pick {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  background: linear-gradient(180deg, #f5fbff 0%, #eaf5fc 100%);
  border: 2px dashed #b8d1e2;
  color: #08c;
  text-align: center;
  cursor: pointer;
  padding: 14px;
  transition: all 0.2s ease;
}

.vac-media__pick:hover {
  background: linear-gradient(180deg, #eaf5fc 0%, #d9ecf7 100%);
  border-color: #08c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.15);
}

.vac-media__pick:active {
  transform: translateY(0);
  box-shadow: none;
}

.vac-media__pick.is-hidden {
  display: none;
}

.vac-media__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.vac-media__pick-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #08c;
  color: #fff;
  font-size: 24px;
  font-weight: 300;
  line-height: 38px;
  text-align: center;
  flex-shrink: 0;
}

.vac-media__pick-text {
  font-size: 13px;
  font-weight: 600;
  color: #08c;
}

.vac-media__pick-sub {
  font-size: 11px;
  color: #7a8b96;
  font-weight: 400;
  margin: 0;
  line-height: 1.3;
}

/* Для широкого баннера — иконка покрупнее */
.vac-media__dropzone--single .vac-media__pick-icon {
  width: 48px;
  height: 48px;
  font-size: 30px;
  line-height: 48px;
}

.vac-media__dropzone--single .vac-media__pick-text {
  font-size: 15px;
}

.vac-media__dropzone--single .vac-media__pick-sub {
  font-size: 13px;
}

/* ---------- Видео-ссылка ---------- */
.vac-media__video .input-field {
  width: 100%;
}

.vac-media__video .vac-media__pick-sub {
  margin-top: 8px;
}

/* iframe-превью: ширина — как у плитки слайдера, пропорция 16:9 (стандарт видео) */
.vac-media__video-preview {
  margin-top: 12px;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.vac-media__video-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.vac-media__video-status {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 500;
  min-height: 16px;
}

.vac-media__video-status.is-ok {
  color: #16a34a;
}

.vac-media__video-status.is-bad {
  color: #d92121;
}

/* ============================================================
   Подробная страница вакансии: 2-колоночный layout, медиа-блоки
   (баннер / слайдеры / видео по типу), правая карточка организации.
   Используется в mod_vacancy_public.php и mod_fp_vacancy.php.
   ============================================================ */

.vacancy-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}

.vacancy-page__main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* Шапка-карточка (на скрине — белая с рамкой, всё внутри в столбик) */
.vacancy-detail--head {
  margin-bottom: 0;
  border: none;
  background-color: #f9f9f9;
}

.vacancy-detail--head .vacancy-detail__header {
  margin-bottom: 0;
}

.vacancy-detail__head-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
}

.vacancy-detail__share {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  opacity: 0.55;
  transition: opacity 0.2s;
}

.vacancy-detail__share:hover {
  opacity: 1;
}

.vacancy-detail__share img {
  width: 24px;
  height: 24px;
  display: block;
}

.vac-share-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transition:
    opacity 0.25s,
    transform 0.25s;
  pointer-events: none;
  z-index: 9999;
}

.vac-share-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Блоки без рамки между шапкой и картой (skills, desc, map) */
.vacancy-detail__block {
  background: transparent;
  margin: 0;
  padding: 0;
}

.vacancy-detail__meta {
  font-size: 14px;
  color: #555;
  margin-top: 6px;
}

.vacancy-detail__meta strong {
  color: #000;
}

.vacancy-detail__meta--dim {
  color: #999;
}

.vacancy-detail__center-action {
  display: flex;
  justify-content: center;
  margin: 4px 0;
}

/* ---------- Баннер ---------- */
.vac-view-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #f0f0f0;
}

.vac-view-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Слайдеры просмотра (central / bottom) ---------- */
.vac-view-slider-center {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 5;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

.vac-view-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 5;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

.vac-view-slider--bottom {
  aspect-ratio: 16 / 9;
}

.vac-view-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.vac-view-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.vac-view-slider__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.vac-view-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vac-view-slider__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 20px;
}

.vac-view-slider__dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 0;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.vac-view-slider__dot:hover {
  background: rgba(255, 255, 255, 0.85);
}
.vac-view-slider__dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

/* ---------- Видео ---------- */
.vac-view-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

.vac-view-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Правая колонка ---------- */
.vac-side {
  align-self: start;
  /* position: sticky;
  top: 20px; */
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.vac-org-card {
  border-radius: 10px;
  padding: 20px;
  background: #f9f9f9;
  text-align: center;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  overflow: hidden;
  box-sizing: border-box;
}

.vac-org-card__logo {
  width: 100%;
  aspect-ratio: 1.4 / 1;
  /* background: #fff;
  border: 1px solid #e0e0e0; */
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  padding: 16px;
  box-sizing: border-box;
}

.vac-org-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

.vac-org-card__name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.25;
  color: #000;
}

.vac-org-card__author {
  font-size: 15px;
  /* border-top: 1px solid #eee; */
  padding-top: 14px;
  margin-top: 6px;
}

.vac-org-card__author-fio {
  font-weight: 600;
  margin-bottom: 4px;
  color: #000;
}

.vac-org-card__author-phone {
  color: #0088cc;
  text-decoration: none;
  font-weight: 600;
}

.vac-org-card__author-phone:hover {
  text-decoration: underline;
}

/* ---------- Блок «Другие вакансии компании» ---------- */
.vac-other {
  border-radius: 10px;
  padding: 16px;
  background: #f9f9f9;
}

.vac-other__title {
  text-align: center;
  font-size: 13px;
  color: #777;
  margin-bottom: 12px;
}

.vac-other__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vac-other__more {
  display: block;
  margin-top: 12px;
  padding: 8px 12px;
  text-align: center;
  font-size: 13px;
  color: #0088cc;
  text-decoration: none;
  border: 1px solid #d9e3ec;
  border-radius: 8px;
  transition: all 0.2s;
}

.vac-other__more:hover {
  background: #e6f2f8;
  border-color: #0088cc;
}

.vac-other__card {
  display: block;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  background: #fafafa;
}

.vac-other__card:hover {
  border-color: #0088cc;
  box-shadow: 0 2px 8px rgba(0, 136, 204, 0.12);
}

.vac-other__card-name {
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: #000;
}

/* Карточка с изображением: фото до краёв, название под фото по центру */
.vac-other__card--media {
  padding: 0;
}

.vac-other__card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eee;
}

.vac-other__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vac-other__card--media .vac-other__card-name {
  text-align: center;
}

/* === Архивированная (закрытая) вакансия === */

.vacancy-detail--archived .vacancy-detail__title,
.vacancy-detail--archived .vacancy-detail__salary,
.vacancy-detail--archived .vacancy-detail__meta {
  color: #9a9a9a;
}

.vacancy-detail--archived .vacancy-detail__tag {
  color: #9a9a9a;
  border-color: #d0d0d0;
  background: transparent;
}

.vacancy-closed-page {
  max-width: 760px;
  margin: 40px auto;
  padding: 0 20px;
}

.vacancy-closed__notice {
  margin-top: 0;
}

.vacancy-closed-btns {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.vacancy-closed__label {
  display: inline-block;
  background: #2e3238;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  padding: 10px 15px;
  border-radius: 5px;
}

.vacancy-closed__text {
  font-size: 14px;
  color: #000;
  margin: 0;
  font-weight: 600;
}

/* ---------- Кнопки принять/отклонить приглашение (страница вакансии) ---------- */
.invite-response-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.apply-btn--accept-invite {
  background-color: #0088cc;
  color: #fff;
}

.apply-btn--decline-invite {
  background-color: transparent;
  color: #555;
  border: 1.5px solid #ccc;
}

.apply-btn--decline-invite:hover {
  border-color: #999;
  color: #222;
  filter: none;
}

.invite-result {
  font-size: 15px;
  font-weight: 600;
  padding: 10px 0;
}

.invite-result--accept {
  color: #1a8a3a;
}

.invite-result--decline {
  color: #777;
}

/* Предупреждение о балансе в invite-модале — стили в style.css (.invite-modal-warn-*) */

/* ---------- Кнопка "Применить шаблон" ---------- */
.vacancies-search-nav__btn-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.vacancies-search-nav__search-btn--template {
  background-color: #6c757d;
  color: #fff;
}

.vacancies-search-nav__search-btn--template:hover {
  background-color: #5a6268;
}

/* ---------- Метка типа вакансии ---------- */
.vacancy-type-label {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ---- Фильтр менеджеров ---- */
.vacancies-filter-manager {
  width: 250px;
  position: relative;
}

.vacancies-filter-manager .dropdown-container {
  margin: 0;
}

.vacancies-filter-manager .dropdown-input {
  width: 100%;
  padding: 10px 36px 10px 14px;
  border: 1.5px solid #d6d6d6;
  border-radius: 5px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  cursor: pointer;
  box-sizing: border-box;
}

.vacancies-filter-manager .dropdown-input:focus {
  outline: none;
  border-color: #0088cc;
}

.vacancies-filter-manager .dropdown-input::placeholder {
  color: var(--text-muted);
}

.vacancies-filter-manager .dropdown-input::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #666;
  pointer-events: none;
}

.vacancies-filter-manager .dropdown-container.is-open .dropdown-input::after {
  border-top: none;
  border-bottom: 6px solid #666;
}

.vacancies-filter-manager .dropdown-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 4px 0 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  max-height: 260px;
  overflow-y: auto;
  z-index: 100;
}

.vacancies-filter-manager .dropdown-container.is-open .dropdown-list {
  display: block;
}

.vacancies-filter-manager .dropdown-list li {
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.vacancies-filter-manager .dropdown-list li:hover {
  background: #f0f4f8;
}

.vacancies-filter-manager .dropdown-list li.selected {
  background: #e6f3ff;
  color: #0088cc;
  font-weight: 600;
}

/* Дропдаун города в фильтрах поиска вакансий */
.vacancy-filters .dropdown-container {
  margin: 0;
  position: relative;
}

.vacancy-filters .dropdown-input {
  width: 100%;
  padding: 10px 36px 10px 14px;
  border: 1.5px solid #d6d6d6;
  border-radius: 5px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  cursor: pointer;
  box-sizing: border-box;
}

.vacancy-filters .dropdown-input:focus {
  outline: none;
  border-color: #0088cc;
}

.vacancy-filters .dropdown-input::placeholder {
  color: var(--text-muted);
}

.vacancy-filters .dropdown-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 4px 0 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  max-height: 260px;
  overflow-y: auto;
  z-index: 100;
}

.vacancy-filters .dropdown-list li {
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.vacancy-filters .dropdown-list li:hover {
  background: #f0f4f8;
}

.vacancy-filters .dropdown-list li.selected {
  background: #e6f3ff;
  color: #0088cc;
  font-weight: 600;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1300px) {
  .vacancies-search-section {
    padding: 0 80px;
  }
}

@media (max-width: 1100px) {
  .vacancies-search-section {
    padding: 0 15px;
  }

  .vacancy-page__layout {
    gap: 15px;
  }
}

@media (max-width: 1000px) {
  .vacancy-page__layout {
    grid-template-columns: 1fr;
  }

  .vac-side {
    position: static;
  }

  .vac-other__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .vac-org-card {
    height: auto !important;
  }

  .vac-org-card__logo {
    width: 180px;
    height: 180px;
    padding: 0;
  }

  .vac-org-card__author {
    padding-top: 0;
    margin-top: 0;
  }
}

@media (max-width: 600px) {
  .vacancy-detail__title {
    font-size: 24px;
  }

  .vacancy-detail__salary {
    font-size: 20px;
  }

  .vacancy-detail {
    padding: 15px;
  }

  .vac-other__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .vacancy-detail {
    padding: 10px;
  }

  .vacancy-detail__section-title {
    font-size: 16px;
  }
}

/* Дропдаун в модалке передачи вакансии */
.invite-modal-body .dropdown-container {
  position: relative;
  margin: 0;
}

.invite-modal-body {
  min-height: 200px;
}

.invite-modal-body .dropdown-input {
  width: 100%;
  padding: 10px 36px 10px 14px;
  border: 1.5px solid #d6d6d6;
  border-radius: 5px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  cursor: pointer;
  box-sizing: border-box;
}

.invite-modal-body .dropdown-input:focus {
  outline: none;
  border-color: #0088cc;
}

.invite-modal-body .dropdown-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid #d6d6d6;
  border-top: none;
  border-radius: 0 0 5px 5px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
  list-style: none;
  margin: 0;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.invite-modal-body .dropdown-list li {
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
}

.invite-modal-body .dropdown-list li:hover {
  background: #f0f7ff;
}

.invite-modal-body .dropdown-list li.selected {
  background: #e6f0fa;
  font-weight: 600;
}

@media (max-width: 360px) {
  .apply-btn {
    min-width: auto;
  }

  .vacancy-detail__head-actions {
    gap: 10px;
  }

  .apply-btn--lg {
    font-size: 14px;
    padding: 10px;
  }
}
