/* =============================================================
   AUTODIALER — уникальные компоненты страницы
   ============================================================= */

/* =============================================================
   1. КАК ЭТО РАБОТАЕТ — горизонтальный флоу
   ============================================================= */
.ad-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.ad-flow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 160px;
  max-width: 200px;
  text-align: center;
  position: relative;
}

.ad-flow__num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  opacity: 0.6;
}

.ad-flow__icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(97, 117, 162, 0.12);
  border: 1px solid rgba(97, 117, 162, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.ad-flow__icon svg {
  width: 28px;
  height: 28px;
}

.ad-flow__step:hover .ad-flow__icon {
  background: rgba(97, 117, 162, 0.22);
  border-color: rgba(97, 117, 162, 0.5);
  box-shadow: 0 0 28px rgba(97, 117, 162, 0.2);
}

.ad-flow__step h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.ad-flow__step p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.55;
  margin: 0;
}

.ad-flow__arrow {
  display: flex;
  align-items: center;
  padding: 0 8px;
  padding-top: 36px;
  color: rgba(97, 117, 162, 0.8);
  flex-shrink: 0;
}

.ad-flow__arrow svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 16px rgba(97, 117, 162, 0.4)) drop-shadow(0 0 32px rgba(97, 117, 162, 0.2));
}

@media (max-width: 700px) {
  .ad-flow {
    flex-direction: column;
    align-items: center;
  }
  .ad-flow__arrow {
    transform: rotate(90deg);
    padding: 0;
    padding-left: 36px;
  }
}

/* =============================================================
   2. БОЛИ — сетка карточек
   ============================================================= */
.ad-pains-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) {
  .ad-pains-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ad-pains-grid { grid-template-columns: 1fr; }
}

.ad-pain {
  background: rgba(8, 33, 66, 0.45);
  border: 1px solid rgba(97, 117, 162, 0.15);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.3s, transform 0.3s;
}

.ad-pain:hover {
  border-color: rgba(97, 117, 162, 0.35);
  transform: translateY(-3px);
}

.ad-pain__before {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ad-pain__icon--bad {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f87171;
  flex-shrink: 0;
}

.ad-pain__icon--bad svg {
  width: 20px;
  height: 20px;
}

.ad-pain__before p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
  margin: 0;
}

.ad-pain__before p strong {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

.ad-pain__after {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: auto; /* прижимаем блок-решение к низу, чтобы карточки выровнялись */
  background: rgba(97, 117, 162, 0.08);
  border: 1px solid rgba(97, 117, 162, 0.15);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
}

/* =============================================================
   3. КАРТОЧКА СТАТИСТИКИ КАМПАНИИ
   ============================================================= */
.ad-stats-card {
  background: rgba(8, 33, 66, 0.6);
  border: 1px solid rgba(97, 117, 162, 0.2);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}

.ad-stats-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.ad-stats-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ad-stats-card__dot--green {
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
  animation: ad-pulse 2s ease-in-out infinite;
}

@keyframes ad-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.ad-stats-card__time {
  margin-left: auto;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

.ad-stats-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
}

.ad-stats-card__progress-wrap {
  margin-bottom: 28px;
}

.ad-stats-card__progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}

.ad-stats-card__progress-bar {
  height: 6px;
  background: rgba(97, 117, 162, 0.15);
  border-radius: 100px;
  overflow: hidden;
}

.ad-stats-card__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), #6ee7b7);
  border-radius: 100px;
  transition: width 1s ease;
}

.ad-stats-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.ad-stats-card__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ad-stats-card__val {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-serif);
  color: rgba(255,255,255,0.6);
  line-height: 1;
}

.ad-stats-card__val--green { color: #34d399; }
.ad-stats-card__val--cyan  { color: var(--accent-cyan); }
.ad-stats-card__val--muted { color: rgba(255,255,255,0.3); }

.ad-stats-card__lbl {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.ad-stats-card__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(97, 117, 162, 0.12);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* =============================================================
   4. КЕЙСЫ ИСПОЛЬЗОВАНИЯ
   ============================================================= */
.ad-usecases {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.ad-usecase {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(8, 33, 66, 0.4);
  border: 1px solid rgba(97, 117, 162, 0.12);
  border-radius: 18px;
  padding: 24px 28px;
  position: relative;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.ad-usecase:hover {
  border-color: rgba(97, 117, 162, 0.35);
  transform: translateX(4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

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

.ad-usecase__icon svg {
  width: 22px;
  height: 22px;
}

.ad-usecase__body {
  flex: 1;
}

.ad-usecase__body h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  font-family: var(--font-sans);
}

.ad-usecase__body p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

.ad-usecase__tag {
  display: inline-block;
  background: rgba(97, 117, 162, 0.1);
  border: 1px solid rgba(97, 117, 162, 0.2);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  white-space: nowrap;
  align-self: flex-start;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .ad-usecase {
    flex-wrap: wrap;
    padding: 20px;
  }
  .ad-usecase__tag {
    margin-left: 68px;
  }
}