.jobs-list [hidden], .jobs-detail [hidden] { display: none !important; }
.jobs-list, .jobs-detail { min-width: 0; font-family: var(--font); color: var(--main-text-color); }
.jobs-list h2, .jobs-detail h2 { margin: 0 0 32px; font-family: var(--h-font); font-size: 64px; font-weight: 400; line-height: 1.05; text-transform: uppercase; overflow-wrap: anywhere; }
.jobs-hero { padding-bottom: 48px; }
.jobs-hero h1 { margin: 0; color: var(--primary-color); font-family: var(--h-font); font-size: clamp(40px, 6vw, 88px); font-weight: 400; line-height: 1.05; text-transform: uppercase; overflow-wrap: anywhere; }
.jobs-lead { margin: 24px 0 0; font-size: 18px; line-height: 1.55; }
.jobs-section { margin-top: 96px; }
.jobs-panel, .jobs-card { padding: 36px; background: #fff; border-radius: var(--ds-r-surface); min-width: 0; }
.jobs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--grid-gap); }
.jobs-card { display: flex; flex-direction: column; color: var(--main-text-color); text-decoration: none; overflow-wrap: anywhere; }
.jobs-card h3 { margin: 0 0 12px; color: var(--ds-link); font-family: var(--h-font); font-size: 30px; font-weight: 400; line-height: 1.15; text-transform: uppercase; }
.jobs-card h3 a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.jobs-card h3 a:hover, .jobs-card h3 a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.jobs-card p { margin: 0 0 12px; font-size: 16px; line-height: 1.65; }
.jobs-card__salary { font-weight: 600; }
.jobs-card .jobs-card__meta { color: var(--ds-muted); font-size: 14px; }
.jobs-card__action { display: flex; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 20px; color: var(--ds-link); font-size: 14px; font-weight: 600; }
.jobs-card:hover h3, .jobs-card:hover .jobs-card__action { text-decoration: underline; text-underline-offset: 3px; }
.jobs-description, .jobs-apply { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; }
.jobs-description h2, .jobs-apply h2 { font-size: 48px; }
.jobs-description p, .jobs-apply p, .jobs-status p, .jobs-description li { font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.jobs-description__body { min-width: 0; overflow-wrap: anywhere; }
.jobs-description__body > :first-child, .jobs-apply p:first-child, .jobs-status p:first-child { margin-top: 0; }
.jobs-description__body > :last-child { margin-bottom: 0; }
.jobs-description__body h2, .jobs-description__body h3, .jobs-description__body h4 { margin: 32px 0 20px; font-family: var(--h-font); font-size: 30px; font-weight: 400; text-transform: uppercase; }
.jobs-detail .jobs-description__body ul { padding-left: 24px; list-style: disc; }
.jobs-detail .jobs-description__body ol { padding-left: 24px; list-style: decimal; }
.jobs-detail .jobs-description__body li { padding: 0; margin: 0; }
.jobs-detail .jobs-description__body li + li { margin-top: 12px; }
.jobs-detail .jobs-description__body li::before { content: none; display: none; }
.jobs-grid > .jobs-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.jobs-description__body a { color: var(--ds-link); text-decoration: underline; text-underline-offset: 3px; }
.jobs-facts { margin: 24px 0 0; }
.jobs-facts div + div { margin-top: 16px; }
.jobs-facts dt { font-size: 14px; color: var(--ds-muted); line-height: 1.5; }
.jobs-facts dd { margin: 4px 0 0; font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.jobs-apply h2 { color: var(--primary-color); }
.jobs-list .jobs-button, .jobs-detail .jobs-button { min-height: 44px; max-width: 100%; white-space: normal; text-align: center; line-height: 1.5; border-radius: var(--ds-r-pill); }
.jobs-card__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; }
.jobs-card__actions .jobs-button { flex: 0 1 auto; width: auto; padding: 10px 22px; }
.jobs-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ds-link); font-weight: 600; text-decoration: none; }
.jobs-link:hover, .jobs-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.jobs-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.jobs-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; margin: 0 0 28px; }
.jobs-filter { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 180px; max-width: 260px; font-size: 14px; color: var(--ds-muted); }
.jobs-filter select:focus-visible,
.jobs-filter-reset:focus-visible,
.vacancy-content-header__button:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
.jobs-filter select { min-height: 44px; width: 100%; padding: 8px 12px; box-sizing: border-box; border: 1px solid var(--ds-border, #d9d9d9); border-radius: var(--ds-r-control, 8px); background: #fff; color: var(--main-text-color); font: inherit; font-size: 16px; }
.jobs-filter-reset { flex: 0 0 auto; min-height: 44px; padding: 10px 22px; }
.jobs-count { margin: 0 0 16px; font-size: 16px; color: var(--ds-muted); }
.jobs-no-match { margin: 0 0 24px; }
.jobs-fallback { margin-top: 32px; }
.jobs-fallback h3 { margin: 0 0 8px; font-family: var(--h-font); font-size: 28px; font-weight: 400; text-transform: uppercase; }
.jobs-related__action { margin-top: 32px; text-align: center; }
.jobs-list a:focus-visible, .jobs-detail a:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 3px; }
@media (max-width: 1199px) {
    .jobs-list h2, .jobs-detail h2 { font-size: 40px; }
    .jobs-section { margin-top: 64px; }
    .jobs-panel, .jobs-card { padding: 24px; }
    .jobs-description, .jobs-apply { gap: 32px; }
    .jobs-card h3 { font-size: 24px; }
}
@media (max-width: 767px) {
    .jobs-grid, .jobs-description, .jobs-apply { grid-template-columns: minmax(0, 1fr); }
    .jobs-hero { padding-bottom: 32px; }
    .jobs-list .jobs-button, .jobs-detail .jobs-button { width: 100%; padding: 15px 20px; }
    .jobs-card__actions { flex-direction: column; align-items: stretch; }
    .jobs-card__actions .jobs-link { justify-content: center; }
    .jobs-filter { flex: 1 1 100%; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    .jobs-list *, .jobs-detail * { animation: none; transition: none; }
}

/* Approved exception: hh.ru vacancies widget */
.jobs-widget__frame { min-height: 220px; }
.jobs-widget__note { margin: 12px 0 0; color: var(--ds-muted); font-size: 14px; line-height: 1.5; }
.jobs-widget__load { min-height: 44px; }
.jobs-widget__frame iframe { display: block; width: 100% !important; max-width: 100%; border: 0; }
.jobs-widget__fallback { margin: 20px 0 0; font-size: 16px; }
.jobs-widget__fallback a { color: var(--ds-link); }
@media (max-width: 767px) {
    .jobs-widget__frame iframe { height: 640px !important; }
}

/* hh.ru widget: automatic load after consent, consent prompt and empty state */
.jobs-widget__consent { margin: 16px 0 0; }
.jobs-widget__consent p { margin: 0 0 12px; }
.jobs-widget__empty { margin-top: 16px; }
.jobs-widget__empty-title { margin: 0 0 8px; font-family: var(--h-font); font-size: 24px; text-transform: uppercase; }
.jobs-widget__empty a { color: var(--ds-link); }
