/* =============================================================
   SERVICE PAGE — Виртуальные DID номера (и будущие страницы услуг)
   ============================================================= */

/* ---- Active nav item ---- */
.nav-dropdown-item--active {
  color: var(--accent-cyan) !important;
  font-weight: 600;
}
.active-nav {
  color: var(--accent-cyan) !important;
}

/* ---- Breadcrumb ---- */
.sp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 32px;
}
.sp-breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.sp-breadcrumb a:hover { color: #fff; }
.sp-breadcrumb svg { width: 14px; height: 14px; opacity: 0.4; }
.sp-breadcrumb span { color: rgba(255,255,255,0.85); }

/* ---- Label (eyebrow text) ---- */
.sp-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

/* =============================================================
   1. HERO
   ============================================================= */
.sp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.sp-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.04);
  filter: grayscale(0.45) saturate(0.6) brightness(0.8) hue-rotate(-8deg); /* color-grade to match the new blue-grey site palette */
}

.sp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 44, 66, 0.92) 0%,
    rgba(26, 44, 66, 0.80) 50%,
    rgba(26, 44, 66, 0.70) 100%
  );
  z-index: 1;
}

.sp-hero__inner {
  position: relative;
  z-index: 2;
  padding-top: clamp(78px, 10vw, 120px);
  padding-bottom: clamp(60px, 10vw, 120px);
}

.sp-hero__badge {
  display: none !important;
}

.sp-hero__title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 700px;
}

.sp-hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.sp-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.sp-hero__stats {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
}

.sp-hero__stat {
  display: flex;
  flex-direction: column;
  padding: 0 24px;
}
.sp-hero__stat:first-child { padding-left: 0; }

.sp-hero__stat-val {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-serif);
  color: #fff;
  line-height: 1;
}
.sp-hero__stat-lbl {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

.sp-hero__stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

/* Mobile: 2-column grid, hide HTML dividers, use border instead */
@media (max-width: 767px) {
  .sp-hero__inner {
    padding-top: 0;
  }

  .sp-hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 0;
    align-items: start;
  }

  .sp-hero__stat-divider {
    display: none;
  }

  /* Stats sit at DOM positions 1,3,5,7 (dividers at 2,4,6) */
  /* Left column: positions matching 4n+1 (1,5,9…) */
  .sp-hero__stat:nth-child(4n+1) {
    border-right: 1px solid rgba(255,255,255,0.12);
    padding: 0 16px 0 0;
  }
  /* Right column: positions matching 4n+3 (3,7,11…) */
  .sp-hero__stat:nth-child(4n+3) {
    padding: 0 0 0 16px;
  }
  /* 3-item pages: last item is alone on row — no border */
  .sp-hero__stat:nth-child(4n+1):last-child {
    border-right: none;
    padding: 0;
  }
}

/* =============================================================
   2. SECTIONS
   ============================================================= */
.sp-section {
  padding: var(--section-vertical-padding) 0;
}

.sp-section--alt {
  background: rgba(8, 33, 66, 0.25);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* =============================================================
   3. TWO-COLUMN LAYOUT
   ============================================================= */
.sp-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

@media (min-width: 900px) {
  .sp-two-col {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
  }
}

.sp-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  margin-bottom: 32px;
}

.sp-check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sp-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
}

.sp-check-list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent-cyan);
}

/* Globe card */
.sp-globe-card {
  background: rgba(8, 33, 66, 0.5);
  border: 1px solid rgba(97, 117, 162, 0.2);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.sp-globe-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.sp-globe-icon {
  width: 80px;
  height: 80px;
  color: var(--accent-cyan);
  opacity: 0.7;
}

.sp-globe-card__countries {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.sp-globe-card__countries span {
  background: rgba(97, 117, 162, 0.12);
  border: 1px solid rgba(97, 117, 162, 0.2);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
}

/* =============================================================
   4. TYPE CARDS GRID
   ============================================================= */
.sp-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.sp-type-card {
  background: rgba(8, 33, 66, 0.45);
  border: 1px solid rgba(97, 117, 162, 0.15);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.sp-type-card:hover {
  border-color: rgba(97, 117, 162, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.sp-type-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(97, 117, 162, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-cyan);
}

.sp-type-card__icon svg {
  width: 24px;
  height: 24px;
}

.sp-type-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.sp-type-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}

.sp-type-card__tag {
  display: inline-block;
  background: rgba(97, 117, 162, 0.12);
  border: 1px solid rgba(97, 117, 162, 0.25);
  border-radius: 100px;
  padding: 3px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

/* =============================================================
   5. BENEFITS GRID
   ============================================================= */
.sp-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.sp-benefit {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(8, 33, 66, 0.45);
  border: 1px solid rgba(97, 117, 162, 0.15);
  border-radius: 20px;
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.sp-benefit:hover {
  border-color: rgba(97, 117, 162, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.sp-benefit__icon {
  width: 52px;
  height: 52px;
  background: rgba(97, 117, 162, 0.1);
  border: 1px solid rgba(97, 117, 162, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.sp-benefit__icon svg {
  width: 24px;
  height: 24px;
}

.sp-benefit h4 {
  font-size: 1.1rem;
  font-family: var(--font-sans);
  font-weight: 600;
  color: #fff;
}

.sp-benefit p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
}

/* =============================================================
   6. STEPS
   ============================================================= */
.sp-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
}

/* connector-div не используем — линию рисуем на самом шаге */
.sp-step__connector { display: none; }

.sp-step {
  position: relative;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.sp-step:nth-child(7) { margin-bottom: 0; }

/* ----- Кружок с номером (стиль блока «Подключение») ----- */
.sp-step__num {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 1;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Широкое пульсирующее кольцо */
.sp-step__num::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-cyan);
  opacity: 0;
  pointer-events: none;
}

.sp-step:nth-child(1) .sp-step__num::after { animation: sp-pulse 4.8s ease-in-out infinite; animation-delay: 0s; }
.sp-step:nth-child(3) .sp-step__num::after { animation: sp-pulse 4.8s ease-in-out infinite; animation-delay: 1.2s; }
.sp-step:nth-child(5) .sp-step__num::after { animation: sp-pulse 4.8s ease-in-out infinite; animation-delay: 2.4s; }
.sp-step:nth-child(7) .sp-step__num::after { animation: sp-pulse 4.8s ease-in-out infinite; animation-delay: 3.6s; }

@keyframes sp-pulse {
  0%   { transform: scale(0.8);  opacity: 0.7; }
  18%  { opacity: 0.5; }
  50%  { transform: scale(1.4);  opacity: 0; }
  100% { transform: scale(1.4);  opacity: 0; }
}

/* Анимация цвета цифры — вспышка в начале цикла, по очереди по шагам */
.sp-step:nth-child(1) .sp-step__num { animation: sp-num-color 4.8s ease-in-out infinite; animation-delay: 0s; }
.sp-step:nth-child(3) .sp-step__num { animation: sp-num-color 4.8s ease-in-out infinite; animation-delay: 1.2s; }
.sp-step:nth-child(5) .sp-step__num { animation: sp-num-color 4.8s ease-in-out infinite; animation-delay: 2.4s; }
.sp-step:nth-child(7) .sp-step__num { animation: sp-num-color 4.8s ease-in-out infinite; animation-delay: 3.6s; }

@keyframes sp-num-color {
  0%   { color: #ffffff; }
  7%   { color: #ffffff; }
  18%  { color: var(--accent-cyan); }
  100% { color: var(--accent-cyan); }
}

/* Кольцо пульса тоже резко в начале — синхронно со вспышкой цифры */

/* ----- Вертикальная линия, соединяющая кружки ----- */
/* Тонкий статичный рельс: от низа кружка до верха следующего кружка */
.sp-step:nth-child(1):has(+ .sp-step__connector)::before,
.sp-step:nth-child(3):has(+ .sp-step__connector)::before,
.sp-step:nth-child(5):has(+ .sp-step__connector)::before {
  content: '';
  position: absolute;
  left: 22px;                 /* центр кружка (44/2) */
  top: 44px;                  /* низ кружка */
  bottom: -40px;              /* доходит до верха следующего кружка */
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 2px;
}

/* Бегущая подсветка: полоска (56px) едет по линии с ПОСТОЯННОЙ скоростью.
   Реализована движением градиентной полосы по элементу во всю длину линии —
   за границами элемента она невидима, поэтому плавно появляется сверху и
   втягивается снизу, не заходя в кружки. */
.sp-step:nth-child(1):has(+ .sp-step__connector)::after,
.sp-step:nth-child(3):has(+ .sp-step__connector)::after,
.sp-step:nth-child(5):has(+ .sp-step__connector)::after {
  content: '';
  position: absolute;
  left: 22px;
  top: 44px;                  /* низ верхнего кружка */
  bottom: -40px;              /* верх нижнего кружка */
  width: 2px;
  transform: translateX(-50%);
  background-image: linear-gradient(180deg, transparent 0, var(--accent-cyan) 28px, transparent 56px);
  background-repeat: no-repeat;
  background-size: 2px 56px;
  background-position: 0 -56px;  /* старт: полоса выше линии (скрыта) */
  pointer-events: none;
}

/* Полоса проезжает всю линию за 0–25% цикла линейно, затем держится скрытой */
.sp-step:nth-child(1):has(+ .sp-step__connector)::after { animation: sp-line-v 4.8s linear infinite; animation-delay: 0s; }
.sp-step:nth-child(3):has(+ .sp-step__connector)::after { animation: sp-line-v 4.8s linear infinite; animation-delay: 1.2s; }
.sp-step:nth-child(5):has(+ .sp-step__connector)::after { animation: sp-line-v 4.8s linear infinite; animation-delay: 2.4s; }

@keyframes sp-line-v {
  0%   { background-position: 0 -56px; }                 /* скрыта над линией */
  25%  { background-position: 0 calc(100% + 56px); }     /* прошла и скрылась снизу */
  100% { background-position: 0 calc(100% + 56px); }     /* пауза до следующего цикла */
}


.sp-step__body {
  padding-top: 9px;
}

.sp-step__body h4 {
  font-size: 1.05rem;
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}

.sp-step__body p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
}

@media (max-width: 600px) {
  .sp-step__num { width: 40px; height: 40px; font-size: 1rem; }
  .sp-step:nth-child(1)::before,
  .sp-step:nth-child(3)::before,
  .sp-step:nth-child(5)::before { left: 20px; top: 40px; }
  .sp-step:nth-child(1)::after,
  .sp-step:nth-child(3)::after,
  .sp-step:nth-child(5)::after { left: 20px; }
}

/* =============================================================
   7. CTA SECTION
   ============================================================= */
.sp-cta {
  position: relative;
  padding: var(--cta-vertical-padding) 0;
  text-align: center;
  overflow: hidden;
}

.sp-cta__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(97, 117, 162, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.sp-cta__inner {
  position: relative;
  z-index: 1;
}

.sp-cta__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.sp-cta__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.sp-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Анимированный глобус (DID — номер без границ) ===== */
.sp-globe {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-globe__sphere {
  width: 200px;
  height: 200px;
  filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.35));
  animation: sp-globe-spin 18s linear infinite;
  transform-origin: 50% 50%;
}
.sp-globe__meridians ellipse,
.sp-globe__meridians line { opacity: 0.55; }

/* Орбитальные кольца вокруг глобуса */
.sp-globe__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.22);
  transform: translate(-50%, -50%) rotateX(72deg);
  transform-style: preserve-3d;
}
.sp-globe__ring--1 {
  width: 230px; height: 230px;
  animation: sp-ring-spin 9s linear infinite;
}
.sp-globe__ring--2 {
  width: 230px; height: 230px;
  border-color: rgba(125, 211, 252, 0.18);
  transform: translate(-50%, -50%) rotateX(72deg) rotateZ(60deg);
  animation: sp-ring-spin 14s linear infinite reverse;
}
.sp-globe__ring--3 {
  width: 200px; height: 200px;
  border-style: dashed;
  border-color: rgba(56, 189, 248, 0.14);
  transform: translate(-50%, -50%) rotateX(78deg) rotateZ(-30deg);
  animation: sp-ring-spin 22s linear infinite;
}

/* Бейдж с числом стран */
.sp-globe__badge {
  position: absolute;
  bottom: 6px;
  right: 14px;
  padding: 6px 14px;
  font-family: var(--font-secondary, 'Inter', sans-serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: #e0f2fe;
  background: rgba(8, 47, 73, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
  backdrop-filter: blur(4px);
  letter-spacing: 0.02em;
  animation: sp-badge-pulse 3s ease-in-out infinite;
}

@keyframes sp-globe-spin {
  from { transform: rotateZ(0deg); }
  to   { transform: rotateZ(360deg); }
}
@keyframes sp-ring-spin {
  from { transform: translate(-50%, -50%) rotateX(72deg) rotateZ(0deg); }
  to   { transform: translate(-50%, -50%) rotateX(72deg) rotateZ(360deg); }
}
@keyframes sp-badge-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(56, 189, 248, 0.25); }
  50%      { box-shadow: 0 0 26px rgba(56, 189, 248, 0.55); }
}

@media (max-width: 600px) {
  .sp-globe { width: 200px; height: 200px; }
  .sp-globe__sphere { width: 168px; height: 168px; }
  .sp-globe__ring--1, .sp-globe__ring--2 { width: 192px; height: 192px; }
  .sp-globe__ring--3 { width: 168px; height: 168px; }
}

@media (prefers-reduced-motion: reduce) {
  .sp-globe__sphere,
  .sp-globe__ring,
  .sp-globe__badge { animation: none !important; }
}

/* SPAM Checker — блок «Что вы узнаёте»: веер карточек по центру относительно текста */
#features .sp-two-col {
  align-items: center;
}

/* === Hero stat icons (по примеру главной — чистые линии, без фона) === */
.sp-hero__stat {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.sp-hero__stat-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sp-hero__stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-cyan);
}
.sp-hero__stat-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent-cyan);
  fill: none;
}
