:root {
  --ink: #14272E;
  --muted: #4A5F66;
  --paper: #EEF5F7;
  --sheet: #fff;
  --line: #DDEBEF;
  --lime: #B5CA2C;
  --lime-ink: #062B38;
  --teal: #0B6683;
  --cyan: #22A7C4;
  --deep: #062B38;
  --deep-2: #08394A;
  --header: 76px;
  --pad: clamp(1.15rem, 3vw, 2.4rem);
  --sans: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --display: "Jost", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--sans);
  font-size: 1.04rem;
  line-height: 1.65;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: var(--teal); }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, textarea { font: inherit; color: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  color: var(--deep);
  padding: 0.6rem 0.9rem;
  z-index: 100;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(1180px, calc(100% - var(--pad) * 2));
  margin-inline: auto;
}
.split > *, .week-grid > *, .trio > *, .consult > *, .contact-grid > *,
.footer-grid > *, .stage-a > *, .stage-b > *, .booklet > *, .svc-row {
  min-width: 0;
}
.wrap-s { width: min(760px, calc(100% - var(--pad) * 2)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--deep);
}
.header-bar {
  width: min(1180px, calc(100% - var(--pad) * 2));
  margin-inline: auto;
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  text-decoration: none;
  color: #fff;
}
.logo-mark { width: auto; height: 46px; flex: none; }
.logo-type {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: 0.08em;
  font-size: 1.28rem;
  line-height: 0.95;
  display: flex;
  flex-direction: column;
  color: #fff;
}
.logo-type small { font-size: 1.28rem; letter-spacing: 0.08em; }
.nav-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,.35);
  background: transparent;
  color: #fff;
  padding: 0.45rem 0.75rem;
  font-family: var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.site-nav { display: flex; align-items: center; gap: 1.35rem; }
.site-nav a {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  color: #E6F1F4;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--lime); }
.nav-cta {
  padding: 0.6rem 1.15rem !important;
  border-radius: 8px;
  background: var(--lime);
  color: var(--deep) !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: #C6DA3E; color: var(--deep) !important; }

.kicker {
  position: relative;
  display: inline-block;
  max-width: 100%;
  height: 3px;
  margin-bottom: 0.85rem;
  padding-left: calc(28px + 0.7rem);
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 3px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: transparent;
}
.kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lime) 50%, var(--cyan) 50%);
}
.home-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: stretch;
  min-height: auto;
  padding: clamp(2.6rem, 6vw, 5.2rem) max(var(--pad), calc((100vw - 1180px) / 2)) clamp(3rem, 6vw, 5rem);
  background: #062B38;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
@media (min-width: 981px) {
  .hero-bg {
    top: -36%;
    bottom: auto;
    height: 172%;
  }
}
.home-hero::before {
  content: "";
  position: absolute;
  z-index: 2;
  width: min(460px, 42vw);
  height: min(680px, 62vw);
  left: -70px;
  bottom: -160px;
  opacity: 0.34;
  pointer-events: none;
  background: url("../img/logo.svg") center / contain no-repeat;
  transform-origin: center;
  animation: logo-float 64s ease-in-out infinite;
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(6,43,56,.82) 0%, rgba(10,86,112,.68) 48%, rgba(19,128,154,.5) 100%);
}
@keyframes logo-float {
  0% { transform: translate3d(0, 0, 0) rotate(-3deg); }
  20% { transform: translate3d(22px, -14px, 0) rotate(1deg); }
  40% { transform: translate3d(36px, 6px, 0) rotate(-2deg); }
  60% { transform: translate3d(14px, 18px, 0) rotate(2deg); }
  80% { transform: translate3d(-10px, 6px, 0) rotate(-1deg); }
  100% { transform: translate3d(0, 0, 0) rotate(-3deg); }
}
@keyframes nav-pop {
  0% { opacity: 0; transform: translateY(22px) scale(0.9); }
  62% { opacity: 1; transform: translateY(-6px) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes nav-out {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-22px) scale(0.98); }
}
@keyframes nav-logo-out {
  0% { opacity: 0.32; }
  100% { opacity: 0; }
}
@keyframes nav-mark {
  0% { opacity: 0; transform: translateY(22px) scale(0.88); }
  62% { opacity: 0.42; transform: translateY(-6px) scale(1.05); }
  100% { opacity: 0.32; transform: translateY(0) scale(1); }
}
.home-hero-copy, .home-hero-photo { position: relative; z-index: 2; min-width: 0; }
.home-hero-copy {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  align-items: start;
  padding-right: 0.4rem;
}
.home-hero h1 { grid-row: 2; align-self: center; max-width: 36rem; margin: 0; }
.hero-slogan { display: block; width: 100%; height: auto; }
.hero-actions {
  grid-row: 3;
  align-self: start;
  justify-self: start;
  width: 100%;
  max-width: 36rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.6rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  background: var(--lime);
  color: var(--deep);
  padding: 0.95rem 1.35rem;
  border-radius: 8px;
}
.btn:hover { background: #C6DA3E; }
.home-hero .linkish {
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.45);
  border-radius: 8px;
  padding: 0.85rem 1.2rem;
  text-decoration: none;
  font-weight: 600;
}
.home-hero .linkish:hover { border-color: #fff; }
.linkish {
  font-weight: 600;
  text-decoration: none;
  color: var(--teal);
}
.home-hero-photo { margin: 0; }
.home-hero-photo img {
  width: 100%;
  height: min(560px, 70vh);
  object-fit: cover;
  object-position: center 22%;
  border-radius: 40px 40px 40px 160px;
  box-shadow: 0 30px 60px rgba(0,0,0,.28);
}
.clinic-photo { position: relative; margin: 0; }
.clinic-photo img + img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: hero-fade 14s ease-in-out infinite;
}
@keyframes hero-fade {
  0%, 38% { opacity: 0; }
  50%, 88% { opacity: 1; }
  100% { opacity: 0; }
}
.week-band { background: #fff; padding: clamp(2.4rem, 5vw, 4.2rem) 0; }
.week-grid {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1rem;
}
.where { color: var(--muted); }
.where a { color: var(--ink); font-weight: 600; text-decoration: none; }
.week {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.45rem;
  width: min(640px, 100%);
  margin: 0.85rem auto 0;
}
.week li {
  background: var(--paper);
  border-radius: 14px;
  padding: 0.55rem 0.2rem 0.45rem;
  text-align: center;
  border-bottom: 3px solid var(--cyan);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.week li.is-today { background: var(--teal); border-color: var(--lime); }
.week .day {
  font-family: var(--display);
  font-size: clamp(0.85rem, 2.4vw, 1.05rem);
  font-weight: 500;
  color: var(--teal);
}
.week .time { font-family: var(--display); font-size: clamp(0.62rem, 2.1vw, 0.78rem); white-space: nowrap; }
.week li.is-today .day { color: var(--lime); }
.week li.is-today .time { color: #fff; }

.band { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.band-paper { background: var(--paper); }
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.split img, .about-photo img, .stage-a img, .stage-b img, .side-photo img {
  width: 100%;
  border-radius: 160px 40px 40px 40px;
  object-fit: cover;
}
.split img { height: min(520px, 70vw); }
@media (min-width: 981px) {
  .clinic-photo img { border-radius: 40px 160px 40px 40px; }
}
.prose p + p, .dek + .dek { margin-top: 1rem; }
.prose h2, .section-label h2 { font-size: clamp(2rem, 3vw, 3rem); margin-bottom: 0.9rem; }
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.4rem;
  background: transparent;
  border: 0;
}
.facts-more { margin: 1.15rem 0 0; text-align: center; }
.facts div {
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: 0.95rem 1.1rem;
  text-align: center;
}
.facts strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1.15rem; margin-bottom: 0; text-align: center; }
.facts span { color: var(--muted); }

.section-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.svc-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  border: 0;
}
.svc-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 1.5rem 1.4rem 1.6rem;
  border: 1.5px solid var(--line);
  border-radius: 28px;
  text-decoration: none;
  color: inherit;
  background: #A2DCE7;
  border-color: #8ed0dc;
}
.svc-row .num {
  font-family: var(--display);
  color: var(--cyan);
  letter-spacing: 0.12em;
  font-weight: 600;
}
.svc-row h3 { font-size: 1.55rem; }
.svc-row p { color: var(--muted); }
.svc-row:hover { background: var(--deep-2); border-color: var(--deep-2); color: #fff; box-shadow: none; }
.svc-row:hover p { color: #CFE2E8; }
.svc-row:hover .num { color: var(--lime); }
@media (min-width: 981px) {
  .svc-row:last-child:nth-child(5) {
    grid-column: 1 / -1;
    width: calc((100% - 1.1rem) / 2);
    justify-self: center;
  }
}

.news-row {
  display: grid;
  grid-template-columns: 140px 1fr 240px;
  gap: 1.4rem;
  align-items: center;
  background: var(--paper);
  border-radius: 28px;
  padding: 1.2rem;
}
.news-row time { font-weight: 600; color: var(--teal); letter-spacing: 0.04em; }
.news-row h3 { font-size: 1.7rem; margin-bottom: 0.4rem; }
.news-row h3 a { color: inherit; text-decoration: none; }
.news-row h3 a:hover { color: var(--teal); }
.news-row img { width: 100%; height: 130px; object-fit: cover; border-radius: 18px; }

.walk {
  width: min(1180px, calc(100% - var(--pad) * 2));
  margin: 0 auto;
}
.walk video {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 160px 40px 40px 40px;
  background: var(--deep);
  pointer-events: none;
}

.page-intro {
  background: linear-gradient(135deg, #062B38 0%, #0A5670 70%);
  color: #fff;
  margin-top: 1.15rem;
  margin-bottom: 1.15rem;
  padding: clamp(2.2rem, 4.5vw, 3.6rem) clamp(1.5rem, 4vw, 2.8rem);
  border-radius: 32px;
  text-align: center;
}
.page-intro .kicker { color: transparent; }
.page-intro h1 {
  font-size: clamp(2.5rem, 4vw, 4.2rem);
  font-weight: 300;
  color: #fff;
  max-width: 18ch;
  margin-inline: auto;
}
.page-intro .dek { margin: 1rem auto 0; max-width: 68ch; color: #D5E7EC; font-size: 1.08rem; }

.chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.85rem 0;
}
.chapters a {
  text-decoration: none;
  color: var(--muted);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.chapters a[aria-current="page"] { background: var(--deep); color: #fff; }

.about-hero {
  position: relative;
  -webkit-mask-image: linear-gradient(#000 0, #000 80%, transparent 100%);
  mask-image: linear-gradient(#000 0, #000 80%, transparent 100%);
}
.about-hero img {
  width: 100%;
  aspect-ratio: 1800 / 882;
  height: auto;
  object-fit: cover;
  object-position: center center;
  object-view-box: inset(21.5% 0% 2% 0%);
}
.about-hero .about-bw { filter: grayscale(1) contrast(1.04); }
.about-hero .about-color {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 42%, transparent 62%);
  mask-image: radial-gradient(circle at 50% 46%, #000 42%, transparent 62%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 0% 0%;
  mask-size: 0% 0%;
  animation: ink 8s cubic-bezier(.16, .7, .2, 1) .2s forwards;
}
@keyframes ink {
  to {
    -webkit-mask-size: 280% 280%;
    mask-size: 280% 280%;
  }
}
.about-sheet {
  width: min(760px, calc(100% - var(--pad) * 2));
  margin: -6.5rem auto 0;
  position: relative;
  background: #fff;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border-radius: 32px;
  box-shadow: 0 24px 50px rgba(6,43,56,.12);
}
.about-sheet h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 400; margin-bottom: 0.8rem; }
.about-sheet p + p { margin-top: 1rem; }
.trio {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.4rem;
  padding: clamp(2.2rem, 5vw, 4rem) 0;
  align-items: center;
}
.trio img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: 40px 40px 140px 40px; }
.trio-notes { display: grid; gap: 0.8rem; }
.trio-notes div { background: var(--paper); border-radius: 22px; padding: 1rem 1.1rem; }
.trio-notes h2 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.trio-notes p { color: var(--muted); }

.bleed-photo { margin: 0; }
.bleed-photo img { width: 100%; height: min(52vh, 560px); object-fit: cover; }
.reading { padding: clamp(2rem, 5vw, 3.4rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.reading h1 { font-size: clamp(2.4rem, 4vw, 3.8rem); font-weight: 400; margin-bottom: 0.8rem; }
.service-stage { display: grid; align-items: stretch; }
.stage-a { grid-template-columns: 1.1fr 0.9fr; background: var(--paper); }
.stage-b { grid-template-columns: 0.85fr 1.15fr; }
.stage-a .copy, .stage-b .copy { padding: clamp(1.6rem, 4vw, 3.2rem); display: flex; flex-direction: column; justify-content: center; }
.stage-a img, .stage-b img { height: 100%; min-height: 420px; border-radius: 0; }

.two-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem auto 0; }
.two-notes article { border-radius: 28px; padding: 1.4rem 1.3rem 1.5rem; }
.two-notes article:first-child { background: #F4F8E0; }
.two-notes article:last-child { background: var(--paper); }
.two-notes h2 { font-size: 1.35rem; margin-bottom: 0.45rem; }

.systems {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--deep);
  color: #fff;
  border-radius: 28px;
  overflow: hidden;
  margin: 1.6rem 0 0;
}
.systems li { padding: 1.6rem 1.3rem; }
.systems li + li { border-left: 1px solid rgba(255,255,255,.14); }
.systems span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 0.4rem;
}
.systems strong { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 2vw, 2.2rem); }
.plain-list { margin: 0.8rem 0 0 1.1rem; }
.plain-list li + li { margin-top: 0.25rem; }

.booklet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: min(1180px, calc(100% - var(--pad) * 2));
  margin: 0 auto;
}
.booklet article { border-radius: 32px; padding: clamp(1.4rem, 3vw, 2.4rem); }
.booklet article:first-child { background: #F7F8EE; }
.booklet article:last-child { background: var(--paper); }
.booklet h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0.35rem 0 0.7rem; }
.booklet .eyebrow {
  font-family: var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--teal);
}
.booklet ol { list-style: none; }
.booklet li { padding-top: 1rem; margin-top: 1rem; border-top: 1px solid rgba(20,39,46,.1); }
.booklet h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.closer { padding: 1.3rem 0 2.5rem; color: var(--muted); max-width: 68ch; }

.consult {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 4vw, 3rem);
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}
.consult h1 { font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 400; }
.consult .when { list-style: none; margin-top: 0.8rem; }
.consult .when li {
  font-family: var(--display);
  font-size: 1.25rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}
.consult h2 { margin-bottom: 0.4rem; }

.team-photo { margin: 0; background: var(--deep); }
.team-photo img { width: 100%; max-height: 78vh; object-fit: cover; object-position: center 20%; }
.team-photo figcaption {
  font-family: var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #d7e4e7;
  padding: 0.7rem var(--pad) 0.9rem;
}
.roster-band { background: var(--deep-2); color: #fff; padding: 1.6rem 0 2rem; }
.roster-band .group-label { color: var(--lime); }
.group-label {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.4rem;
}
.person {
  display: grid;
  grid-template-columns: minmax(14rem, 24rem) 1fr;
  gap: 0.35rem 2rem;
  padding: 1.05rem 0;
  border-top: 1px solid rgba(255,255,255,.16);
}
.person h3 { font-size: 1.45rem; font-weight: 400; }
.person .role { color: var(--lime); font-size: 0.92rem; margin-top: 0.15rem; }
.person p { color: #D5E7EC; }
.doctors { display: grid; margin-top: 1.5rem; }
.doc {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.1rem, 3vw, 2.6rem);
  align-items: center;
  padding: 1.25rem 0;
}
.doc + .doc { border-top: 1px solid var(--line); }
.doc:nth-child(even) { grid-template-columns: minmax(0, 1fr) auto; }
.doc:nth-child(even) .doc-photo { order: 2; }
.doc:nth-child(even) .doc-copy { text-align: right; }
.doc h3 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); }
.doc .role { color: var(--teal); font-weight: 600; margin: 0.25rem 0 0.45rem; }
.doc-copy p:last-child { color: var(--muted); max-width: 42rem; }
.doc:nth-child(even) .doc-copy p:last-child { margin-left: auto; }
.doc-photo {
  width: clamp(112px, 16vw, 164px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #d7eef5;
}
.doc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
#tym, #fotogalerie { scroll-margin-top: calc(var(--header) + 0.8rem); }
#tym h2 { font-size: clamp(2rem, 3vw, 3rem); text-align: center; }
.staff-label { margin-top: 2.4rem; text-align: center; }
.groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1.4rem;
  padding: 1.5rem 0 0.4rem;
  text-align: center;
  justify-items: center;
}
.groups h2 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); margin-bottom: 0.6rem; }
@media (min-width: 981px) {
  .groups h2 { min-height: 2.7em; }
}
.groups ul { list-style: none; width: min(100%, 280px); }
.groups li { padding: 0.4rem 0; border-top: 1px solid var(--line); text-align: center; }
.staff { padding-top: 1.4rem; }

.catalog a.row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 320px;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  width: min(1180px, calc(100% - var(--pad) * 2));
  margin: 0 auto 1rem;
  border-radius: 32px;
  overflow: hidden;
}
.catalog a.row:nth-child(even) { grid-template-columns: 0.95fr 1.05fr; }
.catalog a.row:nth-child(even) .row-copy { order: 2; }
.catalog a.row:nth-child(even) .row-photo { order: 1; }
.row-copy { padding: clamp(1.3rem, 3vw, 2.3rem); display: flex; flex-direction: column; justify-content: flex-end; }
.row-copy .num { font-family: var(--display); color: var(--cyan); letter-spacing: 0.12em; font-weight: 600; }
.row-copy h2 { font-size: clamp(1.7rem, 2.5vw, 2.4rem); margin: 0.3rem 0 0.5rem; }
.row-copy p { color: var(--muted); max-width: 48ch; }
.row-photo { position: relative; min-height: 320px; overflow: hidden; }
.row-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.catalog .row-photo img[src$="osetreni.jpg"] { object-position: 78% 62%; }
.catalog a.row:hover h2 { color: var(--teal); }

.article-hero { padding: clamp(2.2rem, 5vw, 3.6rem) 0 0.4rem; }
.article-hero time { color: var(--teal); font-weight: 600; }
.article-hero h1 { font-size: clamp(2.3rem, 4vw, 3.8rem); font-weight: 400; max-width: 16ch; margin-top: 0.4rem; }
.article-figure { margin: 1.2rem auto 0; width: min(920px, calc(100% - var(--pad) * 2)); }
.article-figure img { width: 100%; border-radius: 28px; }
.advantages { list-style: none; margin-top: 1.2rem; }
.advantages li { padding: 0.75rem 0; border-top: 1px solid var(--line); }
.advantages strong { font-family: var(--display); font-weight: 500; }

.masonry { columns: 3 260px; column-gap: 0.8rem; padding-bottom: 3rem; }
.masonry a { display: block; margin: 0 0 0.8rem; break-inside: avoid; color: inherit; text-decoration: none; }
.masonry img { width: 100%; border-radius: 22px; }
.masonry figcaption { font-size: 0.85rem; color: var(--muted); padding: 0.35rem 0.15rem 0.15rem; }

.lb {
  position: fixed; inset: 0;
  background: rgba(6, 27, 38, .94);
  z-index: 70;
  display: none;
  place-items: center;
  padding: 3.5rem;
}
.lb.is-open { display: grid; }
.lb img { max-width: 100%; max-height: 80vh; border-radius: 18px; }
.lb p { color: #fff; text-align: center; margin-top: 0.6rem; }
.lb button {
  position: absolute;
  background: transparent;
  color: #fff;
  border: 0;
  font-family: var(--display);
  cursor: pointer;
  font-size: 1rem;
}
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; }
.lb-next { right: 1rem; top: 50%; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.1rem;
  padding: 1.4rem 0 2rem;
}
.contact-grid > div:first-child {
  background: #fff;
  border-radius: 40px 40px 40px 160px;
  padding: clamp(1.3rem, 3vw, 2.2rem);
}
body:has(.contact-grid) { background: var(--paper); }
.phone-xl {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  text-decoration: none;
  color: var(--teal);
  display: inline-block;
  margin: 0.2rem 0;
}
.contact-meta { margin-top: 0.6rem; }
.contact-meta p + p { margin-top: 0.3rem; }
.contact-meta a { text-decoration: none; font-weight: 600; }
.legal { margin-top: 1.1rem; color: var(--muted); }
.contact-grid .hours { display: block; padding-top: 1rem; }
.contact-grid .hours h2 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.contact-grid .hours ol { list-style: none; }
.contact-grid .hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
}
.contact-grid .hours .day {
  font-family: var(--display);
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
}
.map { height: 100%; min-height: 460px; border-radius: 40px 40px 160px 40px; overflow: hidden; background: var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; }

.contact-form { padding-bottom: 3.5rem; }
.contact-form h2 { text-align: center; font-size: 1.8rem; margin-bottom: 0.8rem; }
.form { display: grid; gap: 0.8rem; padding: 0; max-width: 720px; margin-inline: auto; }
.form label { display: grid; gap: 0.3rem; font-size: 0.92rem; font-weight: 600; }
.form input, .form textarea {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 0.75rem 0.85rem;
  font-weight: 500;
}
.form textarea { min-height: 140px; resize: vertical; }
.form button {
  justify-self: start;
  border: 0;
  cursor: pointer;
  background: var(--lime);
  color: var(--deep);
  font-weight: 600;
  border-radius: 8px;
  padding: 0.85rem 1.3rem;
}
.form .note { color: var(--muted); font-weight: 500; }

.book {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.3rem;
  align-items: baseline;
  width: min(1180px, calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding: 1rem 0 1.6rem;
  font-weight: 600;
}
.book a { text-decoration: none; }

.site-footer { background: var(--deep); color: #CFE2E8; padding: 2.2rem 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.4rem; }
.site-footer .brand { color: #fff; }
.site-footer p { margin-top: 0.7rem; }
.site-footer a { color: #E6F1F4; text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.site-footer nav { display: grid; align-content: start; gap: 0.3rem; }
.fine { margin-top: 1.3rem; color: #9FB8C0; font-size: 0.92rem; }
.fine p + p { margin-top: 0.55rem; }
.fine-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
.fine-links a { color: #E6F1F4; text-decoration: underline; text-underline-offset: 0.15em; }
.credit {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  margin-top: 0.85rem;
}
.credit p {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: #9FB8C0;
}
.credit strong { font-weight: 600; color: var(--lime); }
.credit img { height: 34px; width: auto; display: block; }
.legal-doc { padding-bottom: 3.2rem; }
.legal-doc .meta { color: var(--muted); margin-bottom: 0.4rem; }
.legal-doc h2 { font-size: clamp(1.35rem, 2vw, 1.7rem); margin: 1.5rem 0 0.45rem; }
.legal-doc p + p, .legal-doc ul { margin-top: 0.7rem; }
.legal-doc ul { margin-left: 1.15rem; }
.legal-doc li + li { margin-top: 0.35rem; }
.creatool-switch {
  display: block;
  width: max-content;
  margin: 0.8rem 0 0 auto;
  border: 0;
  background: transparent;
  color: #9FB8C0;
  font-size: 0.69rem;
  letter-spacing: 0.14em;
  line-height: 1;
  padding: 10px 0 0 16px;
  cursor: pointer;
}
.creatool-switch:hover { color: #fff; }

@media (max-width: 980px) {
  .header-bar { position: relative; }
  .header-bar > .brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin-right: 0;
    z-index: 2;
  }
  .nav-toggle { display: inline-flex; margin-left: auto; position: relative; z-index: 2; }
  .site-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header);
    bottom: 0;
    z-index: 1;
    background: var(--deep);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem var(--pad) 1.4rem;
    gap: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-18px);
    transition: transform 0.42s ease, visibility 0s linear 0.42s;
  }
  .site-nav.is-open,
  .site-nav.is-closing { visibility: visible; }
  .site-nav.is-open {
    pointer-events: auto;
    transform: translateY(0);
    transition: transform 0.55s cubic-bezier(0.22, 1.45, 0.36, 1), visibility 0s;
  }
  .site-nav.is-closing {
    pointer-events: none;
    transform: translateY(-105%);
    transition: transform 0.72s cubic-bezier(0.4, 0, 0.2, 1) 0.06s, visibility 0s linear 0.78s;
  }
  .site-nav a {
    position: relative;
    z-index: 1;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    opacity: 0;
  }
  .site-nav.is-open a { animation: nav-pop 0.64s cubic-bezier(0.22, 1.4, 0.36, 1) forwards; }
  .site-nav.is-open a:nth-child(1) { animation-delay: 0.04s; }
  .site-nav.is-open a:nth-child(2) { animation-delay: 0.1s; }
  .site-nav.is-open a:nth-child(3) { animation-delay: 0.16s; }
  .site-nav.is-open a:nth-child(4) { animation-delay: 0.22s; }
  .site-nav.is-open a:nth-child(5) { animation-delay: 0.28s; }
  .site-nav.is-closing a { animation: nav-out 0.5s cubic-bezier(0.4, 0, 0.2, 1) both; }
  .site-nav.is-closing a:nth-child(1) { animation-delay: 0.18s; }
  .site-nav.is-closing a:nth-child(2) { animation-delay: 0.12s; }
  .site-nav.is-closing a:nth-child(3) { animation-delay: 0.08s; }
  .site-nav.is-closing a:nth-child(4) { animation-delay: 0.04s; }
  .site-nav.is-closing a:nth-child(5) { animation-delay: 0s; }
  .site-nav.is-open::after,
  .site-nav.is-closing::after {
    content: "";
    position: absolute;
    left: -22vw;
    bottom: -14vh;
    width: 148vw;
    height: calc(148vw * 601 / 406);
    margin: 0;
    background: url("../img/logo.svg") left bottom / 100% 100% no-repeat;
    pointer-events: none;
    transform-origin: left bottom;
    z-index: 0;
  }
  .site-nav.is-open::after {
    opacity: 0;
    animation: nav-mark 0.7s cubic-bezier(0.22, 1.5, 0.36, 1) 0.24s forwards, logo-float 64s ease-in-out 0.95s infinite;
  }
  .site-nav.is-closing::after { animation: nav-logo-out 0.55s ease forwards; }
  .nav-cta { margin-top: 0.8rem; text-align: center; border-bottom: 0 !important; }
  .home-hero, .split, .stage-a, .stage-b, .consult, .contact-grid, .booklet, .systems, .catalog a.row, .catalog a.row:nth-child(even), .news-row, .trio, .week-grid {
    grid-template-columns: 1fr;
  }
  .home-hero {
    display: flex;
    flex-direction: column;
    padding: 0.85rem var(--pad) 1.8rem;
    gap: 1.15rem;
  }
  .home-hero-photo { display: none; }
  .home-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-template-rows: none;
    padding: 0;
  }
  .home-hero h1 { width: min(15.5rem, 74%); max-width: none; }
  .hero-actions { justify-content: center; max-width: none; width: 100%; }
  .home-hero-photo img { height: 250px; border-radius: 150px 28px 28px 28px; }
  .home-hero-photo img + img { height: 100%; }
  .systems { grid-template-columns: 1fr; }
  .systems li + li { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .contact-grid > div:first-child { border-radius: 96px 28px 28px 28px; }
  .map, .map iframe { min-height: 320px; }
  .map { border-radius: 28px 28px 96px 28px; }
  .doc,
  .doc:nth-child(even) {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .doc:nth-child(even) .doc-photo { order: 0; }
  .doc-copy,
  .doc:nth-child(even) .doc-copy { text-align: center; }
  .doc:nth-child(even) .doc-copy p:last-child { margin-inline: auto; }
  .catalog a.row:nth-child(even) .row-copy,
  .catalog a.row:nth-child(even) .row-photo { order: initial; }
  .svc-list, .two-notes, .footer-grid, .person { grid-template-columns: 1fr; }
  .about-hero { -webkit-mask-image: linear-gradient(#000 0, #000 78%, transparent 100%); mask-image: linear-gradient(#000 0, #000 78%, transparent 100%); }
  .about-hero img { aspect-ratio: 5 / 4; object-view-box: inset(18% 8% 2% 8%); }
  .about-sheet { margin-top: -5.5rem; }
  .stage-a img, .stage-b img { min-height: 240px; }
  .split img { height: 280px; border-radius: 90px 28px 28px 28px; }
  .facts {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 0.45rem;
  }
  .facts div { padding: 0.7rem 0.45rem; }
  .facts strong {
    font-size: clamp(0.68rem, 3.15vw, 0.95rem);
    line-height: 1.2;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-hero::before,
  .clinic-photo img + img,
  .site-nav,
  .site-nav a,
  .site-nav.is-open,
  .site-nav.is-open a,
  .site-nav.is-closing,
  .site-nav.is-closing a,
  .site-nav.is-open::after,
  .site-nav.is-closing::after {
    animation: none;
    transition: none;
  }
  .site-nav.is-open a,
  .site-nav.is-open::after { opacity: 1; transform: none; }
  .hero-bg { display: none; }
  .clinic-photo img + img { opacity: 0; }
  .about-hero .about-bw { display: none; }
  .about-hero .about-color {
    position: static;
    height: auto;
    aspect-ratio: 1800 / 882;
    animation: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.slideshow { position: relative; }
.slide-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 40px 40px 40px 160px;
  overflow: hidden;
  background: var(--deep);
}
.slide-frame a { display: none; height: 100%; }
.slide-frame a.is-on { display: block; }
.slide-frame img { width: 100%; height: 100%; object-fit: cover; }
.slide-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--deep);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.slide-prev { left: 0.8rem; }
.slide-next { right: 0.8rem; }
.slide-nav:hover { background: var(--lime); }
.lb p:empty { display: none; }
@media (max-width: 980px) {
  .slide-frame { border-radius: 28px 28px 28px 90px; }
  .walk video { border-radius: 90px 28px 28px 28px; }
}
@media (max-width: 640px) {
  .logo-mark { height: 36px; }
  .logo-type, .logo-type small { font-size: 1rem; letter-spacing: 0.06em; }
  .page-intro { border-radius: 22px; }
  .home-hero-photo img { height: 210px; border-radius: 96px 22px 22px 22px; }
  .home-hero-photo img + img { height: 100%; }
  .split img { height: 220px; }
  .svc-row h3 { font-size: 1.28rem; }
  .phone-xl { overflow-wrap: anywhere; }
  .doc-photo { width: 120px; }
}
@media (max-width: 1100px) and (min-width: 981px) {
  .site-nav { gap: 0.8rem; }
  .site-nav a { font-size: 0.9rem; }
  .logo-mark { height: 40px; }
  .logo-type, .logo-type small { font-size: 1.08rem; }
}
