/* LOR+ landing — variant A (clean clinical). Mobile-first, one breakpoint at 900px. */

:root {
  --ink: #0F2530;
  --muted: #4B6270;
  --soft: #6A8392;
  --accent: #0A6C8C;
  --accent-dark: #06536C;
  --accent-tint: #EAF3F6;
  --surface: #F3F7F9;
  --placeholder: #DCE8EE;
  --line: #E3ECF0;
  --border: #D3E0E6;
  --ok-bg: #E8F6EE;
  --ok-ink: #11603A;
  --ok-dot: #1E9E5A;
  --radius: 14px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 20px;
}

.section { padding-block: 48px; }
.section--tint { background: var(--surface); }

.section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.section-head h2 { font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -0.5px; }
.section-head p { color: var(--muted); font-size: 16px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: var(--radius);
  font-size: 16px; font-weight: 700; line-height: 1.2;
  border: 1.5px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--outline { border-color: var(--border); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent-tint); color: var(--ink); }
.btn--ghost-dark { border-color: #4B6270; color: #fff; }
.btn--ghost-dark:hover { border-color: #fff; color: #fff; }
.btn--lg { min-height: 56px; font-size: 17px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */

.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }

.logo { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; color: var(--ink); }
.logo span { color: var(--accent); }
.logo:hover { color: var(--ink); }

.nav { display: none; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); }
.nav a:hover { color: var(--accent); }

.header__actions { display: flex; align-items: center; gap: 10px; }
.header__phone { display: none; font-weight: 700; color: var(--ink); }
.header__cta { display: none; min-height: 44px; padding: 0 20px; font-size: 15px; }

.lang { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; font-size: 13px; font-weight: 600; }
.lang a { display: flex; align-items: center; min-height: 36px; padding: 0 12px; color: var(--muted); }
.lang a[aria-current="page"] { background: var(--ink); color: #fff; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */

.hero { padding-block: 28px 8px; }
.hero__grid { display: flex; flex-direction: column; gap: 24px; }
.hero__text { display: flex; flex-direction: column; gap: 18px; }

.badge-open {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px;
  background: var(--ok-bg); color: var(--ok-ink);
  font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px;
}
.badge-open::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok-dot); }

.hero h1 { font-size: clamp(32px, 6vw + 10px, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -1px; }
.hero__lead { font-size: 16px; color: var(--muted); max-width: 540px; }

.hero__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero__ctas .btn--primary { grid-column: 1 / -1; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fact { background: var(--surface); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.fact strong { font-size: 24px; font-weight: 800; line-height: 1.2; }
.fact span { font-size: 13px; color: var(--muted); }

/* Photo block: decorative tile behind, photo, name card overlapping the bottom edge (never over the face). */
.hero__media {
  position: relative; width: 100%; max-width: 420px;
  margin: 12px auto 0; padding: 0 0 0 14px;
}
.hero__media::before {
  content: ""; position: absolute; z-index: 0;
  top: 18px; right: -14px; bottom: 28px; left: 30px;
  border-radius: 28px; background: var(--accent-tint);
}
.hero__photo {
  position: relative; z-index: 1; border-radius: 24px; overflow: hidden;
  background: var(--placeholder); aspect-ratio: 4 / 5;
  box-shadow: 0 24px 48px -24px rgba(15, 37, 48, .35);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__live {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .94); color: var(--ok-ink);
  font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px;
}
.hero__live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok-dot);
  animation: pulse 2s ease-out infinite;
}
.hero__doctor {
  position: relative; z-index: 2;
  margin: -40px 16px 0 30px;
  background: #fff; border-radius: 16px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 12px 32px -8px rgba(15, 37, 48, .18);
}
.hero__doctor strong { font-size: 15px; }
.hero__doctor span { font-size: 13px; color: var(--muted); }

/* ---------- Symptoms + services ---------- */

.symptoms {
  background: var(--accent-tint); border-radius: 20px; padding: 20px;
  display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px;
}
.symptoms h3 { font-size: 18px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 500; }
.symptoms__note { font-size: 13px; color: var(--muted); }

.services { display: grid; grid-template-columns: 1fr; gap: 12px; }
.service {
  border: 1px solid var(--line); border-radius: 18px; padding: 20px;
  display: flex; flex-direction: column; gap: 12px; background: #fff;
}
.service__icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.service__icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 18px; font-weight: 700; }
.service ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.service li { font-size: 15px; color: var(--muted); padding-left: 18px; position: relative; }
.service li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: 1fr; gap: 12px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { background: #fff; border-radius: 18px; padding: 20px; display: flex; gap: 16px; align-items: flex-start; }
.step__num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
  background: var(--ink); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.step p { font-size: 15px; color: var(--muted); }

/* ---------- Prices ---------- */

/* Tabs sit on a white track with a border so they read as tabs on the tinted section background */
.tabs {
  display: flex; background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 5px; gap: 5px; margin-bottom: 16px;
  box-shadow: 0 6px 18px -12px rgba(15, 37, 48, .25);
}
.tabs button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; background: transparent; color: var(--ink);
  font-size: 15px; font-weight: 700; min-height: 48px; padding: 0 10px; border-radius: 10px;
  transition: background-color .15s, color .15s;
}
.tabs button:hover { background: var(--accent-tint); }
.tabs button[aria-selected="true"] { background: var(--accent); color: #fff; box-shadow: 0 8px 18px -10px rgba(10, 108, 140, .8); }
.tabs__count {
  font-size: 12px; font-weight: 700; line-height: 1; padding: 4px 7px; border-radius: 999px;
  background: var(--surface); color: var(--muted);
}
.tabs button[aria-selected="true"] .tabs__count { background: rgba(255, 255, 255, .2); color: #fff; }
.price-panel__note {
  margin: 12px 0 14px; padding: 12px 14px; border-radius: 12px;
  background: #FFF6E5; color: #7A4B00; font-size: 14px; font-weight: 600;
}

.price-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 4px 18px; }
.price-panel[hidden] { display: none; }
.price-group__title { font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--soft); padding: 18px 0 4px; }
.price-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid #EDF2F4; font-size: 15px;
}
.price-row:last-child { border-bottom: 0; }
.price-row strong { white-space: nowrap; font-weight: 700; }
.price-note { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ---------- Doctors ---------- */

.doctors { display: grid; grid-template-columns: 1fr; gap: 12px; }
.doctor {
  border: 1px solid var(--line); border-radius: 18px; padding: 14px;
  display: flex; gap: 14px; align-items: center;
}
.doctor__photo { width: 84px; height: 104px; flex-shrink: 0; border-radius: 12px; overflow: hidden; background: var(--placeholder); }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doctor__info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.doctor__info strong { font-size: 16px; line-height: 1.25; }
.doctor__info span { font-size: 13px; color: var(--muted); }
.doctor__info .doctor__meta { font-size: 12px; font-weight: 600; color: var(--accent); }

/* ---------- FAQ ---------- */

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: #fff; border-radius: 16px; padding: 0 18px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 16px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 10px; height: 10px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding-bottom: 18px; color: var(--muted); font-size: 15px; }

/* ---------- Location ---------- */

.location { display: flex; flex-direction: column; gap: 20px; }
.location__info { display: flex; flex-direction: column; gap: 18px; }
.info-row { display: flex; gap: 12px; align-items: flex-start; }
.info-row svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.info-row strong { display: block; font-size: 17px; }
.info-row span { font-size: 15px; color: var(--muted); }
.map-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.map {
  border-radius: 18px; overflow: hidden; background: var(--placeholder);
  height: 280px; border: 0;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.location__media { display: flex; flex-direction: column; gap: 12px; }
.facades { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.facades figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; background: var(--placeholder); aspect-ratio: 4 / 5; }
.facades img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.facades figcaption {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 999px;
}

/* ---------- Clinic video ---------- */

.clinic { display: flex; flex-direction: column; gap: 28px; }
.clinic__video {
  position: relative; width: 100%; max-width: 340px; margin: 0 auto;
  aspect-ratio: 540 / 968; border-radius: 28px; overflow: hidden;
  background: var(--ink); box-shadow: 0 30px 60px -30px rgba(15, 37, 48, .55);
}
.clinic__video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.clinic__play {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .95); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .4);
}
.clinic__play svg { width: 30px; height: 30px; margin-left: 4px; }
.clinic__play::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .7);
}
.clinic__video.is-playing .clinic__play { display: none; }
.clinic__text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.clinic__text .section-head { margin-bottom: 0; }

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; font-size: 16px; line-height: 1.45; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230A6C8C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checklist--dark li { color: #DCE6EB; }
.checklist--dark li::before { background-color: rgba(255, 255, 255, .12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E"); }

/* ---------- Booking form ---------- */

.book {
  border-radius: 24px; background: var(--ink); color: #fff;
  padding: 28px 20px; display: flex; flex-direction: column; gap: 24px;
}
.book__intro { display: flex; flex-direction: column; gap: 14px; }
.book__intro h2 { font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -0.5px; }
.book__intro > p { color: #B8C9D2; font-size: 16px; }
.book__alt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; color: #B8C9D2; font-size: 14px; }
.book__alt span { width: 100%; }
.book__alt .btn { min-height: 46px; padding: 0 18px; font-size: 15px; }

.lead-form, .lead-success {
  background: #fff; color: var(--ink); border-radius: 20px; padding: 22px 18px;
  display: flex; flex-direction: column; gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 600; padding: 0; }
.field input[type="text"], .field input[type="tel"] {
  height: 52px; border: 1.5px solid var(--border); border-radius: 12px; padding: 0 14px;
  font: inherit; font-size: 16px; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #8A9BA5; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(10, 108, 140, .15); }
.field input[aria-invalid="true"] { border-color: #C0392B; }
.choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 8px;
  border: 1.5px solid var(--border); border-radius: 12px; font-size: 15px; font-weight: 600; text-align: center;
  transition: background-color .15s, border-color .15s, color .15s;
}
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .btn[disabled] { opacity: .7; cursor: progress; }
.form-status { font-size: 14px; font-weight: 600; color: #B03A2E; min-height: 0; }
.form-status:empty { display: none; }
.form-note { font-size: 13px; color: var(--muted); }

.lead-success { align-items: flex-start; justify-content: center; }
.lead-success[hidden], .lead-form[hidden] { display: none; }
.lead-success__icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--ok-bg); color: var(--ok-dot);
  display: flex; align-items: center; justify-content: center;
}
.lead-success__icon svg { width: 28px; height: 28px; }
.lead-success h3 { font-size: 22px; font-weight: 800; }
.lead-success p { color: var(--muted); }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); padding-block: 28px 110px; font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; flex-direction: column; gap: 12px; }
.footer__brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Fixed contact buttons (always on screen) ---------- */
/* Mobile: bottom bar [call][telegram][book]. Desktop: floating group bottom-right. Hidden while the booking form is in view. */

.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: #fff; border-top: 1px solid var(--line);
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 52px 52px 1fr; gap: 10px;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), opacity .3s;
}
.sticky-bar .btn { min-height: 52px; padding: 0; }
.sticky-bar .btn--tg { background: var(--accent-tint); color: var(--accent); border-color: transparent; }
.sticky-bar.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }

/* ---------- Desktop ---------- */

@media (min-width: 900px) {
  .container { padding-inline: 40px; }
  .section { padding-block: 72px; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: 40px; letter-spacing: -1px; }

  .nav, .header__phone { display: flex; }
  .header__cta { display: inline-flex; }
  .header__inner { min-height: 76px; }
  .header .icon-btn { display: none; }
  .logo { font-size: 28px; }

  .hero { padding-block: 64px 56px; }
  .hero__grid { flex-direction: row; align-items: center; gap: 56px; }
  .hero__text { flex: 1 1 0; gap: 24px; }
  .hero__media { flex: 0 1 400px; max-width: none; margin: 0; }
  .hero__photo { border-radius: 28px; }
  .hero__ctas .btn--map { display: none; }
  .hero__lead { font-size: 19px; }
  .hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
  .hero__ctas .btn { min-height: 58px; padding: 0 22px; }
  .hero__ctas .btn--primary { padding: 0 30px; }

  .facts { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 4px 48px; border-top: 1px solid var(--line); padding-top: 4px; }
  .fact { background: none; padding: 16px 0 0; }
  .fact strong { white-space: nowrap; font-size: 26px; }
  .fact span { font-size: 14px; }

  .hero__doctor { margin: -48px 24px 0 40px; padding: 18px 20px; }
  .hero__doctor strong { font-size: 17px; }
  .hero__doctor span { font-size: 14px; }

  .symptoms { flex-direction: row; align-items: center; gap: 24px; padding: 24px 28px; }
  .symptoms h3 { flex: 0 0 240px; }
  .symptoms__body { flex: 1; display: flex; flex-direction: column; gap: 10px; }
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

  .price-panel { padding: 8px 28px; }
  .price-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .price-row { font-size: 16px; padding: 15px 0; }

  .doctors { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .doctor { flex-direction: column; align-items: stretch; padding: 16px; border-radius: 22px; }
  .doctor__photo { width: 100%; height: 300px; border-radius: 16px; }
  .doctor__info { padding: 0 4px 4px; }
  .doctor__info strong { font-size: 18px; }
  .doctor__info span { font-size: 14px; }

  .faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
  .faq-wrap .section-head { margin-bottom: 0; }

  .location { flex-direction: row; gap: 40px; align-items: flex-start; }
  .location__info { flex: 1 1 0; }
  .location__media { flex: 1.4 1 0; gap: 14px; }
  .location__media .map { height: 300px; border-radius: 22px; }
  .location__media .facades { gap: 14px; }
  .location__media .facades figure { aspect-ratio: 4 / 3; border-radius: 20px; }
  .location__media .facades img { object-position: 50% 18%; }
  .map-buttons { display: flex; flex-wrap: wrap; }

  .clinic { flex-direction: row; align-items: center; gap: 72px; }
  .clinic__video { flex: 0 0 340px; margin: 0; }
  .clinic__text { flex: 1 1 0; gap: 24px; }
  .checklist li { font-size: 17px; }

  .book { flex-direction: row; align-items: center; gap: 56px; padding: 56px; border-radius: 28px; }
  .book__intro { flex: 1 1 0; gap: 18px; }
  .book__intro h2 { font-size: 40px; letter-spacing: -1px; }
  .book__intro > p { font-size: 18px; }
  .lead-form, .lead-success { flex: 0 1 440px; padding: 28px; border-radius: 22px; }
  .lead-success { min-height: 420px; }

  .footer { padding-block: 28px 104px; }
  .footer__inner { flex-direction: row; justify-content: space-between; align-items: center; }

  .sticky-bar {
    left: auto; right: 24px; bottom: 24px; padding: 0; background: none; border: 0;
    display: flex; align-items: center; gap: 10px;
  }
  .sticky-bar .btn {
    min-height: 56px; border-radius: 999px;
    box-shadow: 0 14px 34px -12px rgba(15, 37, 48, .45);
  }
  .sticky-bar .btn--outline, .sticky-bar .btn--tg { width: 56px; padding: 0; background: #fff; border: 1px solid var(--line); color: var(--ink); }
  .sticky-bar .btn--tg { color: var(--accent); }
  .sticky-bar .btn--primary { order: 3; padding: 0 26px; }
  .sticky-bar.is-hidden { transform: translateY(24px); }
}

@media (min-width: 600px) and (max-width: 899px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__media { max-width: 440px; }
}

@media (min-width: 1200px) {
  .facts { grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 24px; }
}

/* ---------- Motion (minimal) ---------- */

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(30, 158, 90, .55); }
  70% { box-shadow: 0 0 0 9px rgba(30, 158, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 158, 90, 0); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
/* No opacity here: the hero photo is the LCP element and must be visible from the first frame */
@keyframes photo-in {
  from { transform: scale(.96) translateY(14px); }
  to { transform: none; }
}
@keyframes tile-in {
  from { opacity: 0; transform: translate(-14px, -14px); }
  to { opacity: 1; transform: none; }
}
@keyframes tile-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(4px, 8px); }
}

.badge-open::before { animation: pulse 2s ease-out infinite; }

@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance: text staggers up, photo scales in, name card arrives last */
  .hero__text > * { animation: fade-up .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__text > :nth-child(1) { animation-delay: .05s; }
  .hero__text > :nth-child(2) { animation-delay: .12s; }
  .hero__text > :nth-child(3) { animation-delay: .2s; }
  .hero__text > :nth-child(4) { animation-delay: .28s; }
  .hero__text > :nth-child(5) { animation-delay: .36s; }
  .hero__photo { animation: photo-in .9s cubic-bezier(.2, .7, .2, 1) .15s both; }
  .hero__media::before { animation: tile-in 1s cubic-bezier(.2, .7, .2, 1) .1s both, tile-float 7s ease-in-out 1.2s infinite; }
  .hero__doctor { animation: fade-up .7s cubic-bezier(.2, .7, .2, 1) .55s both; }

  /* Scroll reveal: JS adds .reveal to blocks, then .is-visible when they enter the viewport */
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.is-visible { opacity: 1; transform: none; }

  /* Hover: subtle lift */
  .btn { transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s; }
  .btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(10, 108, 140, .7); }
  .service, .doctor { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
  .service .service__icon { transition: transform .25s ease, background-color .25s ease, color .25s ease; }

  /* Sticky bar slides in once the hero CTA scrolls away */
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .service:hover, .doctor:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(15, 37, 48, .3); border-color: transparent; }
  .service:hover .service__icon { transform: scale(1.08) rotate(-6deg); background: var(--accent); color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  .badge-open::before, .hero__live::before { animation: none; }
}

/* ---------- Inner pages (Bolalar LOR, UZI, Adenoid) ---------- */

.breadcrumbs { font-size: 13px; color: var(--muted); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--soft); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }

.page-hero { padding-block: 24px 40px; background: linear-gradient(180deg, var(--accent-tint) 0, #fff 100%); }
.page-hero__inner { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.page-hero h1 { font-size: clamp(30px, 4.5vw + 10px, 50px); line-height: 1.08; font-weight: 800; letter-spacing: -1px; }
.page-hero__lead { font-size: 17px; color: var(--muted); }
.page-hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }

.prose { max-width: 760px; display: flex; flex-direction: column; gap: 14px; font-size: 16px; color: var(--ink); }
.prose p { color: var(--muted); }
.prose h2 { font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -0.5px; }
.prose--spaced { margin-bottom: 28px; }
.note { font-size: 13px; color: var(--muted); margin-top: 16px; }

.related { display: grid; grid-template-columns: 1fr; gap: 12px; }
.related a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; background: #fff;
  color: var(--ink); font-weight: 700; font-size: 16px;
}
.related a::after { content: "→"; color: var(--accent); font-size: 20px; }
.related a:hover { border-color: var(--accent); color: var(--accent); }

.service__more { margin-top: auto; font-size: 14px; font-weight: 700; }

@media (min-width: 900px) {
  .page-hero { padding-block: 32px 64px; }
  .page-hero__lead { font-size: 19px; }
  .related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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


/* ---------- Services as compact topic tiles (home) ---------- */
/* Mobile: 2 per row; desktop: 4 per row. Each tile links to the matching price tab or page. */

.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.topic {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
  color: var(--ink); min-height: 168px;
  transition: border-color .2s, box-shadow .25s, transform .25s cubic-bezier(.2, .7, .2, 1), background-color .2s;
}
.topic:hover, .topic:focus-visible { color: var(--ink); border-color: var(--accent); }
.topic:active { transform: scale(.97); background: var(--accent-tint); } /* tap feedback on phones */
.topic__icon {
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 4px;
  background: var(--accent-tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  transition: background-color .25s, color .25s, transform .3s cubic-bezier(.2, .7, .2, 1);
}
.topic__icon svg { width: 22px; height: 22px; }
.topic__title { font-size: 15px; font-weight: 700; line-height: 1.25; }
.topic__desc { font-size: 13px; line-height: 1.4; color: var(--muted); }
.topic__more { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--accent); }
.topic__more::after { content: "→"; display: inline-block; margin-left: 4px; transition: transform .25s; }

@media (min-width: 900px) {
  .topics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .topic { padding: 20px; min-height: 196px; border-radius: 18px; }
  .topic__icon { width: 46px; height: 46px; }
  .topic__title { font-size: 17px; }
  .topic__desc { font-size: 14px; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .topic:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -20px rgba(10, 108, 140, .45); }
  .topic:hover .topic__icon { background: var(--accent); color: #fff; transform: scale(1.08) rotate(-6deg); }
  .topic:hover .topic__more::after { transform: translateX(5px); }
  .topic:active { transform: translateY(-2px) scale(.99); }
}

/* ---------- UZI price groups (accordion) ---------- */

.price-panel--plain { background: none; border: 0; padding: 0; }
.price-acc { display: flex; flex-direction: column; gap: 8px; }
.price-acc__item { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.price-acc__item[open] { border-color: var(--border); }
.price-acc__item summary {
  list-style: none; cursor: pointer; min-height: 58px; padding: 12px 16px;
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; row-gap: 2px;
}
.price-acc__item summary::-webkit-details-marker { display: none; }
.price-acc__item summary::after {
  content: ""; grid-column: 2; grid-row: 1 / span 2; width: 9px; height: 9px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translateY(-2px); transition: transform .2s;
}
.price-acc__item[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.price-acc__title { font-size: 15px; font-weight: 700; line-height: 1.3; }
.price-acc__meta { grid-column: 1; font-size: 13px; color: var(--muted); }
.price-acc__item .price-cols { padding: 0 16px 6px; border-top: 1px solid #EDF2F4; }
.price-link-inline { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; }
.price-link-inline::after { content: " →"; }

@media (min-width: 900px) {
  .price-acc__item summary { padding: 14px 22px; }
  .price-acc__item .price-cols { padding: 0 22px 8px; }
}
