:root {
  --es-bg: #f4f7fb;
  --es-text: #14213d;
  --es-muted: #5c6b80;
  --es-primary: #1d5bbf;
  --es-primary-dark: #12408a;
  --es-accent: #ff6b35;
  --es-accent-dark: #e85a28;
  --es-border: #d7e0ee;
  --es-wrap: 1080px;
}

* { box-sizing: border-box; }
body.employer-site {
  margin: 0;
  font: 16px/1.55 "Segoe UI", system-ui, sans-serif;
  color: var(--es-text);
  background: var(--es-bg);
}
.es-wrap { max-width: var(--es-wrap); margin: 0 auto; padding: 0 1rem; }
.es-muted { color: var(--es-muted); }
.es-preview-banner {
  background: #fff3cd;
  color: #664d03;
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.92rem;
}

.es-btn {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.15s, transform 0.1s;
}
.es-btn:hover { transform: translateY(-1px); }
.es-btn--primary { background: var(--es-primary); color: #fff; }
.es-btn--primary:hover { background: var(--es-primary-dark); }
.es-btn--light { background: #fff; color: var(--es-primary); }
.es-btn--outline { border-color: var(--es-primary); color: var(--es-primary); background: #fff; }
.es-btn--accent { background: var(--es-accent); color: #fff; }
.es-btn--accent:hover { background: var(--es-accent-dark); }
.es-btn--lg { padding: 0.85rem 1.4rem; font-size: 1.05rem; }
.es-btn--compact {
  padding: 0.65rem 0.95rem;
  font-size: 0.95rem;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  min-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.es-btn--call {
  background: #1a9d55;
  color: #fff;
  padding: 0.55rem 0.95rem;
  font-size: 0.95rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.es-btn--call:hover { background: #158247; }

.es-header {
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 10px rgba(15, 28, 51, 0.18);
}
.es-header--unified {
  background: linear-gradient(90deg, #0f1c33 0%, #1a3a6e 55%, #1d5bbf 100%);
  color: #fff;
}
.es-header--unified a.es-header__phone {
  color: #fff;
  text-decoration: none;
}
.es-header--unified a.es-header__phone:hover {
  text-decoration: underline;
}
.es-header__inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  min-height: 0;
  padding: 0.35rem 0;
}
.es-header__brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  flex: 0 1 auto;
  min-width: 0;
  margin-right: auto;
}
.es-header__logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  flex: 0 0 auto;
  padding: 2px;
}
.es-header__name {
  font-weight: 800;
  font-size: clamp(0.95rem, 1.6vw, 1.3rem);
  line-height: 1.15;
  max-width: none;
  overflow: visible;
}
.es-header__name * {
  line-height: inherit;
}
.es-header__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem 0.65rem;
  flex: 0 0 auto;
  margin-left: auto;
}
.es-header__contact {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.es-header__phone {
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0;
}
.es-header__tagline {
  font-size: 0.78rem;
  opacity: 0.9;
  white-space: nowrap;
}

.es-hero {
  color: #fff;
  background: linear-gradient(135deg, #123b7a, #1d5bbf);
  background-size: cover;
  background-position: center;
  position: relative;
}
.es-hero--v2 {
  background-image: linear-gradient(120deg, rgba(8, 18, 36, 0.78), rgba(18, 48, 96, 0.55)), var(--es-hero-image, none);
  background-size: cover;
  background-position: center;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: flex-end;
}
.es-hero--bg {
  position: relative;
  overflow: hidden;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, #123b7a, #1d5bbf);
}
.es-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.es-hero-bg__layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.es-hero-bg__layer.is-active {
  opacity: 1;
}
.es-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(8, 18, 36, 0.78), rgba(18, 48, 96, 0.55));
}
.es-hero--bg .es-hero__veil {
  z-index: 2;
}
.es-hero--bg .es-hero__inner {
  z-index: 3;
}
.es-hero__veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 30%, rgba(255, 107, 53, 0.18), transparent 45%);
  pointer-events: none;
}
.es-hero__inner {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.5rem;
  width: 100%;
}
.es-hero__copy { max-width: 720px; }
.es-hero__title {
  margin: 0 0 0.85rem;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.1;
  font-weight: 800;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.es-hero__subtitle {
  margin: 0 0 1.5rem;
  max-width: 640px;
  opacity: 0.96;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.45;
}
.es-hero__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.es-hero-vacancies {
  background: #fff;
  border-bottom: 1px solid var(--es-border);
}
.es-hero-vacancies__lead { margin: -0.35rem 0 1.25rem; }
.es-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.es-service-card__photo {
  height: 140px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  margin-bottom: 0.75rem;
}
.es-vacancy-panel__filters {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.7fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.es-vacancy-catalog__search-wrap {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 0.75rem;
}
.es-job-picks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.es-job-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.es-job-line {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.65rem 0.85rem;
  background: #fff;
  border: 1px solid var(--es-border);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  text-align: left;
}
.es-job-line:hover {
  background: #f4f8ff;
  border-color: #b8d4f5;
}
.es-job-line__title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--es-text);
}
.es-job-line__salary {
  font-size: 0.92rem;
  color: var(--es-muted);
}
.es-job-line__mode {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #eef2f8;
  color: #3d4f6a;
  white-space: nowrap;
}
.es-job-line__mode--shift {
  background: #fff3e8;
  color: #b45309;
}
.es-job-line__arrow {
  font-size: 1.25rem;
  color: var(--es-muted);
  line-height: 1;
}
@media (max-width: 640px) {
  .es-job-line {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .es-job-line__salary { grid-column: 1; }
  .es-job-line__mode { grid-column: 1; justify-self: start; }
  .es-job-line__arrow { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
}
.es-job-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid var(--es-border);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(20, 33, 61, 0.05);
}
.es-job-pick__main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.es-job-pick__title {
  font-size: 1.02rem;
  color: var(--es-text);
}
.es-job-pick__meta {
  font-size: 0.88rem;
  color: var(--es-muted);
}
.es-job-detail {
  background: #fff;
  border: 1px solid var(--es-border);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 2px 10px rgba(20, 33, 61, 0.06);
}
.es-job-detail__back { margin-bottom: 0.85rem; }
.es-job-detail__title { margin: 0 0 0.35rem; font-size: 1.35rem; }
.es-job-detail__meta { margin: 0 0 1rem; color: var(--es-muted); }
.es-job-detail__body { margin-bottom: 1.1rem; line-height: 1.55; }
.es-job-detail__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.es-vacancy-panel__field {
  display: grid;
  gap: 0.35rem;
  position: relative;
  font-weight: 600;
}
.es-vacancy-panel__field input,
.es-vacancy-panel__field select {
  width: 100%;
  border: 1px solid var(--es-border);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 16px;
  min-height: 44px;
  background: #fff;
  box-sizing: border-box;
}
.es-vacancy-panel__field input:focus,
.es-vacancy-panel__field select:focus {
  outline: none;
  border-color: var(--es-primary);
  box-shadow: 0 0 0 3px rgba(29, 91, 191, 0.14);
}

.es-section { padding: 2.5rem 0; }
.es-section:nth-child(even) { background: #fff; }
.es-section__title { margin: 0 0 1rem; font-size: 1.5rem; }
.es-prose { max-width: 760px; }
.es-prose--rich { line-height: 1.65; }
.es-prose--rich span[style*="font-size"] { line-height: 1.35; }
.es-prose--rich [style*="font-size"] { line-height: 1.35; }
.es-prose--rich b, .es-prose--rich strong { font-weight: 700; }
.es-prose--rich font[size="3"] { font-size: 0.9em; }
.es-prose--rich font[size="5"] { font-size: 1.15em; }
.es-prose--rich font[size="6"] { font-size: 1.35em; }
.es-list { margin: 0.75rem 0 0; padding-left: 1.2rem; }

.es-jobs { display: grid; gap: 1rem; }
.es-job {
  background: #fff;
  border: 1px solid var(--es-border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  box-shadow: 0 2px 8px rgba(20, 33, 61, 0.06);
}
.es-section:nth-child(even) .es-job { background: var(--es-bg); }
.es-job__title { margin: 0 0 0.35rem; font-size: 1.1rem; }
.es-job__meta, .es-job__summary { margin: 0 0 0.75rem; color: var(--es-muted); }
.es-job__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.es-vacancy-catalog__controls { margin-bottom: 0.85rem; }
.es-vacancy-catalog__search-wrap { position: relative; max-width: 520px; }
.es-vacancy-catalog__search {
  width: 100%;
  border: 1px solid var(--es-border);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font-size: 16px;
  min-height: 44px;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(20, 33, 61, 0.06);
}
.es-vacancy-catalog__search:focus {
  outline: none;
  border-color: var(--es-primary);
  box-shadow: 0 0 0 3px rgba(29, 91, 191, 0.15);
}
.es-vacancy-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid var(--es-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(20, 33, 61, 0.12);
  z-index: 20;
  max-height: 280px;
  overflow-y: auto;
  padding: 0.35rem;
}
.es-vacancy-suggest__item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  color: var(--es-text);
}
.es-vacancy-suggest__item:hover { background: #eaf2ff; }

.es-vacancy-platform-cta { margin-top: 1.25rem; }

.es-vacancy-catalog__layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 1rem;
}
.es-vacancy-catalog__list {
  background: #fff;
  border: 1px solid var(--es-border);
  border-radius: 12px;
  max-height: 600px;
  overflow-y: auto;
  padding: 0.45rem;
  box-shadow: 0 2px 8px rgba(20, 33, 61, 0.05);
}
.es-vacancy-group {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 0.15rem;
  border: 1px solid var(--es-border);
  border-radius: 9px;
  background: #fff;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.4rem;
  cursor: pointer;
}
.es-vacancy-group strong { font-size: 0.98rem; }
.es-vacancy-group span { color: var(--es-muted); font-size: 0.85rem; }
.es-vacancy-group.is-active {
  background: #eaf2ff;
  border-color: #7ca3e2;
}
.es-vacancy-catalog__filters { margin-bottom: 0.8rem; }
.es-vacancy-catalog__filters label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}
.es-vacancy-catalog__filters select {
  border: 1px solid var(--es-border);
  border-radius: 8px;
  padding: 0.45rem 0.5rem;
}

.es-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--es-border); border-radius: 10px; overflow: hidden; }
.es-table th, .es-table td { padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--es-border); text-align: left; vertical-align: top; }
.es-table th { width: 34%; background: #eef3fb; font-weight: 600; }
.es-table--row th,
.es-table--row td { width: auto; text-align: center; vertical-align: middle; }
.es-table--row thead th { background: #eef3fb; font-weight: 700; white-space: nowrap; }
.es-table--row tbody td { background: #fff; }
.es-table--data thead th { background: #eef3fb; }

.es-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--es-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(20, 33, 61, 0.06);
}
.es-table-scroll table,
.es-excel-table,
.es-source-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.es-table-scroll td,
.es-table-scroll th,
.es-excel-table td,
.es-excel-table th,
.es-source-table td,
.es-source-table th {
  border: 1px solid #c5d0e0;
  padding: 0.45rem 0.55rem;
  vertical-align: top;
  white-space: pre-wrap;
}

.es-table-scroll--inline {
  max-height: none;
  overflow: auto;
}

.es-xlsx-table {
  width: max-content;
  border-collapse: collapse;
  font-size: 0.78rem;
  line-height: 1.25;
  table-layout: fixed;
}
.es-xlsx-table td {
  border: 1px solid #c5d0e0;
  padding: 2px 6px;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
  height: 22px;
  background: #fff;
}
.es-xlsx-col--auto {
  width: 88px;
}

.es-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.85rem; }
.es-gallery__item { margin: 0; background: #fff; border: 1px solid var(--es-border); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(20, 33, 61, 0.05); }
.es-gallery__item img { display: block; width: 100%; height: 180px; object-fit: cover; }
.es-gallery__item figcaption { padding: 0.5rem 0.65rem; font-size: 0.9rem; color: var(--es-muted); }

.es-locations { list-style: none; margin: 0; padding: 0; }
.es-locations li { padding: 0.65rem 0; border-bottom: 1px solid var(--es-border); }

.es-review { margin: 0 0 1rem; padding: 1rem; background: #fff; border-left: 4px solid var(--es-primary); border-radius: 8px; box-shadow: 0 2px 8px rgba(20, 33, 61, 0.05); }
.es-faq dt { font-weight: 700; margin-top: 0.85rem; }
.es-faq dd { margin: 0.25rem 0 0; color: var(--es-muted); }

.es-cta { background: linear-gradient(135deg, #123b7a, #1d5bbf); color: #fff; text-align: center; }
.es-cta__inner { padding: 1.5rem 0; }
.es-cta__actions { display: flex; gap: 0.65rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }

.es-footer { background: #0f1c33; color: #dbe6f7; padding: 2rem 0; }
.es-footer a { color: #fff; }
.es-footer__platform { margin-top: 1rem; }

@media (max-width: 900px) {
  .es-header__inner { flex-wrap: wrap; padding: 0.45rem 0; }
  .es-header__brand { flex: 1 1 100%; margin-right: 0; }
  .es-header__actions {
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .es-header__tagline { display: none; }
}
@media (max-width: 640px) {
  .es-hero__inner { padding: 3rem 0 2.5rem; }
  .es-vacancy-panel__filters { grid-template-columns: 1fr; }
  .es-vacancy-catalog__layout { grid-template-columns: 1fr; }
  .es-header__phone,
  .es-btn--call,
  .es-btn--accent,
  .es-btn--compact {
    min-height: 44px;
  }
  .es-btn--compact {
    width: 100%;
    white-space: normal;
  }
  .es-header__actions {
    width: 100%;
  }
  .es-header__contact {
    width: 100%;
    justify-content: space-between;
  }
  input[type="search"],
  .es-vacancy-panel__field input,
  .es-vacancy-panel__field select,
  .es-vacancy-catalog__search {
    font-size: 16px !important;
  }
}
