/* ============================================================
   SERVICES PAGE — только для страницы «Услуги»
   ============================================================ */

/* HERO */
.services-hero{
  position:relative;
  min-height:clamp(460px,62vh,660px);
  color:#fff;
  display:flex;flex-direction:column;justify-content:flex-end;
  padding-top:calc(var(--header) + 40px);
  padding-bottom:clamp(36px,5vw,72px);
  overflow:hidden;border-radius:0 0 40px 40px;
  background:
    radial-gradient(ellipse at 15% 15%, rgba(80,120,40,.30), transparent 55%),
    radial-gradient(ellipse at 90% 85%, rgba(140,60,220,.22), transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(20,30,80,.55), transparent 70%),
    #02030a;
}
.services-hero__canvas{position:absolute;inset:0;z-index:0;width:100%;height:100%;display:block}
.services-hero__canvas.is-disabled{display:none}
.services-hero__overlay{position:absolute;inset:0;z-index:1;pointer-events:none;background:
  radial-gradient(ellipse at 50% 40%, rgba(2,3,10,0) 0%, rgba(2,3,10,.15) 55%, rgba(2,3,10,.85) 100%),
  linear-gradient(180deg, rgba(2,3,10,.35) 0%, rgba(2,3,10,0) 25%, rgba(2,3,10,0) 55%, rgba(2,3,10,.9) 100%)}
.services-hero .container{position:relative;z-index:2;flex:1;display:flex;flex-direction:column;justify-content:center;gap:clamp(24px,3vw,40px)}

.services-hero__title{
  font-size:clamp(44px,8.4vw,140px);
  line-height:.86;letter-spacing:-.06em;font-weight:700;
  max-width:14ch;
}
.services-hero__title em{font-style:normal;color:var(--green)}
.services-hero__title .line{display:block;overflow:hidden}
.services-hero__title .line span{display:inline-block;transform:translateY(110%);animation:rise 1.1s var(--ease) forwards}
.services-hero__title .line:nth-child(2) span{animation-delay:.1s}
.services-hero__title .line:nth-child(3) span{animation-delay:.2s}
@keyframes rise{to{transform:translateY(0)}}

.services-hero__bottom{position:relative;z-index:1;display:block}
.services-hero__lead{
  font-size:clamp(14px,1.15vw,18px);
  line-height:1.55;color:var(--gray-3);
  max-width:56ch;
}

/* КАТАЛОГ */
.catalog{
  margin-top:clamp(32px,4vw,56px);
  display:grid;grid-template-columns:repeat(2,1fr);
  gap:clamp(14px,1.8vw,24px);
}
.service-card{
  position:relative;
  display:flex;flex-direction:column;gap:clamp(16px,2vw,24px);
  padding:clamp(22px,2.6vw,36px);
  border-radius:22px;
  background:#f6f6f2;color:#040303;
  overflow:hidden;isolation:isolate;
  transition:background .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.service-card:hover{
  background:#eef4e4;
  transform:translateY(-6px);
  box-shadow:0 24px 48px -24px rgba(4,3,3,.25);
}
.service-card::before{
  content:"";position:absolute;
  right:-80px;bottom:-80px;
  width:240px;height:240px;border-radius:50%;
  background:radial-gradient(circle, rgba(187,255,76,.35), transparent 70%);
  opacity:0;transform:scale(.6);
  transition:opacity .5s var(--ease), transform .6s var(--ease);
  z-index:0;pointer-events:none;
}
.service-card:hover::before{opacity:1;transform:scale(1)}
.service-card__top{position:relative;z-index:1;display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.service-card__num{
  font-size:11px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--gray);font-weight:700;font-variant-numeric:tabular-nums;
  display:flex;align-items:center;gap:8px;
}
.service-card__num::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--gray-3);transition:background .3s var(--ease)}
.service-card:hover .service-card__num::before{background:var(--green-text)}
.service-card__title{
  position:relative;z-index:1;
  font-size:clamp(24px,3vw,44px);
  line-height:1.02;letter-spacing:-.045em;font-weight:700;
  max-width:16ch;
}
.service-card__title em{font-style:normal;font-weight:500;color:var(--gray-3);transition:color .3s var(--ease)}
.service-card:hover .service-card__title em{color:var(--green-text)}
.service-card__desc{
  position:relative;z-index:1;
  font-size:clamp(13px,1.05vw,15.5px);
  line-height:1.55;color:var(--gray-2);
  max-width:44ch;
}
.service-card__foot{
  position:relative;z-index:1;
  margin-top:auto;
  display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;
  padding-top:clamp(14px,1.8vw,20px);
  border-top:1px solid rgba(4,3,3,.1);
  transition:border-color .3s var(--ease);
}
.service-card:hover .service-card__foot{border-color:var(--green)}
.service-card__facts{display:flex;flex-direction:column;gap:4px}
.service-card__meta{
  font-size:11px;letter-spacing:.06em;text-transform:uppercase;
  color:var(--gray);font-weight:600;
}
.service-card__meta b{color:var(--green-text)}
.service-card__price{
  font-size:clamp(15px,1.3vw,18px);
  font-weight:800;letter-spacing:-.02em;color:#040303;
}
.service-card__price span{
  font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--gray);font-weight:600;margin-right:6px;
}
.service-card__more{
  display:inline-flex;align-items:center;gap:8px;
  font-size:13px;font-weight:700;letter-spacing:.02em;color:#040303;
  transition:color .3s var(--ease);
}
.service-card__more svg{
  width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;
  animation:arrowPulse 1.6s ease-in-out infinite;
  transition:transform .3s var(--ease);
}
@keyframes arrowPulse{
  0%,100%{transform:translateX(0)}
  50%{transform:translateX(4px)}
}
.service-card:hover .service-card__more{color:var(--green-text)}
.service-card:hover .service-card__more svg{
  animation-duration:.6s;
  transform:translateX(4px);
}

/* АДАПТИВ */
@media (max-width:1200px){
  .catalog{grid-template-columns:1fr}
}
@media (max-width:860px){
  .services-hero{border-radius:0 0 24px 24px;min-height:auto}
}
@media (max-width:560px){
  .services-hero{padding-top:calc(var(--header) + 24px);padding-bottom:32px;min-height:clamp(420px,64vh,540px)}
  .services-hero .container{gap:24px}
  .services-hero__title{font-size:clamp(40px,11.4vw,64px);max-width:12ch}
  .services-hero__lead{font-size:13.5px}

  .catalog{gap:10px;margin-top:24px}
  .service-card{padding:18px;border-radius:18px;gap:12px}
  .service-card__title{font-size:22px;max-width:none}
  .service-card__desc{font-size:12.5px}
  .service-card__foot{padding-top:12px;gap:8px}
  .service-card__meta{font-size:10px}
  .service-card__price{font-size:15px}
  .service-card__more{font-size:12px}
  .service-card__more svg{width:14px;height:14px}
}