:root {
  --blue: #1a4fd8;
  --blue-2: #133db3;
  --blue-soft: #e9f0ff;
  --dark: #0d1b3e;
  --bg: #f4f7fd;
  --text: #1a2340;
  --muted: #62708f;
  --line: #e3e9f5;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(26, 79, 216, .10);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: var(--font); color: var(--text); background: #fff; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select { font: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding: 80px 0; }
h1, h2, h3 { color: var(--dark); line-height: 1.2; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
h1 span, h2 span { color: var(--blue); }

.tag { display: inline-flex; background: var(--blue-soft); color: var(--blue); font-size: .8rem; font-weight: 700; padding: 5px 14px; border-radius: 30px; margin-bottom: 14px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); color: var(--blue); font-size: .85rem; font-weight: 600; padding: 8px 18px; border-radius: 40px; box-shadow: 0 4px 14px rgba(26, 79, 216, .08); margin-bottom: 22px; }
.pill svg { font-size: 1.1rem; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 12px; font-weight: 700; font-size: .92rem; border: 1.5px solid transparent; cursor: pointer; transition: .25s; white-space: nowrap; }
.btn svg { font-size: 1.1em; }
.btn--sm { padding: 12px 20px; font-size: .85rem; }
.btn--block { width: 100%; justify-content: center; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-2); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(26, 79, 216, .3); }
.btn--ghost { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn--ghost:hover { background: var(--blue-soft); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 6px 24px rgba(13, 27, 62, .08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 78px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark { display: grid; place-items: center; width: 44px; height: 44px; }
.logo__mark svg { width: 44px; height: 44px; fill: var(--blue); stroke: none; }
.logo__mark .pulse { fill: none; stroke: #fff; stroke-width: 2.2; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__text small { font-size: .66rem; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.logo__text strong { font-size: 1.4rem; color: var(--blue); font-weight: 800; letter-spacing: .01em; }
.logo--light .logo__mark svg { fill: #fff; }
.logo--light .pulse { stroke: var(--dark); }
.logo--light small { color: #9fb0d8; }
.logo--light strong { color: #fff; }

.nav { display: flex; gap: 30px; }
.nav__link { position: relative; font-size: .9rem; font-weight: 500; color: var(--text); padding: 6px 0; transition: color .2s; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--blue); transform: scaleX(0); transition: transform .25s; }
.nav__link:hover, .nav__link.active { color: var(--blue); }
.nav__link.active::after, .nav__link:hover::after { transform: scaleX(1); }
.header__cta { border-radius: 40px; padding: 12px 22px; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--dark); border-radius: 2px; transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--bg) 0%, #fff 100%); padding: 50px 0 40px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(26, 79, 216, .10), transparent 70%); top: -160px; left: -160px; }
.hero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 800; margin-bottom: 20px; }
.hero__content p { color: var(--muted); font-size: 1.05rem; margin-bottom: 32px; max-width: 480px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 30px 30px 30px 120px; box-shadow: var(--shadow); }
.float-card { position: absolute; background: #fff; border-radius: 14px; box-shadow: 0 12px 30px rgba(13, 27, 62, .15); padding: 12px 18px; display: flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 600; animation: float 5s ease-in-out infinite; }
.float-card--top { top: 26px; right: -14px; }
.float-card--bottom { bottom: 30px; left: -24px; animation-delay: -2.5s; }
.float-card strong { display: block; font-size: 1.05rem; }
.float-card small { color: var(--muted); font-weight: 500; }
.float-card .star { font-size: 1.8rem; fill: #ffb829; stroke: none; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #1fbf75; box-shadow: 0 0 0 4px rgba(31, 191, 117, .2); animation: ping 1.8s infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes ping { 50% { box-shadow: 0 0 0 8px rgba(31, 191, 117, 0); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 20px; padding: 26px 20px; box-shadow: var(--shadow); margin: 40px auto 0; max-width: 1000px; position: relative; z-index: 2; }
.stat { display: flex; align-items: center; gap: 14px; justify-content: center; padding: 4px 10px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 1.5rem; }
.stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--dark); line-height: 1.1; }
.stat small { color: var(--muted); font-size: .8rem; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; padding: 60px 0 40px; }
.about__img { height: 100%; min-height: 380px; }
.about__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 60px 60px 0; }
.about__content { padding-right: max(16px, calc((100vw - 1200px) / 2)); }
.about__content p { color: var(--muted); margin-bottom: 30px; max-width: 520px; }
.about__icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.about__icons div { font-size: .85rem; font-weight: 600; color: var(--dark); }
.about__icons span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); font-size: 1.4rem; margin-bottom: 10px; transition: .3s; }
.about__icons div:hover span { background: var(--blue); color: #fff; transform: translateY(-4px); }

/* Services */
.section-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; }
.section-top h2 { margin: 0; }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 700; font-size: .9rem; }
.link-more:hover svg { transform: translateX(4px); }
.link-more svg { transition: transform .2s; }
.services__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.service { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 22px rgba(13, 27, 62, .07); text-align: center; padding-bottom: 20px; transition: .3s; cursor: pointer; }
.service:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.service__img { aspect-ratio: 1 / .85; overflow: hidden; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service:hover .service__img img { transform: scale(1.08); }
.service__icon { display: grid; place-items: center; width: 50px; height: 50px; margin: -25px auto 12px; position: relative; background: #fff; border-radius: 50%; color: var(--blue); font-size: 1.4rem; box-shadow: 0 6px 16px rgba(26, 79, 216, .2); transition: .3s; }
.service:hover .service__icon { background: var(--blue); color: #fff; }
.service h3 { font-size: 1rem; }

/* Doctors */
.doctors { background: var(--bg); padding: 80px 0; border-radius: 40px 40px 0 0; }
.doctors__grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.doctors__intro p { color: var(--muted); margin-bottom: 24px; }
.slider { position: relative; min-width: 0; }
.slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 54px) / 4); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 6px 2px 16px; }
.slider__track::-webkit-scrollbar { display: none; }
.doctor { background: #fff; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; box-shadow: 0 6px 20px rgba(13, 27, 62, .07); transition: transform .3s; }
.doctor:hover { transform: translateY(-6px); }
.doctor img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; background: #dfe7f7; }
.doctor__body { text-align: center; padding: 14px 10px 18px; }
.doctor h3 { font-size: .95rem; }
.doctor small { display: block; color: var(--muted); font-size: .8rem; }
.rating { color: #f5a70a; font-size: .85rem; font-weight: 700; }
.slider__btn { position: absolute; top: 42%; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--blue); box-shadow: 0 6px 18px rgba(13, 27, 62, .15); cursor: pointer; display: grid; place-items: center; font-size: 1.2rem; transition: .2s; }
.slider__btn:hover { background: var(--blue); color: #fff; }
.slider__btn--prev { left: -20px; }
.slider__btn--next { right: -20px; }

/* Facilities */
.facilities { background: linear-gradient(120deg, #0f2a6b, #1a4fd8); padding: 60px 0; color: #fff; }
.facilities__grid { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: center; }
.facilities h2 { color: #fff; font-size: 1.6rem; }
.facilities__intro p { color: #c5d3f5; font-size: .9rem; }
.facilities__list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.facility { position: relative; border-radius: 14px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .5); aspect-ratio: 1 / .9; }
.facility img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.facility:hover img { transform: scale(1.1); }
.facility figcaption { position: absolute; inset: auto 0 0; padding: 26px 10px 10px; text-align: center; font-size: .82rem; font-weight: 700; background: linear-gradient(transparent, rgba(13, 27, 62, .9)); }

/* News */
.news__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.post { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 22px rgba(13, 27, 62, .07); transition: .3s; cursor: pointer; }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post__img { aspect-ratio: 16 / 10; overflow: hidden; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post:hover .post__img img { transform: scale(1.08); }
.post__body { padding: 16px 18px 20px; }
.post__cat { display: inline-block; background: var(--blue-soft); color: var(--blue); font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-bottom: 8px; }
.post h3 { font-size: 1rem; margin-bottom: 8px; }
.post time { font-size: .78rem; color: var(--muted); }

/* CTA */
.cta { padding-bottom: 70px; }
.cta__box { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding: 44px 48px; border-radius: 28px; color: #fff; background: linear-gradient(100deg, rgba(15, 42, 107, .96), rgba(26, 79, 216, .85)), url("https://images.unsplash.com/photo-1586773860418-d37222d8fce3?w=1400&q=80&auto=format&fit=crop") center / cover; }
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta__text p { color: #d2ddf7; margin-bottom: 20px; }
.cta__chips { display: flex; gap: 10px; flex-wrap: wrap; }
.cta__chips span { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); padding: 8px 14px; border-radius: 10px; font-size: .82rem; font-weight: 600; }
.cta__card { display: flex; gap: 18px; align-items: center; background: #fff; color: var(--dark); padding: 24px 30px; border-radius: 20px; }
.cta__phone { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 1.8rem; animation: ring 2.4s infinite; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-14deg); } 85% { transform: rotate(14deg); } }
.cta__card small { color: var(--muted); font-weight: 600; }
.cta__card a { display: block; font-size: 1.7rem; font-weight: 800; color: var(--blue); line-height: 1.2; }
.cta__book { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; border: 0; background: none; font-weight: 700; font-size: .88rem; cursor: pointer; color: var(--dark); }
.cta__book span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--blue); color: #fff; transition: transform .2s; }
.cta__book:hover span { transform: translateX(4px); }

/* Footer */
.footer { background: var(--dark); color: #aebbdb; padding-top: 60px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer p { margin-top: 16px; font-size: .9rem; max-width: 300px; }
.footer h4 { color: #fff; margin-bottom: 14px; }
.footer li { margin-bottom: 8px; font-size: .9rem; }
.footer a:hover { color: #fff; }
.footer .accent { color: #6f9bff; font-weight: 700; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); text-align: center; padding: 18px 16px; font-size: .82rem; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: .3s; }
.modal.open { visibility: visible; opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(13, 27, 62, .6); backdrop-filter: blur(4px); }
.modal__dialog { position: relative; background: #fff; border-radius: 22px; padding: 34px; width: min(500px, 100%); max-height: calc(100vh - 32px); overflow: auto; transform: translateY(20px); transition: .3s; }
.modal.open .modal__dialog { transform: none; }
.modal__dialog h3 { font-size: 1.5rem; margin-bottom: 6px; }
.modal__dialog > p { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.modal__close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 0; background: var(--bg); border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.modal label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 14px; }
.modal input, .modal select { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; outline: none; background: #fff; }
.modal input:focus, .modal select:focus { border-color: var(--blue); }
.form-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.modal__success { text-align: center; }
.modal__success svg { width: 64px; height: 64px; color: #1fbf75; margin: 0 auto 12px; }
.modal__success p { color: var(--muted); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1100px) {
  .nav { gap: 20px; }
  .header__cta { display: none; }
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .doctors__grid, .facilities__grid { grid-template-columns: 1fr; }
  .slider__track { grid-auto-columns: calc((100% - 36px) / 3); }
  .news__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .burger { display: flex; }
  .nav { position: fixed; top: 0; right: 0; height: 100vh; width: min(300px, 85%); flex-direction: column; gap: 4px; background: #fff; padding: 96px 26px 26px; box-shadow: -10px 0 40px rgba(0, 0, 0, .15); transform: translateX(100%); transition: transform .35s; z-index: -1; }
  .nav:not(.open) { box-shadow: none; }
  .nav.open { transform: none; }
  .nav__link { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav__link::after { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .float-card--top { right: 10px; }
  .float-card--bottom { left: 10px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .stat:nth-child(3) { border-left: 0; }
  .about { grid-template-columns: 1fr; gap: 30px; }
  .about__img { min-height: 280px; }
  .about__img img { border-radius: 0 40px 40px 0; width: calc(100% - 16px); }
  .about__content { padding: 0 16px; }
  .facilities__list { grid-template-columns: repeat(3, 1fr); }
  .cta__box { padding: 34px 24px; }
}

@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .hero { padding-top: 30px; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero__media img { border-radius: 24px 24px 24px 70px; }
  .stats { grid-template-columns: 1fr 1fr; padding: 20px 10px; }
  .stat { flex-direction: column; text-align: center; gap: 8px; }
  .stat strong { font-size: 1.3rem; }
  .about__icons { grid-template-columns: repeat(2, 1fr); }
  .section-top { flex-direction: column; align-items: flex-start; }
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .slider__track { grid-auto-columns: 72%; }
  .slider__btn { display: none; }
  .facilities__list { grid-template-columns: repeat(2, 1fr); }
  .facility:last-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
  .news__grid { grid-template-columns: 1fr; }
  .cta__card { width: 100%; padding: 20px; }
  .cta__card a { font-size: 1.35rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

[hidden] { display: none !important; }
