:root {
  --ink: #103943;
  --muted: #4c666d;
  --teal: #087b82;
  --deep: #093c46;
  --pale: #eaf5f3;
  --line: #cedfdf;
  --white: #fff;
  --cream: #fafbf7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

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

p {
  line-height: 1.65;
}

/* Arabic script needs taller lines than the tight Latin headings. */
html:lang(ar) h1,
html:lang(ar) h2 {
  line-height: 1.3;
}

/* Arabic letters read smaller than Latin ones at the same size: lift the small
   label styles and the menu so they stay legible. */
html:lang(ar) .eyebrow,
html:lang(ar) .navlinks a,
html:lang(ar) .instrument-name,
html:lang(ar) .mode-number,
html:lang(ar) .partner-card .number,
html:lang(ar) .platform-step small,
html:lang(ar) .map-caption small {
  font-size: 0.9rem;
}

/* German compounds ("Gesundheitsnetzwerke") are wider than a narrow card. */
html:lang(de) {
  hyphens: auto;
}

.partner-card,
.record-type {
  overflow-wrap: anywhere;
}

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

h1,
h2 {
  letter-spacing: -0.055em;
  line-height: 1.03;
  font-weight: 600;
}

h1 {
  font-size: clamp(3.2rem, 5.5vw, 5.3rem);
  margin-bottom: 26px;
}

h2 {
  font-size: clamp(2.3rem, 4.2vw, 3.9rem);
  margin-bottom: 24px;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #6b45bb;
  outline-offset: 5px;
}

.wrap {
  width: min(1160px, calc(100% - 64px));
  margin: auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 22px;
}

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

.lead {
  font-size: 1.15rem;
  line-height: 1.65;
  max-width: 600px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border: 1px solid var(--teal);
  border-radius: 7px;
  padding: 17px 23px;
  background: var(--teal);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  min-height: 52px;
  transition:
    background 0.2s,
    transform 0.2s;
}

.btn:hover {
  background: #075b63;
  transform: translateY(-2px);
}

.btn.light {
  background: white;
  color: var(--deep);
  border-color: white;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-weight: 600;
  padding: 16px 0;
  border-bottom: 1px solid #8eafaf;
}

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

.skip {
  position: absolute;
  top: -80px;
  inset-inline-start: 20px;
  z-index: 30;
  background: white;
  padding: 15px;
}

.skip:focus {
  top: 10px;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(250 251 247 / 97%);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

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

.navlinks {
  display: flex;
  align-items: center;
  gap: 29px;
}

.navlinks a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.navlinks a:hover {
  color: var(--teal);
}

.navlinks .nav-cta {
  background: var(--deep);
  color: white;
  padding: 13px 17px;
  border-radius: 5px;
}

.menu {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 5px;
}

/* The language switch (lang-switch.css) follows the links on wide screens and
   sits beside the Menu button on phones. */
.nav .navlinks {
  margin-inline-start: auto;
}

.hero {
  overflow: hidden;
  background: linear-gradient(105deg, #fafbf7 35%, #e3f1ee);
  padding: 66px 0 38px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  align-items: center;
}

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

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy .lead {
  max-width: 510px;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-object {
  position: relative;
  min-height: 690px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.hero-object::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border: 1px solid #b1ceca;
  border-radius: 50%;
  background: radial-gradient(circle, #c8e4df 0%, #e5f2ee 67%, transparent 68%);
}

.hero-foot {
  display: flex;
  gap: 0;
  border-top: 1px solid #bed5d1;
  margin-top: 30px;
  padding-top: 27px;
}

.hero-foot div {
  flex: 1;
  border-inline-start: 1px solid #bed5d1;
  padding: 0 25px;
}

.hero-foot div:first-child {
  border: 0;
  padding-inline-start: 0;
}

.hero-foot b {
  display: block;
  font-size: 1rem;
  margin-bottom: 7px;
}

.hero-foot span {
  font-size: 0.83rem;
  color: var(--muted);
}

.section {
  padding: 105px 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.photo-panel {
  border-radius: 16px;
  overflow: hidden;
  background: #e8efed;
  position: relative;
}

.photo-panel img {
  width: 100%;
  height: 510px;
  object-fit: cover;
}

.photo-tag {
  position: absolute;
  left: 24px;
  bottom: 24px;
  right: 24px;
  background: #fffef5ed;
  padding: 18px 22px;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.photo-tag strong {
  display: block;
}

.mini-list {
  padding: 0;
  list-style: none;
  margin: 26px 0 0;
}

.mini-list li {
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
  line-height: 1.5;
}

.mini-list span {
  color: var(--teal);
  font-weight: 700;
  margin-inline-end: 15px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 45px;
  margin-bottom: 40px;
}

.section-head h2 {
  max-width: 650px;
  margin-bottom: 0;
}

.section-head > p {
  max-width: 310px;
  font-size: 0.98rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.device-section {
  background: #eaf3f1;
}

.instrument-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.instrument-tabs button {
  border: 1px solid #a8c3c2;
  color: var(--deep);
  background: transparent;
  padding: 13px 20px;
  border-radius: 30px;
  cursor: pointer;
  min-height: 46px;
  font-size: 0.9rem;
}

.instrument-tabs button[aria-pressed="true"] {
  background: var(--deep);
  border-color: var(--deep);
  color: white;
}

.instrument-panel {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  min-height: 420px;
}

.instrument-panel > img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.instrument-copy {
  padding: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.instrument-copy h3 {
  font-size: 2.1rem;
  letter-spacing: -0.04em;
}

.instrument-copy p {
  color: var(--muted);
}

.instrument-copy .instrument-name {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.device-note {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  margin-top: 26px;
  font-size: 0.9rem;
  color: var(--muted);
}

.device-note p {
  margin: 0;
  max-width: 800px;
}

.device-note b {
  color: var(--deep);
}

.platform {
  background: var(--deep);
  color: #f5fcfa;
  position: relative;
  overflow: hidden;
}

.platform .eyebrow {
  color: #85d4cc;
}

.platform .section-head > p {
  color: #c1d8d8;
}

.platform-layout {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 60px;
  align-items: center;
}

.platform-image {
  background: #e7f1f0;
  border-radius: 12px;
  overflow: hidden;
}

.platform-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.platform-steps {
  display: grid;
  gap: 28px;
}

.platform-step {
  border-top: 1px solid #52737a;
  padding-top: 22px;
}

.platform-step:first-child {
  border-top: 0;
  padding-top: 0;
}

.platform-step small {
  color: #8bd4cc;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
}

.platform-step h3 {
  margin: 12px 0;
}

.platform-step p {
  color: #c9dede;
  font-size: 0.98rem;
  margin: 0;
}

.hub {
  margin-top: 42px;
  border: 1px solid #52737a;
  border-radius: 9px;
  padding: 22px 28px;
  display: flex;
  gap: 32px;
  align-items: center;
}

.hub strong {
  min-width: 185px;
  font-size: 1.12rem;
}

.hub p {
  margin: 0;
  color: #c9dede;
  font-size: 0.92rem;
}

.life {
  padding-bottom: 85px;
  background: linear-gradient(160deg, #f4f8f3, #e8f2ee);
}

.partners {
  padding: 55px 0 95px;
  padding-top: 85px;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.partner-card {
  padding: 31px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 300px;
}

.partner-card .number {
  color: var(--teal);
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  display: block;
  margin-bottom: 32px;
}

.partner-card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

.partners .section-head h2 {
  font-size: 2.8rem;
}

.records {
  background: #e8f2f0;
}

.records .split {
  gap: 65px;
}

.records h2 {
  font-size: 3rem;
}

.record-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.record-type {
  background: white;
  border: 1px solid #c3d9d5;
  border-radius: 10px;
  padding: 26px;
  min-height: 155px;
}

.record-type .symbol {
  display: block;
  color: var(--teal);
  font-size: 1.6rem;
  margin-bottom: 22px;
}

.record-type b {
  display: block;
  font-size: 0.95rem;
}

.record-type span:last-child {
  font-size: 0.8rem;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}

.small {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

.record-caption {
  margin-top: 16px;
}

.engineering {
  padding: 90px 0;
  background: #fafbf7;
}

.engineering-top {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
}

.engineering h2 {
  font-size: 3rem;
}

.engineering-body p {
  color: var(--muted);
}

.expertise {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.expertise span {
  border-bottom: 1px solid #9bbfbb;
  padding: 9px 0;
  margin-inline-end: 17px;
  font-size: 0.87rem;
  color: var(--ink);
}

.closing {
  background: var(--teal);
  color: white;
  padding: 85px 0;
  text-align: center;
}

.closing h2 {
  max-width: 810px;
  margin: 0 auto 24px;
  font-size: clamp(2.5rem, 4.3vw, 3.8rem);
}

.closing p {
  max-width: 640px;
  margin: 0 auto 30px;
  color: #e6f5f1;
  font-size: 1.08rem;
}

.closing .eyebrow {
  color: #d9eeeb;
}

.closing .actions {
  justify-content: center;
}

.closing .text-link {
  border-color: #b2d8d4;
}

.footer {
  padding: 38px 0;
  background: #f5f7f2;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.footer-row img {
  width: 150px;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.8rem;
}

.footer-notice {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  font-size: 0.75rem;
  color: #4a6269;
  line-height: 1.65;
}

.footer-notice p {
  margin: 0;
}

.copy {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 22px;
  margin-bottom: 0;
}

@media (min-width: 1500px) {
  .wrap {
    width: min(1280px, calc(100% - 100px));
  }
}

/* The links, the CTA and the language switch only share one row from 1080px up
   (the longer languages need it); below that they fold into the Menu button. */
@media (max-width: 1080px) {
  .nav {
    gap: 10px;
  }

  .menu {
    display: block;
    margin-inline-start: auto;
  }

  .navlinks {
    display: none;
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    background: #fafbf7;
    padding: 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 17px;
    border-bottom: 1px solid var(--line);
  }

  .site-header--open .navlinks {
    display: flex;
  }

  .navlinks a {
    padding: 10px;
  }
}

@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 44px);
  }

  .hero-object {
    min-height: 570px;
  }

  .hero-object::before {
    width: 420px;
    height: 420px;
  }

  .split,
  .engineering-top {
    gap: 40px;
  }

  .platform-layout {
    gap: 32px;
  }

  .instrument-copy {
    padding: 30px;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .section {
    padding: 80px 0;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 78px;
  }

  .wrap {
    width: calc(100% - 36px);
  }

  .nav {
    height: 72px;
  }

  .brand img {
    width: 174px;
  }

  .hero {
    padding: 40px 0 30px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero-copy .lead {
    font-size: 1.04rem;
  }

  .hero-object {
    min-height: 460px;
  }

  .hero-object::before {
    width: 340px;
    height: 340px;
  }

  .hero-foot {
    margin-top: 28px;
  }

  .hero-foot div {
    padding: 0 12px;
  }

  .hero-foot b {
    font-size: 0.82rem;
  }

  .hero-foot span {
    font-size: 0.72rem;
    line-height: 1.4;
    display: block;
  }

  .section {
    padding: 65px 0;
  }

  .split,
  .engineering-top,
  .platform-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .photo-panel img {
    height: 370px;
  }

  .section-head {
    display: block;
  }

  .section-head > p {
    max-width: none;
    margin-top: 23px;
  }

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

  .instrument-panel > img {
    height: 260px;
  }

  .instrument-copy {
    padding: 28px;
  }

  .instrument-copy h3 {
    font-size: 1.8rem;
  }

  .instrument-tabs {
    gap: 8px;
  }

  .instrument-tabs button {
    padding: 11px 15px;
  }

  .device-note {
    display: block;
  }

  .platform-image img {
    height: 340px;
  }

  .hub {
    display: block;
    padding: 25px;
  }

  .hub p {
    margin-top: 14px;
  }

  .partner-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .partner-card {
    min-height: 0;
    padding: 25px;
  }

  .partner-card .number {
    margin-bottom: 20px;
  }

  .partners {
    padding: 10px 0 60px;
  }

  .partners .section-head h2,
  .records h2,
  .engineering h2 {
    font-size: 2.5rem;
  }

  .record-type {
    padding: 20px;
  }

  .engineering {
    padding: 65px 0;
  }

  .closing {
    padding: 65px 0;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-notice {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .actions {
    gap: 12px 22px;
  }

  .lead {
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

@media print {
  header,
  .menu,
  .instrument-tabs,
  .closing .actions {
    display: none;
  }

  body {
    background: white;
  }

  .section {
    padding: 35px 0;
  }

  .hero-object {
    min-height: 400px;
  }

  .wrap {
    width: 95%;
  }

  .platform {
    color: #103943;
    background: #eaf5f3;
  }

  .platform p,
  .platform .eyebrow,
  .platform small {
    color: #103943 !important;
  }

  .photo-panel img {
    height: 320px;
  }

  a {
    text-decoration: none;
  }
}

.device-map {
  position: relative;
  width: 360px;
  max-width: 90%;
}

.device-map .map-image {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 18px #10394320);
}

/* Pins sit on fixed spots of the photo, which is never mirrored: physical left
   even in right-to-left pages. */
.map-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 29px;
  height: 29px;
  padding: 0;
  border: 2px solid white;
  border-radius: 50%;
  background: #087b82;
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 0 4px #087b8225;
  z-index: 3;
}

.map-pin[aria-pressed="true"] {
  background: #103943;
  box-shadow: 0 0 0 7px #087b8233;
}

.map-caption {
  position: relative;
  background: #fff;
  border: 1px solid #cddfda;
  border-radius: 8px;
  padding: 15px 23px;
  text-align: center;
  margin: 15px 0 0;
  max-width: 420px;
  min-height: 110px;
}

.map-caption strong,
.map-caption span,
.map-caption small {
  display: block;
}

.map-caption span {
  font-size: 0.88rem;
  line-height: 1.5;
  margin-top: 5px;
  color: #4c666d;
}

.map-caption small {
  margin-top: 9px;
  font-size: 0.7rem;
  color: #4c666d;
}

.team-statement {
  border-top: 1px solid #cedfdf;
  padding-top: 22px;
  margin-top: 22px;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 600;
}

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

.mode-grid article {
  padding: 32px;
  border: 1px solid #cedfdf;
  border-radius: 12px;
  background: white;
}

.mode-number {
  font-size: 0.73rem;
  color: #087b82;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 24px;
}

.mode-grid p {
  color: #4c666d;
}

.mode-grid h3 {
  font-size: 1.6rem;
}

.attachment-reference {
  margin: 15px 0 0;
  border-top: 1px solid #cedfdf;
  padding-top: 15px;
}

.attachment-reference[hidden] {
  display: none;
}

.attachment-reference img {
  height: 150px;
  width: 100%;
  object-fit: contain;
  border-radius: 6px;
  background: #eef5f3;
}

.attachment-reference figcaption {
  font-size: 0.72rem;
  margin-top: 8px;
  color: #4c666d;
}

.instrument-copy:has(.attachment-reference:not([hidden])) {
  padding: 26px 35px;
}

.instrument-copy:has(.attachment-reference:not([hidden])) h3 {
  font-size: 1.7rem;
}

.instrument-copy:has(.attachment-reference:not([hidden])) p {
  margin-bottom: 12px;
}

@media (max-width: 760px) {
  .hero-object {
    min-height: 0;
    padding-top: 20px;
  }

  .device-map {
    width: 285px;
  }

  .hero-object::before {
    width: 310px;
    height: 310px;
    top: 90px;
  }

  .map-caption {
    width: 100%;
  }

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

  .mode-grid article {
    padding: 24px;
  }

  .instrument-copy:has(.attachment-reference:not([hidden])) {
    padding: 26px;
  }
}

.family-care .split {
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
}

.family-care .photo-panel {
  order: 2;
}

.family-care .photo-panel img {
  height: 580px;
  object-position: 48% center;
}

.family-care .photo-tag {
  position: static;
  background: #eaf3f1;
  border-radius: 0;
  padding: 20px 24px;
}

.lifestyle-heading {
  max-width: 890px;
}

.lifestyle-heading h2 {
  max-width: 870px;
}

.lifestyle-heading .lead {
  max-width: 800px;
  margin-bottom: 12px;
}

.lifestyle-heading > p:last-child {
  max-width: 780px;
}

.lifestyle-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.lifestyle-cards img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 25px;
}

.lifestyle-cards h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.lifestyle-cards p {
  font-size: 0.97rem;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 760px) {
  .family-care .split {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .family-care .photo-panel img {
    height: auto;
    aspect-ratio: 4/3;
  }

  .lifestyle-cards {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .lifestyle-cards img {
    margin-bottom: 18px;
  }

  .life {
    padding-bottom: 65px;
  }

  .partners {
    padding-top: 60px;
  }
}

.hero h1 {
  font-size: clamp(3rem, 4.9vw, 4.7rem);
}

.hero-promise {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  max-width: 510px;
  margin-bottom: 15px;
}

.clinical-flow {
  background: #eaf3f1;
  padding-bottom: 75px;
}

.flow-grid {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.flow-grid li {
  border-top: 2px solid #9bbfbb;
  padding-top: 23px;
}

.flow-number {
  display: block;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 25px;
}

.flow-grid h3 {
  font-size: 1.5rem;
}

.flow-grid p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.provider-link {
  margin-top: 28px;
}

@media (max-width: 900px) {
  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero h1 {
    font-size: 3rem;
  }

  .partner-card {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .flow-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .flow-number {
    margin-bottom: 12px;
  }
}

.family-care .photo-tag strong {
  font-size: 1.12rem;
  line-height: 1.4;
  margin-bottom: 10px;
}

.family-care .photo-tag p {
  font-size: 0.94rem;
  line-height: 1.65;
  margin: 0;
}

/* Contact page (contact.html)
   -------------------------------------------------------------------------- */

.contact-hero {
  overflow: hidden;
  background: linear-gradient(105deg, #fafbf7 35%, #e3f1ee);
  padding: 80px 0 60px;
}

.contact-hero h1 {
  font-size: clamp(2.8rem, 4.6vw, 4.4rem);
  max-width: 820px;
}

.contact-hero .lead {
  color: var(--muted);
  margin-bottom: 0;
}

.contact-section {
  padding: 70px 0 90px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form {
  padding: 36px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 700;
}

.form-field__control {
  display: block;
  width: 100%;
  padding: 14px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid #b9d0cc;
  border-radius: 7px;
}

.form-field__control:focus {
  background: white;
  border-color: var(--teal);
  outline: 3px solid #087b8233;
}

.form-field__control:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

textarea.form-field__control {
  resize: vertical;
}

.contact-form__actions {
  margin-top: 24px;
}

.contact-form .btn {
  cursor: pointer;
}

.form-message {
  margin: 20px 0 0;
  font-size: 0.95rem;
}

.form-message[hidden] {
  display: none;
}

.form-message--error {
  color: #b3261e;
}

.form-message--success {
  color: var(--teal);
  font-weight: 600;
}

.office-card {
  padding: 32px;
  background: var(--deep);
  color: #f5fcfa;
  border-radius: 12px;
}

.office-card .eyebrow {
  color: #85d4cc;
  margin-bottom: 18px;
}

.office-card h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.office-card address {
  font-style: normal;
  line-height: 1.7;
  color: #c9dede;
}

/* The street address stays in Latin order; in right-to-left pages it still
   lines up with the rest of the card. */
html[dir="rtl"] .office-card address {
  text-align: right;
}

.office-card p {
  margin: 16px 0 0;
}

.office-card a {
  font-weight: 600;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 760px) {
  .contact-hero {
    padding: 50px 0 40px;
  }

  .contact-section {
    padding: 40px 0 60px;
  }

  .contact-form {
    padding: 22px;
  }

  .contact-form__grid {
    grid-template-columns: 1fr;
  }
}

/* Doctors page (doctors.html)
   -------------------------------------------------------------------------- */

.doctor-hero-media {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 50px #1039431f;
}

.doctor-hero-media img {
  width: 100%;
  height: auto;
}

.doctor-instruments {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doctor-card {
  overflow: hidden;
  background: white;
  border: 1px solid #c3d9d5;
  border-radius: 12px;
}

.doctor-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 811 / 511;
  object-fit: cover;
}

.doctor-card > div {
  padding: 22px 24px 26px;
}

.doctor-card .symbol {
  display: block;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.doctor-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.doctor-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.approvals {
  background: var(--cream);
  padding-bottom: 40px;
}

.approvals-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.approvals-inner img {
  width: 100%;
  height: auto;
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.benefits {
  padding-top: 40px;
}

.benefit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 45px 0;
}

.benefit:nth-child(even) .benefit-media {
  order: -1;
}

.benefit-media {
  overflow: hidden;
  border-radius: 16px;
  background: #e8efed;
}

.benefit-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.benefit h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}

@media (max-width: 1000px) {
  .doctor-instruments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit,
  .approvals-inner {
    gap: 36px;
  }
}

@media (max-width: 760px) {
  .doctor-instruments {
    grid-template-columns: 1fr;
  }

  .approvals-inner,
  .benefit {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .benefit {
    padding: 30px 0;
  }

  .benefit:nth-child(even) .benefit-media {
    order: 0;
  }
}
