/* ============================================================
   CLOSING — «Что промтом не решить»: услуги Continental → Telegram
   Тёмная секция, закрывающий конверсионный бит.
   ============================================================ */

.closing {
  position: relative;
  padding: var(--section-pad) var(--pad);
  background: #16171A;
  overflow: hidden;
  isolation: isolate;
}
/* блюпринт-сетка */
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: clamp(48px, 7vw, 96px) clamp(48px, 7vw, 96px);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000, transparent 75%);
  pointer-events: none;
}
/* синий орб-свечение (callback к hero) */
.closing-glow {
  position: absolute;
  z-index: 0;
  bottom: -30%;
  right: -8%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle at 50% 50%, rgba(88,117,164,0.4) 0%, rgba(88,117,164,0) 60%);
  filter: blur(50px);
  pointer-events: none;
}
.closing .wrap {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ---- ЗАГОЛОВОК (светлые варианты sec-*) ---- */
.closing-head { max-width: 780px; }
.sec-label.light { color: var(--blue-pale); }
.sec-label.light .idx { color: var(--blue-pale); }
.sec-label.light::after { background: var(--blue-pale); }
.sec-title.light { color: #fff; }
.sec-title.light .accent { color: var(--blue-pale); }
.sec-lead.light { color: rgba(255,255,255,0.62); }

.closing-tagline {
  margin-top: clamp(20px, 2.4vw, 28px);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  max-width: 620px;
}
.closing-tagline b { color: #fff; font-weight: 500; }

/* ---- СЕТКА УСЛУГ ---- */
.svc-grid {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 1.8vw, 26px);
}
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: clamp(28px, 3vw, 48px);
  transition: transform 0.6s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease);
}
.svc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(160,182,218,0.55);
  background: rgba(255,255,255,0.05);
}
.svc-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--blue-pale), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.svc-card:hover::before { transform: scaleX(1); }

.svc-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(18px, 2.2vw, 28px);
}
.svc-no {
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.4);
  font-variant-numeric: lining-nums;
}
.svc-tag {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.svc-title {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 14px;
}
.svc-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.66);
}
.svc-desc + .svc-desc { margin-top: 12px; }

.svc-flow {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.9;
  color: rgba(255,255,255,0.78);
}
.svc-flow .sep { color: var(--blue-pale); padding: 0 4px; }

.svc-result {
  margin-top: clamp(18px, 2.2vw, 26px);
  padding-left: 18px;
  border-left: 2px solid var(--blue);
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
}

.svc-cta {
  margin-top: clamp(22px, 2.6vw, 32px);
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 15px 24px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease);
}
.svc-cta svg { position: relative; z-index: 1; }
.svc-cta span { position: relative; z-index: 1; }
.svc-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--blue-deep);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.svc-cta:hover::before { transform: scaleX(1); }
.svc-cta:active { transform: translateY(1px); }
.svc-card:hover .svc-cta { box-shadow: 0 16px 36px -18px rgba(88,117,164,0.7); }

/* ---- REVEAL стаггер ---- */
.svc-card[data-reveal]:nth-child(2) { transition-delay: 0.14s; }

/* ---- АДАПТИВ ---- */
@media (max-width: 820px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card[data-reveal]:nth-child(2) { transition-delay: 0.05s; }
}
