:root {
  --blue: #407af8;
  --blue-dark: #2f63d6;
  --blue-soft: #e7eefe;
  --ink: #18232f;
  --muted: #5e5e5e;
  --bg: #ffffff;
  --bg-alt: #f0f7fa;
  --bg-tint: #f7fdff;
  --line: #e6eef5;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(24, 35, 47, .08);
}
* { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font-family: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
a { color: var(--blue); text-decoration: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { font-size: 22px; font-weight: 800; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--blue); color: #fff; font-weight: 700; font-size: 18px; }
.brand-accent { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: 18px; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--blue); }
.nav-phone { margin-left: auto; font-weight: 700; color: var(--blue); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.phone-ic { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 15px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 13px 26px; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; transition: background .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-soft { background: var(--blue-soft); color: var(--blue); }
.btn-soft:hover { background: #d8e3fd; }

/* Hero */
.hero { position: relative; background: linear-gradient(180deg, var(--bg-tint) 0%, #ffffff 100%); padding: 80px 0 90px; overflow: hidden; }
.hero-ring { position: absolute; left: -180px; top: -60px; width: 460px; height: 460px; border-radius: 50%; border: 60px solid var(--blue-soft); opacity: .55; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--blue); font-weight: 700; letter-spacing: .02em; margin: 0 0 12px; }
.hero-text h1 { font-size: 46px; line-height: 1.12; font-weight: 800; margin: 0 0 18px; letter-spacing: -.01em; }
.hero-sub { font-size: 19px; color: var(--muted); margin: 0 0 30px; max-width: 460px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art { position: relative; min-height: 360px; }
.hero-blob { position: absolute; inset: 10% -4% 6% 8%; background: var(--blue); border-radius: 44% 56% 60% 40% / 48% 42% 58% 52%; opacity: .14; }
.hero-photo { position: relative; background: #fff; border-radius: 26px; box-shadow: var(--shadow); padding: 30px; }
.avatars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.avatars span { aspect-ratio: 1; display: grid; place-items: center; font-size: 40px; background: var(--bg-alt); border-radius: 18px; }
.hero-photo-cap { text-align: center; font-weight: 700; color: var(--ink); margin: 18px 0 0; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 34px; font-weight: 800; text-align: center; margin: 0 0 10px; letter-spacing: -.01em; }
.section-sub { text-align: center; color: var(--muted); font-size: 17px; margin: 0 auto 44px; max-width: 560px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--blue-soft); display: grid; place-items: center; font-size: 28px; margin-bottom: 16px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }

/* Team */
.team { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.team .section-title, .team .section-sub { text-align: left; margin-left: 0; }
.team-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.member h3 { margin: 14px 0 4px; font-size: 17px; }
.member p { margin: 0; color: var(--muted); font-size: 14px; }
.avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 700; margin: 0 auto; }

/* News */
.news { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.news-img { height: 150px; display: grid; place-items: center; font-size: 48px; background: var(--bg-alt); }
.news-body { padding: 22px 24px 26px; }
.news-body h3 { margin: 0 0 8px; font-size: 18px; }
.news-body p { margin: 0; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.contact .section-title { text-align: left; }
.contact p { margin: 6px 0; }
.contact-cta { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.contact-cta h3 { margin: 0 0 10px; font-size: 22px; }
.contact-cta p { color: var(--muted); margin: 0 0 20px; }
.muted { color: var(--muted); }

/* Footer */
.site-footer { background: var(--bg-tint); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
.footer-grid h4 { margin: 0 0 14px; font-size: 16px; }
.footer-grid .muted a { color: var(--muted); }
.footer-grid .muted a:hover { color: var(--blue); }
.brand-light { font-size: 20px; margin-bottom: 12px; }
.newsletter { display: flex; gap: 8px; margin-top: 12px; }
.newsletter input { flex: 1 1 auto; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; font-family: inherit; font-size: 14px; outline: none; }
.newsletter input:focus { border-color: var(--blue); }
.newsletter .btn { padding: 11px 18px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; min-height: 0; max-width: 380px; }
  .team { grid-template-columns: 1fr; gap: 28px; }
  .team .section-title { text-align: left; }
  .cards { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .nav { height: 62px; gap: 12px; }
  .nav-links { display: none; }
  .nav-phone { margin-left: auto; font-size: 14px; }
  .hero { padding: 48px 0 60px; }
  .hero-text h1 { font-size: 31px; }
  .hero-sub { font-size: 17px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .section { padding: 52px 0; }
  .section-title { font-size: 26px; }
  .section-sub { font-size: 16px; margin-bottom: 30px; }
  .cards { grid-template-columns: 1fr; }
  .team-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---- Chat widget ---- */
#dada-bubble { position: fixed; right: 22px; bottom: 22px; width: 62px; height: 62px; border-radius: 50%; background: var(--blue); color: #fff; border: 0; font-size: 28px; cursor: pointer; box-shadow: 0 8px 24px rgba(64,122,248,.45); z-index: 100; }
#dada-bubble:hover { background: var(--blue-dark); }
#dada-panel { position: fixed; right: 22px; bottom: 96px; width: 380px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 130px); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 48px rgba(24,35,47,.22); display: none; flex-direction: column; overflow: hidden; z-index: 100; }
#dada-panel.open { display: flex; }
.dada-head { background: var(--blue); color: #fff; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dada-head .dada-title strong { font-size: 17px; display: block; }
.dada-head .dada-title span { font-size: 13px; opacity: .9; }
.dada-close { background: transparent; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px; opacity: .9; }
.dada-close:hover { opacity: 1; }
.dada-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-alt); }
.dada-msg { padding: 10px 14px; border-radius: 14px; max-width: 80%; white-space: pre-wrap; font-size: 15px; }
.dada-msg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.dada-msg.user { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.dada-msg.typing { color: var(--muted); font-style: italic; }

/* Quick-reply chips */
.dada-suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 4px; background: #fff; }
.dada-suggestions:empty { display: none; }
.dada-chip { border: 1.5px solid var(--blue); background: #fff; color: var(--blue); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; white-space: nowrap; }
.dada-chip:hover { background: var(--blue-soft); }

/* Availability matrix card (doctors × time slots) */
.dada-avail { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; align-self: stretch; }
.dada-avail.used { opacity: .55; }
.dada-avail-date { font-weight: 700; font-size: 14px; margin-bottom: 12px; }
/* Day tabs (multi-day, non-urgent) */
.dada-days { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.dada-day { border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 9px; padding: 7px 10px; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; }
.dada-day:hover { border-color: var(--blue); }
.dada-day.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.dada-day:disabled { cursor: default; opacity: .6; }
.dada-avail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; }
.dada-doc-name { font-size: 13px; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.dada-doc-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.dada-slot { border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 9px; padding: 7px 10px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; }
.dada-slot:hover { border-color: var(--blue); color: var(--blue); }
.dada-slot.acute { border-color: #1aa97a; color: #0f7a57; }
.dada-slot.acute:hover { background: #e8f8f1; }
.dada-slot.selected { background: var(--blue); border-color: var(--blue); color: #fff; }
.dada-slot.selected.acute { background: #0f7a57; border-color: #0f7a57; color: #fff; }
.dada-slot:disabled { cursor: default; opacity: .55; }
.dada-slot.selected:disabled { opacity: 1; }
/* Confirm button — commits the chosen slot; nothing is booked before this. */
.dada-confirm { margin-top: 12px; width: 100%; border: 0; background: var(--blue); color: #fff; border-radius: 999px; padding: 12px 16px; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; }
.dada-confirm:hover:not(:disabled) { background: var(--blue-dark); }
.dada-confirm:disabled { background: #c7d4ea; cursor: default; }
.dada-avail-legend { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.dada-avail-legend .dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid #1aa97a; }

.dada-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); width: 100%; }
/* min-width:0 lets the input shrink (flex items default to min-width:auto and
   would otherwise push the send button off-screen). 16px font avoids iOS focus-zoom. */
.dada-input input { flex: 1 1 auto; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; font-size: 16px; font-family: inherit; outline: none; }
.dada-input input:focus { border-color: var(--blue); }
.dada-input button { flex: 0 0 44px; border: 0; background: var(--blue); color: #fff; border-radius: 999px; width: 44px; height: 44px; cursor: pointer; font-size: 18px; }

/* When the chat is open on mobile, lock the page behind it. */
body.dada-locked { overflow: hidden; }

/* Mobile chat = full-screen modal. Placed AFTER the base #dada-panel rule so it
   wins the cascade. Height/top are also set by JS via the visualViewport API so
   the input stays above the iOS keyboard. */
@media (max-width: 560px) {
  #dada-bubble { right: 16px; bottom: 16px; }
  #dada-panel {
    left: 0; right: 0; top: 0; bottom: auto;
    width: auto; max-width: none; height: 100dvh; max-height: none;
    border-radius: 0; border: 0;
  }
  .dada-head { padding-top: max(16px, env(safe-area-inset-top)); }
  .dada-input { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}
