:root{
  --color-primary:#D32F2F;
  --color-secondary:#F0F8FF;
  --color-text:#333333;
  --color-footer:#0A1F44;
  --color-white:#ffffff;
  --color-border:rgba(0,0,0,.08);
  --shadow-sm:0 6px 16px rgba(0,0,0,.08);
  --shadow-md:0 10px 24px rgba(0,0,0,.12);
  --radius-sm:10px;
  --radius-md:16px;
  --container:1180px;
  --header-h:72px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Poppins",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--color-text);
  background:var(--color-white);
  line-height:1.6;
}
img{max-width:100%;display:block}
a{color:inherit}

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

.skip-link{
  position:absolute;
  left:-999px;
  top:10px;
  background:var(--color-primary);
  color:var(--color-white);
  padding:10px 12px;
  border-radius:8px;
  z-index:9999;
}
.skip-link:focus{left:16px}

.icon{display:inline-flex;align-items:center;justify-content:center;min-width:18px}

.topbar{
  background:#071633;
  color:rgba(255,255,255,.92);
  font-size:13px;
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:8px 0;
}
.topbar__link{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:inherit;
}
.topbar__link:hover{color:#ffffff}
.topbar__right{display:flex;align-items:center;gap:10px}
.topbar__sep{opacity:.5}

.site-header{position:relative;z-index:50}

.nav{
  background:var(--color-white);
  border-bottom:1px solid var(--color-border);
}
.nav--sticky{
  position:sticky;
  top:0;
}
.nav__inner{
  min-height:var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.brand{
  text-decoration:none;
  font-weight:800;
  color:var(--color-primary);
  letter-spacing:.3px;
}
.brand__name{display:inline-block}

.nav__toggle{
  display:none;
  width:44px;
  height:44px;
  border:1px solid var(--color-border);
  background:var(--color-white);
  border-radius:12px;
}
.nav__toggle:focus-visible{outline:3px solid rgba(211,47,47,.25)}
.nav__toggle-lines{
  display:block;
  width:20px;
  height:2px;
  background:var(--color-text);
  margin:0 auto;
  position:relative;
}
.nav__toggle-lines::before,
.nav__toggle-lines::after{
  content:"";
  position:absolute;
  left:0;
  width:100%;
  height:2px;
  background:var(--color-text);
}
.nav__toggle-lines::before{top:-6px}
.nav__toggle-lines::after{top:6px}

.nav__menu{
  display:flex;
  align-items:center;
  gap:18px;
}
.nav__list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  align-items:center;
  gap:18px;
}
.nav__link{
  text-decoration:none;
  font-weight:600;
  font-size:15px;
  padding:10px 8px;
  border-radius:10px;
}
.nav__link:hover{background:rgba(211,47,47,.08);color:var(--color-primary)}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 18px;
  border-radius:999px;
  border:1px solid transparent;
  text-decoration:none;
  font-weight:700;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn--primary{
  background:var(--color-primary);
  color:var(--color-white);
  box-shadow:0 10px 22px rgba(211,47,47,.25);
}
.btn--primary:hover{transform:translateY(-2px);box-shadow:0 14px 26px rgba(211,47,47,.32)}
.btn--ghost{
  background:transparent;
  border-color:rgba(255,255,255,.35);
  color:var(--color-white);
}
.btn--ghost:hover{background:rgba(255,255,255,.12)}

main{display:block}

.hero{
  position:relative;
  padding:72px 0;
  overflow:hidden;
  background:var(--color-secondary);
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(0deg, rgba(10,31,68,.70), rgba(10,31,68,.35)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='800'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23f0f8ff'/%3E%3Cstop offset='1' stop-color='%23ffffff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1200' height='800' fill='url(%23g)'/%3E%3Cg opacity='.18' fill='%230a1f44'%3E%3Cpath d='M120 140h50v-50h60v50h50v60h-50v50h-60v-50h-50z'/%3E%3Cpath d='M520 240h50v-50h60v50h50v60h-50v50h-60v-50h-50z'/%3E%3Cpath d='M900 150h50v-50h60v50h50v60h-50v50h-60v-50h-50z'/%3E%3Cpath d='M220 520h50v-50h60v50h50v60h-50v50h-60v-50h-50z'/%3E%3Cpath d='M740 560h50v-50h60v50h50v60h-50v50h-60v-50h-50z'/%3E%3C/g%3E%3C/svg%3E");
  background-size:cover;
  background-position:center;
  transform:scale(1.02);
}
.hero::after{
  content:"";
  position:absolute;
  inset:-20% -20% auto auto;
  width:70%;
  height:120%;
  background:linear-gradient(135deg, rgba(211,47,47,.92), rgba(211,47,47,.35));
  clip-path:polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events:none;
}
.hero__inner{position:relative;display:grid;grid-template-columns:1.2fr .8fr;gap:28px;align-items:center}
.hero__content{color:var(--color-white)}
.hero__kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  font-weight:600;
}
.hero__title{margin:14px 0 12px;font-size:46px;line-height:1.15}
.hero__subtitle{margin:0 0 22px;font-size:16px;max-width:52ch;opacity:.95}
.hero__actions{display:flex;flex-wrap:wrap;gap:12px}
.hero__card{
  background:rgba(255,255,255,.92);
  color:var(--color-text);
  border-radius:var(--radius-md);
  padding:18px;
  box-shadow:var(--shadow-md);
}
.hero__card h3{margin:0 0 6px;font-size:22px}
.hero__card p{margin:0;font-size:14px}

.section{padding:64px 0}
.section--alt{background:#f7fbff}
.section__head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:22px}
.section__title{margin:0;font-size:34px;line-height:1.2}
.section__lead{margin:0;max-width:70ch}

.about__grid{display:grid;grid-template-columns:1.05fr .95fr;gap:24px;align-items:start}
.about__bn{font-size:28px;margin:0 0 8px;color:var(--color-primary);font-weight:800}
.about__text{margin:0 0 16px}

.features{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
.card{
  background:var(--color-white);
  border:1px solid var(--color-border);
  border-radius:var(--radius-md);
  padding:18px;
  box-shadow:none;
  transition:transform .2s ease, box-shadow .2s ease;
}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow-sm)}
.card__icon{
  width:44px;
  height:44px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(211,47,47,.10);
  color:var(--color-primary);
  font-weight:800;
}
.card__title{margin:12px 0 6px;font-size:22px}
.card__text{margin:0;font-size:14px;opacity:.92}

.services__grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}
.service{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.service__badge{
  width:46px;
  height:46px;
  border-radius:14px;
  background:rgba(10,31,68,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  color:#0a1f44;
}
.service__title{margin:0;font-size:20px}
.service__desc{margin:0;font-size:14px;opacity:.9}

.team__grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}
.doctor{
  overflow:hidden;
  padding:0;
}
.doctor__media{
  aspect-ratio:4/3;
  background:linear-gradient(135deg, rgba(211,47,47,.10), rgba(10,31,68,.08));
  display:flex;
  align-items:center;
  justify-content:center;
}
.doctor__media img{width:100%;height:100%;object-fit:cover}
.doctor__body{padding:16px 18px}
.doctor__name{margin:0 0 4px;font-size:20px}
.doctor__role{margin:0;font-size:14px;opacity:.86}

.gallery__grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}
.gallery__item{
  border-radius:var(--radius-md);
  border:1px solid var(--color-border);
  overflow:hidden;
  background:linear-gradient(135deg, rgba(240,248,255,1), rgba(255,255,255,1));
  min-height:150px;
}

.site-footer{background:var(--color-footer);color:rgba(255,255,255,.92)}
.footer__grid{
  display:grid;
  grid-template-columns:1.2fr .9fr .9fr;
  gap:18px;
  padding:48px 0;
}
.footer__title{margin:0 0 10px;font-size:20px;color:#ffffff}
.footer__text{margin:0 0 10px;font-size:14px;opacity:.92}
.footer__links{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.footer__links a{text-decoration:none;opacity:.92}
.footer__links a:hover{opacity:1;text-decoration:underline}
.footer__contact a{color:#ffffff;text-decoration:none}
.footer__contact a:hover{text-decoration:underline}

.footer__bottom{border-top:1px solid rgba(255,255,255,.14)}
.footer__bottom-inner{padding:14px 0;font-size:14px;opacity:.9}
.footer__bottom-inner p{margin:0}

@media (max-width:1024px){
  .hero__inner{grid-template-columns:1fr}
  .hero__card{max-width:520px}
  .about__grid{grid-template-columns:1fr}
  .services__grid{grid-template-columns:repeat(2,1fr)}
  .team__grid{grid-template-columns:repeat(2,1fr)}
  .gallery__grid{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:768px){
  .topbar__inner{flex-direction:column;align-items:flex-start}

  .nav__toggle{display:inline-flex;align-items:center;justify-content:center}

  .nav__menu{
    position:absolute;
    left:0;
    right:0;
    top:calc(100% + 1px);
    background:var(--color-white);
    border-bottom:1px solid var(--color-border);
    padding:12px 16px 16px;
    display:grid;
    gap:12px;
    transform-origin:top;
    transform:translateY(-8px);
    opacity:0;
    pointer-events:none;
    transition:opacity .2s ease, transform .2s ease;
  }
  .nav__menu.is-open{opacity:1;transform:translateY(0);pointer-events:auto}

  .nav__list{flex-direction:column;align-items:flex-start;gap:6px}
  .nav__link{width:100%}
  .nav__cta{width:100%}

  .hero{padding:56px 0}
  .hero__title{font-size:40px}

  .features{grid-template-columns:1fr}

  .footer__grid{grid-template-columns:1fr}
}

@media (max-width:480px){
  .hero__title{font-size:34px}
  .section{padding:52px 0}
  .section__title{font-size:30px}
  .services__grid{grid-template-columns:1fr}
  .team__grid{grid-template-columns:1fr}
  .gallery__grid{grid-template-columns:1fr}
}
