.patientinfo {
  position: relative;
  z-index: 2;
  margin-top: -78px;
  padding-bottom: 64px;
}

.patientinfo__header {
  margin-bottom: 28px;
}

.patientinfo__title {
  display: block;
  width: fit-content;
  min-width: 305px;
  margin: 0 0 24px;
  padding: 22px 32px;
  background: #b4a898;
  color: #fff;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

.patientinfo-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 2px;
}

.patientinfo-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 12px 18px 12px 25px;
  overflow: hidden;
  border: 1px solid rgba(180, 168, 152, 0.28);
  border-radius: 9px;
  background: rgba(235, 226, 215, 0.5);
  box-shadow: none;
  color: #544d46;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

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

.patientinfo-nav__link::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 9px;
  width: 3px;
  border-radius: 3px;
  background: #b4a898;
  content: "";
}

.patientinfo-nav__link:hover,
.patientinfo-nav__link:focus-visible {
  border-color: #b4a898;
  background: #c6c1ba;
  color: #3f3934;
  transform: translateY(-2px);
}

.patientinfo__content {
  width: 100%;
  padding: 28px 30px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.82);
}

.patientinfo__content > :first-child {
  margin-top: 0;
}

.patientinfo__content > :last-child {
  margin-bottom: 0;
}

.patientinfo-audiences {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.patientinfo-audiences__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
  padding: 28px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(145deg, #ebe2d7 0%, #f7f3ee 100%);
  box-shadow: 0 16px 38px rgba(87, 78, 68, 0.1);
  color: inherit;
  text-align: left;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.patientinfo-audiences__card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 44%;
  height: 5px;
  border-radius: 0 18px 0 5px;
  background: #b4a898;
  content: "";
}

.patientinfo-audiences__card::after {
  position: absolute;
  top: -46px;
  right: -38px;
  width: 135px;
  height: 135px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  background: rgba(180, 168, 152, 0.18);
  content: "";
}

.patientinfo-audiences__card:nth-child(2) {
  background: linear-gradient(145deg, #c6c1ba 0%, #e7e4e0 100%);
}

.patientinfo-audiences__card:nth-child(2)::before {
  background: #b8b8b8;
}

.patientinfo-audiences__card:nth-child(3) {
  background: linear-gradient(145deg, #b4a898 0%, #c6c1ba 100%);
}

.patientinfo-audiences__card:nth-child(3)::before {
  background: #ebe2d7;
}

.patientinfo-audiences__card:hover {
  box-shadow: 0 20px 44px rgba(87, 78, 68, 0.16);
  transform: translateY(-3px);
}

.patientinfo-audiences__eyebrow {
  position: relative;
  z-index: 1;
  width: fit-content;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(64, 58, 52, 0.28);
  color: rgba(64, 58, 52, 0.68);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.patientinfo-audiences__title {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 260px;
  color: #403a34;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.25;
}

.patientinfo-audiences__arrow {
  position: absolute;
  right: 24px;
  bottom: 25px;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(64, 58, 52, 0.22);
  border-radius: 50%;
  color: #544d46;
  font-size: 18px;
  place-items: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.patientinfo-audiences__card:hover .patientinfo-audiences__arrow {
  background: rgba(255, 255, 255, 0.45);
  transform: translateX(3px);
}

.patientinfo-audiences__title {
  padding-right: 44px;
}

.patientinfo-audiences__card:nth-child(3) .patientinfo-audiences__title {
  color: #fff;
}

.patientinfo-audiences__card:nth-child(3) .patientinfo-audiences__eyebrow {
  border-color: rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.8);
}

.patientinfo-audiences__card:nth-child(3) .patientinfo-audiences__arrow {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.patientinfo-details {
  display: grid;
  gap: 24px;
  margin-top: 36px;
}

.patientinfo-detail {
  scroll-margin-top: 100px;
  overflow: hidden;
  border: 1px solid rgba(180, 168, 152, 0.3);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(87, 78, 68, 0.06);
}

.patientinfo-detail__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  background: #ebe2d7;
}

.patientinfo-detail:nth-child(2) .patientinfo-detail__header {
  background: #c6c1ba;
}

.patientinfo-detail:nth-child(3) .patientinfo-detail__header {
  background: #b4a898;
  color: #fff;
}

.patientinfo-detail__header h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.25;
}

.patientinfo-detail__number {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.7;
  place-items: center;
}

.patientinfo-detail__body {
  padding: 28px;
  color: #544d46;
  font-size: 16px;
  line-height: 1.75;
}

.patientinfo-detail__body p {
  margin: 0 0 16px;
}

.patientinfo-detail__body p:last-child {
  margin-bottom: 0;
}

.patientinfo-detail__body h3 {
  margin: 26px 0 18px;
  color: #403a34;
  font-size: 20px;
}

.patientinfo-notice {
  margin: 0 0 24px;
  padding: 17px 20px;
  border-left: 4px solid #b4a898;
  border-radius: 0 10px 10px 0;
  background: rgba(235, 226, 215, 0.45);
  color: #4b443d;
  font-style: normal;
}

.patientinfo-detail__body a {
  color: #766c60;
  text-underline-offset: 3px;
}

.patientinfo-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  counter-reset: patientinfo-step;
  list-style: none;
}

.patientinfo-steps li {
  position: relative;
  min-height: 48px;
  margin: 0;
  padding: 13px 16px 13px 62px;
  border: 1px solid rgba(184, 184, 184, 0.35);
  border-radius: 10px;
  background: rgba(235, 226, 215, 0.22);
  counter-increment: patientinfo-step;
}

.patientinfo-steps li::before {
  position: absolute;
  top: 12px;
  left: 14px;
  display: grid;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #b4a898;
  color: #fff;
  content: counter(patientinfo-step);
  font-size: 13px;
  font-weight: 600;
  place-items: center;
}

@media (max-width: 640px) {
  .patientinfo {
    margin-top: -58px;
    padding-bottom: 40px;
  }

  .patientinfo__title {
    min-width: 220px;
    margin-bottom: 18px;
    padding: 14px 22px;
    font-size: 28px;
  }

  .patientinfo-nav {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-right: 0;
    padding-right: 2px;
  }

  .patientinfo-nav__link {
    min-height: 46px;
    padding: 10px 16px 10px 23px;
    font-size: 14px;
  }

  .patientinfo__content {
    padding: 20px 18px;
  }

  .patientinfo-audiences {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 20px;
  }

  .patientinfo-audiences__card {
    min-height: 150px;
    padding: 24px;
  }

  .patientinfo-audiences__title {
    font-size: 19px;
  }

  .patientinfo-detail__header {
    gap: 12px;
    padding: 18px;
  }

  .patientinfo-detail__header h2 {
    font-size: 21px;
  }

  .patientinfo-detail__body {
    padding: 20px 18px;
    font-size: 15px;
  }

  .patientinfo-steps li {
    padding: 12px 12px 12px 54px;
  }

  .patientinfo-steps li::before {
    left: 11px;
  }
}
