:root{
  --maroon:#7a0d33;
  --maroon-dark:#650a29;
  --footer:#79022d;
  --navy:#16194a;
  --text:#3d4163;
  --muted:#5f6380;
  --green:#4f9a2e;
  --green-soft:#eef5e6;
  --line:#e7e8ef;
  --container:1260px;
  --font:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--font);color:var(--text);background:#fff;font-size:15px;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;border:0;background:none;cursor:pointer}
.container{width:100%;max-width:var(--container);margin:0 auto;padding:0 24px}
.center{text-align:center}

/* ---------- shared ---------- */
.eyebrow{font-size:11.5px;font-weight:700;letter-spacing:.24em;text-transform:uppercase;color:var(--maroon);margin-bottom:10px;display:flex;align-items:center;gap:14px}
.eyebrow--line::after{content:"";width:44px;height:1.5px;background:var(--maroon);opacity:.55}
.section-head .eyebrow{justify-content:center}
.eyebrow--wide{letter-spacing:.42em}
.h2{font-size:38px;line-height:1.18;font-weight:800;color:var(--navy);letter-spacing:-.02em}
.lead{font-size:16px;line-height:1.75;color:var(--text);margin-top:16px}
.sub{font-size:16px;color:var(--text);margin-top:12px}
.section-head{text-align:center;margin-bottom:56px}

.btn{display:inline-flex;align-items:center;gap:12px;height:48px;padding:0 30px;border-radius:999px;font-weight:700;font-size:14.5px;transition:.2s}
.btn--primary{background:var(--maroon);color:#fff;box-shadow:0 8px 20px -10px rgba(122,13,51,.7)}
.btn--primary:hover{background:var(--maroon-dark)}
.btn--outline{background:#fff;color:var(--maroon);border:1.6px solid var(--maroon)}
.btn--outline:hover{background:#fdf2f5}
.btn--sm{height:38px;padding:0 20px;font-size:13px;gap:8px}
.link{display:inline-flex;align-items:center;gap:12px;color:var(--maroon);font-weight:700;font-size:15px;margin-top:28px}
.link svg{transition:transform .2s}
.link:hover svg{transform:translateX(4px)}

/* ---------- logo ---------- */
.logo{display:flex;align-items:center;flex:none}
.logo img{height:54px;width:auto;display:block}
.logo--light img{filter:brightness(0) invert(1)}

/* ---------- header ---------- */
.header{position:absolute;inset:0 0 auto;z-index:20}
.header__inner{display:flex;align-items:center;height:82px;gap:24px}
.header .logo{margin-right:auto}
.nav{display:flex;gap:30px;margin-right:30px}
.nav a{font-size:13px;font-weight:600;color:var(--navy);position:relative;padding:8px 0;display:flex;align-items:center;gap:5px}
.nav a.is-active{color:var(--maroon)}
.nav a.is-active::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;background:var(--maroon);border-radius:2px}
.nav a:hover{color:var(--maroon)}
.header__phone{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;color:var(--navy)}
.header__phone svg{color:var(--maroon)}
.burger{display:none;flex-direction:column;gap:5px;padding:8px}
.burger span{width:24px;height:2px;background:var(--navy);border-radius:2px}

/* ---------- hero ---------- */
.hero{position:relative;min-height:568px;background:url(img/hero.jpg) center bottom/cover no-repeat;padding-top:126px}
.hero__content{padding-left:76px}
.hero__title{font-size:44px;line-height:1.17;font-weight:800;color:var(--navy);letter-spacing:-.025em;margin-top:6px}
.hero__title em{font-style:italic;font-weight:800;color:var(--maroon);font-size:50px;position:relative;display:inline-block;letter-spacing:-.03em}
.hero__title em::after{content:"";position:absolute;left:12%;right:-2%;bottom:-10px;height:12px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 10C60 2 140 1 198 6' fill='none' stroke='%237a0d33' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/100% 100%}
.hero__text{max-width:400px;margin-top:40px;font-size:15.5px;line-height:1.7;color:var(--text)}
.hero__btns{display:flex;gap:26px;margin-top:26px}
.hero .eyebrow{letter-spacing:.3em;font-size:12px}

/* ---------- features ---------- */
.features{padding:22px 0 10px}
.features__grid{display:grid;grid-template-columns:repeat(4,1fr);padding:0 30px}
.feature{display:flex;align-items:center;justify-content:center;gap:20px;padding:6px 0;position:relative}
.feature+.feature::before{content:"";position:absolute;left:0;top:4px;bottom:4px;width:1px;background:var(--line)}
.feature svg{width:50px;height:46px;color:var(--green);flex:none}
.feature span{font-size:15px;font-weight:700;color:var(--navy);line-height:1.35}

/* ---------- about ---------- */
.about{padding:110px 0 70px}
.about__grid{display:grid;grid-template-columns:420px 1fr;gap:20px;align-items:center;padding-left:30px}
.about__text{max-width:380px}
.about__media{position:relative;justify-self:end;width:780px;max-width:100%}
.about__blob{position:absolute;inset:-20px -10px -10px -50px;background:var(--green-soft);border-radius:58% 42% 50% 50%/45% 55% 45% 55%;z-index:0;opacity:.85}
.about__media img{position:relative;z-index:1;width:100%;aspect-ratio:393/183;object-fit:cover;border-radius:42% 46% 40% 34%/50% 46% 54% 50%}

/* ---------- services ---------- */
.services{padding:80px 0 70px}
.services__grid{display:grid;grid-template-columns:repeat(6,1fr);gap:20px;margin-bottom:46px}
.service{text-align:center}
.service svg{width:52px;height:52px;color:var(--maroon);margin:0 auto 16px}
.service h3{font-size:15.5px;font-weight:800;color:var(--navy);line-height:1.3;margin-bottom:12px;min-height:40px;display:flex;align-items:flex-end;justify-content:center}
.service p{font-size:13.5px;color:var(--muted);line-height:1.55}

/* ---------- doctors ---------- */
.doctors{padding:80px 0}
.doctors__grid{display:grid;grid-template-columns:1.25fr 1fr 1fr 1fr;gap:40px;align-items:center;padding-left:30px}
.doctor{display:grid;grid-template-columns:1fr auto;align-items:end;row-gap:24px;column-gap:10px}
.doctor img{grid-column:1/-1;width:200px;margin:0 auto;aspect-ratio:110/89;object-fit:cover;-webkit-mask-image:linear-gradient(#000 82%,transparent);mask-image:linear-gradient(#000 82%,transparent)}
.doctor h3{font-size:15px;font-weight:800;color:var(--navy)}
.doctor p{font-size:13.5px;color:var(--muted);margin-top:4px}
.doctor>svg{color:var(--maroon);margin-bottom:22px;transition:transform .2s}
.doctor:hover>svg{transform:translateX(4px)}

/* ---------- parents ---------- */
.parents{padding:70px 0 80px;background:radial-gradient(60% 50% at 95% 95%,#f0f6ea 0,transparent 70%)}
.parents__grid{display:grid;grid-template-columns:560px 1fr;gap:60px;align-items:center}
.parents__media{position:relative;margin-left:-40px}
.parents__media img{width:100%;aspect-ratio:300/252;object-fit:cover;border-radius:52% 48% 46% 54%/50% 46% 54% 50%}
.parents__spark{position:absolute;left:58px;top:-12px;width:60px;z-index:2}
.parents .lead{font-size:17px}
.resources{display:grid;grid-template-columns:1fr 1fr;gap:34px 40px;margin-top:40px}
.res{display:flex;gap:22px;align-items:flex-start}
.res svg{width:44px;height:44px;color:var(--maroon);flex:none}
.res h4{font-size:15px;font-weight:800;color:var(--navy)}
.res p{font-size:12.5px;color:var(--muted);margin-top:4px}

/* ---------- reviews ---------- */
.reviews{padding:70px 0 40px}
.reviews .section-head{margin-bottom:50px}
.reviews-swiper{padding:8px 24px 8px;overflow:hidden}
.reviews-swiper .swiper-slide{height:auto;overflow:visible}
.review{position:relative;padding:36px 8px 8px 56px;height:100%;box-sizing:border-box}
.quote{position:absolute;left:0;top:0;font-family:Georgia,serif;font-size:64px;font-weight:700;line-height:1;color:var(--maroon);pointer-events:none}
.review blockquote{font-size:14.5px;line-height:1.7;color:var(--text);min-height:100px;margin:0}
.review figcaption{display:flex;align-items:center;gap:22px;margin-top:22px;font-weight:800;color:var(--maroon);font-size:14.5px}
.review img{width:56px;height:56px;border-radius:50%;object-fit:cover}
.dots,.reviews-pagination{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:40px}
.dots span,.reviews-pagination .dot{width:11px;height:11px;border-radius:50%;border:1.5px solid #d6d7e0;background:transparent;opacity:1;cursor:pointer;display:inline-block}
.dots span.is-active,.reviews-pagination .dot.is-active{background:var(--maroon);border-color:var(--maroon)}

/* ---------- gallery ---------- */
.gallery{padding:50px 0 60px}
.gallery__grid{display:grid;grid-template-columns:380px minmax(0,1fr) 60px;gap:24px;align-items:center}
.gallery-swiper{width:100%;min-width:0;overflow:hidden}
.gallery-swiper .swiper-slide{height:auto}
.gallery-swiper img{width:100%;aspect-ratio:136/80;object-fit:cover;border-radius:18px;display:block}
.gallery__next{width:44px;height:44px;border-radius:50%;border:1.6px solid var(--maroon);color:var(--maroon);display:grid;place-items:center;justify-self:center;transition:.2s;flex:none}
.gallery__next:hover{background:var(--maroon);color:#fff}

/* ---------- CTA ---------- */
.cta{position:relative;height:max(200px,13.87vw);background:url(img/banner.jpg) center bottom/cover no-repeat}
.cta__inner{display:flex;align-items:flex-start;padding-top:20px}
.cta__title{font-size:38px;font-weight:800;font-style:italic;line-height:1.15;color:var(--navy);letter-spacing:-.02em;margin-left:150px}
.cta__title em{color:var(--green);position:relative;display:inline-block}
.cta__title em::after{content:"";position:absolute;left:8%;right:2%;bottom:-10px;height:10px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 8C60 2 140 1 198 5' fill='none' stroke='%234f9a2e' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/100% 100%}
.cta .btn{margin-left:auto;margin-right:260px;margin-top:50px}

/* ---------- footer ---------- */
.footer{background:var(--footer);color:#f6dfe7;margin-top:-1px}
.footer__grid{display:grid;grid-template-columns:1.25fr 1fr 1fr 1.2fr 220px;gap:30px;padding-top:10px;padding-bottom:20px;position:relative}
.footer__brand p{font-size:14px;line-height:1.6;margin-top:16px;color:#fff}
.social{display:flex;gap:14px;margin-top:20px}
.social a{width:34px;height:34px;border:1.4px solid rgba(255,255,255,.85);border-radius:50%;display:grid;place-items:center;color:#fff;transition:.2s}
.social a:hover{background:#fff;color:var(--footer)}
.social svg{width:18px;height:18px}
.footer__col{display:flex;flex-direction:column;gap:3px;padding-top:10px}
.footer__col h4{color:#fff;font-size:14px;font-weight:800;margin-bottom:6px}
.footer__col a,.footer__col span{font-size:14px;color:#f3d7e1}
.footer__col a:hover{color:#fff}
.footer__contact{gap:12px}
.footer__contact a,.footer__contact span{display:flex;align-items:center;gap:16px}
.footer__contact svg{width:20px;height:20px;flex:none;color:#fff}
.footer__lighthouse{width:150px;color:#fff;opacity:.95;align-self:end;justify-self:end}
.footer__bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid rgba(255,255,255,.2);padding-top:14px;padding-bottom:16px;font-size:13px;color:#f3d7e1}
.footer__bottom div{display:flex;align-items:center;gap:34px}
.footer__bottom div span{width:1px;height:16px;background:rgba(255,255,255,.4)}
.footer__bottom a:hover{color:#fff}

/* ---------- responsive ---------- */
@media (max-width:1200px){
  .nav{gap:18px;margin-right:10px}
  .header__phone{display:none}
  .about__media{width:100%}
  .doctors__grid{grid-template-columns:1fr 1fr 1fr}
  .doctors__text{grid-column:1/-1}
  .parents__grid{grid-template-columns:1fr 1fr}
  .gallery__grid{grid-template-columns:1fr auto;gap:16px}
  .gallery__text{grid-column:1/-1}
  .gallery-swiper{grid-column:1}
  .gallery__next{grid-column:2;align-self:center}
  .cta__title{margin-left:40px}
  .cta .btn{margin-right:80px}
  .footer__grid{grid-template-columns:1fr 1fr 1fr 1fr}
  .footer__lighthouse{display:none}
}
@media (max-width:960px){
  .nav,.header .btn{display:none}
  .burger{display:flex}
  .nav-open .nav{display:flex;flex-direction:column;position:absolute;top:72px;left:16px;right:16px;background:#fff;padding:16px 24px;border-radius:16px;box-shadow:0 20px 40px -20px rgba(22,25,74,.35);gap:6px}
  .hero{background-position:70% bottom;padding-top:110px;min-height:auto;padding-bottom:120px}
  .hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.92) 0,rgba(255,255,255,.75) 55%,rgba(255,255,255,0) 100%)}
  .hero__content{position:relative;padding-left:24px}
  .features__grid{grid-template-columns:1fr 1fr;row-gap:24px;padding:0}
  .feature{justify-content:flex-start}
  .feature::before{display:none}
  .about,.services,.doctors,.parents{padding:60px 0}
  .about__grid,.parents__grid{grid-template-columns:1fr;gap:50px;padding-left:24px}
  .about__grid{padding-left:24px}
  .parents__media{margin:0}
  .services__grid{grid-template-columns:repeat(3,1fr);row-gap:40px}
  .reviews-swiper{padding:0}
  .cta__inner{flex-direction:column;align-items:flex-start}
  .cta .btn{margin:24px 0 0 40px}
  .footer__grid{grid-template-columns:1fr 1fr;padding-top:30px}
}
@media (max-width:600px){
  body{font-size:14px}
  .container{padding:0 16px}
  .h2{font-size:28px}
  .hero__title{font-size:32px}
  .hero__title em{font-size:36px}
  .hero__content{padding-left:16px}
  .hero__btns{flex-direction:column;align-items:flex-start;gap:14px}
  .features__grid,.services__grid,.resources{grid-template-columns:1fr 1fr}
  .feature{flex-direction:column;align-items:flex-start;gap:10px}
  .feature span{font-size:13.5px}
  .about__grid,.parents__grid,.doctors__grid{padding-left:0}
  .doctors__grid{grid-template-columns:1fr}
  .resources{grid-template-columns:1fr}
  .gallery__grid{grid-template-columns:1fr}
  .gallery__next{justify-self:end;margin-top:8px}
  .cta{height:260px;background-position:65% bottom}
  .cta__title{font-size:28px;margin-left:16px}
  .cta .btn{margin-left:16px}
  .footer__grid{grid-template-columns:1fr}
  .footer__bottom{flex-direction:column;gap:10px;text-align:center}
}

/* Demo switcher */
.demo-switch{
  position:fixed;
  left:14px;
  top:50%;
  z-index:100;
  display:flex;
  flex-direction:column;
  gap:8px;
  transform:translateY(-50%);
}
.demo-switch__link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:78px;
  padding:10px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(22,25,74,.12);
  box-shadow:0 10px 28px rgba(16,24,40,.12);
  color:#16194a;
  font-size:12px;
  font-weight:800;
  letter-spacing:.02em;
  backdrop-filter:blur(10px);
  transition:transform .2s ease,background .2s ease,color .2s ease;
}
.demo-switch__link:hover{transform:translateX(3px)}
.demo-switch__link.is-active{
  background:var(--maroon);
  border-color:var(--maroon);
  color:#fff;
}
@media (max-width:900px){
  .demo-switch{
    left:10px;
    top:auto;
    bottom:16px;
    transform:none;
    flex-direction:row;
  }
  .demo-switch__link{min-width:70px;padding:8px 10px;font-size:11px}
}

/* Reveal animations */
.hero__content > *{
  opacity:0;
  transform:translate3d(0,22px,0);
  transition:opacity .85s cubic-bezier(.22,1,.36,1),transform .85s cubic-bezier(.22,1,.36,1);
}
.hero.is-ready .hero__content > *:nth-child(1){transition-delay:.05s}
.hero.is-ready .hero__content > *:nth-child(2){transition-delay:.14s}
.hero.is-ready .hero__content > *:nth-child(3){transition-delay:.22s}
.hero.is-ready .hero__content > *:nth-child(4){transition-delay:.3s}
.hero.is-ready .hero__content > *{opacity:1;transform:none}

.reveal{
  opacity:0;
  transform:translate3d(0,26px,0);
  transition:opacity .85s cubic-bezier(.22,1,.36,1),transform .85s cubic-bezier(.22,1,.36,1);
  transition-delay:var(--reveal-delay,0s);
}
.reveal.is-in{opacity:1;transform:none}
.reveal-left{transform:translate3d(-24px,0,0)}
.reveal-right{transform:translate3d(24px,0,0)}
.reveal-left.is-in,.reveal-right.is-in{transform:none}
.reveal-scale{transform:translate3d(0,18px,0) scale(.97)}
.reveal-scale.is-in{transform:none}

.feature.reveal.is-in,
.service.reveal.is-in,
.doctor.reveal.is-in,
.res.reveal.is-in{
  transition:opacity .85s cubic-bezier(.22,1,.36,1),transform .5s cubic-bezier(.22,1,.36,1),box-shadow .35s ease;
}
.feature.reveal.is-in:hover,
.service.reveal.is-in:hover,
.doctor.reveal.is-in:hover{
  transform:translate3d(0,-4px,0);
}

@media (prefers-reduced-motion:reduce){
  .hero__content > *,
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale{
    opacity:1 !important;
    transform:none !important;
    transition:none !important;
  }
}
