.why-section {
  position: relative;
  margin-top: clamp(90px, 7vw, 140px);
  overflow: visible;
  padding: clamp(80px, 7vw, 130px) var(--page-gap) clamp(90px, 8vw, 150px);
  background: #fbf9fd;
  color: #3d2d56;
}

.why-section__inner {
  --why-upper-lift: clamp(36px, 3vw, 58px);
  --why-title-extra-lift: clamp(72px, 5vw, 96px);
  --why-heart-extra-lift: clamp(110px, 8vw, 150px);
  position: relative;
  width: min(100%, 2200px);
  margin: 0 auto;
}

.why-stage {
  position: relative;
  min-height: clamp(630px, 42vw, 800px);
}

.why-stage__heart {
  position: absolute;
  z-index: 1;
  top: calc(clamp(-50px, -2.5vw, -22px) - var(--why-upper-lift) - var(--why-heart-extra-lift));
  left: clamp(30px, 6vw, 150px);
  color: #e5e9ec;
  font: 700 clamp(480px, 40vw, 780px)/1 Arial, sans-serif;
  transform: rotate(-10deg) scaleX(1.08);
  pointer-events: none;
  user-select: none;
}

.why-stage__heart > span {
  display: block;
  transform-origin: center;
  animation: why-heart-breathe 4.6s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes why-heart-breathe {
  0%, 100% {
    opacity: 0.58;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.075);
  }
}

.why-stage__title {
  position: absolute;
  z-index: 6;
  top: calc(0px - var(--why-upper-lift) - var(--why-title-extra-lift));
  left: 35%;
  width: 63%;
  margin: 0;
  font-family: "Oswald Local", "Arial Narrow", sans-serif;
  font-size: clamp(44px, 3.5vw, 68px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: uppercase;
  transform: translateY(clamp(-52px, -2.5vw, -34px));
}

.why-stage__title span {
  display: block;
}

.why-stage__title strong {
  color: #ff9fa4;
  font-weight: inherit;
}

.why-stage__dog {
  position: absolute;
  z-index: 4;
  top: auto;
  bottom: clamp(110px, 9vw, 170px);
  left: clamp(-24px, -1vw, 0px);
  display: block;
  width: 58%;
  max-width: 1260px;
  aspect-ratio: 1304 / 552;
  transform: translateY(-30px);
  pointer-events: none;
  user-select: none;
}

.why-stage__dog-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dog-eye {
  position: absolute;
  z-index: 2;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  clip-path: ellipse(47% 48% at 50% 50%);
  background:
    radial-gradient(ellipse at 50% 53%, #6e3b13 0 42%, #251208 69%, #050302 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 206, 138, 0.26),
    inset 0 5px 9px rgba(15, 6, 2, 0.78),
    inset 0 -2px 5px rgba(255, 160, 74, 0.2);
  pointer-events: none;
  contain: paint;
  isolation: isolate;
}

.dog-eye--left {
  top: 26.992754%;
  left: 36.349693%;
  width: 5.368098%;
  height: 12.862319%;
}

.dog-eye--right {
  top: 25.905797%;
  left: 60.736196%;
  width: 5.368098%;
  height: 12.862319%;
}

.dog-eye__iris {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: block;
  width: 82%;
  height: 82%;
  overflow: hidden;
  border-radius: 50%;
  transform: translate(-50%, -50%) translate3d(var(--dog-iris-x, 0px), var(--dog-iris-y, 0px), 0);
  box-shadow:
    0 0 0 1px rgba(20, 8, 3, 0.75),
    inset 0 0 7px rgba(0, 0, 0, 0.6);
  will-change: transform;
}

.dog-eye__iris-texture {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  pointer-events: none;
}

.dog-eye--left .dog-eye__iris-texture {
  top: -267.8%;
  left: -836.8%;
  width: 2271.8%;
}

.dog-eye--right .dog-eye__iris-texture {
  top: -267.8%;
  left: -836.8%;
  display: block;
  width: 2271.8%;
}

.dog-eye__pupil {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: block;
  width: 67%;
  height: 67%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 34%, rgba(57, 48, 38, 0.42) 0 6%, transparent 7%),
    radial-gradient(ellipse at 53% 57%, #010101 0 58%, #080503 76%, #170b05 100%);
  box-shadow:
    inset 1px 1px 2px rgba(255, 196, 130, 0.09),
    0 0 2px rgba(0, 0, 0, 0.92);
  transform: translate(-50%, -50%) translate3d(var(--dog-pupil-x, 0px), var(--dog-pupil-y, 0px), 0);
  will-change: transform;
}

.dog-eye--right .dog-eye__pupil {
  top: 50%;
  left: 50%;
  width: 67%;
  height: 67%;
}

.dog-eye__glint {
  position: absolute;
  z-index: 4;
  display: block;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 3px rgba(231, 246, 255, 0.48);
  will-change: transform;
  pointer-events: none;
}

.dog-eye__glint--primary {
  top: 29%;
  left: 34%;
  width: 14%;
  height: 16%;
  transform: translate3d(var(--dog-glint-x, 0px), var(--dog-glint-y, 0px), 0);
}

.dog-eye__glint--secondary {
  top: 46%;
  left: 49%;
  width: 5%;
  height: 6%;
  opacity: 0.42;
  transform: translate3d(var(--dog-glint-small-x, 0px), var(--dog-glint-small-y, 0px), 0);
}

.dog-eye--right .dog-eye__glint--primary {
  top: 28%;
  left: 33%;
}

@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
  .dog-eye__iris,
  .dog-eye__pupil {
    transform: translate(-50%, -50%) !important;
    will-change: auto;
  }

  .dog-eye__glint {
    transform: none !important;
    will-change: auto;
  }
}

.why-benefits {
  position: absolute;
  z-index: 7;
  top: calc(clamp(45px, 4.2vw, 88px) - var(--why-upper-lift));
  right: clamp(22px, 4vw, 88px);
  display: grid;
  width: min(39%, 820px);
  gap: clamp(15px, 1.3vw, 25px);
  transform: none;
}

.why-benefit {
  min-height: clamp(126px, 9.5vw, 182px);
  padding: clamp(22px, 1.8vw, 36px);
  border-radius: clamp(22px, 1.8vw, 34px);
  background: #fff;
  box-shadow: 0 15px 38px rgba(69, 45, 91, 0.09);
  transition: background-color 220ms ease, box-shadow 220ms ease, filter 220ms ease, transform 220ms ease;
  will-change: transform;
}

.why-benefit h3,
.why-benefit p {
  margin: 0;
}

.why-benefit h3 {
  color: #3d2d56;
  font-size: clamp(20px, 1.45vw, 29px);
  font-weight: 650;
  line-height: 1.15;
  transition: color 220ms ease;
}

.why-benefit p {
  margin-top: clamp(25px, 2.4vw, 48px);
  color: #715e88;
  font-size: clamp(16px, 1.13vw, 22px);
  line-height: 1.3;
  transition: color 220ms ease;
}

.why-benefit--accent {
  background: #ff9fa4;
  color: #fff;
  box-shadow: none;
}

.why-benefit--accent h3,
.why-benefit--accent p {
  color: #fff;
}

.why-benefit:not(.why-benefit--accent):is(:hover, :focus-visible) {
  background: #ff9fa4;
  box-shadow: 0 24px 52px rgba(92, 60, 119, 0.2);
  transform: translateY(-8px) scale(1.012);
}

.why-benefit:not(.why-benefit--accent):is(:hover, :focus-visible) h3,
.why-benefit:not(.why-benefit--accent):is(:hover, :focus-visible) p {
  color: #fff;
}

.why-benefits:has(.why-benefit:not(.why-benefit--accent):is(:hover, :focus-visible)) .why-benefit--accent {
  background: #fff;
  color: #3d2d56;
  box-shadow: 0 15px 38px rgba(69, 45, 91, 0.09);
  filter: none;
  transform: none;
}

.why-benefits:has(.why-benefit:not(.why-benefit--accent):is(:hover, :focus-visible)) .why-benefit--accent h3 {
  color: #3d2d56;
}

.why-benefits:has(.why-benefit:not(.why-benefit--accent):is(:hover, :focus-visible)) .why-benefit--accent p {
  color: #715e88;
}

.why-benefit:focus-visible {
  outline: 3px solid rgba(159, 126, 198, 0.62);
  outline-offset: 4px;
}

.why-benefit--accent:hover {
  box-shadow: 0 24px 52px rgba(255, 126, 140, 0.28);
  filter: brightness(1.025);
  transform: translateY(-8px) scale(1.012);
}

.team-panel {
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin-top: calc(clamp(-170px, -9vw, -110px) - var(--why-upper-lift));
  padding: clamp(112px, 7vw, 145px) clamp(42px, 5vw, 100px) clamp(62px, 5vw, 100px);
  border-radius: clamp(34px, 3vw, 56px);
  background: #9f7ec6;
  color: #fff;
}

.team-panel__heart {
  position: absolute;
  z-index: -1;
  color: rgba(112, 76, 148, 0.26);
  font: 700 clamp(280px, 24vw, 470px)/1 Arial, sans-serif;
  pointer-events: none;
  user-select: none;
}

.team-panel__heart > span {
  display: block;
  transform-origin: center;
  will-change: transform, opacity;
}

.team-panel__heart--one > span {
  animation: team-heart-float-one 6.5s ease-in-out infinite;
}

.team-panel__heart--two > span {
  animation: team-heart-float-two 8s ease-in-out -2.5s infinite;
}

@keyframes team-heart-float-one {
  0%, 100% {
    opacity: 0.52;
    transform: translateY(0) rotate(0deg) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-22px) rotate(3deg) scale(1.055);
  }
}

@keyframes team-heart-float-two {
  0%, 100% {
    opacity: 0.5;
    transform: translateY(0) rotate(0deg) scale(1);
  }
  50% {
    opacity: 0.96;
    transform: translateY(24px) rotate(-3deg) scale(1.05);
  }
}

.team-panel__heart--one {
  top: 115px;
  left: 29%;
  transform: rotate(-8deg);
}

.team-panel__heart--two {
  right: 18%;
  bottom: -140px;
  transform: rotate(13deg) scale(0.82);
}

.team-panel__heading {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.team-panel__heading h3 {
  margin: 0;
  font-family: "Oswald Local", "Arial Narrow", sans-serif;
  font-size: clamp(42px, 3.4vw, 66px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
  text-transform: uppercase;
}

.team-panel__controls {
  display: flex;
  gap: 14px;
}

.team-panel__controls button {
  display: grid;
  width: clamp(48px, 3.4vw, 64px);
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font: 300 clamp(28px, 2vw, 38px)/1 Arial, sans-serif;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.team-panel__controls button:hover,
.team-panel__controls button:focus-visible {
  background: #fff;
  color: #7d59a5;
  transform: translateY(-2px);
}

.team-list {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 1.6vw, 32px);
  margin-top: clamp(34px, 3vw, 58px);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.team-list::-webkit-scrollbar {
  display: none;
}

.doctor-card {
  min-width: 0;
  scroll-snap-align: start;
}

.doctor-card__photo {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1.02;
  border-radius: clamp(18px, 1.4vw, 26px);
  background: #fbf9fd;
}

.doctor-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  transition: transform 240ms ease;
}

.doctor-card--orange-cat .doctor-card__photo img {
  object-position: center 30%;
}

.doctor-card--gray-cat .doctor-card__photo img {
  object-position: 72% center;
}

.doctor-card__photo:hover img {
  transform: scale(1.025);
}

.doctor-card h4 {
  margin: 16px 0 0;
  color: #fff;
  font-size: clamp(18px, 1.35vw, 26px);
  font-weight: 600;
  line-height: 1.15;
}

.doctor-card p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(15px, 1.08vw, 21px);
  line-height: 1.25;
}

.team-panel__booking {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: clamp(72px, 5vw, 96px);
  align-items: center;
  justify-content: center;
  margin-top: clamp(58px, 5vw, 96px);
  border-radius: 999px;
  background: #ff9fa4;
  color: #fff;
  font-size: clamp(20px, 1.45vw, 28px);
  font-weight: 600;
  transition: filter 180ms ease, transform 180ms ease;
}

.team-panel__booking:hover,
.team-panel__booking:focus-visible {
  filter: brightness(1.06);
  transform: translateY(-3px);
}

@media (min-width: 3000px) {
  .why-section__inner {
    width: min(100%, 3400px);
  }

  .why-stage {
    min-height: 1100px;
  }

  .why-stage__title {
    top: calc(0px - var(--why-upper-lift) - var(--why-title-extra-lift));
    font-size: 106px;
  }

  .why-stage__dog {
    top: auto;
    bottom: 230px;
    max-width: 1780px;
  }

  .why-benefits {
    top: calc(110px - var(--why-upper-lift));
    width: 1300px;
  }

  .why-benefit {
    min-height: 240px;
  }

  .team-panel {
    margin-top: calc(-230px - var(--why-upper-lift));
    padding: 360px 145px 140px;
  }
}

@media (max-width: 1200px) {
  .why-stage__title {
    left: 32%;
    width: 67%;
    font-size: clamp(40px, 4.5vw, 54px);
  }

  .why-stage__dog {
    width: 62%;
    transform: translateY(-26px);
  }

  .why-benefits {
    right: 0;
    width: 43%;
  }

  .why-benefit {
    padding: 22px;
  }

  .why-benefit p {
    margin-top: 22px;
  }

  .team-panel {
    padding-top: 118px;
    padding-inline: 34px;
  }

  .doctor-card h4 {
    font-size: 18px;
  }

  .doctor-card p {
    font-size: 14px;
  }
}

@media (max-width: 820px) {
  .why-section {
    margin-top: 56px;
    padding: 70px 8px 80px;
  }

  .why-stage {
    min-height: 0;
    margin-top: 145px;
    padding: 120px 14px 24px;
    border-radius: 28px 28px 0 0;
    background: #9f7ec6;
  }

  .why-stage__heart {
    z-index: 0;
    top: 155px;
    left: 50%;
    color: rgba(112, 76, 148, 0.24);
    font-size: 330px;
    transform: translateX(-50%);
  }

  .why-stage__title {
    position: relative;
    z-index: 3;
    top: auto;
    left: auto;
    width: auto;
    margin: 0 auto;
    color: #fff;
    font-size: clamp(37px, 10vw, 50px);
    line-height: 1.02;
    text-align: center;
    transform: none;
  }

  .why-stage__title strong {
    color: #ff9fa4;
  }

  .why-stage__dog {
    top: auto;
    bottom: 100%;
    left: 50%;
    width: min(620px, 118vw);
    max-width: none;
  transform: translate(-50%, 14px);
  }

  .why-benefits {
    position: relative;
    z-index: 3;
    top: auto;
    right: auto;
    width: auto;
    margin-top: 38px;
    gap: 14px;
    transform: none;
  }

  .why-benefit {
    min-height: 0;
    padding: 24px 22px;
    border-radius: 22px;
  }

  .why-benefit h3 {
    font-size: 22px;
  }

  .why-benefit p {
    margin-top: 24px;
    font-size: 16px;
  }

  .team-panel {
    margin-top: 0;
    padding: 34px 14px 24px;
    border-radius: 0 0 28px 28px;
  }

  .team-panel__heart--one {
    top: -90px;
    left: -70px;
  }

  .team-panel__heading {
    align-items: flex-end;
  }

  .team-panel__heading h3 {
    font-size: clamp(35px, 9vw, 44px);
  }

  .team-panel__controls {
    gap: 8px;
  }

  .team-panel__controls button {
    width: 42px;
  }

  .team-list {
    display: flex;
    gap: 14px;
    margin-top: 26px;
    padding-bottom: 6px;
  }

  .doctor-card {
    flex: 0 0 min(78vw, 360px);
  }

  .doctor-card h4 {
    font-size: 19px;
  }

  .doctor-card p {
    font-size: 15px;
  }

  .team-panel__booking {
    min-height: 64px;
    margin-top: 38px;
    font-size: 19px;
  }
}

@media (max-width: 480px) {
  .why-stage {
    margin-top: 118px;
    padding-top: 105px;
  }

  .why-stage__dog {
    width: 122vw;
  }

  .why-stage__title {
    font-size: clamp(34px, 10.6vw, 43px);
  }

  .why-benefit p br {
    display: none;
  }

  .team-panel__heading {
    gap: 12px;
  }

  .team-panel__controls button {
    width: 38px;
  }

  .doctor-card {
    flex-basis: 82vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .why-stage__heart > span,
  .team-panel__heart > span {
    animation: none !important;
  }

  .team-list {
    scroll-behavior: auto;
  }
}
