.vacancy-card {
  width: 100%;
  height: 380px;
  min-height: 0;
}


/* ===========================
    Header
=========================== */

.vacancy-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;

  min-height: 28px;
}

.vacancy-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;

  min-width: 0;
}

.vacancy-card__badge,
.vacancy-card__source {
  display: inline-flex;
  align-items: center;

  min-height: 26px;
  padding: 0 11px;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 700;
  line-height: 1;

  white-space: nowrap;
}

.vacancy-card__badge {
  color: #0e8ddb;
  background: #eaf7ff;
}

.vacancy-card__source {
  color: #475569;
  background: #f3f6fa;
}

.vacancy-card__source--hh,
.vacancy-card__source--enbek {
  color: #0e8ddb;
  background: #eef6fd;
}

.vacancy-card__company {
  display: -webkit-box;

  flex: 0 1 46%;
  max-width: 46%;

  overflow: hidden;

  color: #64748b;

  font-size: 12px;
  line-height: 1.35;

  text-align: right;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}


/* ===========================
    Title
=========================== */

.vacancy-card__title {
  display: -webkit-box;

  margin: 0;

  overflow: hidden;
  overflow-wrap: anywhere;

  color: #111827;

  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}


/* ===========================
    Location
=========================== */

.vacancy-card__location {
  display: flex;
  align-items: center;
  gap: 6px;

  min-width: 0;

  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}

.vacancy-card__location-icon {
  flex: 0 0 auto;

  width: 15px;
  height: 15px;

  object-fit: contain;
}

.vacancy-card__location > span {
  min-width: 0;

  overflow: hidden;

  white-space: nowrap;
  text-overflow: ellipsis;
}


/* ===========================
    Salary
=========================== */

.vacancy-card__salary {
  overflow-wrap: anywhere;

  color: #111827;

  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
}


/* ===========================
    Skills
=========================== */

.vacancy-card__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;

  max-height: 64px;

  overflow: hidden;
}

.vacancy-card__skills span {
  display: inline-flex;
  align-items: center;

  min-height: 30px;
  padding: 6px 12px;

  color: #111827;
  background: #f3f6fa;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 600;
}


/* ===========================
    Description
=========================== */

.vacancy-card__description {
  display: -webkit-box;

  overflow: hidden;

  color: #4b5563;

  font-size: 14px;
  line-height: 1.5;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}


/* ===========================
    AI Match
=========================== */

.vacancy-card__match {
  margin-top: auto;
}

.vacancy-card__match-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 8px;
}

.vacancy-card__match small {
  color: #64748b;

  font-size: 12px;
}

.vacancy-card__match strong {
  color: #0e8ddb;

  font-size: 18px;
}

.vacancy-card__match .vacancy-card__match-status {
  color: #64748b;

  font-size: 13px;
}

.vacancy-card__progress {
  width: 100%;
  height: 6px;

  overflow: hidden;

  background: #ececec;

  border-radius: 999px;
}

.vacancy-card__progress-bar {
  height: 100%;

  background: var(--color-primary);

  border-radius: inherit;
}


/* ===========================
    Footer
=========================== */

.vacancy-card__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  margin-top: auto;
}

.vacancy-card__match + .vacancy-card__footer {
  margin-top: 0;
}


/* ===========================
    Tablet
=========================== */

@media (max-width: 768px) {
  .vacancy-card {
    height: auto;
    min-height: 340px;
  }

  .vacancy-card__header {
    flex-direction: column;
  }

  .vacancy-card__company {
    flex-basis: auto;

    max-width: 100%;

    text-align: left;
  }

  .vacancy-card__title,
  .vacancy-card__salary {
    font-size: 21px;
  }
}


/* ===========================
    Mobile
=========================== */

@media (max-width: 480px) {
  .vacancy-card {
    min-height: 320px;
  }

  .vacancy-card__title,
  .vacancy-card__salary {
    font-size: 20px;
  }

  .vacancy-card__skills {
    gap: 6px;
  }

  .vacancy-card__skills span {
    min-height: 28px;
    padding: 5px 10px;

    font-size: 12px;
  }

  .vacancy-card__description {
    font-size: 14px;
  }
}