.dentin-patients { padding: clamp(2.5rem, 6vw, 5rem) 1.25rem; }
.dentin-section-heading { max-width: 45rem; margin: 0 auto 1.75rem; text-align: center; }
.dentin-section-heading p { margin-top: .6rem; }
.dentin-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.dentin-card { grid-column: span 2; display: flex; flex-direction: column; gap: .7rem; padding: clamp(1rem, 2vw, 1.75rem); border: 1px solid #d9e0e8; border-radius: 1rem; background: #f6f8fb; color: #182b48; text-decoration: none; transition: background-color 140ms ease, border-color 140ms ease; }
.dentin-card:nth-child(n + 4) { grid-column: span 3; }
.dentin-card-feature { background: #e9f0fc; border-color: #aac1e7; }
.dentin-card:hover, .dentin-card:focus-visible { background: #e1ebfc; border-color: #577ba9; }
.dentin-card h3, .dentin-card p { margin: 0; }
.dentin-card h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.2; }
.dentin-card > span { margin-top: auto; padding-top: .35rem; font-weight: 600; }
.dentin-hero-link { display: inline-block; color: #fff; margin-left: 1rem; text-decoration: underline; text-underline-offset: .2rem; }
.dentin-contact, .dentin-page { color: #182b48; }
.dentin-contact { display: grid; grid-template-columns: 1fr 1.2fr; align-items: start; gap: clamp(1.25rem, 4vw, 3rem); padding: clamp(1.25rem, 4vw, 3rem); border-radius: 1rem; background: #f4f7fb; }
.dentin-form { display: grid; gap: .85rem; }
.dentin-form label { display: grid; gap: .25rem; margin: 0; }
.dentin-form input, .dentin-form select, .dentin-form textarea { box-sizing: border-box; width: 100%; min-width: 0; min-height: 2.75rem; padding: .55rem .7rem; border: 1px solid #8295ae; border-radius: .4rem; background: #fff; color: #182b48; font: inherit; }
.dentin-form button { justify-self: start; }
.dentin-form-status { margin: 0; }
.dentin-form-status:empty, .dentin-trap { display: none; }
.dentin-page { padding: clamp(2.5rem, 8vw, 6rem) 1.25rem; }
.dentin-page h1 { font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.05; margin: 0 0 1rem; }
.dentin-page h2 { font-size: clamp(1.2rem, 3vw, 1.7rem); line-height: 1.2; margin: 1.3rem 0 .35rem; }
.dentin-page p { max-width: 70ch; margin-bottom: .8rem; }
.dentin-lead { font-size: 1.15rem; }
.dentin-price-list, .dentin-news-list { display: grid; gap: .7rem; margin-top: 1.5rem; }
.dentin-price-list article, .dentin-news-list article { border: 1px solid #d9e0e8; border-radius: .75rem; padding: 1rem 1.25rem; }
.dentin-price-list h2, .dentin-news-list h2 { margin: 0 0 .25rem; }
.dentin-page a, .dentin-contact a { color: #1a4d86; text-decoration: underline; text-underline-offset: .2rem; }
.dentin-admin { box-sizing: border-box; width: min(48rem, 100%); margin: auto; padding: 1.5rem; }
.dentin-admin textarea { min-height: 9rem; }
@media (max-width: 767px) {
  .dentin-card, .dentin-card:nth-child(n + 4) { grid-column: span 3; }
  .dentin-contact { grid-template-columns: 1fr; }
  .dentin-hero-link { margin-left: .5rem; }
}
@media (max-width: 479px) {
  .dentin-card, .dentin-card:nth-child(n + 4) { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .dentin-card, .w-nav-overlay, .w-slide { transition-duration: 0ms !important; }
}

/* Allow content columns to shrink before switching to a single column. */
.hero-bottom > *,
.service > *,
.section-service-hero > *,
.section-service-body > *,
.section-service-body-small > *,
.service-body-top > *,
.service-body-center > *,
.section-why-top > *,
.section-why-bottom > *,
.footer-right-inner > *,
.dentin-contact > *,
.dentin-cards > * { min-width: 0; }

:where(h1, h2, h3, h4, p, li, .footer-contact, .dentin-card) { overflow-wrap: anywhere; }
.hero-bottom > .hero-bottom-image, .hero-bottom > .link-block { flex: 1 1 0; }
.hero-bottom > .hero-bottom-image, .hero-bottom .hero-bottom-image.corners {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1.55;
  height: auto;
  object-fit: cover;
}
.service-image, .section-why-bottom > .img-rounded { width: 100%; }
.section-why-bottom > .img-rounded { flex: 1 1 0%; }
.section-gallery .grid > img { min-width: 0; }
.section-map.max-content {
  height: clamp(19rem, 52vw, 34rem);
  padding-bottom: 0;
}
.section-map iframe { display: block; width: 100%; height: 100%; border-radius: 10px; }
.dentin-hero-link { color: var(--brand-accent-dark, #182b48); }
.section-cards .card { min-width: 0; }
.footer-brand, .footer-logo img { max-width: 100%; height: auto; }

@media (max-width: 1199px) {
  .section-service-hero.max-content,
  .section-service-body.max-content,
  .section-service-body-small.max-content,
  .service-body-top,
  .service-body-center.max-content { gap: clamp(1.25rem, 3vw, 2.75rem); }
  .section-service-hero .service-hero-media { flex: 0 1 42%; width: 42%; }
  .section-service-hero .service-hero-info { min-width: 0; }
  .service-body-small-right { flex: 0 1 45%; max-width: 45%; }
  .service-body-left { flex-basis: 25%; }
  .why-text { margin-inline: clamp(1rem, 3vw, 2.5rem); }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .nav-menu { gap: clamp(.55rem, 1.2vw, 1rem); }
  .nav-menu .nav-link { white-space: nowrap; }
}

@media (max-width: 991px) {
  .nav-menu-wrapper[data-nav-menu-open] { max-height: calc(100vh - 5rem); max-height: calc(100dvh - 5rem); overflow-y: auto; }
  .nav-menu { position: static; gap: .25rem; padding: .65rem 1rem; }
  .nav-menu li { max-width: 100%; }
  .nav-menu .nav-link { display: block; }
  .hero-top.corners { background-size: min(49%, 32rem) auto, min(22%, 13rem) auto, auto; }
  .section-why-top .image-5.img-rounded {
    display: block;
    flex: 0 1 42%;
    width: 42%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .section-gallery .grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-columns: auto;
    grid-auto-rows: auto;
  }
  .section-gallery .grid > img {
    grid-area: auto !important;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .advantages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .max-content, .navbar-no-shadow-container.max-content, .section-cards {
    padding-inline: clamp(.875rem, 4vw, 1.25rem);
  }
  .hero-top.corners { padding: clamp(1.25rem, 5vw, 2.5rem); background-size: min(33%, 8rem) auto, auto; }
  .h1, .h1.text-shadow.h1-fixed, .service-hero-title {
    max-width: none;
    font-size: clamp(1.85rem, 5.7vw, 2.65rem);
    line-height: 1.1;
  }
  .hero-top .button, .hero-top .dentin-hero-link { margin: 0 .65rem .6rem 0; }
  .hero-bottom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-bottom-image.corners.hide-mobile { display: block; }
  .hero-bottom .link-block-text { font-size: clamp(.75rem, 2.4vw, 1rem); }
  .section-services, .section-services.margin-section { padding-left: clamp(.875rem, 4vw, 1.25rem); }
  .slider { height: clamp(16.5rem, 51vw, 20rem); }
  .slider-slide { width: clamp(13.75rem, 75vw, 20rem); padding: 1rem; }
  .section-video .video-thumbnail { width: 100%; height: auto; margin: 0; border-radius: 10px; }
  .section-video .h2-abs, .section-video .text-abs {
    display: block;
    position: static;
    max-width: none;
    color: var(--brand-accent-dark, #182b48);
  }
  .section-video .h2-abs { margin: .75rem 0 .3rem; font-size: clamp(1.4rem, 4.5vw, 2rem); line-height: 1.15; }
  .section-video .video-icon { display: none; }
  .section-service-hero.max-content, .section-service-body.max-content,
  .section-service-body-small.max-content, .service-body-top,
  .service-body-center.max-content, .section-why-top, .section-why-bottom,
  .section-cards.max-content, .section-cards .cards-flex-wrapper, .service { flex-direction: column; gap: 1rem; }
  .service-info, .service-media, .service-body-small-right, .service-body-top,
  .service-body-left, .service-body-right, .service-body-center-left,
  .section-cards .card, .section-why-top .why-text, .section-why-bottom > .img-rounded {
    flex: 0 1 auto;
    width: 100%;
    max-width: none;
  }
  .service-info, .card { padding: clamp(1rem, 4vw, 1.35rem); }
  .service-media, .section-service-hero .service-hero-media, .service-body-top .image-7,
  .section-why-top .image-5.img-rounded {
    display: block;
    flex: 0 1 auto;
    width: 100%;
    max-width: none;
    height: auto;
  }
  .service-image, .section-service-hero .service-hero-media, .service-body-top .image-7,
  .section-why-top .image-5.img-rounded, .section-why-bottom > .img-rounded { height: auto; }
  .service-image, .section-why-top .image-5.img-rounded { aspect-ratio: 16 / 10; }
  .section-why-top .why-text { margin: 0; }
  .section-gallery .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-footer .section-inner-dark { gap: 1.5rem; padding: 1.1rem; }
  .footer-left, .footer-right { width: 100%; min-width: 0; }
  .footer-right-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 1rem; }
  .dentin-contact { grid-template-columns: minmax(0, 1fr); }
  .dentin-form input, .dentin-form select, .dentin-form textarea { font-size: max(1rem, 16px); }
}

@media (max-width: 479px) {
  .hero-bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-bottom > :last-child { grid-column: 1 / -1; }
  .hero-bottom > :last-child img { aspect-ratio: 2; }
  .section-gallery .grid { gap: .45rem; }
  .advantage { padding: .65rem .4rem; }
  .advantage-image { width: min(60%, 3.75rem); height: auto; }
  .advantage h5 { font-size: clamp(.9rem, 3.7vw, 1.1rem); line-height: 1.2; }
}

.dentin-contact-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0; }
.dentin-contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  max-width: 100%;
  padding: .5rem .85rem;
  border: 1px solid #b3c5e3;
  border-radius: .55rem;
  background: #fff;
  color: var(--brand-accent-dark, #182b48);
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.dentin-contact-actions a:first-child { background: #e3edff; }
.dentin-contact-actions a:hover, .dentin-contact-actions a:focus-visible { background: #d3e2fa; }
.dentin-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.dentin-appointment { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.dentin-appointment[hidden], .dentin-appointment-status:empty { display: none; }
.dentin-appointment legend, .dentin-appointment p { grid-column: 1 / -1; }
.dentin-appointment legend { margin-bottom: .35rem; font-weight: 500; }
.dentin-appointment p { margin: 0; font-size: .9rem; }
@media (max-width: 991px) { .dentin-appointment { grid-template-columns: minmax(0, 1fr); } }

.dentin-contact-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dentin-contact-actions a { text-align: center; padding-inline: .5rem; }
