.hiring-example {
  --hiring-ink: #18253a;
  --hiring-muted: #4e607a;
  --hiring-blue: #2e6fd5;
  --hiring-mint: #a1e7dd;
  --hiring-mint-soft: #e5f7fa;
  --hiring-rule: #d4e4f5;
  padding: clamp(55px, 7.2vw, 104px) 24px clamp(65px, 8vw, 112px);
  color: var(--hiring-ink);
  color-scheme: light;
  background:
    radial-gradient(ellipse 63% 37% at 80% 56%, #d3f1ee, transparent),
    radial-gradient(ellipse 77% 39% at 60% 59%, #deebfd, transparent),
    linear-gradient(#edf3fb 16%, #eaf0f8);
  scroll-margin-top: 16px;
}

.hiring-inner {
  width: min(100%, 1184px);
  margin-inline: auto;
}

.hiring-heading {
  width: min(100%, 990px);
  margin: 0 auto clamp(32px, 5vw, 62px);
  text-align: center;
}

.hiring-heading h2 {
  margin: 0;
  font-size: clamp(33px, 4.2vw, 56px);
  letter-spacing: -.052em;
  line-height: 1.08;
  text-wrap: balance;
}

.hiring-heading > p:last-child {
  margin: 16px auto 0;
  color: var(--hiring-muted);
  font-size: clamp(16px, 1.6vw, 20px);
  text-wrap: balance;
}

.hiring-kicker {
  margin: 0 0 12px;
  color: var(--hiring-blue);
  font-size: 15px;
  font-weight: 700;
}

.hiring-layout {
  display: grid;
  grid-template-columns: minmax(250px, .79fr) minmax(0, 1.51fr);
  align-items: center;
  gap: clamp(23px, 4vw, 64px);
}

.hiring-tabs {
  display: grid;
  gap: 6px;
}

.hiring-tab {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 10px 13px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--hiring-ink);
  line-height: 1.35;
  text-align: left;
}

.hiring-tab:hover {
  background: #f3f7fd;
}

.hiring-tab[aria-selected="true"] {
  background: linear-gradient(105deg, #e5f0ff, #e7f9f4b8 77%, transparent);
}

.hiring-tab[aria-selected="true"]::before {
  position: absolute;
  inset: 12px auto 12px 0;
  width: 2px;
  border-radius: 2px;
  background: var(--hiring-blue);
  content: "";
}

.hiring-step {
  display: grid;
  width: 36px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 11px;
  background: #edf2f8;
  color: #355579;
  font-size: 16px;
  font-weight: 700;
}

.hiring-tab[aria-selected="true"] .hiring-step {
  background: var(--hiring-mint);
  color: #123e58;
}

.hiring-tab[aria-selected="true"] strong {
  color: #1e5b9a;
}

.hiring-tab strong,
.hiring-tab small {
  display: block;
}

.hiring-tab strong {
  margin-top: 1px;
  font-size: clamp(17px, 1.55vw, 21px);
  letter-spacing: -.02em;
}

.hiring-tab small {
  margin-top: 5px;
  color: var(--hiring-muted);
  font-size: 15px;
}

.hiring-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.hiring-demo {
  min-height: 47px;
  padding: 0 18px;
  border-radius: 24px;
  background: var(--hiring-blue);
  color: #fff;
  font-size: 15px;
}

.hiring-demo:hover {
  background: #2a68ce;
}

.hiring-example :focus-visible {
  outline-color: var(--hiring-blue);
  outline-offset: 3px;
}

.hiring-stage {
  --screen-inset: clamp(13px, 2.1vw, 33px);
  --screen-bottom: clamp(48px, 4.4vw, 66px);
  --screen-angle: 1.6deg;
  position: relative;
  isolation: isolate;
  display: grid;
  min-width: 0;
  min-height: 430px;
  padding: var(--screen-inset) var(--screen-inset) var(--screen-bottom);
}

.hiring-stage::before,
.hiring-stage::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.hiring-stage::before {
  z-index: -2;
  inset: -10% -8%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #a1e7dd91, #94beff52 45%, transparent 72%);
}

.hiring-stage::after {
  z-index: -1;
  inset: var(--screen-inset) var(--screen-inset) var(--screen-bottom);
  border: 1px solid #f5fbff;
  border-radius: 16px;
  background: linear-gradient(145deg, #f5fdffcc, #c8e0fa73);
  box-shadow: 0 20px 34px -24px #315e9452;
  transform: translate(-6px, -6px) rotate(-4deg);
}

.hiring-screen[hidden] {
  display: grid !important;
  visibility: hidden;
}

.hiring-screen {
  position: relative;
  display: grid;
  grid-area: 1 / 1;
  align-self: stretch;
  grid-template-rows: auto 1fr;
  min-width: 0;
  min-height: 356px;
  margin: 0;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 0 0 1px #34538316, 6px 8px 0 #dce9f6, 0 24px 45px -18px #284f8673;
  transform: rotate(var(--screen-angle));
}

.hiring-appbar {
  display: flex;
  align-items: center;
  gap: clamp(7px, 1.15vw, 16px);
  min-height: 47px;
  padding: 0 clamp(10px, 2vw, 22px);
  border-radius: 13px 13px 0 0;
  background: #223149;
  color: #d3ddec;
  font-size: clamp(10px, 1.1vw, 13px);
  white-space: nowrap;
}

.hiring-appbar img {
  display: block;
  width: clamp(72px, 8vw, 105px);
  height: auto;
  margin-right: 5px;
}

.hiring-app-selected {
  padding: 4px 7px;
  border-radius: 5px;
  background: #3b4e6a;
  color: #fff;
}

.hiring-screen-body {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: clamp(14px, 2.1vw, 26px);
  padding-bottom: clamp(36px, 3.8vw, 48px);
}

.hiring-screen-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hiring-screen-heading p {
  margin: 0 0 3px;
  color: var(--hiring-muted);
  font-size: 13px;
}

.hiring-screen-heading h3 {
  margin: 0;
  font-size: clamp(20px, 2.09vw, 30px);
  letter-spacing: -.04em;
  line-height: 1.13;
}

.hiring-pill {
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.hiring-pending {
  background: #fff0d9;
  color: #80521c;
}

.hiring-created {
  background: var(--hiring-mint-soft);
  color: #194e70;
}

.hiring-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.hiring-facts div,
.hiring-vacancy-note {
  padding: 9px 11px;
  border: 1px solid #e5edf7;
  border-radius: 8px;
  background: #f7faff;
}

.hiring-facts dt,
.hiring-request-note small,
.hiring-interview-status small {
  color: var(--hiring-muted);
  font-size: 12px;
}

.hiring-facts dd {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.hiring-request-note {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 11px;
  border-left: 2px solid #65b6c9;
  border-radius: 8px;
  background: var(--hiring-mint-soft);
}

.hiring-request-note small {
  display: inline-block;
  margin-left: 6px;
}

.hiring-vacancy-note strong,
.hiring-request-note strong {
  font-size: 14px;
}

.hiring-vacancy-note p,
.hiring-request-note p,
.hiring-calendar p {
  margin: 4px 0 0;
  color: #384e6a;
  font-size: 13px;
  line-height: 1.4;
}

.hiring-avatar {
  display: grid;
  flex: 0 0 28px;
  width: 32px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: #d8e8ff;
  color: #275590;
  font-size: 11px;
  font-weight: 700;
}

.hiring-publications {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hiring-publications li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 6px 9px;
  border-radius: 7px;
  background: #f1f6fd;
  font-size: 13px;
}

.hiring-publications small {
  color: var(--hiring-muted);
  font-size: 12px;
}

.hiring-channel {
  display: grid;
  width: 26px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.hiring-channel-hh {
  border-radius: 50%;
  background: #cc2437;
}

.hiring-channel-rabota {
  background: #2e67b8;
}

.hiring-channel-avito {
  grid-template: repeat(2, 1fr) / repeat(2, 1fr);
  gap: 2px;
  padding: 4px;
  background: #e5edf9;
}

.hiring-channel-avito i {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #00a0ec;
}

.hiring-channel-avito i:nth-child(2) { background: #eb506c; }
.hiring-channel-avito i:nth-child(3) { background: #a26eea; }
.hiring-channel-avito i:nth-child(4) { background: #7abc36; }

.hiring-screen-summary {
  margin: 0;
  color: #3d5573;
  font-size: 13px;
  line-height: 1.4;
}

.hiring-person {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hiring-person .hiring-avatar {
  flex: 0 0 auto;
}

.hiring-interview-status {
  padding: 9px;
  border-radius: 8px;
  background: var(--hiring-mint-soft);
}

.hiring-interview-status p {
  margin: 0;
  line-height: 1.35;
}

.hiring-interview-status strong,
.hiring-interview-status small {
  display: block;
}

.hiring-calendar {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--hiring-rule);
  border-radius: 8px;
  font-size: 14px;
}

.hiring-calendar-date {
  display: grid;
  padding: 4px 0;
  place-items: center;
  border-radius: 7px;
  background: var(--hiring-mint);
  color: #123e58;
  line-height: 1.15;
}

.hiring-calendar-date strong {
  font-size: 19px;
}

.hiring-chart {
  display: grid;
  gap: 8px;
  margin: 0;
}

.hiring-chart div {
  display: grid;
  grid-template-columns: minmax(105px, .72fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.hiring-chart dd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6ch;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.hiring-chart dd span {
  height: 9px;
  border-radius: 12px;
  background: #83bddf;
}

.hiring-chart .hiring-bar-new { width: 15.4%; }
.hiring-chart .hiring-bar-review { width: 100%; background: linear-gradient(90deg, #377ad7, #56b9bb); }
.hiring-chart .hiring-bar-interview { width: 59.6%; }

.hiring-screen figcaption {
  position: absolute;
  right: -9px;
  bottom: -28px;
  display: grid;
  gap: 1px;
  width: max-content;
  max-width: min(88%, 363px);
  padding: 10px 15px;
  border: 1px solid #f5fbff;
  border-radius: 12px;
  background: #f9fdff;
  color: var(--hiring-muted);
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 3px 6px 0 #d2e8f5, 0 16px 25px -14px #284f8680;
  transform: rotate(-4deg);
}

.hiring-screen figcaption strong {
  color: var(--hiring-ink);
  font-size: 13px;
}

@media (max-width: 850px) {
  .hiring-stage {
    min-height: 399px;
  }

  .hiring-tab {
    padding-inline: 9px;
  }
}

@media (max-width: 700px) {
  .hiring-example {
    padding-inline: 17px;
  }

  .hiring-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .hiring-tabs {
    gap: 2px;
  }

  .hiring-tab {
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
  }

  .hiring-step {
    width: 28px;
    border-radius: 8px;
    font-size: 14px;
  }

  .hiring-tab small {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .hiring-stage {
    --screen-inset: 9px;
    --screen-bottom: 48px;
    --screen-angle: 0deg;
    min-height: 385px;
  }

  .hiring-stage::after {
    transform: translate(-3px, -4px) rotate(-2deg);
  }

  .hiring-screen figcaption {
    right: -3px;
    max-width: 95%;
    padding: 8px 11px;
    transform: rotate(-2deg);
  }

  .hiring-screen {
    min-height: 340px;
  }
}

@media (max-width: 390px) {
  .hiring-screen-body {
    gap: 12px;
    padding: 11px 11px 58px;
  }

  .hiring-appbar {
    gap: 6px;
  }

  .hiring-appbar > span:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hiring-tab,
  .hiring-step {
    transition: background-color 200ms ease, color 200ms ease;
  }

  .hiring-example[data-motion="pending"] .hiring-stage::after,
  .hiring-example[data-motion="pending"] .hiring-screen {
    opacity: 0;
  }

  .hiring-example[data-motion="ready"] .hiring-stage::before {
    animation: hiring-glow-in 1.1s ease-out both;
  }

  .hiring-example[data-motion="ready"] .hiring-screen:not([hidden]) {
    animation: hiring-screen-in 680ms cubic-bezier(.2, .72, .28, 1) both;
  }

  .hiring-example[data-motion="ready"] .hiring-stage::after {
    animation: hiring-detail-in 520ms ease-out both;
  }

  .hiring-example[data-motion="ready"] .hiring-screen:not([hidden]) figcaption {
    animation: hiring-caption-in 560ms cubic-bezier(.2, .72, .28, 1) 240ms both;
  }

  .hiring-example[data-motion="ready"] .hiring-screen:not([hidden])
    :is(.hiring-facts, .hiring-request-note, .hiring-vacancy-note, .hiring-publications li, .hiring-interview-status, .hiring-calendar, .hiring-screen-summary) {
    animation: hiring-detail-in 440ms ease-out var(--hiring-delay, 145ms) both;
  }

  .hiring-request-note,
  .hiring-vacancy-note,
  .hiring-publications li:nth-child(2),
  .hiring-calendar {
    --hiring-delay: 230ms;
  }

  .hiring-publications li:nth-child(3) { --hiring-delay: 310ms; }
  .hiring-screen-summary { --hiring-delay: 390ms; }

  .hiring-example[data-motion="ready"] .hiring-screen:not([hidden]) .hiring-chart dd span {
    transform-origin: left center;
    animation: hiring-chart-in 700ms cubic-bezier(.25, .7, .3, 1) var(--chart-delay, 160ms) both;
  }

  .hiring-chart > div:nth-child(2) { --chart-delay: 240ms; }
  .hiring-chart > div:nth-child(3) { --chart-delay: 320ms; }

  @keyframes hiring-screen-in {
    0% { opacity: 0; translate: 0 22px; rotate: x 9deg; scale: .975; }
    72% { opacity: 1; translate: 0 -4px; rotate: x -1deg; scale: 1; }
    100% { opacity: 1; translate: none; rotate: none; scale: none; }
  }

  @keyframes hiring-detail-in {
    from { opacity: 0; translate: 0 9px; }
    to { opacity: 1; translate: none; }
  }

  @keyframes hiring-caption-in {
    from { opacity: 0; translate: 16px 13px; scale: .96; }
    to { opacity: 1; translate: none; scale: 1; }
  }

  @keyframes hiring-chart-in {
    from { scale: 0 1; }
    to { scale: 1 1; }
  }

  @keyframes hiring-glow-in {
    0% { opacity: .15; }
    65% { opacity: 1; }
    100% { opacity: .75; }
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hiring-screen {
    transform: perspective(1100px) rotate(var(--screen-angle)) rotateX(calc(var(--scene-tilt-x, 0deg) * .45)) rotateY(calc(var(--scene-tilt-y, 0deg) * .45));
    transition: transform 360ms cubic-bezier(.2, .65, .35, 1);
  }
}
