:root {
  --blue: #0f4c81;
  --green: #3fae5a;
  --green-dark: #2f8b47;
  --ink: #263238;
  --muted: #65727a;
  --paper: #f5f7fa;
  --mist: #eef7ec;
  --gold: #e8b96a;
  --clay: #b86f52;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(0, 88, 159, 0.14);
  --page-pad: clamp(48px, 7.5vw, 92px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon,
.whatsapp-icon {
  display: inline-block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon {
  width: 19px;
  height: 19px;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 9px var(--page-pad);
  background: #f9fbfd;
  color: #536772;
  border-bottom: 1px solid rgba(15, 76, 129, 0.12);
  font-size: 0.84rem;
}

.topbar-info,
.social-links {
  display: flex;
  align-items: center;
}

.topbar-info {
  justify-content: flex-start;
  flex: 1;
  gap: 32px;
}

.social-links {
  gap: 10px;
}

.topbar-info span,
.topbar-info a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.topbar-info .icon {
  width: 16px;
  height: 16px;
  color: var(--green-dark);
}

.social-links .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.35;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(15, 76, 129, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  box-shadow: 0 8px 18px rgba(15, 76, 129, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(15, 76, 129, 0.18);
}

.social-links .social-whatsapp {
  color: #25d366;
}

.social-whatsapp .icon,
.whatsapp-icon {
  fill: currentColor;
  stroke: none;
}

.social-whatsapp .icon {
  width: 18px;
  height: 18px;
}

.social-links a[aria-label="TikTok"]:hover {
  background: #111827;
  border-color: #111827;
  color: var(--white);
}

.social-links .social-whatsapp:hover {
  background: #25d366;
  color: var(--white);
  border-color: #25d366;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(15, 76, 129, 0.08);
}

.nav {
  min-height: 96px;
  width: 100%;
  margin: 0;
  padding: 0 var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  width: min(330px, 34vw);
  height: 76px;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  transform: translateX(-14px) scale(1.55);
  transform-origin: left center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #31424a;
  font-weight: 700;
  font-size: 0.86rem;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 8px;
  background: var(--green-dark);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(47, 139, 71, 0.2);
  line-height: 1;
  white-space: nowrap;
}

.nav-links .nav-cta .icon {
  width: 22px;
  height: 22px;
  transform: translateY(-1px);
}

.nav-links .nav-cta::after {
  display: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--mist);
  border-radius: 8px;
  padding: 11px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--blue);
}

.hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  isolation: isolate;
  padding-bottom: 120px;
  background: #f7fbf8;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("imagen_hospital.png");
  background-size: cover;
  background-position: center 45%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 28%, rgba(255, 255, 255, 0.42) 50%, rgba(255, 255, 255, 0.02) 76%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 62%, rgba(245, 247, 250, 0.96) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: 48px 24px 56px 0;
  margin-left: var(--page-pad);
  color: var(--blue);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero .eyebrow {
  color: var(--green-dark);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  max-width: 620px;
  font-size: clamp(3.1rem, 5.4vw, 5.35rem);
  line-height: 1;
  letter-spacing: 0;
}

h1,
h2,
h3,
.brand,
.btn,
.nav-links {
  font-family: "Poppins", Arial, Helvetica, sans-serif;
}

.hero h1 span {
  display: block;
  color: var(--green);
}

.typewriter-title {
  min-height: 3em;
}

.type-line {
  display: block;
  min-height: 1em;
}

.type-blue {
  color: inherit;
}

.type-green {
  color: var(--green);
}

.hero .typewriter-title .type-blue {
  color: var(--blue);
}

.hero .typewriter-title .type-green {
  color: var(--green);
}

.typewriter-title.is-typing .type-line:last-child::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.82em;
  margin-left: 0.08em;
  border-radius: 999px;
  background: currentColor;
  animation: cursorBlink 0.78s steps(2, start) infinite;
  vertical-align: -0.04em;
}

.typewriter-title.is-done .type-line {
  text-shadow: 0 10px 30px rgba(15, 76, 129, 0.1);
}

@keyframes cursorBlink {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0;
  }
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: 0;
  color: #173640;
}

h3 {
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 510px;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  color: #465966;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 8px;
  border: 2px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn.primary {
  background: var(--green);
  color: var(--white);
}

.btn.light {
  background: rgba(255, 255, 255, 0.88);
  color: var(--green-dark);
  border-color: rgba(47, 139, 71, 0.36);
}

.btn.outline {
  border-color: var(--blue);
  color: var(--blue);
}

.hero-note {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 42px;
  margin-bottom: 42px;
  color: #536772;
}

.hero-note strong {
  color: var(--green-dark);
}

.hero-note p {
  margin-bottom: 0;
  font-size: 0.93rem;
}

.patient-avatars {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding-left: 2px;
}

.patient-avatars img {
  width: 34px;
  height: 34px;
  border: 3px solid var(--white);
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 8px 16px rgba(15, 76, 129, 0.14);
}

.patient-avatars img + img {
  margin-left: -11px;
}

.hero-benefits {
  position: absolute;
  left: var(--page-pad);
  right: var(--page-pad);
  bottom: 36px;
  z-index: 2;
  width: auto;
  transform: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 22px 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 50px rgba(15, 76, 129, 0.13);
  backdrop-filter: blur(14px);
}

.hero-benefits.visible {
  transform: translateY(0);
}

.hero-benefits article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 0 22px;
  border-right: 1px solid rgba(15, 76, 129, 0.12);
}

.hero-benefits article:last-child {
  border-right: 0;
}

.hero-benefits span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #eef5ef;
  color: var(--green-dark);
}

.hero-benefits h3 {
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 0.98rem;
}

.hero-benefits p {
  margin-bottom: 0;
  color: #65727a;
  font-size: 0.86rem;
  line-height: 1.45;
}

.section {
  padding: 96px 24px;
}

.section-grid,
.about,
.contact {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 56px;
  align-items: center;
}

.section-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.quote-panel {
  padding: 42px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--blue), var(--green-dark));
  color: var(--white);
  box-shadow: var(--shadow);
}

.quote-panel span {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}

.quote-panel h3 {
  margin: 18px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.services-band {
  background: linear-gradient(180deg, var(--mist), var(--paper));
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading p {
  color: var(--muted);
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid rgba(0, 88, 159, 0.16);
  border-radius: 8px;
  background: var(--white);
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  background: var(--blue);
  color: var(--white);
}

.service-panel {
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-panel.active {
  display: grid;
}

.service-card,
.doctor-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(38, 50, 56, 0.08);
}

.service-card img {
  height: 250px;
  object-fit: cover;
}

.service-card div {
  padding: 24px;
}

.service-card h3,
.doctor-card h3 {
  margin-bottom: 10px;
  color: #173640;
}

.service-card p,
.doctor-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.about-image img {
  min-height: 520px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.pillars span {
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--green-dark);
  font-weight: 800;
  font-size: 0.92rem;
}

.doctors {
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f8f7 100%);
}

.doctors-intro {
  max-width: 1180px;
  margin: 0 auto 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.doctors-intro div {
  max-width: 720px;
}

.doctors-intro p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.doctor-carousel-wrap {
  position: relative;
  max-width: 1180px;
  margin: 0 auto 48px;
}

.doctor-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 320px;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 4px 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.doctor-carousel::-webkit-scrollbar {
  display: none;
}

.doctor-slide {
  position: relative;
  height: 430px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #eef5f8 100%);
  color: var(--white);
  box-shadow: 0 18px 42px rgba(15, 76, 129, 0.16);
  scroll-snap-align: start;
}

.doctor-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}

.doctor-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 76, 129, 0) 34%, rgba(15, 76, 129, 0.18) 52%, rgba(15, 76, 129, 0.92) 100%);
}

.doctor-slide span,
.doctor-slide strong {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 22px;
}

.doctor-slide span {
  bottom: 68px;
  color: #bce7c5;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.doctor-slide strong {
  bottom: 24px;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  line-height: 1.1;
}

.doctor-slide:hover img {
  transform: scale(1.05);
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 16px 34px rgba(15, 76, 129, 0.18);
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel-control.prev {
  left: -18px;
}

.carousel-control.next {
  right: -18px;
}

.doctor-directory {
  max-width: 1180px;
  margin: 0 auto;
}

.directory-heading {
  margin-bottom: 22px;
}

.directory-heading h3 {
  margin-bottom: 0;
  color: var(--blue);
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
}

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.doctor-card {
  scroll-margin-top: 132px;
  padding-bottom: 0;
  border: 1px solid rgba(15, 76, 129, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 46px rgba(15, 76, 129, 0.14);
}

.doctor-card img {
  height: 275px;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(180deg, #ffffff, #eef5f8);
}

.doctor-card div {
  padding: 20px;
}

.doctor-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.doctor-card h3,
.doctor-card p,
.doctor-card a {
  margin-left: 0;
  margin-right: 0;
}

.doctor-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--blue);
}

.doctor-card a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--green-dark);
  font-weight: 900;
}

.doctors-page-hero {
  padding-top: 74px;
  padding-bottom: 58px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 236, 0.84)),
    url("imagen_hospital.png");
  background-size: cover;
  background-position: center;
}

.doctors-page-hero h1 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 5vw, 5.2rem);
  color: var(--blue);
}

.doctors-page-hero .doctors-intro {
  margin-bottom: 0;
}

.doctors-page-list {
  padding-top: 62px;
}

.doctor-card:target {
  outline: 3px solid rgba(63, 174, 90, 0.34);
  box-shadow: 0 0 0 8px rgba(63, 174, 90, 0.08), 0 20px 46px rgba(15, 76, 129, 0.14);
}

.count-up {
  display: inline-block;
  min-width: 58px;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.doctor-slide,
.doctor-card,
.service-card {
  animation: floatIn 0.7s ease both;
}

.doctor-slide:nth-child(2),
.doctor-card:nth-child(2),
.service-card:nth-child(2) {
  animation-delay: 0.08s;
}

.doctor-slide:nth-child(3),
.doctor-card:nth-child(3),
.service-card:nth-child(3) {
  animation-delay: 0.16s;
}

.doctor-slide:nth-child(4),
.doctor-card:nth-child(4) {
  animation-delay: 0.24s;
}

.story-layout {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
}

.story-feature {
  min-height: 420px;
  padding: 38px;
  border-radius: 8px;
  background:
    linear-gradient(0deg, rgba(0, 58, 104, 0.82), rgba(0, 58, 104, 0.22)),
    url("https://images.unsplash.com/photo-1505751172876-fa1923c5c528?auto=format&fit=crop&w=1200&q=82");
  background-size: cover;
  background-position: center;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.story-feature span {
  color: var(--gold);
  font-weight: 800;
}

.story-feature h3 {
  max-width: 680px;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.story-feature p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
}

.blog-list {
  display: grid;
  gap: 14px;
}

.blog-list a {
  display: grid;
  gap: 8px;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
  border-left: 5px solid var(--green);
  box-shadow: 0 14px 40px rgba(38, 50, 56, 0.08);
}

.blog-list span {
  color: var(--muted);
}

.radio-section {
  padding: 74px 24px;
  background:
    linear-gradient(90deg, rgba(0, 88, 159, 0.92), rgba(74, 118, 48, 0.9)),
    url("https://images.unsplash.com/photo-1478737270239-2f02b77fc618?auto=format&fit=crop&w=1400&q=80");
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.radio-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.radio-inner h2 {
  color: var(--white);
  margin-bottom: 14px;
}

.radio-inner p {
  max-width: 670px;
  color: rgba(255, 255, 255, 0.88);
}

.radio-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  min-height: 58px;
  padding: 14px 22px;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  color: var(--blue);
  cursor: pointer;
  font-size: 1rem;
}

.radio-button.is-playing {
  background: var(--gold);
  color: #173640;
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid currentColor;
}

.radio-button.is-playing .play-icon {
  width: 16px;
  height: 18px;
  border: 0;
  border-left: 5px solid currentColor;
  border-right: 5px solid currentColor;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: #173640;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(0, 88, 159, 0.16);
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  background: #fbfdfb;
}

textarea {
  resize: vertical;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 30px var(--page-pad);
  background:
    radial-gradient(circle at 15% 0%, rgba(63, 174, 90, 0.16), transparent 32%),
    #173640;
  color: rgba(255, 255, 255, 0.86);
}

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 20px;
  text-align: center;
}

.footer strong {
  color: var(--white);
}

.footer-copy span {
  position: relative;
}

.footer-copy span + span::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 50%;
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%);
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.36);
}

.whatsapp-icon {
  width: 38px;
  height: 38px;
  fill: currentColor;
  stroke: none;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-benefits.reveal {
  transform: translateY(22px);
}

.hero-benefits.reveal.visible {
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .topbar {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 100px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }
}

@media (max-width: 920px) {
  :root {
    --page-pad: 24px;
  }

  .hero {
    min-height: auto;
    padding-bottom: 0;
  }

  .hero-content {
    padding-top: 52px;
    padding-bottom: 42px;
    padding-left: 0;
    margin-left: 18px;
  }

  .hero-media {
    background-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 56%, rgba(255, 255, 255, 0.38) 100%),
      linear-gradient(180deg, rgba(255, 255, 255, 0) 58%, rgba(245, 247, 250, 0.96) 100%);
  }

  .hero-benefits {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: min(100% - 36px, 620px);
    margin: 0 auto 34px;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    transform: none;
  }

  .hero-benefits.reveal,
  .hero-benefits.reveal.visible {
    transform: translateY(0);
  }

  .hero-benefits article {
    border-right: 0;
    padding: 0;
  }

  .section-grid,
  .about,
  .contact,
  .story-layout {
    grid-template-columns: 1fr;
  }

  .service-panel.active {
    grid-template-columns: 1fr;
  }

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

  .doctors-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .doctor-carousel {
    grid-auto-columns: minmax(230px, 78vw);
  }

  .carousel-control {
    display: none;
  }

  .radio-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  :root {
    --page-pad: 18px;
  }

  .brand-logo {
    transform: translateX(-8px) scale(1.42);
  }

  .brand {
    width: 230px;
    height: 56px;
  }

  .nav {
    min-height: 78px;
  }

  .nav-links {
    top: 82px;
  }

  .section {
    padding: 72px 18px;
  }

  h1 {
    font-size: clamp(2.5rem, 13vw, 3.5rem);
  }

  .hero-content {
    padding-top: 42px;
    padding-left: 18px;
    padding-right: 18px;
    margin-left: 0;
  }

  .hero-media {
    background-position: 68% center;
  }

  .contact-actions,
  .tabs {
    flex-direction: column;
  }

  .btn,
  .tab,
  .radio-button {
    width: 100%;
  }

  .hero-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .quote-panel,
  .story-feature {
    padding: 28px;
  }

  .about-image img {
    min-height: 340px;
  }

  .hero-benefits {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .footer {
    justify-content: center;
    text-align: center;
  }

  .footer-copy {
    justify-content: center;
    text-align: center;
  }

  .footer-copy span + span::before {
    display: none;
  }

  .doctor-grid {
    grid-template-columns: 1fr;
  }

  .doctor-card img {
    height: 320px;
  }
}
