.dentistry-main {
  min-height: calc(100vh - var(--header-h));
  background: linear-gradient(180deg, #fff 0%, #f8fbfd 100%);
}

.dentistry-slider-wrap {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
  background: #f0f4f7;
}

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

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

.dentistry-slide-bg,
.dentistry-slide-overlay {
  position: absolute;
  inset: 0;
}

.dentistry-slide-bg {
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  transition: transform var(--dentistry-slider-delay, 6s) ease;
}

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

.dentistry-slide-overlay {
  background: rgba(245, 245, 245, 0.15);
}

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

.dentistry-slide-content .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.dentistry-slide-card {
  width: 100%;
  max-width: 450px;
  padding: 30px 34px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(20px);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.dentistry-slide.active .dentistry-slide-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.dentistry-slide-card h2 {
  margin: 0;
  color: var(--smd-text);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  line-height: 1.15;
}

.dentistry-slide-badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 14px;
  border-radius: 50px;
  background: var(--smd-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.5;
  text-transform: uppercase;
}

.dentistry-slide-card p {
  margin: 12px 0 0;
  color: var(--smd-muted);
  font-size: 15px;
  line-height: 1.6;
}

.dentistry-slider-arrow {
  position: absolute;
  z-index: 10;
  top: 50%;
  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.75);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.dentistry-slider-arrow:hover,
.dentistry-slider-arrow:focus-visible {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  outline: none;
  transform: translateY(-50%) scale(1.05);
}

.dentistry-slider-arrow--prev {
  left: 20px;
}

.dentistry-slider-arrow--next {
  right: 20px;
}

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

.dentistry-slider-dots {
  position: absolute;
  z-index: 10;
  bottom: 28px;
  left: 50%;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.dentistry-slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.dentistry-slider-dot.active {
  background: var(--smd-text);
  transform: scale(1.3);
}

.dentistry-slider-dot:focus-visible {
  outline: 2px solid var(--smd-blue);
  outline-offset: 4px;
}

.dentistry-slider-progress {
  position: absolute;
  z-index: 10;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--smd-blue);
}

.dentistry-slider-progress.running {
  animation: dentistry-progress var(--dentistry-slider-delay, 6s) linear forwards;
}

.dentistry-intro {
  padding: 46px 0 28px;
  background: #fff;
}

.dentistry-intro-inner,
.dentistry-index-inner {
  max-width: 1280px;
}

.dentistry-intro-title {
  margin: 0 0 12px;
  color: var(--smd-text);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.16;
}

.dentistry-intro-text {
  max-width: 760px;
  margin: 0;
  color: #5f6f82;
  font-size: 17px;
  line-height: 1.7;
}

.dentistry-index {
  padding: 50px 0 28px;
}

.dentistry-index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  column-gap: 30px;
  row-gap: 35px;
}

.dentistry-index-card,
.dentistry-index-card:visited {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: #333;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.dentistry-index-card:hover,
.dentistry-index-card:focus-visible {
  color: #333;
  outline: none;
  box-shadow: 0 10px 8px -1px rgba(0, 0, 0, 0.34);
  transform: translateY(-2px);
}

.dentistry-index-media {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 5px;
  background: #eef7fb;
}

.dentistry-index-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.045);
  transition: transform 0.25s ease;
}

.dentistry-index-card:hover .dentistry-index-image,
.dentistry-index-card:focus-visible .dentistry-index-image {
  transform: scale(1.075);
}

.dentistry-index-title {
  min-height: 46px;
  margin: 10px 0;
  padding: 0;
  color: var(--smd-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.28;
  text-align: center;
}

.services-cta.dentistry-cta {
  padding: 8px 0 28px;
  background: #f8fbfd;
}

.dentistry-cta .services-cta__block {
  padding: 34px 44px;
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(0, 122, 163, 0.16);
}

.dentistry-shared-cards {
  padding-top: 40px;
  background: #fafbfc;
}

@keyframes dentistry-progress {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .dentistry-slider-wrap {
    height: 440px;
  }

  .dentistry-slide-content {
    padding: 0 40px;
  }

  .dentistry-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .dentistry-slider-wrap,
  .dentistry-slide,
  .dentistry-slide-bg,
  .dentistry-slide-overlay,
  .dentistry-slide-content {
    min-height: 480px;
  }

  .dentistry-slider-wrap {
    height: auto;
  }

  .dentistry-slide-content {
    align-items: flex-end;
    justify-content: center;
    padding: 200px 16px 32px;
  }

  .dentistry-slide-content .container {
    align-items: flex-end;
    justify-content: center;
    width: 100%;
  }

  .dentistry-slide-card {
    padding: 28px 24px;
  }

  .dentistry-slider-arrow {
    width: 44px;
    height: 44px;
  }

  .dentistry-slider-arrow--prev {
    left: 12px;
  }

  .dentistry-slider-arrow--next {
    right: 12px;
  }

  .dentistry-intro {
    padding: 36px 0 22px;
  }

  .dentistry-intro-text {
    font-size: 15px;
  }

  .dentistry-index {
    padding-top: 34px;
  }

  .dentistry-index-grid {
    column-gap: 24px;
    row-gap: 30px;
  }

  .dentistry-index-title {
    min-height: 38px;
  }

  .dentistry-shared-cards {
    padding-top: 32px;
  }
}

@media (max-width: 480px) {
  .dentistry-slide-card {
    padding: 24px 20px;
  }

  .dentistry-slide-card h2 {
    font-size: 24px;
  }

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

  .dentistry-intro {
    padding: 30px 0 18px;
  }

  .dentistry-intro-title {
    font-size: 28px;
  }

  .dentistry-index-inner {
    max-width: 390px;
  }

  .dentistry-index-grid {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }

  .dentistry-index-media {
    aspect-ratio: 2 / 1;
  }

  .dentistry-index-title {
    min-height: 0;
  }

  .dentistry-cta .services-cta__block {
    padding: 32px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dentistry-slide,
  .dentistry-slide-bg,
  .dentistry-slide-card {
    transition: none;
  }

  .dentistry-slider-progress {
    animation: none !important;
  }
}
