:root{
  --blue:#153b6d;
  --blue2:#1f4e79;
  --green:#2f7d4f;
  --gold:#c9a24a;
  --gold-dark:#7a5a10;
  --text:#22324a;
  --muted:#5c6b80;
  --bg:#f7f8fb;
  --bg2:#eef3f8;
  --line:#e5eaf1;
  --white:#ffffff;
  --shadow:0 18px 40px rgba(21,59,109,.08);
  --shadow-soft:0 10px 26px rgba(21,59,109,.05);
}

.ms-ribbon{
  width:100%;
  background:#153b6d;
  color:#fff;
  text-align:center;
  font-size:16px;
  line-height:1.3;
  font-weight:800;
  padding:10px 18px;
}

.ms-home,
.ms-home *{
  box-sizing:border-box;
}

.ms-home{
  overflow:hidden;
  color:var(--text);
  background:#fff;
  font-family:Arial, Helvetica, sans-serif;
}

.ms-home a{
  color:inherit;
  text-decoration:none;
}

.ms-home img{
  max-width:100%;
  height:auto;
  display:block;
}

.ms-home section{
  scroll-margin-top:120px;
}

.ms-home .container{
  width:100%;
  max-width:1440px;
  margin:0 auto;
  padding:0 48px;
}

/* BUTTONS */
.ms-home .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:58px;
  padding:0 32px;
  border:2px solid transparent;
  background:#fff;
  color:var(--blue);
  font-size:18px;
  line-height:1;
  font-weight:800;
  letter-spacing:.01em;
  text-align:center;
  transition:.2s ease;
  cursor:pointer;
  white-space:nowrap;
}

.ms-home .btn:hover{
  transform:translateY(-1px);
}

.ms-home .btn-blue{
  background:var(--blue);
  border-color:var(--blue);
  color:#fff;
}

.ms-home .btn-blue:hover{
  background:#0f2e57;
  border-color:#0f2e57;
  color:#fff;
}

.ms-home .btn-green{
  background:var(--green);
  border-color:var(--green);
  color:#fff;
}

.ms-home .btn-green:hover{
  background:#286c45;
  border-color:#286c45;
  color:#fff;
}

.ms-home .btn-outline{
  background:#fff;
  border-color:var(--blue);
  color:var(--blue);
}

.ms-home .btn-outline:hover{
  background:#f5f8fc;
  color:var(--blue);
}

.ms-home .btn-light{
  background:#fff;
  border-color:#fff;
  color:var(--green);
}

.ms-home .btn-light:hover{
  background:#f5f8fc;
  border-color:#f5f8fc;
  color:var(--green);
}

/* CLINIC MODEL - SPORT + DIABETES */
.ms-home .clinic-model{
  padding:56px 0 34px;
  background:linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.ms-home .clinic-model-head{
  max-width:980px;
  margin:0 auto 30px;
  text-align:center;
}

.ms-home .clinic-model-head h2{
  margin:0 0 12px;
  color:var(--blue);
  font-size:clamp(34px, 3.5vw, 54px);
  line-height:1.08;
  font-weight:700;
  letter-spacing:-.025em;
}

.ms-home .clinic-model-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  align-items:stretch;
}

.ms-home .clinic-card{
  position:relative;
  overflow:hidden;
  min-height:470px;
  border:1px solid var(--line);
  border-radius:28px;
  background:#fff;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
}

.ms-home .clinic-card::before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.08;
  pointer-events:none;
}

.ms-home .clinic-card-sport::before{
  background:radial-gradient(circle at top right, #1f4e79 0%, transparent 48%);
}

.ms-home .clinic-card-diabetes::before{
  background:radial-gradient(circle at top right, #2f7d4f 0%, transparent 48%);
}

.ms-home .clinic-card-top{
  min-height:174px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:34px 32px 18px;
  position:relative;
  z-index:1;
}

.ms-home .clinic-logo{
  width:min(330px, 86%);
  max-height:130px;
  object-fit:contain;
}

.ms-home .clinic-card-body{
  padding:18px 38px 38px;
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  flex:1;
}

.ms-home .clinic-card h3{
  margin:0 0 12px;
  color:var(--blue);
  font-size:clamp(30px, 3vw, 46px);
  line-height:1.06;
  font-weight:700;
  letter-spacing:-.025em;
}

.ms-home .clinic-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 22px;
}

.ms-home .clinic-tags span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:6px 12px;
  border-radius:999px;
  background:#f1f5f9;
  border:1px solid var(--line);
  color:var(--blue);
  font-size:13px;
  line-height:1;
  font-weight:800;
  letter-spacing:.01em;
  white-space:nowrap;
}

.ms-home .clinic-list{
  list-style:none;
  padding:0;
  margin:8px 0 0;
  display:grid;
  gap:10px;
}

.ms-home .clinic-list li{
  position:relative;
  padding-left:28px;
  color:var(--text);
  font-size:17px;
  line-height:1.5;
  font-weight:500;
}

.ms-home .clinic-list li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  color:var(--green);
  font-weight:900;
}

.ms-home .clinic-note{
  max-width:980px;
  margin:26px auto 0;
  text-align:center;
  color:var(--muted);
  font-size:17px;
  line-height:1.55;
}

/* SERVICE TICKER */
.ms-home .service-ticker{
  width:100%;
  overflow:hidden;
  background:#f7fbfc;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:11px 0;
}

.ms-home .service-ticker-track{
  display:flex;
  gap:34px;
  width:max-content;
  animation:msServiceTicker 42s linear infinite;
  will-change:transform;
}

.ms-home .service-ticker-track span{
  white-space:nowrap;
  color:var(--blue);
  font-size:14px;
  line-height:1;
  font-weight:800;
  letter-spacing:.02em;
}

.ms-home .service-ticker-track span::before{
  content:"•";
  color:var(--green);
  margin-right:12px;
}

.ms-home .service-ticker:hover .service-ticker-track{
  animation-play-state:paused;
}

@keyframes msServiceTicker{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

@media (prefers-reduced-motion: reduce){
  .ms-home .service-ticker-track{
    animation:none;
    flex-wrap:wrap;
    justify-content:center;
    width:auto;
    padding:0 18px;
  }
}

/* HERO */
.ms-home .hero{
  background:#fff;
  padding:48px 0;
}

.ms-home .hero-shell{
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:650px;
  align-items:stretch;
}

.ms-home .hero-copy{
  background:var(--blue);
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:76px 72px;
}

.ms-home .eyebrow{
  display:block;
  margin:0 0 20px;
  color:var(--gold-dark);
  font-size:16px;
  line-height:1.25;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.ms-home .hero .eyebrow,
.ms-home .program-band .eyebrow{
  color:var(--gold);
}

.ms-home .hero h1,
.ms-home .split-title{
  margin:0 0 24px;
  font-size:clamp(52px, 5vw, 86px);
  line-height:1.03;
  font-weight:700;
  letter-spacing:-.035em;
}

.ms-home .hero p{
  max-width:660px;
  margin:0 0 32px;
  color:rgba(255,255,255,.94);
  font-size:22px;
  line-height:1.55;
}

.ms-home .hero-authority{
  margin-top:8px;
  padding-top:24px;
  border-top:1px solid rgba(255,255,255,.22);
}

.ms-home .hero-authority-line{
  color:var(--gold);
  font-size:15px;
  line-height:1.35;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin-bottom:14px;
}

.ms-home .hero-authority-link{
  display:inline-flex;
  align-items:center;
  color:#fff;
  font-size:20px;
  line-height:1.35;
  font-weight:900;
  text-decoration:none;
  border-bottom:2px solid rgba(201,162,74,.75);
  padding-bottom:6px;
  transition:.18s ease;
}

.ms-home .hero-authority-link:hover{
  color:#fff;
  opacity:.9;
  transform:translateY(-1px);
}

.ms-home .hero-image{
  background:#fff;
  overflow:hidden;
}

.ms-home .hero-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
}

/* SECTION BASE */
.ms-home .section{
  padding:64px 0;
}

.ms-home .section-soft{
  background:#f7f9fc;
}

.ms-home .section-head{
  max-width:960px;
  margin:0 auto 38px;
  text-align:center;
}

.ms-home .section-head .eyebrow{
  margin-bottom:12px;
}

.ms-home .section-head h2{
  margin:0 0 16px;
  color:var(--blue);
  font-size:clamp(36px, 3.6vw, 58px);
  line-height:1.08;
  font-weight:700;
  letter-spacing:-.025em;
}

.ms-home .section-head p{
  margin:0 auto;
  max-width:820px;
  color:var(--muted);
  font-size:20px;
  line-height:1.6;
}

/* SPLIT BLOCKS */
.ms-home .split-section{
  padding:48px 0;
  background:#fff;
}

.ms-home .split-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:stretch;
  min-height:600px;
}

.ms-home .split-image{
  background:#eaf0f6;
  overflow:hidden;
}

.ms-home .split-img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
}

.ms-home .split-content{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:78px 72px;
}

.ms-home .split-green{
  background:var(--green);
  color:#fff;
}

.ms-home .split-blue{
  background:var(--blue);
  color:#fff;
}

.ms-home .split-content .eyebrow{
  color:#fff;
}

.ms-home .split-title{
  color:#fff;
  font-size:clamp(44px, 4.4vw, 74px);
}

.ms-home .split-text{
  max-width:760px;
  margin:0 0 32px;
  color:rgba(255,255,255,.92);
  font-size:22px;
  line-height:1.58;
}

/* RESOLVE */
.ms-home .resolve-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:18px;
}

.ms-home .resolve-card{
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
  padding:28px 24px;
  min-height:190px;
}

.ms-home .resolve-card h3{
  margin:0 0 12px;
  color:var(--blue);
  font-size:24px;
  line-height:1.1;
  font-weight:800;
}

.ms-home .resolve-card p{
  margin:0;
  color:var(--muted);
  font-size:17px;
  line-height:1.55;
}

/* SERVICES */
.ms-home .service-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:22px;
}

.ms-home .service-card{
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
  padding:32px 28px;
  display:flex;
  flex-direction:column;
  min-height:100%;
}

.ms-home .service-number{
  display:block;
  color:var(--gold-dark);
  font-size:15px;
  font-weight:900;
  letter-spacing:.14em;
  margin-bottom:16px;
}

.ms-home .service-card h3{
  margin:0 0 14px;
  color:var(--blue);
  font-size:30px;
  line-height:1.08;
  font-weight:700;
  letter-spacing:-.015em;
}

.ms-home .service-card p{
  margin:0 0 22px;
  color:var(--muted);
  font-size:17px;
  line-height:1.58;
}

.ms-home .service-card .btn{
  margin-top:auto;
  align-self:flex-start;
}

/* PROGRAMS */
.ms-home .program-band{
  background:linear-gradient(135deg, var(--blue) 0%, var(--blue2) 100%);
  color:#fff;
}

.ms-home .program-band .section-head h2,
.ms-home .program-band .section-head p{
  color:#fff;
}

/* EXTRAS */
.ms-home .ms-extra-services{
  background:#fff;
  padding:54px 0;
}

.ms-home .ms-extra-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:18px;
  margin-top:28px;
}

.ms-home .ms-extra-card{
  background:#f7f9fc;
  border:1px solid var(--line);
  border-radius:20px;
  padding:22px 20px;
  transition:.18s ease;
  position:relative;
  box-shadow:var(--shadow-soft);
}

.ms-home .ms-extra-card:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow);
}

.ms-home .ms-extra-icon{
  position:absolute;
  top:16px;
  right:16px;
  width:26px;
  height:26px;
  border-radius:50%;
  background:rgba(21,59,109,.08);
  color:var(--blue);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  font-size:14px;
}

.ms-home .ms-extra-card h3{
  margin:0 34px 10px 0;
  color:var(--blue);
  font-size:20px;
  line-height:1.2;
  font-weight:800;
}

.ms-home .ms-extra-card p{
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.55;
}

/* CTA CONTACT */
.ms-home .contact-block{
  padding:72px 0;
  background:#f7f9fc;
  text-align:center;
}

.ms-home .contact-inner{
  max-width:900px;
  margin:0 auto;
}

.ms-home .contact-inner h2{
  margin:0 0 14px;
  color:var(--blue);
  font-size:clamp(38px, 4vw, 60px);
  line-height:1.08;
  font-weight:700;
}

.ms-home .contact-inner p{
  margin:0 auto 30px;
  max-width:780px;
  color:var(--muted);
  font-size:20px;
  line-height:1.55;
}

.ms-home .contact-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
}

/* SEO */
.ms-home .seo-section{
  padding:54px 0;
  background:#fff;
}

.ms-home .seo-box{
  max-width:1160px;
  margin:0 auto;
  border:1px solid var(--line);
  background:#fff;
  padding:34px 36px;
}

.ms-home .seo-box h2{
  margin:0 0 16px;
  color:var(--blue);
  font-size:32px;
  line-height:1.15;
  font-weight:700;
}

.ms-home .seo-box p{
  margin:0 0 14px;
  color:var(--muted);
  font-size:17px;
  line-height:1.65;
}

.ms-home .seo-box p:last-child{
  margin-bottom:0;
}

@media (min-width:1600px){
  .ms-home .container{ max-width:1560px; }
  .ms-home .hero-shell{ min-height:720px; }
  .ms-home .split-grid{ min-height:660px; }
}

@media (max-width:1100px){
  .ms-home section{ scroll-margin-top:40px; }
  .ms-home .container{ padding:0 28px; }

  .ms-home .clinic-model{
    padding:42px 0 28px;
  }

  .ms-home .clinic-model-grid{
    grid-template-columns:1fr;
  }

  .ms-home .clinic-card{
    min-height:0;
  }

  .ms-home .clinic-card-body{
    padding:16px 28px 32px;
  }

  .ms-home .clinic-logo{
    width:min(300px, 88%);
  }

  .ms-home .hero-shell,
  .ms-home .split-grid{ grid-template-columns:1fr; }

  .ms-home .hero-copy,
  .ms-home .split-content{ padding:56px 40px; }

  .ms-home .hero-image,
  .ms-home .split-image{ min-height:520px; }

  .ms-home .resolve-grid,
  .ms-home .service-grid,
  .ms-home .ms-extra-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}

@media (max-width:700px){
  .ms-home .container{ padding:0 18px; }

  .ms-home .clinic-model{
    padding:34px 0 20px;
  }

  .ms-home .clinic-model-head{
    margin-bottom:22px;
  }

  .ms-home .clinic-card{
    border-radius:22px;
  }

  .ms-home .clinic-card-top{
    min-height:132px;
    padding:24px 18px 10px;
  }

  .ms-home .clinic-card-body{
    padding:14px 22px 26px;
  }

  .ms-home .clinic-list li,
  .ms-home .clinic-note{
    font-size:16px;
  }

  .ms-home .service-ticker{
    padding:10px 0;
  }

  .ms-home .service-ticker-track{
    gap:26px;
    animation-duration:32s;
  }

  .ms-home .service-ticker-track span{
    font-size:13px;
  }

  .ms-home .btn{
    width:100%;
    min-height:54px;
    padding:0 18px;
    font-size:16px;
  }

  .ms-home .hero{
    padding:28px 0;
  }

  .ms-home .hero-authority-line{
    font-size:13px;
  }

  .ms-home .hero-authority-link{
    font-size:18px;
  }

  .ms-home .contact-actions{
    width:100%;
    flex-direction:column;
  }

  .ms-home .hero-shell,
  .ms-home .split-grid{ min-height:0; }

  .ms-home .hero-copy,
  .ms-home .split-content{ padding:42px 24px; }

  .ms-home .hero h1,
  .ms-home .split-title{ font-size:42px; }

  .ms-home .hero p,
  .ms-home .split-text,
  .ms-home .section-head p,
  .ms-home .contact-inner p{ font-size:17px; }

  .ms-home .hero-image,
  .ms-home .split-image{ min-height:390px; }

  .ms-home .section{ padding:46px 0; }
  .ms-home .split-section{ padding:30px 0; }

  .ms-home .resolve-grid,
  .ms-home .service-grid,
  .ms-home .ms-extra-grid{ grid-template-columns:1fr; }

  .ms-home .service-card .btn{ align-self:stretch; }

  .ms-home .seo-box{ padding:26px 20px; }
}
