.workflow-section {
  --workflow-accent: #275da9;
  padding: clamp(55px, 6.7vw, 94px) 24px clamp(65px, 8vw, 112px);
  background: #eef2f6;
  color: #192338;
  color-scheme: light;
}

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

.workflow-section h2 {
  margin: 0 auto;
  font-size: clamp(33px, 4.9vw, 62px);
  line-height: 1.08;
  letter-spacing: -.052em;
  text-align: center;
  text-wrap: balance;
}

.workflow-intro {
  max-width: 640px;
  margin: 15px auto clamp(25px, 4vw, 50px);
  color: #4b5970;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.5;
  text-align: center;
  text-wrap: pretty;
}

.workflow-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(100%, 1024px);
  margin: 0 auto clamp(20px, 2.5vw, 34px);
  border-bottom: 1px solid #becde1;
}

.workflow-tabs button {
  min-height: 54px;
  padding: 8px 12px 13px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #35465d;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
  transition: color 160ms ease, box-shadow 160ms ease;
}

.workflow-tabs button:hover,
.workflow-tabs [aria-selected="true"] {
  color: var(--workflow-accent);
}

.workflow-tabs [aria-selected="true"] {
  box-shadow: 0 2px 0 var(--workflow-accent);
}

.workflow-section :focus-visible {
  outline-color: var(--workflow-accent);
  outline-offset: 3px;
}

.workflow-panels {
  display: grid;
}

.workflow-panel[hidden] {
  display: grid !important;
  visibility: hidden;
}

.workflow-panel {
  display: grid;
  grid-area: 1 / 1;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  min-height: 462px;
  padding: clamp(16px, 3.4vw, 43px);
}

.workflow-copy,
.workflow-illustration {
  min-width: 0;
  margin: 0;
}

.workflow-copy h3 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 45px);
  line-height: 1.09;
  letter-spacing: -.043em;
  text-wrap: pretty;
}

.workflow-copy p {
  margin: 14px 0 0;
  color: #40516b;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.54;
}

.workflow-extra {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #cdd9ea;
}

.workflow-extra h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #203a61;
  font-size: 15px;
  line-height: 1.3;
}

.workflow-extra p {
  margin-top: 6px;
  font-size: 14px;
}

.workflow-demo {
  min-height: 44px;
  margin-top: 21px;
  padding: 0 16px;
  border: 1px solid #b5c9e8;
  border-radius: 22px;
  background: #fff;
  color: #234f94;
  font-size: 14px;
}

.workflow-demo:hover {
  background: #edf4ff;
}

.workflow-illustration {
  container-type: inline-size;
}

.workflow-scene {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.55;
  perspective: min(900px, 150cqw);
  color: #182942;
  font-size: clamp(10px, 2.7cqw, 17px);
  line-height: 1.25;
}

.scene-surface {
  position: absolute;
  border: 1px solid #fff;
  border-radius: clamp(11px, 3.2cqw, 21px);
  background: #fff;
  box-shadow: 1cqw 1.25cqw 0 #dfe7f1, 0 4.5cqw 6.3cqw -3.3cqw #29447450;
}

.scene-surface p {
  margin: 0;
  color: #50627e;
}

.scene-label {
  display: block;
  color: #526585;
  font-size: .82em;
  font-weight: 400;
}

.scene-icon {
  display: grid;
  width: 3em;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 25%;
  background: linear-gradient(145deg, #edf5ff, #d6e5ff);
  color: #305ca6;
  font-weight: 700;
}

.scene-tag {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .53em .75em;
  border-radius: 99px;
  background: #ecf3ff;
  color: #2b528a;
  font-size: .76em;
  font-weight: 700;
}

.scene-tag i,
.calendar-slot > i {
  width: .52em;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #346cc6;
}

.scene-portrait {
  display: block;
  flex: none;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: #c5d8fb;
  background-image: url("media/workflow-portraits.webp");
  background-repeat: no-repeat;
  background-size: 200% 100%;
}

.portrait-anna {
  background-position: left center;
}

.portrait-max {
  background-position: right center;
}

.document-lines {
  display: grid;
  width: 80%;
  gap: .48em;
}

.document-lines i {
  height: .39em;
  border-radius: 10px;
  background: #dce6f5;
}

.document-lines i:nth-child(2) {
  width: 84%;
}

.document-lines i:nth-child(3) {
  width: 65%;
}

.resume-document {
  inset: 11% auto auto 4%;
  width: 34%;
  padding: 5%;
  background: linear-gradient(145deg, #fdfefe, #e7effb);
  transform: rotateY(18deg) rotateZ(-10deg);
}

.resume-document strong {
  display: block;
  margin: .8em 0 .6em;
  font-size: 1.05em;
}

.resume-profile {
  inset: 32% auto auto 17%;
  display: grid;
  grid-template-columns: 13% minmax(0, 1fr);
  width: 74%;
  min-height: 44%;
  border-color: #ffffffbc;
  background: linear-gradient(130deg, #fff 62%, #eef4fd);
  transform: rotateY(-12deg) rotateZ(4deg);
}

.resume-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1em;
  padding: 1.4em 0;
  border-radius: inherit;
  border-start-end-radius: 0;
  border-end-end-radius: 0;
  background: linear-gradient(160deg, #243e68, #152a49);
}

.resume-sidebar i {
  width: .67em;
  aspect-ratio: 1;
  border: 1px solid #9fb6da;
  border-radius: 23%;
}

.resume-sidebar i.scene-brand {
  border: 0;
  background: #81aaff;
  box-shadow: 0 0 0 .24em #81aaff2c;
}

.resume-details {
  align-self: center;
  padding: 1.35em 1.05em;
  padding-inline-end: 30%;
}

.resume-details strong {
  display: block;
  margin: .27em 0 .15em;
  font-size: 1.47em;
  letter-spacing: -.035em;
  line-height: 1.13;
}

.resume-details p {
  margin: 0 0 .85em;
  font-size: .83em;
}

.resume-profile .scene-portrait {
  position: absolute;
  top: 50%;
  right: -7%;
  width: 38%;
  border: .38em solid #f8fbff;
  box-shadow: 0 1.2em 2em -.8em #223d6666;
  transform: translateY(-50%) rotateZ(-4deg);
}

.publication-job {
  inset: 22% auto auto 7%;
  width: 52%;
  padding: 6%;
  background: linear-gradient(160deg, #fff 55%, #eaf1fd);
  transform: rotateY(18deg) rotateZ(-7deg);
}

.publication-job .scene-label {
  margin-top: .86em;
}

.publication-job strong {
  display: block;
  margin: .12em 0 .85em;
  font-size: 1.65em;
  letter-spacing: -.045em;
  line-height: 1.05;
}

.scene-briefcase {
  position: relative;
  width: 43%;
  height: 34%;
  border-radius: .16em;
  background: #3c6dbc;
}

.scene-briefcase::before {
  position: absolute;
  top: -.23em;
  left: 50%;
  box-sizing: border-box;
  width: 52%;
  height: .44em;
  border: .12em solid #3c6dbc;
  border-radius: .14em;
  transform: translateX(-50%);
  content: "";
}

.publication-channels {
  position: absolute;
  top: 14%;
  right: 2%;
  display: grid;
  width: 47%;
  gap: 1.7cqw;
  margin: 0;
  padding: 0;
  list-style: none;
  transform: rotateY(-13deg) rotateZ(5deg);
}

.publication-channels li {
  position: relative;
  display: grid;
  grid-template-columns: 2.35em minmax(0, 1fr) 1.2em;
  align-items: center;
  gap: .65em;
  min-height: 3.65em;
  padding: .63em .75em;
  border-radius: .85em;
  font-size: .94em;
  box-shadow: .6cqw .72cqw 0 #dee7f3, 0 2cqw 4cqw -2.4cqw #29447455;
}

.publication-channels li:nth-child(2) {
  transform: translateX(-1.6cqw);
}

.channel-logo {
  display: grid;
  width: 2.3em;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 27%;
  color: #fff;
  font-weight: 700;
}

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

.channel-rabota {
  background: #2e67c7;
}

.channel-avito {
  grid-template: repeat(2, 1fr) / repeat(2, 1fr);
  gap: .17em;
  padding: .35em;
  background: #f0f4fb;
}

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

.channel-avito i:nth-child(2) { background: #ef4d6a; }
.channel-avito i:nth-child(3) { background: #a76af3; }
.channel-avito i:nth-child(4) { background: #79c631; }

.scene-check {
  display: grid;
  width: 1.2em;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: #e5efff;
  color: #315f9f;
}

.scene-check::after {
  width: .47em;
  height: .27em;
  border-bottom: .105em solid currentColor;
  border-left: .105em solid currentColor;
  content: "";
  transform: translateY(-12%) rotate(-45deg);
}

.duplicate-record {
  width: 43%;
  padding: 3.1%;
}

.duplicate-original {
  top: 7%;
  left: 9%;
  transform: rotateY(14deg) rotateZ(-9deg);
}

.duplicate-copy {
  top: 10%;
  right: 7%;
  transform: rotateY(-16deg) rotateZ(8deg);
}

.duplicate-portrait {
  display: grid;
  min-height: 19cqw;
  margin-bottom: .7em;
  place-items: center;
  border-radius: .65em;
  background: linear-gradient(140deg, #e7efff, #ccdcfb);
}

.duplicate-copy .duplicate-portrait {
  background: linear-gradient(130deg, #edf0ff, #dadcf8);
}

.duplicate-portrait .scene-portrait {
  width: 15cqw;
  border: .23em solid #ffffffc9;
}

.duplicate-record strong {
  display: block;
  font-size: 1.13em;
}

.duplicate-record p {
  margin: .24em 0 .7em;
  font-size: .8em;
}

.duplicate-match {
  right: 14%;
  bottom: 5%;
  display: flex;
  align-items: center;
  gap: .72em;
  padding: .78em 1.1em;
  border-radius: .78em;
  background: linear-gradient(130deg, #234a85, #376bb5);
  color: #fff;
}

.duplicate-match .scene-check {
  width: 1.55em;
}

.duplicate-match p {
  margin-top: .2em;
  color: #e1edff;
  font-size: .77em;
}

.messages-compose {
  top: 10%;
  left: 8%;
  width: 71%;
  padding: 4.6%;
  transform: rotateY(14deg) rotateZ(-5deg);
}

.message-recipient {
  display: flex;
  align-items: center;
  gap: .66em;
  margin-bottom: 1em;
}

.message-recipient .scene-portrait {
  width: 2.65em;
}

.message-recipient strong {
  display: block;
  margin-top: .15em;
  font-size: 1.12em;
}

.messages-compose .message-body {
  min-height: 4.65em;
  padding: .8em 1em;
  border-radius: .75em;
  background: #eff4fc;
  font-size: .91em;
  line-height: 1.4;
}

.message-send {
  display: inline-block;
  margin-top: 1em;
  padding: .56em .8em;
  border-radius: .48em;
  background: #285aa1;
  color: #fff;
  font-size: .83em;
  font-weight: 700;
}

.message-envelope {
  top: 5%;
  right: 4%;
  display: grid;
  width: 17%;
  aspect-ratio: 1;
  place-items: center;
  background: linear-gradient(145deg, #b3d2ff, #568bdd);
  box-shadow: .7cqw .85cqw 0 #3766ab, 0 3cqw 5cqw -2cqw #2d65ad7a;
  transform: rotateY(-21deg) rotateZ(12deg);
}

.message-envelope i {
  position: relative;
  width: 58%;
  height: 39%;
  overflow: hidden;
  border-radius: .24em;
  background: #fff;
}

.message-envelope i::after {
  position: absolute;
  top: -78%;
  left: 14%;
  width: 72%;
  aspect-ratio: 1;
  border-right: .12em solid #8aaee3;
  border-bottom: .12em solid #8aaee3;
  content: "";
  transform: rotate(45deg);
}

.message-reply {
  right: 4%;
  bottom: 8%;
  max-width: 64%;
  padding: .88em 1.14em;
  border-radius: 1em 1em .38em 1em;
  background: linear-gradient(120deg, #e1eeff, #d1e6ff);
  transform: rotateZ(4deg);
}

.message-reply .scene-label {
  margin-top: .25em;
}

.interview-calendar {
  top: 7%;
  left: 8%;
  width: 79%;
  padding: 5%;
  transform: rotateY(-13deg) rotateZ(5deg);
}

.calendar-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .35em;
  margin-bottom: .9em;
}

.calendar-header strong {
  font-size: 1.38em;
  letter-spacing: -.03em;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .38em;
  color: #425979;
  text-align: center;
}

.calendar-grid span {
  padding: .47em 0;
  border-radius: .58em;
  background: #f0f5fd;
  font-size: .78em;
}

.calendar-grid b {
  display: block;
  margin-top: .23em;
  color: #263d5f;
  font-size: 1.55em;
}

.calendar-grid .calendar-selected {
  background: #2e61a8;
  color: #f4f8ff;
}

.calendar-selected b {
  color: inherit;
}

.calendar-slot {
  display: flex;
  align-items: flex-start;
  gap: .55em;
  margin-top: .9em;
  padding: .55em .7em;
  border-radius: .55em;
  background: #e8f0ff;
  font-size: .84em;
}

.calendar-slot > i {
  margin-top: .36em;
}

.calendar-slot p {
  margin-top: .14em;
  font-size: .86em;
}

.interview-invite {
  right: 1%;
  bottom: 6%;
  display: flex;
  align-items: center;
  gap: .65em;
  padding: .72em .96em;
  border-radius: .77em;
  box-shadow: .8cqw 1cqw 0 #dde7f3, 0 3.4cqw 5.5cqw -2.9cqw #29447466;
  transform: rotateY(15deg) rotateZ(-8deg);
}

.interview-invite p {
  margin-top: .22em;
  font-size: .8em;
}

.calendar-video {
  display: grid;
  width: 2.4em;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 29%;
  background: #2b60a6;
}

.calendar-video i {
  position: relative;
  width: 42%;
  height: 33%;
  margin-right: 12%;
  border-radius: .16em;
  background: #fff;
}

.calendar-video i::after {
  position: absolute;
  inset: 0 auto 0 98%;
  width: 47%;
  background: #fff;
  clip-path: polygon(0 34%, 100% 0, 100% 100%, 0 66%);
  content: "";
}

@media (min-width: 981px) {
  .workflow-tabs button {
    padding-inline: 8px;
    font-size: clamp(14px, 1.5vw, 16px);
    white-space: nowrap;
  }
}

@media (max-width: 930px) {
  .workflow-panel {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    min-height: 400px;
    gap: 24px;
  }
}

@media (max-width: 760px) {
  .workflow-panel {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    max-width: 635px;
    margin-inline: auto;
  }

  .workflow-illustration {
    width: min(100%, 560px);
    margin-inline: auto;
  }
}

@media (max-width: 650px) {
  .workflow-section {
    padding-inline: 17px;
  }

  .workflow-panel {
    padding: 12px 3px 0;
  }

  .workflow-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 4px;
  }

  .workflow-tabs button {
    padding: 8px 5px;
    font-size: 14px;
    box-shadow: 0 1px 0 #becde1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workflow-tabs button {
    transition: none;
  }
}
