
:root {
  --black: #0a0a0a;
  --ink: #141414;
  --white: #f7f7f5;
  --paper: #ffffff;
  --red: #c41e3a;
  --red-dark: #9b1630;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --max: 1480px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

/* header */
.site-header {
  background: var(--black);
  color: var(--white);
  position: sticky; top: 0; z-index: 40;
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem 0;
}
.logo { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--white); flex: 0 0 auto; }
.logo img { height: 44px; width: auto; background: transparent; }
.logo-name { font-weight: 600; letter-spacing: .01em; font-size: 1.25rem; white-space: nowrap; }
.site-header .bar { position: relative; }
nav { display: flex; align-items: center; gap: 1.25rem; font-size: .92rem; }
nav a { text-decoration: none; color: #ddd; }
nav a:hover, nav a.active { color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; text-decoration: none;
  padding: .7rem 1.15rem; font-weight: 650; border: 0; cursor: pointer;
  letter-spacing: .01em;
}
.btn:hover { background: var(--red-dark); }
.btn-ghost {
  background: transparent; color: #fff; border: 1px solid #fff;
}
.btn-ghost:hover { background: #fff; color: var(--black); }
.btn-dark { background: var(--black); }

/* hero */
.hero {
  background: var(--black); color: var(--white);
  position: relative; overflow: hidden;
  min-height: 78vh; display: grid; align-items: end;
}
.hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .38; filter: grayscale(.15) contrast(1.05);
}
.hero .veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.82) 70%);
}
.hero .content { position: relative; padding: 5.5rem 0 3.2rem; }
.kicker {
  color: var(--red); font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; font-size: .78rem; margin: 0 0 .6rem;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.08; margin: 0 0 .6rem; font-weight: 750; }
.hero p.lead { max-width: 38rem; color: #ddd; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.ecg {
  position: relative; height: 48px; margin-top: 1.8rem; color: var(--red);
}
.ecg svg { width: 100%; height: 48px; }

/* sections */
section { padding: 4.2rem 0; }
section.alt { background: var(--white); }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin: 0 0 1.1rem; letter-spacing: -.02em; }
.sub { color: var(--muted); max-width: 40rem; margin: 0 0 2rem; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.4rem; align-items: center; }
.split img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.split.rev { grid-template-columns: .9fr 1.1fr; }
.photo-frame { overflow: hidden; background: #111; }
.photo-frame.equip img { filter: grayscale(1) contrast(1.08); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { background: var(--paper); border: 1px solid var(--line); padding: 1.2rem 1.15rem; }
.card h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .ico { color: var(--red); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .45rem; }

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-grid a.line, .contact-grid span.line { display: block; text-decoration: none; margin: .25rem 0; font-weight: 400; }
.contact-grid a.line strong, .contact-grid span.line strong { font-weight: 700; }
.contact-grid a.line:hover { color: var(--red); }
form { display: grid; gap: .7rem; }
input, textarea {
  font: inherit; padding: .8rem .85rem; border: 1px solid var(--line); background: #fff;
}
textarea { min-height: 8rem; resize: vertical; }
.map { width: 100%; height: 320px; border: 0; filter: grayscale(1) contrast(1.05); }

.site-footer { background: var(--black); color: #ccc; padding: 2.4rem 0 5.5rem; font-size: .92rem; }
.site-footer strong { color: #fff; }
.foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.callbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--red); color: #fff; text-align: center;
  padding: .9rem; font-weight: 700; text-decoration: none;
}

@media (max-width: 860px) {
  .split, .split.rev, .cards, .contact-grid { grid-template-columns: 1fr; }
  nav .hide-sm { display: inline; }
  .hero { min-height: 72vh; }
  .callbar { display: block; }
}

h1, h2, .logo-name { font-family: "Playfair Display", Georgia, serif; font-weight: 600; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-size: 1.15rem; }
.logo small { font-size: .62rem; letter-spacing: .16em; font-weight: 600; opacity: .85; }
nav a.btn { border-radius: 999px; padding: .55rem 1rem; }
.btn { border-radius: 6px; }
.hero .hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 2.4rem; align-items: center;
  padding: 3.4rem 0 3.2rem;
  position: relative; z-index: 1;
}
.hero .brand { font-style: italic; font-size: 1.35rem; margin: 0 0 1rem; }
.hero-addr { color: #9a9a9a; font-size: .88rem; margin-top: 1.6rem; }
.hero-card {
  background: #fff; border-radius: 18px; padding: 1.4rem;
  display: grid; place-items: center; min-height: 280px;
  position: relative; z-index: 1;
}
.hero-card img { max-height: 280px; width: auto; margin: 0 auto; }
.hero img.bg { display: none; }
.hero .veil { display: none; }
@media (max-width: 860px) {
  .hero .hero-grid { grid-template-columns: 1fr; }
  nav .hide-sm { display: inline; }
}

.nav-check { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle {
  display: none;
  background: transparent; color: #fff; border: 1px solid #555;
  padding: .45rem .8rem; font: inherit; cursor: pointer; border-radius: 6px;
}
nav { flex-wrap: nowrap; white-space: nowrap; }
nav a { white-space: nowrap; }
.hero .hero-grid {
  grid-template-columns: 1fr 1.05fr;
  gap: 2.8rem;
  padding: 3.6rem 0 3.4rem;
}
.hero-card {
  min-height: 520px;
  padding: 1.6rem 1.8rem;
  border-radius: 28px;
  background: #fff;
  overflow: hidden;
}
.hero-card img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  background: #fff;
  display: block;
}
.btn-ghost { background: transparent; color: #fff; border: 1px solid #fff; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  nav {
    display: none;
    position: absolute;
    top: calc(100% - .2rem);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #111;
    padding: .6rem 0 1rem;
    border-top: 1px solid #333;
    white-space: normal;
    z-index: 50;
  }
  .nav-check:checked ~ nav { display: flex; }
  nav a {
    padding: .85rem 1.2rem;
    border-bottom: 1px solid #2a2a2a;
    white-space: normal;
  }
  nav a.btn { margin: .8rem 1.2rem 0; width: auto; justify-content: center; }
  .hero-card, .hero-card img { min-height: 280px; height: auto; max-height: none; }
  .callbar { display: block; }
}

.slideshow {
  position: relative;
  overflow: hidden;
  min-height: 260px;
}
.slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: slidefade 16s infinite;
}
.slideshow img:nth-child(1) { animation-delay: 0s; }
.slideshow img:nth-child(2) { animation-delay: 4s; }
.slideshow img:nth-child(3) { animation-delay: 8s; }
.slideshow img:nth-child(4) { animation-delay: 12s; }
.slideshow.delay img:nth-child(1) { animation-delay: 2s; }
.slideshow.delay img:nth-child(2) { animation-delay: 6s; }
.slideshow.delay img:nth-child(3) { animation-delay: 10s; }
.slideshow.delay img:nth-child(4) { animation-delay: 14s; }
@keyframes slidefade {
  0% { opacity: 0; }
  6% { opacity: 1; }
  22% { opacity: 1; }
  28% { opacity: 0; }
  100% { opacity: 0; }
}

.hero.home {
  background: #121212;
  min-height: 86vh;
  align-items: center;
  display: grid;
}
.hero.home img.bg {
  display: block;
  opacity: .22;
  object-position: left center;
  filter: grayscale(.4) contrast(1.05);
}
.hero.home .veil {
  display: block;
  background: linear-gradient(90deg, rgba(18,18,18,.35) 0%, rgba(18,18,18,.88) 42%, #121212 100%);
}
.hero.home .kicker {
  color: #9a9a9a;
  letter-spacing: .2em;
  font-weight: 600;
}
.hero.home h1 { color: #fff; margin: 0 0 .25rem; }
.hero.home .brand { font-style: italic; font-size: 1.45rem; margin: 0 0 .4rem; color: #fff; }
.hero.home .ecg { height: 28px; margin: .15rem 0 1.1rem; color: #b4232c; }
.hero.home .ecg svg { width: 210px; height: 28px; }
.hero.home .lead { color: #e8e8e8; max-width: 34rem; line-height: 1.65; }
.hero.home .hero-grid {
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 4.2rem 0 3.6rem;
  align-items: center;
}
.hero.home .btn-pill,
.hero.home .btn-light {
  border-radius: 999px;
  padding: .78rem 1.35rem;
  font-weight: 650;
  gap: .45rem;
}
.hero.home .btn-light {
  background: #fff;
  color: #111;
  border: 0;
}
.hero.home .btn-light:hover { background: #eee; color: #111; }
.hero.home .hero-card {
  min-height: 420px;
  border-radius: 32px;
  padding: 2.2rem 2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.hero.home .hero-card img {
  max-height: 420px;
  width: 100%;
  height: auto;
  object-fit: contain;
}
@media (max-width: 860px) {
  .hero.home { min-height: unset; }
  .hero.home .hero-grid { grid-template-columns: 1fr; padding: 2.4rem 0 2.6rem; }
  .hero.home .hero-card { min-height: 280px; padding: 1.4rem; }
}

.hero.home {
  background: #000 !important;
}
.hero.home img.bg,
.hero.home .veil { display: none !important; }
.hero.home .hero-grid {
  align-items: stretch;
  min-height: 72vh;
}
.hero.home .hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: .4rem 0;
}
.hero.home .hero-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  height: auto;
  background: #fff;
  border-radius: 32px;
  padding: 2.4rem 2.2rem;
}
.hero.home .hero-card img {
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
}

.hero.home .hero-card {
  padding: 1.1rem 1.2rem !important;
}
.hero.home .hero-card img {
  max-height: 680px !important;
  width: 108% !important;
  max-width: none;
  margin-left: -4%;
  transform: scale(1.08);
}

.foot-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .28rem;
}
.foot-contacts a { text-decoration: underline; }
.path-cards { grid-template-columns: 1fr; }
.path-cards .card { padding: 1.35rem 1.3rem; }
.path-cards .card p { max-width: 52rem; }
.hero.home .hero-card img {
  transform: scale(1.46) !important;
  width: 118% !important;
  max-height: 760px !important;
  margin-left: -9%;
}
@media (max-width: 860px) {
  .foot-contacts { align-items: flex-start; }
}

a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { border-color: #c41e3a; }
.article p { max-width: 42rem; font-size: 1.05rem; }
.article .btn { margin-right: .5rem; margin-top: .6rem; }

#clinic-map { width: 100%; height: 360px; border: 0; z-index: 1; }
.red-pin { background: transparent; border: 0; }
.red-pin span {
  display: block;
  width: 22px;
  height: 22px;
  background: #c41e3a;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(0,0,0,.45);
}
