.ydx-jobs,
.ydx-jobs * {
  box-sizing: border-box;
}

.ydx-jobs {
  --ydx-bg: #efefef;
  --ydx-card: #f7f7f8;
  --ydx-border: #e4e6eb;
  --ydx-text: #1f2024;
  --ydx-subtext: #5e636d;
  --ydx-accent: #ff4a2b;
  --ydx-dark: #20232a;
  --ydx-chip: #edeef2;
  --ydx-yellow: #f7d733;

  max-width: 1700px;
  margin: 28px auto;
  padding: clamp(14px, 2vw, 26px);
  border-radius: 26px;
  background: var(--ydx-bg);
  color: var(--ydx-text);
  font-family: "Segoe UI", Arial, sans-serif;
}

.ydx-jobs__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: clamp(16px, 2vw, 24px);
}

.ydx-jobs__title {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(2rem, 4.6vw, 4.6rem);
  line-height: 0.9;
  font-weight: 900;
}

.ydx-jobs__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  background: var(--ydx-yellow);
  padding: 10px 14px;
  font-size: clamp(0.95rem, 1.05vw, 1.15rem);
  font-weight: 700;
  color: #111319;
}

.ydx-jobs__brand strong {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #1f2128;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  line-height: 1;
}

.ydx-jobs__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ydx-job-card {
  border-radius: 20px;
  border: 1px solid var(--ydx-border);
  background: var(--ydx-card);
  padding: clamp(14px, 1.2vw, 18px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 500px;
  box-shadow: 0 2px 6px rgba(18, 21, 29, 0.04);
  opacity: 0;
  transform: translateY(10px);
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.ydx-job-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ydx-job-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ydx-job-card__logo {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  flex-shrink: 0;
  background: var(--ydx-accent);
  color: #fff;
  font-size: 2.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ydx-job-card__chips {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-end;
}

.ydx-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ydx-chip);
  color: #22262f;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.ydx-job-card__title {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(1.08rem, 1.35vw, 1.9rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0.004em;
  word-break: break-word;
}

.ydx-job-card__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #2f333b;
  font-size: clamp(0.91rem, 0.87vw, 1.01rem);
  line-height: 1.3;
}

.ydx-job-card__bottom {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ydx-job-card__count {
  margin: 0;
  line-height: 1;
  min-width: 0;
}

.ydx-job-card__count strong {
  display: block;
  font-size: clamp(1.52rem, 1.45vw, 1.95rem);
  font-weight: 900;
  text-transform: uppercase;
}

.ydx-job-card__count span {
  display: block;
  margin-top: 4px;
  color: #343941;
  font-size: clamp(0.9rem, 0.82vw, 1rem);
  line-height: 1.2;
  font-weight: 600;
}

.ydx-job-card__button {
  text-decoration: none;
  border-radius: 10px;
  border: 2px solid #353841;
  background: var(--ydx-dark);
  color: #fff;
  min-height: 46px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.98rem, 0.9vw, 1.1rem);
  line-height: 1;
  font-weight: 800;
  max-width: 100%;
  white-space: nowrap;
  transition: transform 0.14s ease, background 0.14s ease;
}

.ydx-job-card__button:hover {
  transform: translateY(-1px);
  background: #2b2f38;
}

@media (max-width: 1560px) {
  .ydx-jobs__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ydx-job-card {
    min-height: 0;
  }
}

@media (max-width: 1120px) {
  .ydx-jobs__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ydx-jobs {
    border-radius: 18px;
    padding: 12px;
  }

  .ydx-jobs__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ydx-jobs__grid {
    grid-template-columns: 1fr;
  }

  .ydx-job-card {
    border-radius: 16px;
  }

  .ydx-job-card__bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .ydx-job-card__button {
    width: 100%;
  }
}
