
    /* --- ОСНОВНАЯ СЕКЦИЯ --- */
.hero-service-section {
  background-color: #F8F9FA; /* Легкий серый фон, если нужен. Или #FFF */
  padding: 60px 0;
  overflow: hidden;
  
}

/* Утилита для выравнивания грида по вертикали (добавьте в глобальные стили, если нет) */
.align-center {
  align-items: center;
}

/* --- ТЕКСТОВЫЙ КОНТЕНТ --- */
.hero-service-content {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Отступы между логическими блоками */
}

/* Стили для маленького заголовка с красным квадратом */
.sub-title-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.sub-title-inline .red-square {
  width: 8px;
  height: 8px;
  background-color: var(--color-red);
  display: block;
}

/* Переопределяем базовый title-black для этого блока, если нужно */
.title-hero {
  font-size: clamp(32px, 4vw, 56px); /* Плавное масштабирование шрифта */
  line-height: 1.1;
  margin: 0;
  font-family: "Gilroy-ExtraBold", system-ui, sans-serif;
  font-weight: 800;
}

.hero-service-desc {
  font-size: clamp(16px, 2vw, 18px);
  color: #555;
  max-width: 600px;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

/* --- СПИСОК ПРЕИМУЩЕСТВ (FLAT DOM) --- */
.hero-features-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 колонки в ряд на широких экранах */
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0; /* Предотвращает разрыв сетки длинными словами */
}

.feature-item svg {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
  /* Иконка красная, как на макете */
}

.feature-item div {
  font-family: "Gilroy-ExtraBold", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--color-black, #000);
  margin: 0;
}

.feature-item p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: #666;
  margin: 0;
}

/* --- ИЛЛЮСТРАЦИЯ --- */
.hero-service-image {
  position: relative;
  /* Небольшая анимация появления (по желанию) */
  animation: floatMockup 4s ease-in-out infinite;
}

.hero-service-image img {
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1)); /* Тень без лишних div'ов */
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 1200px) {
  /* На планшетах сжимаем до 2 колонок */
  .hero-features-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 992px) {
  /* Отключаем плавающую анимацию на мобилках для экономии батареи */
  .hero-service-image {
    animation: none;
    margin-top: 40px;
  }
  
  .title-hero {
    br { display: none; } /* Убираем жесткие переносы на мобилках */
  }
}

@media (max-width: 576px) {
  /* На смартфонах выстраиваем преимущества в 1 колонку */
  .hero-features-list {
    grid-template-columns: 1fr;
  }
  
  .feature-item {
    flex-direction: row; /* Иконка слева, текст справа для экономии высоты */
    align-items: flex-start;
    gap: 16px;
  }
  
  .feature-item svg {
    flex-shrink: 0; /* Чтобы иконка не сжималась */
    width: 28px;
    height: 28px;
  }
}



/* Базовые настройки для темной секции */
.services-dark-section {
  background-color: #111111; /* Глубокий темный фон из макета */
  padding: 80px 0;
  color: var(--color-white, #FFF);
  background-image: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)), url(../theme/img/start/block-cat.webp);
background-size: 100% 100%;
background-position: center;
background-repeat: no-repeat;
}

/* Шапка блока */
.services-header {
  margin-bottom: 40px;
}

.sub-title-red {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-white, #FFF);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.red-square {
  width: 8px;
  height: 8px;
  background-color: var(--color-red, #E00);
  display: inline-block;
}

/* Сетка карточек */
.services-dark-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;

}

/* Карточка услуги (Flat DOM: всё выстроено через Grid) */
.service-dark-card {
  display: grid;
  grid-template-columns: auto 1fr auto; /* Иконка | Текст | Стрелка */
  align-items: center;
  gap: 20px;
  background-color: #1A1A1A; /* Чуть светлее фона */
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/* Ховер-эффект для карточки */
.service-dark-card:hover {
  background-color: #222222;
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Блок с иконкой */
.sdc-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: var(--color-white, #FFF);
}

.sdc-icon svg {
  width: 28px;
  height: 28px;
}

/* Контент карточки */
.sdc-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0; /* Защита от переполнения грида */
}

.sdc-content div {
  margin: 0;
  font-family: "Gilroy-ExtraBold", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-white, #FFF);
}

.sdc-content p {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #A0A0A0; /* Серый текст для описания */
}

/* Красная стрелка */
.sdc-arrow {
  color: var(--color-red, #E00);
  font-size: 20px;
  font-weight: bold;
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Анимация стрелки при наведении */
.service-dark-card:hover .sdc-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* === Адаптивность === */
@media (max-width: 1024px) {
  .services-dark-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшетах */
  }
}

@media (max-width: 600px) {
  .services-dark-grid {
    grid-template-columns: 1fr; /* 1 колонка на мобильных */
  }
  
  .service-dark-card {
    grid-template-columns: 1fr auto; /* Переносим иконку наверх или оставляем слева */
    grid-template-areas: 
      "icon arrow"
      "content content";
    gap: 16px;
  }
  
  .sdc-icon {
    grid-area: icon;
  }
  
  .sdc-content {
    grid-area: content;
  }
  
  .sdc-arrow {
    grid-area: arrow;
  }
}

    /* Базовая секция */
.stages-section {
  background-color: #FAFAFA; /* Светлый фон как на скрине */
 
  overflow: hidden; /* Защита от выхода декоративных линий за экран */
}

.stages-header {
  margin-bottom: 60px;
}

/* --- МАГИЯ СПИСКА --- */
.stages-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6 равных колонок на ПК */
  gap: 24px;
  list-style: none; /* Убираем стандартные маркеры списка */
  padding: 0;
  margin: 0;
  counter-reset: stage-counter; /* Инициализируем счетчик для цифр 01, 02... */
}

/* Карточка этапа */
.stage-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 40px; /* Отступ сверху для фоновых цифр */
  min-width: 0;
}

/* 1. БОЛЬШИЕ ФОНОВЫЕ ЦИФРЫ (Автоматически генерируются CSS-счетчиком) */
.stage-item::before {
  counter-increment: stage-counter; /* Увеличиваем счетчик */
  content: counter(stage-counter, decimal-leading-zero); /* Выводим с нулем впереди (01, 02) */
  position: absolute;
  top: 0;
  left: 0;
  font-family: "Gilroy-ExtraBold", system-ui, sans-serif;
  font-size: 72px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.04); /* Легкий серый фон */
  line-height: 1;
  z-index: 0;
  pointer-events: none;
}

/* 2. СОЕДИНИТЕЛЬНАЯ ПУНКТИРНАЯ ЛИНИЯ */
.stage-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 68px; /* Выравниваем по центру иконки (40px padding-top + 28px пол-иконки) */
  left: 56px; /* Начинаем линию сразу после иконки */
  width: calc(100% - 56px + 24px); /* Тянем до следующей иконки, перекрывая gap сетки */
  border-top: 1px dashed #D0D0D0; /* Пунктир */
  z-index: 0;
}

/* 3. КРАСНАЯ ТОЧКА НА ЛИНИИ */
.stage-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -15px; /* Размещаем ровно посередине между колонками (gap 24px) */
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--color-red, #E00);
  border-radius: 50%;
  z-index: 1;
  opacity: 0; /* Скрываем по умолчанию */
}

/* Показываем красную точку у всех иконок, кроме последней */
.stage-item:not(:last-child) .stage-icon::before {
  opacity: 1;
}

/* --- ИКОНКА И КОНТЕНТ --- */
.stage-icon {
  position: relative; /* Создаем контекст для красной точки */
  width: 56px;
  height: 56px;
  background-color: #FFF;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Легкая тень коробки */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  z-index: 1; /* Чтобы иконка перекрывала фоновые элементы */
}

.stage-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-text, #333);
}

.stage-item div {
  font-family: "Gilroy-ExtraBold", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-black, #000);
  margin: 0 0 8px 0;
}

.stage-item p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #777;
  margin: 0;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 1200px) {
  .stages-list {
    grid-template-columns: repeat(3, 1fr); /* 3 колонки на планшетах */
    row-gap: 40px;
  }
  
  /* Убираем пунктирную линию для элементов, которые ломают строку */
  .stage-item:nth-child(3n)::after,
  .stage-item:nth-child(3n) .stage-icon::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .stages-list {
    grid-template-columns: repeat(2, 1fr); /* 2 колонки на смартфонах */
  }
  
  /* Переопределяем удаление линий под сетку 2x2 */
  .stage-item::after,
  .stage-icon::before {
    display: block !important; /* Возвращаем скрытые ранее */
  }
  .stage-item:nth-child(2n)::after,
  .stage-item:nth-child(2n) .stage-icon::before {
    display: none !important;
  }
}

@media (max-width: 575.98px) {
  .stages-list {
    grid-template-columns: 1fr; /* 1 колонка на узких экранах */
    row-gap: 30px;
  }
  
  /* На мобильных прячем горизонтальные линии соединения */
  .stage-item::after,
  .stage-icon::before {
    display: none !important;
  }
  
  .stage-item {
    padding-top: 0;
    padding-left: 60px; /* Переносим цифры влево от контента */
  }
  
  .stage-item::before {
    font-size: 56px;
    top: -5px;
    left: -10px;
  }
}


.faq-header {
    margin-top:120px;
  margin-bottom: 40px;
}

.faq-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #666;
  margin-top: 10px;
}

.faq-grid {
  align-items: flex-start; /* Чтобы правая колонка не растягивалась на всю высоту */
  gap: 40px;
}

/* --- АККОРДЕОН (Native Details/Summary) --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px; /* Расстояние между карточками вопросов */
}

.faq-item {
  background-color: #FFF;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Скрываем стандартный треугольник браузера */
.faq-summary {
  display: flex;
  align-items: center;
  padding: 24px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  position: relative;
}

.faq-summary::-webkit-details-marker {
  display: none; /* Для старых Safari */
}

/* Номер вопроса */
.faq-num {
  font-family: "Gilroy-ExtraBold", system-ui, sans-serif;
  font-size: 18px;
  color: var(--color-red, #E00);
  margin-right: 20px;
  font-weight: 800;
  flex-shrink: 0;
}

/* Текст вопроса */
.faq-question-text {
  font-family: "Gilroy-ExtraBold", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--color-black, #000);
  flex-grow: 1;
  padding-right: 40px; /* Отступ от крестика */
}

/* Кастомный плюс/минус через ::after (Flat DOM) */
.faq-summary::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  /* Рисуем "Плюс" CSS-градиентами, чтобы не грузить картинки */
  background: 
    linear-gradient(var(--color-red), var(--color-red)) center/2px 100% no-repeat,
    linear-gradient(var(--color-red), var(--color-red)) center/100% 2px no-repeat;
  transition: transform 0.3s ease;
}

/* Меняем "Плюс" на "Минус" при открытии */
.faq-item[open] .faq-summary::after {
  /* Оставляем только горизонтальную линию */
  background: linear-gradient(var(--color-red), var(--color-red)) center/100% 2px no-repeat;
  transform: translateY(-50%) rotate(180deg);
}

/* Текст ответа */
.faq-answer {
  padding: 0 24px 24px 62px; /* Выравниваем по тексту вопроса (24px + 18px + 20px) */
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  border-top: 1px solid rgba(0, 0, 0, 0.05); /* Полоска появляется только при открытии */
  margin-top: 0;
  padding-top: 20px;
  background: #FFF;
  /* Плавное появление текста */
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- ПРАВАЯ КОЛОНКА (CTA Карточка) --- */
.faq-sidebar {
  position: sticky;
  top: 100px; /* Прилипает при скролле (учитывайте высоту вашего хедера) */
}

.faq-cta-card {
  background-color: #FFF;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05); /* Глубокая мягкая тень как на макете */
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta-icon-wrap {
  width: 48px;
  height: 48px;
  background-color: #FFF;
  border: 1px solid rgba(220, 0, 0, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.cta-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.faq-cta-card h3 {
  font-family: "Gilroy-ExtraBold", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin: 0;
}

.faq-cta-card p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  margin: 0 0 8px 0;
}

/* Кнопка на всю ширину карточки */
.btn-red-full {
  background-color: var(--color-red, #E00);
  color: #FFF;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-red-full:hover {
  background-color: #C00;
  transform: translateY(-2px);
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 992px) {
  .faq-grid {
    gap: 30px;
  }
  
  .faq-sidebar {
    position: static; /* Отключаем прилипание на планшетах */
  }
}

@media (max-width: 576px) {
  .faq-summary {
    padding: 20px 16px;
  }
  
  .faq-question-text {
    font-size: 16px;
    padding-right: 20px;
  }
  
  .faq-answer {
    padding: 0 16px 20px 16px; /* На мобильных не выравниваем по номеру, экономим место */
  }
  
  .faq-summary::after {
    right: 16px;
  }
}