:root {
  --navy: #12376c;
  --blue: #1d5f9f;
  --aqua: #0f9c98;
  --green: #2e9f6f;
  --gold: #d8a73a;
  --ink: #142033;
  --muted: #65758b;
  --line: #dce7f1;
  --soft: #f5f9fc;
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(18, 55, 108, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 86px;
  padding: 12px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(18, 55, 108, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 96px;
  height: 58px;
  object-fit: contain;
}

.brand span {
  display: grid;
  line-height: 1.15;
}

.brand strong {
  color: var(--navy);
  font-size: 1.02rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.main-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.92rem;
  font-weight: 800;
}

.main-menu a {
  color: var(--ink);
  white-space: nowrap;
}

.main-menu a:hover,
.main-menu a.active {
  color: var(--aqua);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
}

.language-switcher button {
  min-width: 38px;
  min-height: 30px;
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.language-switcher button.is-active {
  color: var(--white);
  background: var(--navy);
}

.nav-cta {
  padding: 10px 16px;
  color: var(--white) !important;
  background: var(--green);
  border-radius: 6px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 5px auto;
  background: var(--navy);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--soft);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: clamp(34px, 6vw, 78px);
  min-height: calc(100vh - 86px);
  padding: clamp(58px, 8vw, 102px) clamp(18px, 7vw, 106px);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 52%;
  z-index: -1;
  background: linear-gradient(135deg, rgba(18, 55, 108, 0.08), rgba(15, 156, 152, 0.12));
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--aqua);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.section-heading h2,
.split-copy h2,
.cta-panel h2 {
  margin: 0;
  color: var(--navy);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-copy h1 {
  font-size: clamp(2.65rem, 6vw, 5.6rem);
}

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

.hero-copy p {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
}

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

.button.secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
}

.button.gold {
  color: #172033;
  background: var(--gold);
}

.hero-media {
  position: relative;
  min-height: 540px;
}

.hero-media-main {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-badge {
  position: absolute;
  left: -22px;
  bottom: 30px;
  width: min(270px, 78%);
  padding: 20px;
  border-radius: 8px;
  color: var(--white);
  background: var(--navy);
  box-shadow: var(--shadow);
}

.hero-badge strong {
  display: block;
  color: var(--gold);
  font-size: 2.2rem;
  line-height: 1;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(58px, 8vw, 96px) clamp(18px, 5vw, 34px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.split-copy h2,
.cta-panel h2 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
}

.intro-grid,
.service-grid,
.value-grid,
.news-grid,
.gallery-grid,
.info-grid,
.impact-grid {
  display: grid;
  gap: 18px;
}

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

.service-grid,
.value-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

.info-grid,
.impact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.service-card,
.value-card,
.news-card,
.gallery-card,
.info-card,
.impact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.card,
.service-card,
.value-card,
.news-card,
.info-card,
.impact-card {
  padding: 24px;
}

.service-card {
  min-height: 235px;
}

.service-card span,
.news-date,
.impact-card span {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
}

.service-card h3,
.value-card h3,
.news-card h3,
.info-card h3,
.gallery-card h3 {
  margin: 10px 0;
  color: var(--navy);
  line-height: 1.18;
}

.service-card p,
.value-card p,
.news-card p,
.info-card p,
.gallery-card p,
.impact-card p,
.split-copy p {
  margin: 0;
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(34px, 7vw, 82px);
  align-items: center;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.soft-band {
  background: var(--soft);
}

.impact-section .section-heading > p:not(.section-kicker) {
  max-width: 780px;
  margin: 12px auto 0;
  color: var(--muted);
}

.impact-card {
  text-align: center;
}

.impact-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .brand,
html[dir="rtl"] .social-links {
  flex-direction: row-reverse;
}

html[dir="rtl"] .language-switcher {
  direction: ltr;
}

html[dir="rtl"] .newsletter {
  padding-right: clamp(18px, 2vw, 28px);
  padding-left: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 0;
}

html[dir="rtl"] .footer-main,
html[dir="rtl"] .intro-grid,
html[dir="rtl"] .service-grid,
html[dir="rtl"] .impact-grid,
html[dir="rtl"] .value-grid,
html[dir="rtl"] .news-grid,
html[dir="rtl"] .gallery-grid,
html[dir="rtl"] .info-grid {
  direction: rtl;
}

.dark-band {
  padding: clamp(56px, 8vw, 86px) clamp(18px, 7vw, 106px);
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), #0d6f72);
}

.dark-band .section-kicker,
.dark-band h2,
.dark-band p {
  color: var(--white);
}

.program-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding-left: 0;
  list-style: none;
}

.program-list li {
  padding: 13px 16px;
  border-left: 4px solid var(--green);
  border-radius: 6px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 800;
}

.page-hero {
  padding: clamp(58px, 8vw, 92px) clamp(18px, 7vw, 106px);
  background:
    linear-gradient(90deg, rgba(245, 249, 252, 0.97), rgba(245, 249, 252, 0.86)),
    url("assets/soft-medical-bg.jpg") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.page-hero p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(2.25rem, 5vw, 4.4rem);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(34px, 5vw, 52px);
  border-radius: 8px;
  color: var(--white);
  background: var(--navy);
}

.cta-panel h2,
.cta-panel p {
  color: var(--white);
}

.clinic-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding-left: 0;
  list-style: none;
}

.clinic-list li {
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(15, 156, 152, 0.09);
  color: var(--navy);
  font-weight: 800;
}

.gallery-card {
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

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

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.gallery-filter {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--navy);
  background: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.gallery-filter.active {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 6vw, 72px);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-list p {
  margin: 0;
  padding: 16px;
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  background: var(--soft);
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: #0c1728;
}

.footer-main {
  display: grid;
  grid-template-columns:
    minmax(210px, 1.15fr)
    minmax(130px, 0.62fr)
    minmax(140px, 0.68fr)
    minmax(250px, 1.05fr)
    minmax(260px, 1fr);
  gap: clamp(22px, 3vw, 34px);
  align-items: start;
  max-width: 1220px;
  margin: 0 auto;
  padding: 52px clamp(18px, 5vw, 56px) 36px;
}

.footer-about img {
  width: 138px;
  height: 88px;
  object-fit: contain;
}

.footer-about p,
.footer-column p,
.footer-bottom p {
  margin: 0;
}

.footer-about strong,
.footer-column h3 {
  color: var(--white);
}

.footer-about p {
  margin-top: 14px;
  max-width: 260px;
  line-height: 1.65;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.footer-column h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.footer-column a,
.footer-contact p {
  color: rgba(255, 255, 255, 0.78);
}

.footer-column p,
.footer-column a {
  line-height: 1.55;
}

.footer-contact {
  max-width: 310px;
}

.footer-contact p {
  overflow-wrap: anywhere;
}

.footer-column a:hover {
  color: var(--gold);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.newsletter form {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.newsletter {
  padding-left: clamp(18px, 2vw, 28px);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.newsletter p {
  max-width: 290px;
}

.newsletter input {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
}

.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.newsletter button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  color: #172033;
  background: var(--gold);
  font-weight: 900;
  cursor: pointer;
}

.footer-bottom {
  padding: 18px clamp(18px, 5vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  max-width: 1220px;
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-block;
  }

  .main-menu {
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 18px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }

  .main-menu.is-open {
    display: flex;
  }

  .main-menu a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .main-menu .nav-cta {
    margin-top: 12px;
    text-align: center;
  }

  .language-switcher {
    align-self: flex-start;
    margin-top: 8px;
  }

  .home-hero,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-media,
  .hero-media-main {
    min-height: 420px;
  }

  .intro-grid,
  .service-grid,
  .value-grid,
  .news-grid,
  .gallery-grid,
  .info-grid,
  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-contact {
    max-width: none;
  }

  .newsletter {
    grid-column: 1 / -1;
    padding-top: 24px;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }

  html[dir="rtl"] .newsletter {
    padding-right: 0;
    border-right: 0;
  }

  .newsletter p {
    max-width: 520px;
  }

  .newsletter form {
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 76px;
    padding-inline: 14px;
  }

  .brand img {
    width: 74px;
    height: 48px;
  }

  .main-menu {
    top: 76px;
  }

  .home-hero {
    min-height: auto;
    padding: 52px 18px 66px;
  }

  .hero-copy h1 {
    font-size: clamp(2.28rem, 13vw, 3.4rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-badge {
    left: 12px;
    right: 12px;
    bottom: 18px;
    width: auto;
  }

  .intro-grid,
  .service-grid,
  .value-grid,
  .news-grid,
  .gallery-grid,
  .info-grid,
  .impact-grid {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .newsletter {
    grid-column: auto;
  }
}
