:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f6f8f6;
  --surface-strong: #eef3ee;
  --text: #171b1f;
  --muted: #3f474d;
  --line: #dde3df;
  --green: #278d17;
  --red: #ed1b12;
  --gold: #c9bb5f;
  --shadow: 0 14px 36px rgba(31, 38, 35, 0.08);
  --radius: 8px;
  --container: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body.dark {
  color-scheme: dark;
  --bg: #23272a;
  --surface: #2f3437;
  --surface-strong: #3a4043;
  --text: #f3f5f4;
  --muted: #c8cfca;
  --line: #4a5155;
  --shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 74px;
  padding: 10px max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: auto;
  height: auto;
  min-width: 0;
  line-height: 0;
}

.brand img {
  flex: 0 0 auto;
  width: auto;
  height: 52px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.site-nav a,
.nav-parent {
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.nav-parent {
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.site-nav a:hover,
.site-nav a.active,
.nav-parent:hover,
.nav-parent.active,
.nav-dropdown.open .nav-parent {
  background: var(--surface);
  color: var(--green);
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: none;
  min-width: 280px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.14);
}

.nav-dropdown.open .nav-dropdown-menu {
  display: grid;
  gap: 2px;
}

.nav-dropdown-menu a {
  padding: 10px 12px;
  white-space: normal;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 96px;
  height: 38px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.segmented button,
.theme-toggle,
.nav-toggle {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.segmented button {
  font-size: 12px;
  font-weight: 800;
}

.segmented button.active {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 1px 8px rgba(39, 141, 23, 0.24);
}

.theme-toggle,
.nav-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 800;
}

.theme-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.nav-toggle {
  display: none;
}

.hero {
  min-height: clamp(540px, 78vh, 760px);
  display: flex;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.2) 52%, rgba(0, 0, 0, 0.06)),
    url("../assets/images/photo_clinic.webp") center / cover no-repeat;
  color: #ffffff;
}

.hero-content {
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 clamp(58px, 9vw, 96px);
}

.hero h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(30px, 4.8vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  font-size: 20px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-actions {
  width: fit-content;
}

.hero-actions .button {
  width: 330px;
  white-space: nowrap;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  font-weight: 800;
  overflow: hidden;
}

.hero-actions .button::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -45%;
  width: 34%;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.18) 38%, rgba(255, 255, 255, 0.48) 50%, rgba(255, 255, 255, 0.18) 62%, transparent 100%);
  transform: translateX(-120%) skewX(-18deg);
  animation: button-wave 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes button-wave {
  0%,
  42% {
    transform: translateX(-120%) skewX(-18deg);
  }

  72%,
  100% {
    transform: translateX(520%) skewX(-18deg);
  }
}

.button.primary {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button:disabled::after {
  display: none;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.mobile-call-button {
  display: none;
}

.page {
  min-height: calc(100vh - 146px);
}

.page-hero {
  width: var(--container);
  margin: 0 auto;
  padding: 70px 0 36px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1,
.section h2 {
  margin: 6px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.services-title {
  font-size: clamp(28px, 3.4vw, 42px);
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 54px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

.doctors-main-section {
  padding-top: 70px;
}

.doctors-main-section .section-heading {
  max-width: none;
  margin-bottom: 54px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  max-width: 900px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 19px;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  transform: translateY(-22px);
}

.summary-item {
  min-height: 118px;
  padding: 22px;
  background: var(--bg);
}

.summary-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.summary-item strong {
  display: block;
  font-size: 17px;
  line-height: 1.35;
}

.principles-section {
  padding-top: 0;
}

.principles-section h2 {
  margin-bottom: 32px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.principle-card {
  min-height: 142px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.principle-card h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.2;
}

.principle-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.45;
}

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

.home-info-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.home-info-card h3 {
  margin: 0;
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-info-card p {
  margin: 0;
  color: var(--text);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.55;
}

.home-schedule-list {
  display: grid;
}

.home-schedule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.home-schedule-row strong,
.home-schedule-row span {
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.35;
}

.home-schedule-row strong {
  font-weight: 400;
}

.home-contact-list {
  display: grid;
  gap: 8px;
}

.home-contact-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--text);
}

.home-contact-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--green);
}

.home-contact-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.home-contact-item a,
.home-contact-item p {
  color: var(--text);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.35;
}

.home-contact-item a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-contact-item .clinic-phone-link {
  text-decoration: none;
}

.clinic-phone-number {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.clinic-phone-registry {
  text-decoration: none;
}

.home-contact-item p {
  margin: 0;
}

.home-contact-address {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.home-map-section {
  padding-top: 0;
}

.home-map-section .map-panel {
  margin-top: 0;
}

.views-counter {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}

.views-counter span:last-child {
  font-variant-numeric: tabular-nums;
}

.two-column,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(30px, 6vw, 70px);
  align-items: start;
}

.mission-section {
  padding-bottom: 34px;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mission-card,
.doctor-card,
.content-card,
.service-card,
.contact-panel,
.admin-item,
.patient-section,
.list-panel,
.note-list p {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.mission-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 168px;
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
}

.mission-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--green);
}

.mission-card-mission {
  grid-column: span 1;
}

.mission-card-vision {
  grid-column: span 1;
  margin-top: 0;
}

.mission-card-values {
  grid-column: 1 / -1;
  min-height: 0;
  margin-top: 0;
}

.mission-card h3,
.doctor-card h3,
.content-card h3,
.service-card h3,
.patient-section h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.mission-card p,
.mission-card li,
.doctor-card p,
.content-card p,
.service-card p,
.patient-section p {
  color: var(--muted);
}

.mission-card h3 {
  color: var(--green);
  font-size: clamp(24px, 3vw, 34px);
}

.mission-card p {
  max-width: 780px;
  margin: 0;
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.55;
}

.mission-card ul,
.service-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.mission-card-values ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  margin-top: 18px;
  padding-left: 0;
  list-style: none;
}

.mission-card-values li {
  position: relative;
  padding-left: 18px;
  font-size: 16px;
  line-height: 1.45;
}

.mission-card-values li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 7px;
  height: 2px;
  background: var(--green);
}

.service-preview,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.service-card {
  padding: 20px;
}

.service-card p {
  margin: 0;
}

.service-card h3 {
  font-size: 17px;
}

.text-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--green);
  font-weight: 900;
}

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

.doctor-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.doctor-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface), var(--surface-strong));
  color: var(--muted);
  font-weight: 900;
}

.doctor-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
  background: var(--surface);
}

.doctor-body {
  padding: 18px;
}

.doctor-meta {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 14px;
}

.doctor-details {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.doctor-details li {
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  background: var(--bg);
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

.list-panel {
  padding: 22px;
}

.list-panel ul {
  columns: 2;
  margin: 0;
  padding-left: 20px;
}

.list-panel li {
  break-inside: avoid;
  margin-bottom: 10px;
  color: var(--muted);
}

.note-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.note-list p {
  margin: 0;
  padding: 16px 18px;
  color: var(--muted);
}

.content-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.content-card-media {
  position: relative;
  background: var(--surface);
}

.content-media-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.content-media-tile {
  flex: 0 0 100%;
  scroll-snap-align: start;
  cursor: zoom-in;
  outline: none;
}

.content-card-media.media-carousel .content-media-track {
  padding: 8px 48px;
}

.content-card-media.media-carousel .content-media-tile {
  flex-basis: min(78%, 520px);
}

.media-scroll {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 52px;
  border: 0;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.38);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.22);
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.42);
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.media-scroll:hover,
.media-lightbox-close:hover,
.media-lightbox-nav:hover {
  background: rgba(26, 185, 126, 0.74);
  box-shadow: 0 16px 34px rgba(20, 184, 130, 0.24), 0 8px 20px rgba(15, 23, 42, 0.28);
}

.media-scroll:focus-visible,
.media-lightbox-close:focus-visible,
.media-lightbox-nav:focus-visible {
  outline: 3px solid rgba(26, 185, 126, 0.42);
  outline-offset: 3px;
}

.media-scroll:active {
  transform: translateY(-50%) scale(0.94);
}

.media-scroll-prev {
  left: 10px;
}

.media-scroll-next {
  right: 10px;
}

.content-card-media img,
.content-card-media video,
.content-card-media iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  object-fit: cover;
  background: var(--surface);
}

.content-card-media video {
  display: block;
  background: #000000;
  object-fit: contain;
}

.content-media-tile.is-inline-video {
  cursor: default;
}

.content-media-tile iframe {
  pointer-events: none;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.76);
}

.media-lightbox-dialog {
  position: relative;
  width: min(1100px, 100%);
  max-height: 92vh;
  padding-top: 48px;
}

.media-lightbox-frame {
  display: grid;
  place-items: center;
  min-height: 220px;
  touch-action: pan-y;
}

.media-lightbox-frame img,
.media-lightbox-frame video,
.media-lightbox-frame iframe {
  max-width: 100%;
  max-height: 86vh;
  border: 0;
  background: #000000;
  object-fit: contain;
}

.media-lightbox-frame iframe {
  width: min(1100px, 92vw);
  aspect-ratio: 16 / 9;
}

.media-lightbox-close,
.media-lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.5);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  color: #ffffff;
  font-weight: 900;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.media-lightbox-close {
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  font-size: 24px;
  line-height: 1;
}

.media-lightbox-nav {
  top: 50%;
  width: 52px;
  height: 62px;
  font-size: 26px;
  line-height: 1;
  transform: translateY(-50%);
}

.media-lightbox-close:active {
  transform: scale(0.94);
}

.media-lightbox-nav:active {
  transform: translateY(-50%) scale(0.94);
}

.media-lightbox-prev {
  left: -56px;
}

.media-lightbox-next {
  right: -56px;
}

.content-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.osms-page {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3vw, 34px);
}

.osms-post {
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}

.osms-post .content-card-media img {
  aspect-ratio: 4 / 5;
  object-fit: contain;
}

.osms-post-body {
  gap: 14px;
  padding: clamp(20px, 3vw, 32px);
}

.osms-post-body h2 {
  margin: 0;
  color: var(--green);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.osms-post-body p,
.osms-points li {
  margin: 0;
  color: var(--text);
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.7;
}

.osms-points {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
}

.osms-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 18px;
}

.osms-source {
  color: var(--green);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-card-date {
  display: block;
  margin-top: auto;
  padding-top: 18px;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
}

.patient-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.patient-section {
  padding: 22px;
}

.patient-section ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.patient-rights-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.patient-rights-content .patient-section {
  display: grid;
  gap: 14px;
}

.patient-rights-content h3 {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.35;
}

.patient-rights-content .patient-rights-subtitle {
  margin-top: 18px;
}

.patient-rights-content p,
.patient-rights-content li {
  line-height: 1.7;
}

.patient-rights-block {
  display: grid;
  gap: 10px;
}

.feedback-section {
  padding-top: 18px;
}

.feedback-form {
  display: grid;
  gap: 18px;
  max-width: 760px;
  padding: clamp(22px, 4vw, 34px);
}

.feedback-field {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
}

.feedback-field input,
.feedback-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  outline: none;
  padding: 13px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-field textarea {
  min-height: 180px;
  resize: vertical;
}

.feedback-field input:focus,
.feedback-field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent);
}

.feedback-recaptcha {
  min-height: 78px;
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.feedback-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.feedback-status[data-status="success"] {
  color: var(--green);
}

.feedback-status[data-status="error"] {
  color: var(--red);
}

.prevention-materials,
.presentation-slides {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.prevention-material,
.presentation-slide {
  margin: 0;
}

.prevention-material img,
.presentation-slide img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.video-posts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.video-post {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.video-post h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.video-post-media video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 82vh;
  border-radius: calc(var(--radius) - 2px);
  background: #000000;
}

.contact-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
}

.contact-panel {
  padding: 24px;
}

.contact-panel h3 {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-lines,
.admin-list {
  display: grid;
  gap: 12px;
}

.contact-line {
  display: grid;
  gap: 4px;
}

.contact-line span,
.admin-item span {
  color: var(--muted);
  font-size: 14px;
}

.contact-line a,
.contact-line strong {
  color: var(--text);
  font-weight: 900;
}

.map-panel {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.map-panel iframe {
  width: 100%;
  height: 360px;
  border: 0;
}

.admin-item {
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.admin-text {
  margin: 0;
  color: var(--text);
  font-weight: 400;
  line-height: 1.35;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  width: var(--container);
  margin: 0 auto;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-disclaimer {
  max-width: 900px;
  text-align: right;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto auto;
  }

  .nav-toggle {
    display: grid;
    grid-column: 3;
  }

  .header-actions {
    grid-column: 4;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    z-index: 25;
    display: none;
    flex-direction: column;
    padding: 12px 20px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 0 18px 34px rgba(31, 38, 35, 0.16);
  }

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

  .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-parent {
    text-align: left;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin: 0 0 4px 10px;
    padding: 4px;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
  }

  .header-actions {
    justify-self: end;
  }

  .summary-strip,
  .principles-grid,
  .home-info-grid,
  .mission-grid,
  .two-column,
  .contact-layout,
  .patient-sections {
    grid-template-columns: 1fr;
  }

  .mission-card-mission,
  .mission-card-vision,
  .mission-card-values {
    grid-column: auto;
    margin-top: 0;
  }

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

@media (max-width: 640px) {
  :root {
    --container: min(100vw - 28px, 1180px);
  }

  .site-header {
    gap: 10px;
    min-height: 68px;
    padding-inline: 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: auto;
    height: 44px;
  }

  .site-nav {
    top: 68px;
  }

  .segmented {
    width: 86px;
  }

  .hero {
    min-height: 560px;
    background-position: center;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-actions {
    display: none;
  }

  .mobile-call-button {
    position: fixed;
    right: 16px;
    bottom: 18px;
    z-index: 20;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    min-height: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(39, 141, 23, 0.34);
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(39, 141, 23, 0.18);
  }

  .mobile-call-button svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
  }

  .content-card-media.media-carousel .content-media-track {
    padding: 8px 0;
  }

  .content-card-media.media-carousel .content-media-tile {
    flex-basis: 86%;
  }

  .media-scroll,
  .media-lightbox-nav {
    display: none;
  }

  .media-lightbox {
    padding: 14px;
  }

  .media-lightbox-dialog {
    padding-top: 52px;
  }

  .media-lightbox-close {
    top: 0;
    right: 0;
  }

  .media-lightbox-prev {
    left: 8px;
  }

  .media-lightbox-next {
    right: 8px;
  }

  .page-hero {
    padding-top: 46px;
  }

  .section {
    padding: 38px 0;
  }

  .doctors-main-section {
    padding-top: 46px;
  }

  .doctors-main-section .section-heading {
    margin-bottom: 38px;
  }

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

  .mission-card-values ul {
    grid-template-columns: 1fr;
  }

  .list-panel ul {
    columns: 1;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
  }

  table {
    min-width: 0;
    background: transparent;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  td {
    display: grid;
    grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
    overflow-wrap: anywhere;
    border-bottom: 1px solid var(--line);
  }

  td::before {
    content: attr(data-label);
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
  }

  td:first-child {
    background: var(--surface);
    color: var(--text);
    font-weight: 900;
  }

  td:last-child {
    border-bottom: 0;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-disclaimer {
    width: 100%;
    max-width: none;
    text-align: left;
    font-size: 11px;
    line-height: 1.32;
  }
}
