/* Страница новостей — макеты Figma Desktop 15:461 / Tablet 15:911 / Mobile 15:1361 */

#container.job-shell .job-hero__title {
  font-family: "Geist:Bold", "Geist", Inter, ui-sans-serif, system-ui, sans-serif;
}

#container.job-shell .job-hero__lead {
  font-family: "Geist:Medium", "Geist", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
}

@media (max-width: 799px) {
  #container.job-shell .job-header {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  #container.job-shell .job-nav {
    display: flex;
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    column-gap: 20px;
    row-gap: 8px;
  }

  #container.job-shell .job-menu {
    display: none;
  }
}

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

.job-footcol span.job-footcol__here {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: rgba(0, 0, 0, 0.52);
  cursor: default;
}

/* ——— Блок списка ——— */
.ep-news-main {
  width: 100%;
  scroll-margin-top: 96px;
}

.ep-news-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 24px 0;
}

@media (min-width: 800px) {
  .ep-news-wrap {
    padding: 80px 32px 0;
  }
}

@media (min-width: 1280px) {
  .ep-news-wrap {
    padding: 80px 64px 0;
  }
}

.ep-news-summary-title {
  margin: 0 0 24px;
  font-family: "Geist:Bold", "Geist", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--job-text);
}

@media (min-width: 1280px) {
  .ep-news-summary-title {
    font-size: 36px;
    letter-spacing: -0.02em;
  }
}

.ep-news-summary-title .muted {
  color: var(--job-muted);
  font-weight: 700;
}

.ep-news-summary-title__lead {
  font-weight: 700;
}

.ep-news-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px 0;
}

@media (min-width: 1280px) {
  .ep-news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: start;
    padding: 40px 0;
  }

  .ep-news-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .ep-news-card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .ep-news-card:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
  }

  .ep-news-card:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }

  .ep-news-card:nth-child(5) {
    grid-column: 1;
    grid-row: 3;
  }
}

.ep-news-card {
  margin: 0;
}

.ep-news-card__hit {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--job-radius-lg);
  box-shadow: var(--job-shadow-card);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s ease;
}

.ep-news-card__hit:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.ep-news-card__media {
  position: relative;
  width: 100%;
  height: 213px;
  overflow: hidden;
  background: #f5f5f5;
}

@media (min-width: 800px) {
  .ep-news-card__media {
    height: min(448px, 52vw);
    max-height: 448px;
  }
}

@media (min-width: 1280px) {
  .ep-news-card__media {
    height: 360px;
    max-height: none;
  }
}

.ep-news-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ep-news-card__media--tall img {
  height: 147%;
  top: 0;
  object-fit: cover;
}

.ep-news-card__body {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 24px 16px;
}

@media (min-width: 800px) {
  .ep-news-card__body {
    padding: 24px;
  }
}

.ep-news-card__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ep-news-card__title {
  margin: 0;
  font-family: "Inter:Semi Bold", "Inter", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--job-text);
}

@media (min-width: 800px) {
  .ep-news-card__title {
    font-size: 24px;
    letter-spacing: -0.02em;
  }
}

.ep-news-card__text time {
  font-family: "Inter:Medium", "Inter", ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--job-muted);
}

.ep-news-card__cta {
  font-family: "Inter:Medium", "Inter", ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--job-text);
}

/* Карта перед футером (как на странице вакансий) */
.ep-news-contact.job-contact {
  padding: 52px 24px 36px;
  scroll-margin-top: 96px;
}

@media (min-width: 800px) {
  .ep-news-contact.job-contact {
    padding: 103px 24px 36px;
  }
}

@media (min-width: 1280px) {
  .ep-news-contact.job-contact {
    padding: 120px 64px 36px;
  }
}

#container.job-shell .ep-news-contact .ep-yandex-map-root,
#container.ep-news-article-shell .ep-news-contact .ep-yandex-map-root {
  border-radius: var(--job-radius-lg);
}
