.rabota-head-page {
  --head-page-bg: #f3f5fb;
  --head-page-surface: #ffffff;
  --head-page-surface-muted: #eef3fb;
  --head-page-border: rgba(24, 41, 104, 0.1);
  --head-page-primary: #182968;
  --head-page-primary-soft: rgba(24, 41, 104, 0.08);
  --head-page-text: #24324d;
  --head-page-text-muted: #5e6f8d;
  --head-page-accent: #c72c30;
  --head-page-radius-xl: 30px;
  --head-page-radius-lg: 22px;
  --head-page-radius-md: 18px;
  --head-page-shadow-lg: 0 26px 60px rgba(24, 41, 104, 0.12);
  --head-page-shadow-md: 0 14px 36px rgba(24, 41, 104, 0.1);
}

.rabota-head-page main,
.rabota-head-page .main-content {
  display: block;
}

.rabota-head-page .head-page {
  background:
    radial-gradient(circle at top left, rgba(199, 44, 48, 0.08), transparent 26%),
    radial-gradient(circle at top right, rgba(24, 41, 104, 0.08), transparent 28%),
    linear-gradient(180deg, #f8f9fc 0%, var(--head-page-bg) 100%);
  color: var(--head-page-text);
}

.rabota-head-page .head-page__section {
  padding: 44px 0;
}

.rabota-head-page .head-page__hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 36px;
}

.rabota-head-page .head-page__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(24, 41, 104, 0.08), transparent 40%),
    linear-gradient(315deg, rgba(199, 44, 48, 0.07), transparent 32%);
  pointer-events: none;
}

.rabota-head-page .head-page__hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.rabota-head-page .head-page__hero-main,
.rabota-head-page .head-page__hero-aside,
.rabota-head-page .head-page__card,
.rabota-head-page .head-page__timeline-item,
.rabota-head-page .head-page__feature,
.rabota-head-page .head-page__contact-card,
.rabota-head-page .head-page__info-box {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--head-page-border);
  border-radius: var(--head-page-radius-lg);
  box-shadow: var(--head-page-shadow-md);
  backdrop-filter: blur(6px);
}

.rabota-head-page .head-page__hero-main {
  padding: 34px;
}

.rabota-head-page .head-page__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--head-page-primary-soft);
  color: var(--head-page-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.rabota-head-page .head-page__title {
  margin-top: 18px;
  color: var(--head-page-primary);
  font-size: clamp(38px, 5vw, 62px);
  line-height: 0.98;
  font-weight: 800;
  text-transform: uppercase;
}

.rabota-head-page .head-page__lead {
  margin-top: 22px;
  max-width: 760px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--head-page-text);
}

.rabota-head-page .head-page__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.rabota-head-page .head-page__meta-item {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--head-page-surface-muted);
  color: var(--head-page-primary);
  font-size: 15px;
  font-weight: 600;
}

.rabota-head-page .head-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.rabota-head-page .head-page__button,
.rabota-head-page .head-page__button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 26px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.25s;
}

.rabota-head-page .head-page a.head-page__button,
.rabota-head-page .head-page__button {
  background: var(--head-page-primary);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(24, 41, 104, 0.18);
}

.rabota-head-page .head-page a.head-page__button:hover,
.rabota-head-page .head-page__button:hover {
  background: #21367f;
  color: #ffffff;
}

.rabota-head-page .head-page a.head-page__button-outline,
.rabota-head-page .head-page__button-outline {
  border: 1px solid rgba(24, 41, 104, 0.24);
  color: var(--head-page-primary);
  background: rgba(255, 255, 255, 0.72);
}

.rabota-head-page .head-page a.head-page__button-outline:hover,
.rabota-head-page .head-page__button-outline:hover {
  background: rgba(24, 41, 104, 0.06);
  color: var(--head-page-primary);
}

.rabota-head-page .head-page__hero-aside {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rabota-head-page .head-page__aside-title,
.rabota-head-page .head-page__section-title {
  color: var(--head-page-primary);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  font-weight: 800;
}

.rabota-head-page .head-page__aside-text,
.rabota-head-page .head-page__section-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--head-page-text-muted);
}

.rabota-head-page .head-page__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rabota-head-page .head-page__fact {
  padding: 16px;
  border-radius: 16px;
  background: var(--head-page-surface-muted);
}

.rabota-head-page .head-page__fact-value {
  display: block;
  color: var(--head-page-primary);
  font-size: 24px;
  line-height: 1.05;
  font-weight: 800;
}

.rabota-head-page .head-page__fact-label {
  display: block;
  margin-top: 8px;
  color: var(--head-page-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.rabota-head-page .head-page__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.rabota-head-page .head-page__grid > * {
  min-width: 0;
}

.rabota-head-page .head-page__grid-col-4 {
  grid-column: span 4;
}

.rabota-head-page .head-page__grid-col-5 {
  grid-column: span 5;
}

.rabota-head-page .head-page__grid-col-6 {
  grid-column: span 6;
}

.rabota-head-page .head-page__grid-col-7 {
  grid-column: span 7;
}

.rabota-head-page .head-page__grid-col-8 {
  grid-column: span 8;
}

.rabota-head-page .head-page__grid-col-12 {
  grid-column: span 12;
}

.rabota-head-page .head-page__card {
  padding: 28px;
}

.rabota-head-page .head-page__card-title {
  color: var(--head-page-primary);
  padding-bottom: 1rem;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
}

.rabota-head-page .head-page__card-text {
  margin-top: 14px;
  color: var(--head-page-text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.rabota-head-page .head-page__list,
.rabota-head-page .head-page__timeline,
.rabota-head-page .head-page__contacts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rabota-head-page .head-page__list li {
  position: relative;
  padding-left: 26px;
  color: var(--head-page-text);
  font-size: 16px;
  line-height: 1.65;
}

.rabota-head-page .head-page__list li + li {
  margin-top: 14px;
}

.rabota-head-page .head-page__list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c72c30, #182968);
}

.rabota-head-page .head-page__timeline {
  display: grid;
  gap: 16px;
}

.rabota-head-page .head-page__timeline-wrap,
.rabota-head-page .head-page__block-offset {
  margin-top: 26px;
}

.rabota-head-page .head-page__timeline-item {
  padding: 22px 24px;
}

.rabota-head-page .head-page__timeline-step {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(199, 44, 48, 0.08);
  color: var(--head-page-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.rabota-head-page .head-page__timeline-title {
  margin-top: 14px;
  color: var(--head-page-primary);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

.rabota-head-page .head-page__timeline-date {
  margin-top: 8px;
  color: var(--head-page-accent);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
}

.rabota-head-page .head-page__timeline-text {
  margin-top: 12px;
  color: var(--head-page-text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.rabota-head-page .head-page__feature {
  padding: 22px;
}

.rabota-head-page .head-page__feature-title {
  color: var(--head-page-primary);
  font-size: 21px;
  line-height: 1.2;
  font-weight: 700;
}

.rabota-head-page .head-page__feature-text {
  margin-top: 10px;
  color: var(--head-page-text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.rabota-head-page .head-page__pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.rabota-head-page .head-page__pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--head-page-surface-muted);
  color: var(--head-page-primary);
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
}

.rabota-head-page .head-page__contact-card {
  padding: 28px;
}

.rabota-head-page .head-page__contacts li + li {
  margin-top: 16px;
}

.rabota-head-page .head-page__contact-role {
  display: block;
  margin-top: 6px;
  color: var(--head-page-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.rabota-head-page .head-page__info-box {
  padding: 22px 24px;
}

.rabota-head-page .head-page__form {
  overflow: hidden;
  border-radius: var(--head-page-radius-xl);
  box-shadow: var(--head-page-shadow-lg);
  background: #ffffff;
}

.rabota-head-page .head-page__form-wrap {
  margin-top: 18px;
}

.rabota-head-page .head-page a {
  color: var(--head-page-primary);
}

.rabota-head-page .head-page a:hover {
  color: #21367f;
}

@media (max-width: 1139px) {
  .rabota-head-page .head-page__section {
    padding: 36px 0;
  }

  .rabota-head-page .head-page__hero {
    padding: 40px 0 24px;
  }

  .rabota-head-page .head-page__hero-grid,
  .rabota-head-page .head-page__grid {
    grid-template-columns: 1fr;
  }

  .rabota-head-page .head-page__grid-col-4,
  .rabota-head-page .head-page__grid-col-5,
  .rabota-head-page .head-page__grid-col-6,
  .rabota-head-page .head-page__grid-col-7,
  .rabota-head-page .head-page__grid-col-8,
  .rabota-head-page .head-page__grid-col-12 {
    grid-column: auto;
  }

  .rabota-head-page .head-page__hero-main,
  .rabota-head-page .head-page__hero-aside,
  .rabota-head-page .head-page__card,
  .rabota-head-page .head-page__contact-card,
  .rabota-head-page .head-page__info-box {
    padding: 24px;
  }
}

@media (max-width: 767px) {
  .rabota-head-page .head-page__hero {
    padding: 28px 0 18px;
  }

  .rabota-head-page .head-page__hero-main,
  .rabota-head-page .head-page__hero-aside,
  .rabota-head-page .head-page__card,
  .rabota-head-page .head-page__timeline-item,
  .rabota-head-page .head-page__feature,
  .rabota-head-page .head-page__contact-card,
  .rabota-head-page .head-page__info-box {
    padding: 20px 18px;
    border-radius: 18px;
  }

  .rabota-head-page .head-page__title {
    font-size: clamp(28px, 10vw, 42px);
  }

  .rabota-head-page .head-page__lead {
    font-size: 16px;
    line-height: 1.6;
  }

  .rabota-head-page .head-page__actions,
  .rabota-head-page .head-page__meta,
  .rabota-head-page .head-page__pill-row {
    gap: 10px;
  }

  .rabota-head-page .head-page__button,
  .rabota-head-page .head-page__button-outline {
    width: 100%;
  }

  .rabota-head-page .head-page__facts {
    grid-template-columns: 1fr;
  }

  .rabota-head-page .head-page__section-title,
  .rabota-head-page .head-page__aside-title {
    font-size: 28px;
  }

  .rabota-head-page .head-page__timeline-title,
  .rabota-head-page .head-page__card-title,
  .rabota-head-page .head-page__feature-title {
    font-size: 20px;
  }
}
