/* Каталог вакансий и страница вакансии (дизайн перенесён с bitex). */

.cat-page,
.vd {
  background: #fff;
  color: #111;
}

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

.cat-cta,
.vd-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1.15rem;
  background: #111;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  box-sizing: border-box;
}
.cat-cta:hover,
.vd-cta:hover {
  background: #fff;
  color: #111;
  outline: 1px solid #111;
}
.cat-cta--outline,
.vd-cta--outline {
  background: transparent;
  color: #111;
  outline: 1px solid #111;
}
.cat-cta--outline:hover,
.vd-cta--outline:hover {
  background: #111;
  color: #fff;
}
.cat-cta--block {
  display: flex;
  width: 100%;
}
.vd-cta--wide {
  width: 100%;
  padding: 0.85rem 1.15rem;
}

/* ---------- Каталог: шапка ---------- */

.cat-hero {
  display: grid;
  grid-template-columns: 1fr;
  background: #f0f0ee;
  border-bottom: 1px solid #e8e8e6;
}
@media (min-width: 1024px) {
  .cat-hero {
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.9fr);
  }
}

.cat-hero__left {
  background: #fff;
  border-bottom: 1px solid #e8e8e6;
}
@media (min-width: 1024px) {
  .cat-hero__left {
    border-bottom: none;
    border-right: 1px solid #e8e8e6;
  }
}

.cat-hero__title {
  margin: 0;
  padding: 2.5rem 1.25rem 1.5rem;
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: #111;
}
@media (min-width: 1024px) {
  .cat-hero__title {
    padding: 3.5rem 2.5rem 2rem;
  }
}

.cat-hero__count {
  margin: 0;
  padding: 0 1.25rem 1.5rem;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a9a96;
}
@media (min-width: 1024px) {
  .cat-hero__count {
    padding: 0 2.5rem 2rem;
  }
}

.cat-hero__right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
  padding: 2rem 1.25rem 1.5rem;
  background: #f0f0ee;
}
@media (min-width: 1024px) {
  .cat-hero__right {
    padding: 3.5rem 1.75rem 1.5rem;
  }
}

.cat-hero__copy {
  margin: 0;
  max-width: 22rem;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: #111;
}

.cat-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.cat-search {
  display: flex;
  flex: 1 1 100%;
}
.cat-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid #dddcd8;
  border-right: none;
  border-radius: 0;
  padding: 0.7rem 0.9rem;
  font-size: 0.875rem;
  outline: none;
  background: #fff;
}
.cat-search input:focus {
  border-color: #111;
}

/* ---------- Каталог: сетка карточек ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .cat-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.cat-card {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #e8e8e6;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: background 0.2s ease;
}
@media (min-width: 640px) and (max-width: 1023px) {
  .cat-card:nth-child(odd) { border-right: 1px solid #e8e8e6; }
}
@media (min-width: 1024px) {
  .cat-card { border-right: 1px solid #e8e8e6; }
  .cat-card:nth-child(3n) { border-right: none; }
}
.cat-card:hover { background: #f7f7f5; }

.cat-card__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #ececec;
}
.cat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.cat-card:hover .cat-card__media img {
  transform: scale(1.02);
}
.cat-card__placeholder {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: #9a9a96;
}
.cat-card__badge,
.vd-media__badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.35rem 0.65rem;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111;
  z-index: 1;
}
.cat-card__body {
  padding: 1.15rem 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.cat-card__name {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #111;
}
.cat-card__meta {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #111;
}
.cat-card__text {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #5c5c5c;
}
.cat-card__cta {
  margin-top: auto;
  padding-top: 1rem;
}

.cat-empty {
  padding: 5rem 1.25rem;
  text-align: center;
}
.cat-empty__title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #111;
}
.cat-empty__text {
  margin: 0 auto 1.75rem;
  max-width: 26rem;
  color: #5c5c5c;
  line-height: 1.5;
}

/* ---------- Постраничная навигация ---------- */

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 3rem;
  border-top: 1px solid #e8e8e6;
  background: #fff;
}
.catalog-pagination__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #dddcd8;
  color: #111;
  flex-shrink: 0;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.catalog-pagination__arrow:hover {
  border-color: #111;
  background: #f0f0ee;
}
.catalog-pagination__arrow--prev { margin-right: 1rem; }
.catalog-pagination__arrow--next { margin-left: 1rem; }
.catalog-pagination__arrow--next svg { transform: rotate(180deg); }
.catalog-pagination__arrow--disabled {
  color: #c5c5c1;
  border-color: #eee;
  opacity: 0.7;
  pointer-events: none;
}
.catalog-pagination__pages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}
.catalog-pagination__page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #9a9a96;
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.catalog-pagination__page:hover { color: #111; }
.catalog-pagination__page--active {
  color: #111;
  border-color: #111;
}

/* ---------- Модальные окна (фильтры, отклик) ---------- */

.vd-modal {
  position: relative;
  width: 100%;
  max-width: 36rem;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #dddcd8;
  padding: 2rem 1.5rem 1.75rem;
  color: #111;
}
.vd-modal--narrow { max-width: 28rem; }
@media (min-width: 640px) {
  .vd-modal { padding: 2.25rem 2rem 2rem; }
}
.vd-modal__close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #dddcd8;
  background: #fff;
  color: #5c5c5c;
  font-size: 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.vd-modal__close:hover {
  border-color: #111;
  color: #111;
}
.vd-modal__kicker {
  margin: 0 0 0.75rem;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a9a96;
}
.vd-modal__title {
  margin: 0;
  padding-right: 2rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #111;
}
.vd-modal__copy {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #5c5c5c;
}

.vd-alert {
  margin: 1.25rem 0 0;
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  border: 1px solid #dddcd8;
}
.vd-alert--ok {
  background: #eef7f0;
  border-color: #b7d9c0;
  color: #1f6b3a;
}
.vd-alert--err {
  background: #fdf0f0;
  border-color: #e4b4b4;
  color: #9b2c2c;
}

.vd-form {
  margin-top: 1.5rem;
}
.vd-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #111;
}
.vd-form input[type="text"],
.vd-form input[type="email"],
.vd-form input[type="tel"],
.vd-form textarea,
.vd-form select {
  width: 100%;
  border: 1px solid #dddcd8 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  color: #111;
  outline: none;
  box-sizing: border-box;
}
.vd-form input:focus,
.vd-form textarea:focus,
.vd-form select:focus {
  border-color: #111 !important;
}
.vd-form input[type="checkbox"] {
  border-radius: 0 !important;
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.vd-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .vd-form__grid { grid-template-columns: 1fr 1fr; }
  .vd-form__full { grid-column: 1 / -1; }
}
.vd-form__error {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: #9b2c2c;
}
.vd-form__consent {
  display: flex !important;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1.1rem;
  font-size: 0.8rem !important;
  font-weight: 400 !important;
  color: #5c5c5c !important;
}
.vd-form__consent a {
  color: #111;
  text-decoration: underline;
}
.vd-form__note {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: #9a9a96;
}
.vd-form__actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
@media (min-width: 640px) {
  .vd-form__actions {
    flex-direction: row;
    justify-content: flex-end;
  }
}

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

.vd-hero {
  display: grid;
  grid-template-columns: 1fr;
  background: #f0f0ee;
  border-bottom: 1px solid #e8e8e6;
}
@media (min-width: 1024px) {
  .vd-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    min-height: calc(100svh - 60px);
  }
}

.vd-media {
  position: relative;
  background: #ececec;
  min-height: 280px;
  border-bottom: 1px solid #e8e8e6;
}
@media (min-width: 1024px) {
  .vd-media {
    border-bottom: none;
    border-right: 1px solid #e8e8e6;
    min-height: 0;
  }
}
.vd-media__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}
@media (min-width: 1024px) {
  .vd-media__img {
    position: absolute;
    inset: 0;
    min-height: 100%;
  }
}
.vd-media__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  height: 100%;
  color: #9a9a96;
  font-size: 0.9rem;
}
@media (min-width: 1024px) {
  .vd-media__badge {
    top: 1.25rem;
    left: 1.75rem;
  }
}

.vd-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem 1.25rem;
  background: #f0f0ee;
}
@media (min-width: 1024px) {
  .vd-aside {
    padding: 2.5rem 1.75rem 2rem;
  }
}

.vd-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a9a96;
  text-decoration: none;
  transition: color 0.2s ease;
}
.vd-back:hover { color: #111; }

.vd-title {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #111;
}

.vd-salary {
  margin: 1rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  color: #111;
}
.vd-salary span {
  font-size: 0.95rem;
  font-weight: 500;
  color: #5c5c5c;
}

.vd-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #dddcd8;
  background: #fff;
  margin: 0 -1.25rem;
  padding: 0 1.25rem;
}
@media (min-width: 1024px) {
  .vd-list {
    margin: 0 -1.75rem;
    padding: 0 1.75rem;
  }
}
.vd-list__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1.15rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid #dddcd8;
}
.vd-list__num {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: #9a9a96;
  padding-top: 0.15rem;
}
.vd-list__label {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a9a96;
}
.vd-list__value {
  margin: 0.25rem 0 0;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111;
  line-height: 1.3;
}

.vd-faq {
  border-top: 1px solid #111;
  margin-top: 0.5rem;
}
.vd-faq details {
  border-bottom: 1px solid #111;
}
.vd-faq summary {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  list-style: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
  user-select: none;
}
.vd-faq summary::-webkit-details-marker { display: none; }
.vd-faq__icon {
  display: flex;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid #111;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.vd-faq details[open] .vd-faq__icon {
  transform: rotate(45deg);
}
.vd-faq__body {
  padding: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #5c5c5c;
}
.vd-faq__body p { margin: 0 0 0.5rem; }
.vd-faq__muted { color: #9a9a96; }

/* ---------- Другие вакансии ---------- */

.vd-related {
  display: grid;
  grid-template-columns: 1fr;
  background: #f0f0ee;
  border-top: 1px solid #e8e8e6;
}
@media (min-width: 1024px) {
  .vd-related {
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.65fr);
  }
}
.vd-related__aside {
  padding: 2rem 1.25rem 1.5rem;
  border-bottom: 1px solid #e8e8e6;
}
@media (min-width: 1024px) {
  .vd-related__aside {
    padding: 2.75rem 1.75rem 1.5rem;
    border-bottom: none;
    border-right: 1px solid #e8e8e6;
  }
}
.vd-related__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #111;
}
.vd-related__copy {
  margin: 0 0 1.25rem;
  max-width: 20rem;
  font-size: 1.05rem;
  line-height: 1.45;
  color: #111;
}
.vd-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
}
@media (min-width: 640px) {
  .vd-related__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1280px) {
  .vd-related__grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.vd-related__card {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #e8e8e6;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}
@media (min-width: 640px) {
  .vd-related__card { border-right: 1px solid #e8e8e6; }
  .vd-related__card:nth-child(2n) { border-right: none; }
}
@media (min-width: 1280px) {
  .vd-related__card:nth-child(2n) { border-right: 1px solid #e8e8e6; }
  .vd-related__card:nth-child(4n) { border-right: none; }
}
.vd-related__card:hover { background: #f7f7f5; }
.vd-related__media {
  aspect-ratio: 1;
  overflow: hidden;
  background: #ececec;
}
.vd-related__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.vd-related__card:hover .vd-related__media img {
  transform: scale(1.02);
}
.vd-related__body {
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.vd-related__name {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #111;
}
.vd-related__meta {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #111;
}
.vd-related__cta {
  margin-top: auto;
  padding-top: 0.85rem;
}
