/* ================================================================
   SERVICES DETAIL - PREMIUM UPGRADE
   ================================================================ */

/* 1. CONFIG & VARIABLES */

:root {
  /* Глубокий, дорогой черный */
  --c-bg: #020203;
  --c-surface: rgba(255, 255, 255, 0.02);
  /* Electric Blue Accent (как на Zentra/NextFly) */
  --c-accent: #3b82f6;
  --c-accent-glow: rgba(59, 130, 246, 0.5);
  --c-red: #ff4757;
  --c-red-glow: rgba(255, 71, 87, 0.4);
  --c-green: #10b981;
  --c-text: #ffffff;
  --c-text-muted: #94a3b8;
  /* Тонкие границы для "стекла" */
  --c-border: rgba(255, 255, 255, 0.08);
  --c-border-highlight: rgba(255, 255, 255, 0.15);
  --font-display: "Unbounded", sans-serif;
  --font-main: "Montserrat", sans-serif;
  --easing: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-main);
  overflow-x: hidden;
  width: 100%;
  line-height: 1.7;
  /* Добавляем тонкую виньетку */
  background-image: radial-gradient(
    circle at center,
    transparent 0%,
    #000 120%
  );
}

/* 2. HERO SECTION */

.detail-hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}

/* Background FX */

.hero-bg-generated {
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 150%;
  /* "Живое" синее свечение сверху */
  background: radial-gradient(
    circle at 50% 30%,
    rgba(59, 130, 246, 0.15) 0%,
    transparent 60%
  );
  filter: blur(80px);
  z-index: -2;
  animation: pulse 8s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 0.8;
  }
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Более аккуратная сетка */
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 20%, black 40%, transparent 90%);
  z-index: -1;
}

.detail-hero__content {
  text-align: center;
  max-width: 1000px;
  padding: 0 2rem;
  z-index: 2;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.5rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50px;
  color: #60a5fa;
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: rgba(59, 130, 246, 0.05);
  margin-bottom: 2.5rem;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

.detail-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #fff;
  letter-spacing: -0.02em;
  /* Легкая тень для объема */
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.text-red-gradient {
  background: linear-gradient(135deg, #fff 20%, var(--c-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-accent {
  color: var(--c-accent);
}

.detail-subtitle {
  font-size: 1.25rem;
  color: var(--c-text-muted);
  max-width: 700px;
  margin: 0 auto 3.5rem;
  font-weight: 400;
}

.btn-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 1.2rem 3.5rem;
  background: var(--c-accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: 0.3s;
  box-shadow: 0 0 30px var(--c-accent-glow);
}

.btn-glow:hover {
  background: #fff;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 0 60px var(--c-accent-glow);
}

/* 3. PROBLEM SECTION */

.problem-section {
  padding: 8rem 0;
  position: relative;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 5rem;
  align-items: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-title.center {
  text-align: center;
}

.text-red {
  color: var(--c-red);
}

.text-body {
  font-size: 1.15rem;
  color: var(--c-text-muted);
  margin-bottom: 1.5rem;
}

/* Loss Counter - Modernized */

.loss-counter {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(90deg, rgba(255, 71, 87, 0.05), transparent);
  border-left: 2px solid var(--c-red);
  border-radius: 0 20px 20px 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.loss-icon {
  display: none;
  /* Убираем старую иконку для чистоты */
}

.loss-label {
  display: block;
  font-size: 0.8rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.loss-value {
  display: block;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--c-red);
  font-weight: 700;
  line-height: 1;
  margin: 0.5rem 0;
}

.loss-sub {
  color: #888;
  font-size: 0.9rem;
}

/* UX Fail Card - Glass Effect */

.ux-fail-card {
  background: var(--c-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--c-border);
  border-top: 1px solid var(--c-border-highlight);
  /* Блик сверху */
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
  position: relative;
  transition: 0.4s ease;
}

.ux-fail-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.fail-header {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #fff;
}

.fail-list {
  list-style: none;
}

.fail-list li {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 0.5rem;
}

.fail-list li i {
  color: var(--c-red);
  font-size: 1.2rem;
  width: 20px;
}

/* 4. OBJECTIONS */

.objections-section {
  padding: 8rem 0;
}

.objections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

/* Glass Cards for Objections */

.obj-card {
  background: var(--c-surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--c-border);
  border-top: 1px solid var(--c-border-highlight);
  border-radius: 24px;
  padding: 2.5rem;
  transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.obj-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--c-accent);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.obj-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--c-accent);
  filter: drop-shadow(0 0 10px var(--c-accent-glow));
}

.obj-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #fff;
}

.obj-card p {
  color: var(--c-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* 5. PROCESS */

.process-section {
  padding: 8rem 0;
}

.process-timeline {
  margin-top: 5rem;
  position: relative;
  padding-left: 3rem;
  border-left: 1px solid var(--c-border);
}

.process-step {
  position: relative;
  margin-bottom: 5rem;
  /* Плавное появление при скролле */
  transition: 0.5s;
}

.step-num {
  position: absolute;
  left: -4.3rem;
  top: 0;
  width: 42px;
  height: 42px;
  background: var(--c-bg);
  border: 1px solid var(--c-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
  font-size: 1.1rem;
  box-shadow: 0 0 15px var(--c-accent-glow);
  z-index: 2;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  color: #fff;
}

.step-content p {
  color: var(--c-text-muted);
  max-width: 600px;
  margin-bottom: 1rem;
}

.step-time {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--c-accent);
  background: rgba(59, 130, 246, 0.05);
  text-transform: uppercase;
}

/* 6. CASES */

.cases-section {
  padding: 8rem 0;
  background: #050507;
  /* Чуть темнее */
  border-top: 1px solid var(--c-border);
}

.cases-slider {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 4rem;
}

.case-card {
  background: var(--c-surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--c-border);
  border-top: 1px solid var(--c-border-highlight);
  border-radius: 30px;
  padding: 3rem;
  transition: 0.3s;
}

.case-card:hover {
  border-color: var(--c-border-highlight);
  transform: translateY(-5px);
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.case-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  max-width: 70%;
  color: #fff;
}

.case-tag {
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
}

.case-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cs-val {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.2rem;
  letter-spacing: -1px;
}

.cs-lbl {
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.text-green {
  color: var(--c-green);
}

.c-arrow {
  color: #444;
  font-size: 1.2rem;
}

.case-desc {
  color: #ccc;
  line-height: 1.7;
}

/* 7. OFFER (The Closer) */

.offer-section {
  padding: 8rem 2rem;
}

.offer-container {
  max-width: 1100px;
  margin: 0 auto;
  /* Глубокий градиент */
  background: radial-gradient(circle at top, #1a1a1e 0%, #000 100%);
  border: 1px solid var(--c-border);
  border-radius: 40px;
  padding: 6rem 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.offer-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  opacity: 0.4;
}

.offer-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: #fff;
  text-align: center;
}

.offer-subtitle {
  font-size: 1.2rem;
  color: #888;
  margin-bottom: 4rem;
  text-align: center;
}

.offer-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.offer-option {
  padding: 2.5rem 2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--c-border);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.offer-option.highlight {
  background: rgba(59, 130, 246, 0.05);
  border-color: var(--c-accent);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.1);
  transform: scale(1.05);
}

.offer-option h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.offer-option p {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 2rem;
  text-align: center;
}

.btn-full {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

.btn-outline {
  display: block;
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  text-align: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.3s;
  margin-top: auto;
}

.btn-outline:hover {
  background: #fff;
  color: #000;
}

.offer-note {
  font-size: 0.8rem;
  color: #555;
  margin-top: 2rem;
  text-align: center;
}

/* ADAPTIVE */

@media (max-width: 1024px) {
  .grid-2 {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .loss-counter {
    margin: 3rem auto 0;
    border-left: none;
    border-top: 2px solid var(--c-red);
    border-radius: 0 0 20px 20px;
  }
  .ux-fail-card {
    margin-top: 3rem;
  }
  .objections-grid,
  .cases-slider,
  .offer-options {
    grid-template-columns: 1fr;
  }
  .offer-option.highlight {
    transform: scale(1);
    margin: 1rem 0;
  }
  .detail-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .nav__menu {
    display: none;
  }
  .nav__burger {
    display: flex;
  }
  .detail-title {
    font-size: 2rem;
    word-break: break-word; /* Prevent long words overflowing */
  }
  .process-timeline {
    border-left: none;
    padding-left: 0;
  }
  .step-num {
    position: relative;
    left: 0;
    margin-bottom: 1rem;
    margin: 0 auto 1rem;
  }
  .process-step {
    padding-left: 0;
    text-align: center;
  }
}
