:root {
  --teal-900: #0f3f48;
  --teal-700: #1d6b77;
  --teal-600: #278290;
  --teal-500: #3a9aa5;
  --mint: #7fd8c8;
  --blue: #3b8fd4;
  --navy: #1f2a44;
  --ink: #1b2a33;
  --muted: #5d7079;
  --line: #dbe8eb;
  --sky: #e8f4f6;
  --bg: #f6fafb;
  --white: #fff;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(15, 63, 72, .10);
  --container: 1180px;
  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.icon { width: 20px; height: 20px; flex: none; }
.icon--xl { width: 44px; height: 44px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 16px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--light { background: var(--white); color: var(--teal-700); }
.btn--light:hover { box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--primary { background: var(--teal-700); color: var(--white); }
.btn--primary:hover { background: var(--teal-900); }
.btn--outline { border-color: var(--teal-700); color: var(--teal-700); }
.btn--outline:hover { background: var(--teal-700); color: var(--white); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark { height: 72px; width: auto; }
.logo__word { height: 56px; width: auto; }
.logo img { mix-blend-mode: multiply; }
.nav { display: flex; gap: 28px; white-space: nowrap; margin-left: auto; font-weight: 600; font-size: 15px; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--teal-700); }
.header__phone {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; background: var(--sky);
  color: var(--teal-700); font-weight: 800;
}
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--navy); margin: 6px 0; border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-900) 100%);
}
.hero__pattern {
  position: absolute; inset: 0; opacity: .10;
  background-image: radial-gradient(circle at 1px 1px, #fff 1.5px, transparent 0);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
}
.hero::after {
  content: ""; position: absolute; right: -140px; bottom: -180px; width: 520px; height: 520px;
  border-radius: 50%; background: radial-gradient(circle, rgba(127,216,200,.35), transparent 70%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center;
  padding: 88px 0 96px;
}
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); margin-bottom: 16px; }
.eyebrow--dark { color: var(--teal-600); }
.hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; }
.hero h1 span { color: var(--mint); }
.hero__lead { margin-top: 22px; max-width: 540px; font-size: 18px; color: rgba(255,255,255,.85); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hours-card {
  background: var(--white); color: var(--ink); border-radius: 24px; padding: 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.25); max-width: 380px; justify-self: end; width: 100%;
}
.hours-card h2 { font-size: 20px; font-weight: 800; text-align: center; padding-bottom: 14px; border-bottom: 2px solid var(--line); margin-bottom: 8px; color: var(--navy); }
.hours-card dl > div { display: flex; justify-content: space-between; padding: 9px 0; font-weight: 600; font-size: 15px; }
.hours-card dt { color: var(--muted); }
.hours-card .off dd { color: var(--teal-700); font-weight: 800; }
.hours-card__phone { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--sky); color: var(--teal-700); font-weight: 800; }

/* Sections */
.section { padding: 96px 0; }
.section--tight { padding: 0; margin-top: -48px; position: relative; z-index: 2; }
.section--teal { background: var(--teal-700); color: var(--white); }
.section--sky { background: var(--sky); }
.section__head { max-width: 680px; margin-bottom: 48px; }
.section__head h2, .contacts h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.section--teal .section__head h2 { color: var(--white); }
.section__note { margin-top: 12px; color: var(--muted); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.feature__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--sky); color: var(--teal-700); margin-bottom: 16px; }
.feature h3 { font-size: 18px; font-weight: 800; color: var(--navy); }
.feature p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service .icon--xl { color: var(--teal-600); margin-bottom: 18px; }
.service h3 { font-size: 20px; font-weight: 800; color: var(--navy); }
.service p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.service--main { grid-column: span 2; background: var(--teal-700); border-color: transparent; color: var(--white); display: flex; flex-direction: column; }
.service--main .icon--xl { color: var(--mint); }
.service--main h3 { color: var(--white); font-size: 24px; }
.service--main p { color: rgba(255,255,255,.82); }
.ticks { margin-top: 12px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; color: rgba(255,255,255,.9); font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2.500px solid var(--mint); border-bottom: 2.500px solid var(--mint); transform: rotate(-45deg); }
.link { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--mint); }
.link:hover .icon { transform: translateX(4px); }
.link .icon { transition: transform .2s; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); }
.steps__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mint); color: var(--teal-900); font-weight: 800; margin-bottom: 16px; }
.steps h3 { font-size: 18px; font-weight: 800; }
.steps p { margin-top: 6px; font-size: 14.500px; color: rgba(255,255,255,.8); }

/* Doctors */
.founder {
  display: grid; grid-template-columns: 5fr 7fr; gap: 0; align-items: stretch; margin-bottom: 24px;
  border-radius: 28px; overflow: hidden; color: var(--white);
  background: linear-gradient(135deg, var(--teal-700), var(--teal-900));
  box-shadow: 0 24px 60px rgba(15,63,72,.28);
}
.founder__photo { position: relative; min-height: 460px; background: #0b0d10; }
.founder__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.founder__body { padding: 56px 56px 56px 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; }
.badge { display: inline-block; padding: 7px 16px; border-radius: 999px; background: var(--mint); color: var(--teal-900); font-size: 13px; font-weight: 800; letter-spacing: .04em; margin-bottom: 14px; }
.founder h3 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.founder__role { font-size: 19px; font-weight: 700; color: var(--mint); }
.founder__text { margin: 12px 0 24px; max-width: 460px; color: rgba(255,255,255,.85); font-size: 17px; }

.doctors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.doctor { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.doctor:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.doctor__photo { aspect-ratio: 4/5; background: #0b0d10; overflow: hidden; }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.doctor h3 { font-size: 19px; font-weight: 800; color: var(--navy); padding: 18px 18px 0; }
.doctor p { color: var(--teal-600); font-weight: 700; font-size: 14.5px; padding: 4px 18px 20px; }

/* Clinic */
.clinic { display: grid; grid-template-columns: 7fr 5fr; gap: 20px; }
.clinic__item { position: relative; margin: 0; height: 540px; border-radius: 24px; overflow: hidden; background: var(--teal-900); }
.clinic__item img { width: 100%; height: 100%; object-fit: cover; }
.clinic__item figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--navy); font-weight: 700; font-size: 14px; }

/* Certificates */
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.cert { display: flex; flex-direction: column; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: zoom-in; font: inherit; text-align: left; color: var(--navy); transition: transform .2s, box-shadow .2s; }
.cert:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cert img { width: 100%; height: auto; border-radius: 12px; }
.cert span { font-weight: 700; font-size: 14.500px; padding: 0 6px 6px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 20, 24, .88); }
.lightbox img { display: block; max-width: 92vw; max-height: 90vh; width: auto; height: auto; border-radius: 12px; }
.lightbox__close { position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); color: var(--navy); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.35); }

/* Contacts */
.contacts { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.contact-list { margin: 8px 0 28px; display: grid; gap: 18px; }
.lead-form { position: relative; background: var(--white); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.lead-form h3 { font-size: 24px; font-weight: 800; color: var(--navy); }
.field { display: grid; gap: 6px; }
.field span { font-size: 14px; font-weight: 700; color: var(--navy); }
.field em { font-style: normal; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(58,154,165,.18); background: var(--white); }
.field.is-invalid input { border-color: #d64545; box-shadow: 0 0 0 4px rgba(214,69,69,.12); }
.hp { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.btn--block { width: 100%; font-family: inherit; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.lead-form__status { min-height: 1.4em; font-weight: 700; font-size: 15px; }
.lead-form__status.is-ok { color: #1a7f5a; }
.lead-form__status.is-error { color: #c23a3a; }
.lead-form__status a { text-decoration: underline; }
.lead-form__legal { font-size: 12.500px; color: var(--muted); line-height: 1.45; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--sky); color: var(--teal-700); }
.contact-list div { display: flex; flex-direction: column; padding-top: 2px; font-weight: 600; }
.contact-list a:hover { color: var(--teal-700); }
.contact-list span { color: var(--muted); }

.map { position: relative; margin-top: 40px; min-height: 420px; border-radius: 24px; overflow: hidden; background: var(--sky); box-shadow: var(--shadow); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__link { position: absolute; left: 14px; bottom: 14px; padding: 10px 18px; border-radius: 999px; background: var(--white); color: var(--teal-700); font-weight: 800; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.map__link:hover { background: var(--teal-700); color: var(--white); }

/* Footer */
.footer { background: var(--teal-900); color: rgba(255,255,255,.75); padding: 36px 0; font-size: 14px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.footer__logo { display: block; background: var(--white); border-radius: 18px; padding: 12px 20px; }
.footer__logo img { height: 88px; width: auto; }

.fab { display: none; }

/* Reveal */
.reveal { opacity: 0; translate: 0 20px; transition: opacity .6s ease, translate .6s ease, transform .2s, box-shadow .2s; }
.reveal.is-visible { opacity: 1; translate: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; transition: none; }
  .btn, .service { transition: none; }
}

/* Tablet */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .doctors { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; padding: 64px 0 80px; }
  .hours-card { justify-self: start; }
  .founder { grid-template-columns: 1fr 1fr; }
  .founder__body { padding: 40px 32px; }
}

/* Header collapses earlier so the larger logo never crowds the menu */
@media (max-width: 1000px) {
  :root { --header-h: 80px; }
  .logo__mark { height: 56px; }
  .logo__word { height: 42px; }
  .header__phone { display: none; }
  .burger { display: block; margin-left: auto; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; background: var(--white);
    border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
}

/* Mobile */
@media (max-width: 820px) {
  .features { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; gap: 32px; }
  .contacts > * { min-width: 0; }
  .lead-form { padding: 24px 20px; }
  .map { min-height: 320px; margin-top: 32px; }
  .founder { grid-template-columns: 1fr; }
  .founder__photo { min-height: 0; height: min(112vw, 520px); }
  .founder__body { padding: 28px 24px 32px; }
  .doctors { grid-template-columns: 1fr; gap: 16px; }
  .doctor { display: grid; grid-template-columns: 38% 1fr; grid-template-rows: 1fr 1fr; }
  .doctor__photo { grid-row: 1 / span 2; aspect-ratio: 4/5; height: 100%; }
  .doctor h3 { align-self: end; padding: 16px 16px 0; font-size: 18px; }
  .doctor p { align-self: start; padding: 4px 16px 16px; }
  .clinic { grid-template-columns: 1fr; }
  .clinic__item { height: 340px; }
  .certs { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .fab {
    display: grid; place-items: center; position: fixed; right: 16px; bottom: 16px; z-index: 40;
    width: 56px; height: 56px; border-radius: 50%; background: var(--teal-700); color: var(--white);
    box-shadow: 0 8px 24px rgba(15,63,72,.4);
  }
  .fab .icon { width: 24px; height: 24px; }
}
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .service--main { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
}
