/* ===== TOKENS ===== */
:root{
  --white:#FFFFFF;
  --sky:#38BDF8;
  --blue:#0284C7;
  --blue-dark:#0369A1;
  --ink:#0f2733;
  --muted:#5b7383;
  --bg-soft:#F0F9FF;
  --bg-soft2:#E0F2FE;
  --line:#E2ECF2;
  --shadow:0 20px 45px -20px rgba(2,132,199,.35);
  --shadow-sm:0 8px 24px -12px rgba(2,132,199,.28);
  --radius:22px;
  --radius-sm:14px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Manrope',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  color:var(--ink);
  background:var(--white);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{width:min(1180px,92%);margin-inline:auto}

/* ===== BUTTONS ===== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  font-family:inherit;font-weight:700;font-size:1rem;
  min-height:48px;padding:0 1.4rem;
  border:none;border-radius:999px;cursor:pointer;
  transition:transform .15s ease,box-shadow .2s ease,background .2s ease;
  white-space:nowrap;
}
.btn:active{transform:translateY(1px)}
.btn--primary{
  background:linear-gradient(135deg,var(--sky),var(--blue));
  color:#fff;
  box-shadow:
    0 5px 0 0 #024b73,
    0 16px 28px -8px rgba(2,132,199,.55),
    inset 0 1px 0 rgba(255,255,255,.4);
}
.btn--primary:hover{
  transform:translateY(-2px);
  box-shadow:
    0 7px 0 0 #024b73,
    0 24px 36px -8px rgba(2,132,199,.65),
    inset 0 1px 0 rgba(255,255,255,.45);
}
.btn--primary:active{
  transform:translateY(3px);
  box-shadow:
    0 2px 0 0 #024b73,
    0 10px 18px -8px rgba(2,132,199,.5),
    inset 0 1px 0 rgba(255,255,255,.35);
}
.btn--ghost{
  background:#fff;color:var(--blue);border:2px solid var(--bg-soft2);
}
.btn--ghost:hover{border-color:var(--sky);color:var(--blue-dark)}
.btn--lg{min-height:56px;padding:0 2rem;font-size:1.05rem}
.btn--sm{min-height:44px;padding:0 1.1rem;font-size:.92rem}

/* ===== HEADER ===== */
.header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.9);
  backdrop-filter:saturate(160%) blur(10px);
  border-bottom:1px solid var(--line);
}
.header__inner{display:flex;align-items:center;gap:1.5rem;height:72px}
.logo{display:flex;align-items:center;gap:.5rem;font-weight:800;font-size:1.25rem;color:var(--blue-dark)}
.logo__icon{font-size:1.4rem}
.logo--light{color:#fff}
.nav{display:flex;gap:1.6rem;margin-left:1rem}
.nav__link{color:var(--muted);font-weight:600;font-size:.98rem;transition:color .2s}
.nav__link:hover{color:var(--blue)}
.header__actions{display:flex;align-items:center;gap:.8rem;margin-left:auto}
.header__phone{
  display:grid;place-items:center;width:44px;height:44px;border-radius:50%;
  background:var(--bg-soft);color:var(--blue);flex-shrink:0;
}
.header__phone:hover{background:var(--bg-soft2)}
.nav__toggle{display:none;flex-direction:column;gap:5px;width:44px;height:44px;
  background:var(--bg-soft);border:none;border-radius:12px;cursor:pointer;align-items:center;justify-content:center}
.nav__toggle span{width:22px;height:2px;background:var(--blue-dark);border-radius:2px;transition:.25s}

/* ===== HERO ===== */
.hero{
  position:relative;overflow:hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%,var(--bg-soft2),transparent 60%),
    linear-gradient(180deg,#fff, var(--bg-soft));
  padding:clamp(2.5rem,6vw,5rem) 0 clamp(3rem,7vw,6rem);
}
.hero__inner{display:grid;grid-template-columns:1.05fr .95fr;gap:2.5rem;align-items:center}
.hero__badge{
  display:inline-flex;align-items:center;gap:.4rem;
  background:#fff;color:var(--blue-dark);font-weight:700;font-size:.9rem;
  padding:.5rem 1rem;border-radius:999px;box-shadow:var(--shadow-sm);
}
.hero__title{
  font-size:clamp(1.9rem,4.4vw,3.25rem);line-height:1.12;font-weight:800;
  margin:1.1rem 0 1rem;letter-spacing:-.02em;
  background:linear-gradient(120deg,var(--ink),var(--blue-dark));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.hero__subtitle{font-size:clamp(1rem,1.6vw,1.18rem);color:var(--muted);max-width:34ch}
.hero__actions{display:flex;flex-wrap:wrap;gap:.9rem;margin:1.8rem 0 2rem}
.hero__stats{display:flex;gap:1.4rem 2rem;flex-wrap:wrap}
.stat{display:flex;flex-direction:column}
.stat__num{
  font-size:2.1rem;font-weight:800;line-height:1;letter-spacing:-.02em;
  background:linear-gradient(120deg,var(--sky),var(--blue-dark));
  -webkit-background-clip:text;background-clip:text;color:transparent;
  font-variant-numeric:tabular-nums;
}
.stat__label{font-size:.88rem;color:var(--muted);margin-top:.25rem}

.hero__media{position:relative}
.hero__photo-wrap{
  position:relative;border-radius:32px;overflow:hidden;
  background:linear-gradient(160deg,var(--sky),var(--blue));
  box-shadow:var(--shadow);aspect-ratio:7/6;
}
.hero__photo{width:100%;height:100%;object-fit:cover;object-position:center top}
.hero__namecard{
  position:absolute;left:18px;bottom:18px;
  background:rgba(255,255,255,.95);backdrop-filter:blur(6px);
  padding:.8rem 1.2rem;border-radius:16px;box-shadow:var(--shadow-sm);
  display:flex;flex-direction:column;
}
.hero__namecard-name{font-weight:800;color:var(--blue-dark)}
.hero__namecard-role{font-size:.85rem;color:var(--muted)}

/* ===== SECTION BASE ===== */
.section{padding:clamp(3rem,6vw,5.5rem) 0}
.section__head{text-align:center;max-width:640px;margin:0 auto 2.8rem}
.section__eyebrow{color:var(--blue);font-weight:700;letter-spacing:.06em;text-transform:uppercase;font-size:.85rem}
.section__title{font-size:clamp(1.6rem,3.4vw,2.4rem);font-weight:800;letter-spacing:-.02em;color:var(--ink)}
.section__lead{color:var(--muted);margin-top:.7rem;font-size:1.05rem}

/* ===== SERVICES ===== */
.services{background:var(--white)}
.services__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem}
.service-card{
  background:var(--bg-soft);border:1px solid var(--line);border-radius:var(--radius);
  padding:1.6rem;display:flex;flex-direction:column;gap:.6rem;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s;
}
.service-card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:var(--bg-soft2)}
.service-card__icon{
  width:64px;height:64px;display:grid;place-items:center;
  background:#fff;border-radius:16px;box-shadow:var(--shadow-sm);overflow:hidden;
}
.service-card__icon img{width:50px;height:50px;object-fit:contain;display:block}
.service-card__title{font-size:1.2rem;font-weight:800;color:var(--blue-dark)}
.service-card__text{color:var(--muted);font-size:.97rem;flex:1}
.service-card__cta{
  align-self:flex-start;background:none;border:none;cursor:pointer;
  color:var(--blue);font-weight:700;font-family:inherit;font-size:1rem;padding:.4rem 0;
  min-height:44px;
}
.service-card__cta:hover{color:var(--blue-dark)}
.service-card--cta{
  background:linear-gradient(150deg,var(--blue),var(--blue-dark));
  color:#fff;justify-content:center;align-items:flex-start;
}
.service-card--cta .service-card__title{color:#fff}
.service-card--cta .service-card__text{color:rgba(255,255,255,.85)}
/* grouped card (Ortopediya + sub-services) */
.service-card--group .service-card__text{flex:none}
.subservices{display:flex;flex-direction:column;gap:.6rem;margin-top:.4rem}
.subservice{
  display:flex;align-items:center;gap:.75rem;width:100%;text-align:left;
  background:#fff;border:1px solid var(--line);border-radius:14px;
  padding:.7rem .85rem;cursor:pointer;font-family:inherit;
  transition:border-color .2s ease,box-shadow .2s ease,transform .15s ease;
}
.subservice:hover{border-color:var(--sky);box-shadow:var(--shadow-sm);transform:translateY(-1px)}
.subservice__icon{
  flex:none;width:42px;height:42px;display:grid;place-items:center;
  background:var(--bg-soft);border-radius:11px;
}
.subservice__icon img{width:30px;height:30px;object-fit:contain;display:block}
.subservice__body{display:flex;flex-direction:column;flex:1;min-width:0}
.subservice__title{font-weight:700;color:var(--blue-dark);font-size:.97rem;line-height:1.2}
.subservice__text{color:var(--muted);font-size:.83rem;line-height:1.25}
.subservice__arrow{flex:none;color:var(--blue);font-weight:800;font-size:1.05rem}

/* ===== ABOUT ===== */
.about{background:var(--bg-soft)}
.about__inner{display:grid;grid-template-columns:.9fr 1.1fr;gap:2.5rem;align-items:center}
.about__media{border-radius:28px;overflow:hidden;background:linear-gradient(160deg,var(--sky),var(--blue));box-shadow:var(--shadow);aspect-ratio:14/15}
.about__photo{width:100%;height:100%;object-fit:cover;object-position:center top}
.about__content .section__title{margin-top:.3rem}
.about__text{color:var(--muted);margin:1.1rem 0 1.4rem;font-size:1.05rem}
.about__list{list-style:none;display:grid;gap:.8rem;margin-bottom:1.8rem}
.about__list li{display:flex;align-items:center;gap:.7rem;font-weight:600}
.about__check{
  display:grid;place-items:center;width:26px;height:26px;flex-shrink:0;
  background:linear-gradient(135deg,var(--sky),var(--blue));color:#fff;border-radius:50%;font-size:.85rem;
}

/* ===== RESULTS ===== */
.results{background:#fff}
.results__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem}
.result-card{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--bg-soft)}
.result-card__imgs{display:grid;grid-template-columns:1fr 1fr}
.result-card__img{
  aspect-ratio:1/1;display:grid;place-items:end center;padding-bottom:.8rem;position:relative;
}
.result-card__img span{
  background:rgba(255,255,255,.9);color:var(--blue-dark);font-weight:700;font-size:.8rem;
  padding:.2rem .7rem;border-radius:999px;
}
.result-card__img--before{background:linear-gradient(160deg,#dbeafe,#bfdbfe)}
.result-card__img--after{background:linear-gradient(160deg,var(--sky),var(--blue))}
.result-card__caption{padding:1rem;font-weight:700;color:var(--blue-dark);text-align:center}

/* ===== LOCATION ===== */
.location{background:var(--bg-soft)}
.location__inner{max-width:640px;margin-inline:auto;text-align:center;
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:clamp(1.8rem,4vw,2.8rem);box-shadow:var(--shadow-sm)}
.location__inner .section__title{margin-top:.3rem}
.location__info{list-style:none;display:grid;gap:1.1rem;margin:1.4rem 0 1.8rem;text-align:left;max-width:360px;margin-inline:auto}
.location__info li{display:flex;gap:.9rem;align-items:center}
.location__ico{flex:none;width:46px;height:46px;display:grid;place-items:center}
.location__ico img{width:46px;height:46px;display:block}

/* ===== FOOTER ===== */
.footer{background:linear-gradient(160deg,var(--blue-dark),#023a5e);color:#fff}
.footer__inner{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:2rem;padding:3rem 0}
.footer__tag{color:rgba(255,255,255,.75);margin-top:.8rem;max-width:32ch}
.footer__col h4{margin-bottom:.9rem;font-size:1.05rem}
.footer__col p{color:rgba(255,255,255,.85);margin-bottom:.5rem}
.footer__col a:hover{color:var(--sky)}
.footer__col--cta{display:flex;align-items:center;justify-content:flex-end}
.footer__bottom{padding:1.6rem 0;font-size:.9rem;color:rgba(255,255,255,.8);text-align:center}

/* ===== STICKY CALL FAB ===== */
.fab-call{
  position:fixed;right:16px;bottom:16px;z-index:40;
  display:none;align-items:center;gap:.5rem;
  background:linear-gradient(135deg,var(--sky),var(--blue));color:#fff;
  padding:.9rem 1.2rem;border-radius:999px;font-weight:700;
  box-shadow:0 14px 30px -8px rgba(2,132,199,.7);
}

/* ===== MODAL / MULTI-STEP FORM ===== */
.modal{position:fixed;inset:0;z-index:100;display:none}
.modal.is-open{display:grid;place-items:center}
.modal__overlay{position:absolute;inset:0;background:rgba(3,58,94,.55);backdrop-filter:blur(3px)}
.modal__box{
  position:relative;z-index:1;width:min(480px,92%);
  background:#fff;padding:2.4rem 2rem 2rem;
  border-radius:26px;
  border:1px solid rgba(255,255,255,.85);
  box-shadow:0 40px 90px -20px rgba(3,58,94,.6);
  animation:pop .25s ease;
}
@keyframes pop{from{opacity:0;transform:scale(.96) translateY(8px)}to{opacity:1;transform:none}}
.modal__close{
  position:absolute;top:.6rem;right:.9rem;background:none;border:none;
  font-size:2rem;line-height:1;color:var(--muted);cursor:pointer;width:40px;height:40px;
}
.modal__close:hover{color:var(--ink)}

.dots{display:flex;justify-content:center;gap:.6rem;margin-bottom:1.6rem}
.dot{width:10px;height:10px;border-radius:50%;background:var(--bg-soft2);transition:.25s}
.dot.is-active{background:var(--blue);transform:scale(1.25)}
.dot.is-done{background:var(--sky)}

.step{display:none;animation:fade .25s ease}
.step.is-active{display:block}
@keyframes fade{from{opacity:0;transform:translateX(10px)}to{opacity:1;transform:none}}
.step__title{font-size:1.35rem;font-weight:800;color:var(--ink);text-align:center;margin-bottom:1.3rem}

.options{display:grid;gap:.7rem}
.option{
  width:100%;text-align:left;font-family:inherit;font-weight:700;font-size:1.05rem;
  padding:1rem 1.2rem;min-height:56px;cursor:pointer;
  background:var(--bg-soft);color:var(--ink);
  border:2px solid transparent;border-radius:14px;transition:.18s;
}
.option:hover{border-color:var(--sky);background:var(--bg-soft2)}
.option.is-selected{border-color:var(--blue);background:var(--bg-soft2);color:var(--blue-dark)}
.option--group{display:flex;flex-direction:column;align-items:flex-start;gap:.2rem;padding-top:.85rem;padding-bottom:.85rem}
.option__main{font-weight:700}
.option__sub{font-weight:600;font-size:.8rem;color:var(--muted)}
.option--group.is-selected .option__sub{color:var(--blue)}

.field{
  width:100%;font-family:inherit;font-size:1.1rem;
  padding:1rem 1.2rem;min-height:56px;
  border:2px solid var(--line);border-radius:14px;outline:none;transition:.18s;
}
.field:focus{border-color:var(--blue);box-shadow:0 0 0 4px var(--bg-soft2)}
.step__error{color:#dc2626;font-size:.9rem;margin-top:.5rem;display:none}
.step__error.is-show{display:block}
.step__nav{display:flex;justify-content:space-between;gap:.8rem;margin-top:1.4rem}
.step__nav .btn{flex:1}

.step--success{text-align:center}
.success__icon{
  width:72px;height:72px;margin:0 auto 1rem;border-radius:50%;
  display:grid;place-items:center;font-size:2.2rem;color:#fff;
  background:linear-gradient(135deg,var(--sky),var(--blue));
}
.success__text{color:var(--muted);margin-bottom:1.6rem}

/* ===== RESPONSIVE ===== */
@media (max-width:960px){
  .hero__inner{grid-template-columns:1fr;gap:2rem}
  .hero__media{order:-1;max-width:460px}
  .about__inner{grid-template-columns:1fr;gap:1.8rem}
  .about__media{max-width:420px}
  .location__inner{grid-template-columns:1fr}
  .services__grid{grid-template-columns:repeat(2,1fr)}
  .results__grid{grid-template-columns:1fr}
  .footer__inner{grid-template-columns:1fr 1fr}
  .footer__col--cta{grid-column:1/-1;justify-content:flex-start}
}
@media (max-width:720px){
  .nav{
    display:none;position:absolute;top:72px;left:0;right:0;
    flex-direction:column;gap:0;background:#fff;border-bottom:1px solid var(--line);
    padding:.5rem 6%;
  }
  .nav.is-open{display:flex}
  .nav__link{padding:.9rem 0;border-bottom:1px solid var(--line)}
  .nav__toggle{display:flex}
  .header .btn--sm{display:none}
  .fab-call{display:flex}
  .services__grid{grid-template-columns:1fr}
  .footer__inner{grid-template-columns:1fr;text-align:left}
  .hero__stats{gap:1.4rem}
}
