:root {
  --paper: #f7fbfb;
  --ink: #13242c;
  --muted: #57707a;
  --line: rgba(19, 36, 44, 0.14);
  --teal: #037ca5;
  --deep: #064b66;
  --lime: #8bc53f;
  --mint: #e8f5ef;
  --coral: #d86a58;
  --white: #ffffff;
  --shadow: rgba(11, 56, 76, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button {
  font: inherit;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px 42px;
}

.brand {
  display: inline-flex;
  min-width: 160px;
}

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

.nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--deep);
  font-size: 0.9rem;
  font-weight: 800;
}

.lang-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.lang-toggle span {
  display: inline-grid;
  min-width: 34px;
  min-height: 30px;
  place-items: center;
  border-radius: 6px;
  color: var(--deep);
  font-size: 0.78rem;
  font-weight: 900;
}

.lang-toggle .active {
  color: var(--white);
  background: var(--teal);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: clip;
  isolation: isolate;
}

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

.hero-bg {
  z-index: -2;
  background-image: url("assets/hero.webp");
  background-size: cover;
  background-position: center;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(247, 251, 251, 0.98) 0%, rgba(247, 251, 251, 0.88) 42%, rgba(247, 251, 251, 0.42) 72%, rgba(247, 251, 251, 0.08) 100%),
    linear-gradient(0deg, var(--paper) 0%, rgba(247, 251, 251, 0) 40%);
}

.hero-content {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 140px 0 46px;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  color: #0c2b36;
  font-size: 5.2rem;
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: #203c47;
  font-size: 1.25rem;
}

.hero-actions,
.panel-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
}

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

.btn.secondary {
  color: var(--deep);
  border-color: rgba(3, 124, 165, 0.28);
  background: var(--white);
}

.btn.muted {
  color: var(--ink);
  background: var(--mint);
  border-color: rgba(139, 197, 63, 0.42);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 1px;
  width: min(920px, 100%);
  margin-top: 54px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 18px 50px var(--shadow);
}

.proof-strip div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.proof-strip strong,
.visit-actions strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.1;
}

.proof-strip span,
.quick-grid span,
.visit-actions span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.quick-grid a {
  min-height: 106px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 20px 28px;
  border-right: 1px solid var(--line);
}

.quick-grid strong {
  color: var(--deep);
  font-size: 1.02rem;
}

.section {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 82px 0;
}

.intro-grid,
.language-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.75fr);
  gap: 44px;
  align-items: start;
}

h2 {
  margin: 0;
  font-size: 2.75rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.intro p,
.section-head p,
.team-copy p,
.service-panel p,
.visit-section p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 32px;
}

.service-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 18px 50px var(--shadow);
}

.service-tabs {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.tab {
  min-height: 104px;
  padding: 20px;
  color: var(--deep);
  border: 0;
  background: var(--white);
  text-align: left;
  font-weight: 900;
  cursor: pointer;
}

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

.service-panel {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 42px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.74)),
    url("assets/clinic-2.webp") center / cover;
}

.service-panel h3 {
  max-width: 760px;
  margin: 0 0 16px;
  color: #0d2c37;
  font-size: 2.1rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.service-panel p {
  max-width: 700px;
}

.gallery {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.72fr;
  gap: 10px;
  width: min(1380px, calc(100% - 24px));
  margin: 0 auto;
}

.gallery figure {
  min-height: 430px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--mint);
}

.gallery .wide {
  min-height: 520px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.95fr);
  gap: 46px;
  align-items: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.team-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.team-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.team-grid h3,
.team-grid p {
  margin: 0;
}

.team-grid h3 {
  padding: 20px 20px 6px;
  font-size: 1.25rem;
}

.team-grid p {
  padding: 0 20px 20px;
  color: var(--muted);
}

.language-section {
  padding-top: 32px;
}

.language-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.language-links a {
  min-height: 80px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--deep);
  background: var(--white);
  font-weight: 950;
}

.visit-section {
  padding-top: 48px;
}

.visit-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.visit-actions a {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 46px;
  padding: 42px;
  border: 1px solid rgba(3, 124, 165, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(3, 124, 165, 0.12), rgba(139, 197, 63, 0.16), rgba(216, 106, 88, 0.1)),
    var(--white);
}

.footer {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 28px 44px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer p {
  max-width: 760px;
  margin: 0;
}

.footer a {
  color: var(--deep);
  font-weight: 900;
}

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

  .brand img {
    width: 142px;
  }

  .nav {
    display: none;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .proof-strip,
  .quick-grid,
  .visit-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-grid,
  .section-head,
  .team-section,
  .language-grid,
  .final-cta {
    grid-template-columns: 1fr;
  }

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

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

  .tab {
    min-height: 68px;
    padding: 14px;
    text-align: center;
  }

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

  .gallery figure,
  .gallery .wide {
    min-height: 350px;
  }
}

@media (max-width: 620px) {
  .site-header {
    background: rgba(255, 255, 255, 0.82);
  }

  .hero {
    min-height: 92vh;
  }

  .hero-bg {
    background-position: 66% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(247, 251, 251, 0.98), rgba(247, 251, 251, 0.76)),
      linear-gradient(0deg, var(--paper) 0%, rgba(247, 251, 251, 0) 50%);
  }

  .hero-content,
  .section {
    width: min(100% - 28px, 1180px);
  }

  .hero-content {
    padding-bottom: 30px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .lead {
    font-size: 1.04rem;
  }

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

  .btn {
    width: 100%;
  }

  .proof-strip,
  .quick-grid,
  .visit-actions,
  .team-grid,
  .language-links {
    grid-template-columns: 1fr;
  }

  .quick-grid a {
    min-height: 84px;
    padding: 18px;
  }

  .section {
    padding: 58px 0;
  }

  .service-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-panel {
    min-height: 420px;
    padding: 28px;
  }

  .service-panel h3 {
    font-size: 1.65rem;
  }

  .gallery {
    width: min(100% - 16px, 1380px);
  }

  .gallery figure,
  .gallery .wide {
    min-height: 270px;
  }

  .final-cta {
    padding: 28px;
  }

  .footer {
    display: block;
    padding: 24px 20px;
  }

  .footer a {
    display: inline-block;
    margin-top: 14px;
  }
}
