/* === Фото партнёра в hero (добавить в конец styles.css) === */
.hero-person{position:absolute;right:max(1.5%,calc((100vw - 1180px)/2 - 60px));bottom:0;z-index:1;
  height:min(92%,780px);width:auto;pointer-events:none;user-select:none;
  filter:drop-shadow(0 18px 40px rgba(0,0,0,.35))}
.hero-person-glow{position:absolute;right:max(3%,calc((100vw - 1180px)/2 + 10px));bottom:6%;z-index:0;
  width:min(520px,38vw);aspect-ratio:1;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle at 50% 45%,rgba(14,159,143,.38),rgba(14,159,143,0) 68%)}
/* текст не уезжает под фото на десктопе */
@media(min-width:1001px){
  .hero-content{padding-right:min(34%,400px)}
  .hero h1{max-width:100%}
  .stats{max-width:100%}
}
/* планшет */
@media(min-width:761px) and (max-width:1000px){
  .hero-person{height:62%;opacity:.9}
  .hero-content{padding-right:26%}
}
/* мобильная: фото под блоком статистики, по центру, «встаёт» на нижний край hero */
@media(max-width:760px){
  .hero-person{position:relative;right:auto;bottom:auto;display:block;height:auto;
    width:min(78%,340px);margin:36px auto -56px}
  .hero-person-glow{display:none}
  .hero-wrap-mobile-glow{display:none}
}

/* === Компактный ритм блоков (десктоп/планшет) === */
@media(min-width:761px){
  .hero{padding:56px clamp(24px,5vw,76px) 44px;min-height:0}
  .hero h1{font-size:clamp(40px,4.7vw,64px);letter-spacing:-2px;max-width:820px}
  .hero-description{font-size:clamp(17px,1.5vw,20px);line-height:1.6;margin:22px 0 30px;max-width:700px}
  .hero-buttons{max-width:620px;gap:14px}
  .hero .button{min-height:60px;font-size:17px;border-radius:18px;padding:14px 22px}
  .stats{margin-top:40px;padding:26px 34px;border-radius:28px;max-width:760px;gap:24px}
  .stats strong{font-size:clamp(26px,2.4vw,34px);margin-bottom:6px}
  .stats span{font-size:16px}
  .hero-person{height:min(96%,640px)}
  .section{padding:64px clamp(24px,5vw,76px)}
  .section h2{font-size:clamp(32px,3.8vw,46px);letter-spacing:-1.4px;margin-bottom:16px}
  .service-card{min-height:0;padding:24px 26px;border-radius:26px}
  .service-card h3{font-size:21px;margin-bottom:8px}
  .service-card p{font-size:16px;line-height:1.55;margin-bottom:16px}
  .service-grid{gap:16px}
}
/* === мобильная === */
@media(max-width:760px){
  .hero{padding:44px 24px 40px}
  .section{padding:48px 24px}
  .section h2{margin-bottom:14px}
}

/* === Графитовая палитра: фото в чёрном костюме === */
.hero-person{height:min(98%,660px);filter:drop-shadow(0 18px 40px rgba(0,0,0,.55))}
.hero-person-glow{width:min(640px,46vw);right:max(0%,calc((100vw - 1180px)/2 - 120px));bottom:0;
  background:
    radial-gradient(circle at 50% 38%,rgba(122,122,127,.85) 0%,rgba(76,76,81,.55) 34%,rgba(40,40,44,0) 68%),
    radial-gradient(circle at 34% 80%,rgba(14,159,143,.5) 0%,rgba(14,159,143,0) 55%)}
@media(max-width:760px){
  .hero::after{content:"";position:absolute;left:50%;bottom:0;width:130%;aspect-ratio:1;transform:translateX(-50%);z-index:0;pointer-events:none;
    background:
      radial-gradient(circle at 50% 55%,rgba(122,122,127,.8) 0%,rgba(76,76,81,.5) 32%,rgba(40,40,44,0) 62%),
      radial-gradient(circle at 36% 85%,rgba(14,159,143,.45) 0%,rgba(14,159,143,0) 50%)}
  .hero-content{position:relative;z-index:2}
  .hero-person{position:relative;z-index:1}
}

/* mobile: ярче свечение за фигурой */
@media(max-width:760px){
  .hero::after{background:
    radial-gradient(circle at 50% 58%,rgba(150,150,156,.95) 0%,rgba(96,96,102,.62) 30%,rgba(40,40,44,0) 64%),
    radial-gradient(circle at 34% 88%,rgba(14,159,143,.55) 0%,rgba(14,159,143,0) 52%)}
}

/* mobile: свечение повыше и шире */
@media(max-width:760px){
  .hero::after{width:210%;bottom:-150px;background:
    radial-gradient(circle at 50% 44%,rgba(158,158,164,.95) 0%,rgba(104,104,110,.66) 26%,rgba(40,40,44,0) 56%),
    radial-gradient(circle at 40% 70%,rgba(14,159,143,.5) 0%,rgba(14,159,143,0) 40%)}
}

/* полный силуэт без обрезки */
.hero-person{height:min(96%,660px);bottom:0}
@media(max-width:760px){
  .hero-person{width:auto;height:min(600px,150vw);margin:28px auto -40px}
}

/* круглое фото с тил-кольцом */
.hero-person-glow{display:none}
.hero-person{height:auto;width:min(400px,30vw);aspect-ratio:1;object-fit:cover;border-radius:50%;top:50%;bottom:auto;transform:translateY(-50%);filter:none;
  box-shadow:0 0 0 6px rgba(14,159,143,.6),0 0 0 16px rgba(14,159,143,.12),0 30px 70px rgba(0,0,0,.55)}
@media(max-width:760px){
  .hero::after{display:none}
  .hero-person{position:relative;top:auto;transform:none;width:min(76%,300px);height:auto;margin:40px auto 10px;display:block}
}
