.visibility {
  margin-top: 72px;
  padding-top: 65px;
  border-top: 1px solid #dce4da;
}

.visibility-heading {
  max-width: 730px;
}

.visibility h2 {
  margin: 0 0 24px;
  font-size: clamp(33px, 4.5vw, 48px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.visibility h2 em {
  color: #246b45;
  font-weight: 500;
}

.junior-case {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr);
  grid-template-areas: "explanation register" "proof register";
  column-gap: clamp(25px, 5vw, 64px);
  row-gap: 30px;
  align-items: start;
  margin-top: 40px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid #d4dfcd;
  border-radius: 16px;
  background: #eef3e9;
}

.junior-explanation {
  grid-area: explanation;
  align-self: end;
}

.junior-explanation h3 {
  margin: 0 0 14px;
  font-size: clamp(25px, 3.2vw, 38px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.junior-explanation p {
  margin: 0;
  color: #435549;
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
}

.junior-register {
  grid-area: register;
  align-self: center;
  margin: 0;
  padding: 7px;
  border: 1px solid #ccd9c6;
  border-radius: 12px;
  background: #fcfdfa;
  box-shadow: 0 18px 34px -26px #21422c66;
}

.junior-register figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
  padding: 12px 13px 14px;
}

.junior-register figcaption strong {
  font-size: 16px;
  font-weight: 620;
  letter-spacing: -.02em;
}

.junior-register figcaption span {
  color: #536158;
  font-size: 11px;
}

.junior-register-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.junior-register-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 3px 10px;
  padding: 13px;
  border-top: 1px solid #e2e9df;
  font-size: 13px;
  line-height: 1.35;
}

.junior-avatar {
  grid-row: span 2;
  align-self: center;
  display: block;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 50%;
  background: #e2e9df;
}

.junior-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1.8px);
  transform: scale(1.18);
}

.junior-register-list li strong {
  font-weight: 600;
}

.junior-register-list li strong small {
  color: #536158;
  font-size: 11px;
  font-weight: 450;
  white-space: nowrap;
}

.junior-register-list .junior-register-priority {
  border: 1px solid #d9e7d6;
  border-radius: 7px;
  background: #edf5eb;
}

.junior-register-priority + li {
  border-top-color: transparent;
}

.junior-status {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: #47604c;
  font-size: 11px;
  font-weight: 540;
}

.junior-status::before {
  content: "";
  flex: 0 0 6px;
  height: 6px;
  align-self: center;
  border-radius: 50%;
  background: currentColor;
}

.junior-status-call,
.junior-status-done {
  color: #216544;
}

.junior-status-return {
  color: #795923;
}

.junior-task {
  grid-column: 2 / -1;
  color: #536158;
  font-size: 12px;
}

.junior-contact-update {
  display: grid;
}

.junior-contact-update > span {
  grid-area: 1 / 1;
  visibility: hidden;
}

[data-contact-phase="waiting"] [data-phase="waiting"],
[data-contact-phase="call"] [data-phase="call"],
[data-contact-phase="decision"] [data-phase="decision"] {
  visibility: visible;
}

.junior-proof {
  grid-area: proof;
  align-self: start;
  padding-top: 17px;
  border-top: 1px solid #cedac8;
}

.junior-proof > p:first-child {
  margin: 0 0 8px;
  color: #536158;
  font-size: 12px;
}

.junior-proof > p:first-child strong {
  color: #253a2c;
  font-weight: 600;
}

.junior-number {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #246b45;
}

.junior-number > strong {
  font-size: clamp(43px, 5.5vw, 62px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.05em;
}

.junior-number > span {
  font-size: 14px;
  line-height: 1.35;
}

.junior-number small {
  display: block;
  margin-top: 3px;
  color: #536158;
  font-size: 12px;
}

@keyframes junior-contact-enter {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes junior-call-active {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .56; transform: scale(1.35); }
}

@media (prefers-reduced-motion: no-preference) {
  body:not(.motion-paused) .junior-demo-active[data-contact-phase="call"] [data-phase="call"],
  body:not(.motion-paused) .junior-demo-active[data-contact-phase="decision"] [data-phase="decision"] {
    animation: junior-contact-enter 220ms cubic-bezier(.23, 1, .32, 1) both;
  }

  body:not(.motion-paused) .junior-demo-active[data-contact-phase="call"] .junior-status-call::before {
    animation: junior-call-active 1200ms ease-in-out 2;
  }
}

@media (max-width: 700px) {
  .junior-case {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "explanation" "register" "proof";
    gap: 23px;
    margin-top: 28px;
    padding: clamp(15px, 5vw, 25px);
  }
}

@media (max-width: 600px) {
  .visibility {
    margin-top: 55px;
    padding-top: 44px;
  }
}

@media (max-width: 360px) {
  .junior-register-list li {
    padding: 11px 8px;
    column-gap: 7px;
  }

  .junior-avatar {
    width: 27px;
    height: 27px;
  }

  .junior-register figcaption {
    padding-inline: 8px;
  }
}
