.job-gate[hidden] {
  display: none !important;
}

html.job-gate-open,
body.job-gate-open {
  overflow: hidden;
}

.job-gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  padding: 24px;
  background: #050914;
}

.job-gate-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #050914;
  pointer-events: none;
}

.job-gate-background::before,
.job-gate-background::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.job-gate-background::before {
  z-index: 0;
  background: url("../images/background-poster.webp") center / cover no-repeat;
  filter: brightness(.68) saturate(.86) contrast(1.08);
  transform: scale(1.02);
}

.job-gate-background-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.job-gate-background::after {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(4, 8, 18, .8), rgba(6, 12, 27, .58) 50%, rgba(4, 8, 18, .8)),
    linear-gradient(180deg, rgba(5, 9, 20, .66), rgba(5, 9, 20, .43) 46%, rgba(5, 9, 20, .8));
}

.job-gate-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 1040px);
  max-height: min(88vh, 720px);
  overflow: auto;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.04)),
    #07101f;
  box-shadow: 0 34px 90px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08);
}

.job-gate-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.job-gate-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.job-gate-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.job-gate-brand strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.job-gate-language {
  display: flex;
  align-items: center;
  gap: 10px;
}

.job-gate-language > span {
  color: #bfc7d9;
  font-size: 12px;
  font-weight: 800;
}

.job-gate-lang-switch {
  border-color: rgba(101, 224, 163, .22);
  background: rgba(255,255,255,.055);
}

.job-gate-lang-switch button:hover,
.job-gate-lang-switch button.active {
  background: rgba(101, 224, 163, .2);
  box-shadow: 0 0 18px rgba(101, 224, 163, .14);
}

.job-gate-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--cyan), #f7c86b);
}

.job-gate-kicker {
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(101, 224, 163, .22);
  border-radius: 999px;
  color: #a8f0c8;
  background: rgba(101, 224, 163, .08);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 14px;
}

.job-gate h2 {
  max-width: 760px;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: 0;
  margin-bottom: 14px;
}

.job-gate p {
  max-width: 720px;
  color: #d0d6e6;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 26px;
}

.job-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.job-choice {
  position: relative;
  min-height: 218px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.025)),
    rgba(255,255,255,.035);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.job-choice::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, rgba(101, 224, 163, .16), rgba(98, 217, 255, .08) 55%, rgba(247, 200, 107, .08));
  transition: opacity .22s ease;
}

.job-choice > * {
  position: relative;
  z-index: 1;
}

.job-choice:hover,
.job-choice:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(101, 224, 163, .42);
  box-shadow: 0 20px 48px rgba(0,0,0,.28);
}

.job-choice:hover::before,
.job-choice:focus-visible::before {
  opacity: 1;
}

.job-choice.is-active {
  border-color: rgba(101, 224, 163, .62);
  background:
    linear-gradient(135deg, rgba(101, 224, 163, .18), rgba(98, 217, 255, .08), rgba(247, 200, 107, .09)),
    rgba(255,255,255,.055);
  box-shadow: 0 22px 52px rgba(0,0,0,.3), inset 0 0 0 1px rgba(101, 224, 163, .12);
}

.job-choice.is-active::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 22px rgba(101, 224, 163, .78);
}

.job-choice vk-icon {
  width: 48px;
  height: 48px;
  padding: 11px;
  border-radius: 12px;
  color: #9ff2c5;
  background: rgba(101, 224, 163, .1);
  border: 1px solid rgba(101, 224, 163, .18);
}

.job-choice span {
  display: block;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 900;
}

.job-choice small {
  color: #cbd2e2;
  font-size: 13px;
  line-height: 1.55;
}

.role-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(101, 224, 163, .28);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(101, 224, 163, .12), rgba(98, 217, 255, .06)),
    rgba(255,255,255,.04);
  box-shadow: 0 18px 44px rgba(0,0,0,.18);
}

.role-summary div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.role-summary span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.role-summary strong {
  font-size: 18px;
  line-height: 1.25;
}

.role-summary small {
  color: #cbd2e3;
  line-height: 1.45;
}

.role-change {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid rgba(101, 224, 163, .32);
  border-radius: 8px;
  color: #fff;
  background: rgba(255,255,255,.055);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.hero-profile-tools {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-profile-tools .tag {
  min-width: 0;
  margin-bottom: 0;
}

.hero-role-change {
  min-height: 42px;
  padding: 10px 12px;
  font-size: 12px;
  white-space: nowrap;
}

.role-change:hover {
  transform: translateY(-1px);
  border-color: rgba(101, 224, 163, .52);
  background: rgba(101, 224, 163, .1);
}

.role-change vk-icon {
  width: 17px;
  height: 17px;
}

.experience {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.strength {
  border-radius: 10px;
}

.exp-card {
  transition: transform .22s ease, border-color .22s ease, background .22s ease, opacity .22s ease;
}

.exp-card.is-role-match {
  border-color: rgba(101, 224, 163, .36);
  background:
    linear-gradient(180deg, rgba(101, 224, 163, .115), rgba(255,255,255,.03)),
    rgba(255,255,255,.04);
}

.exp-card.is-role-muted {
  opacity: .58;
}

.exp-card.is-role-muted:hover {
  opacity: .9;
}

@media (max-width: 900px) {
  .job-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .job-gate h2 {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  .job-gate {
    padding: 10px;
  }

  .job-gate-panel {
    max-height: calc(100vh - 20px);
    padding: 18px;
    border-radius: 10px;
  }

  .job-gate-topbar {
    align-items: center;
    margin-bottom: 16px;
  }

  .job-gate-brand strong,
  .job-gate-language > span {
    display: none;
  }

  .job-gate-brand img {
    width: 38px;
    height: 38px;
  }

  .job-gate h2 {
    font-size: 27px;
    line-height: 1.12;
    margin-bottom: 10px;
  }

  .hero-profile-tools {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 22px;
  }

  .hero-profile-tools .role-change {
    align-self: flex-start;
  }

  .job-gate p {
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.5;
  }

  .job-choice-grid {
    grid-template-columns: 1fr;
  }

  .job-choice {
    min-height: auto;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 4px 12px;
    padding: 13px;
  }

  .job-choice vk-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 42px;
    height: 42px;
    margin: 0;
  }

  .job-choice span,
  .job-choice small {
    grid-column: 2;
  }

  .job-choice span {
    grid-row: 1;
    font-size: 15px;
  }

  .job-choice small {
    grid-row: 2;
    font-size: 12px;
    line-height: 1.4;
  }

  .role-summary {
    align-items: center;
    flex-direction: row;
  }

  .role-change {
    width: auto;
    padding: 10px 12px;
    font-size: 12px;
  }
}
