.home-hero {
  --accent: var(--smd-primary);
  position: relative;
  z-index: 1;
  width: 100%;
  height: 680px;
  overflow: hidden;
  background: #eef2f1;
}

.home-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease-in-out;
}

.home-hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.home-hero-bg,
.home-hero-overlay {
  position: absolute;
  inset: 0;
}

.home-hero-bg {
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.04);
  transition: transform 6s ease;
}

.home-hero-slide.active .home-hero-bg {
  transform: scale(1);
}

.home-hero-slide--clinic .home-hero-bg {
  background-position: center center;
}

.home-hero-overlay {
  background: rgba(245, 245, 245, 0.14);
  pointer-events: none;
}

.home-hero-slide--clinic .home-hero-overlay {
  background: rgba(255, 255, 255, 0.04);
}

.home-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding: 0 72px;
}

.home-hero-content .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
}

.home-hero-card {
  width: 100%;
  max-width: 470px;
  padding: 28px 32px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 255, 0.9));
  box-shadow: 0 24px 58px rgba(31, 55, 86, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.home-hero-slide.active .home-hero-card {
  opacity: 1;
  transform: none;
}

.home-hero-title {
  margin: 0;
  color: #243246;
  font-family: "Manrope", sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
  -webkit-font-smoothing: antialiased;
}

.home-hero-title-line {
  display: block;
}

.home-hero-title-line--brand {
  white-space: nowrap;
}

.home-hero-subtitle {
  margin: 12px 0 0;
  color: #5b6a7d;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

.home-hero-price {
  margin-top: 10px;
  color: var(--accent);
  font-size: 22px;
  font-weight: 800;
}

.home-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 19px;
  padding: 12px 27px;
  border-radius: 14px;
  background: #25d366;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--smd-brand-brown) 28%, transparent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.home-hero-btn:hover {
  background: var(--smd-brand-brown-hover);
  box-shadow: 0 14px 26px color-mix(in srgb, var(--smd-brand-brown) 36%, transparent);
  color: #fff;
  transform: translateY(-2px);
}

.home-hero-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.home-hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transform: translateY(-50%);
  transition: all .25s;
}

.home-hero-arrow:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-50%) scale(1.05);
}

.home-hero-arrow--prev {
  left: 20px;
}

.home-hero-arrow--next {
  right: 20px;
}

.home-hero-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #333;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.home-hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: none;
  width: 0;
  height: 3px;
  background: var(--accent);
}

.home-hero-progress.running {
  animation: homeHeroProgress var(--home-hero-delay, 6s) linear forwards;
}

@keyframes homeHeroProgress {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .home-hero {
    height: 540px;
  }

  .home-hero-content {
    padding: 0 40px;
  }

  .home-hero-card {
    max-width: 450px;
    padding: 23px 26px;
  }
}

@media (max-width: 768px) {
  .home-hero {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 520px;
  }

  .home-hero-slide,
  .home-hero-bg,
  .home-hero-overlay,
  .home-hero-content {
    width: 100%;
    max-width: 100%;
    min-height: 520px;
  }

  .home-hero-content {
    display: block;
    padding: 0;
  }

  .home-hero-content .container {
    position: static;
    display: block;
    width: auto !important;
    max-width: none;
    height: auto;
    margin: 0;
  }

  .home-hero-card {
    position: absolute;
    right: auto;
    bottom: 34px;
    left: 16px;
    width: min(358px, calc(100% - 32px)) !important;
    max-width: min(358px, calc(100% - 32px)) !important;
    padding: 24px 22px;
    border-radius: 18px;
  }

  .home-hero-title {
    font-size: 24px;
  }

  .home-hero-title-line--brand {
    white-space: normal;
  }

  .home-hero-subtitle {
    font-size: 15px;
  }

  .home-hero-btn {
    width: 100%;
    justify-content: center;
  }

  .home-hero-arrow {
    top: 38%;
    width: 44px;
    height: 44px;
  }

  .home-hero-arrow--prev {
    left: 12px;
  }

  .home-hero-arrow--next {
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-slide,
  .home-hero-bg,
  .home-hero-card,
  .home-hero-progress {
    animation: none !important;
    transition: none !important;
  }
}
