/* SINKHRON - Technical Support Service Page Styles */
/* ================================================= */

/* Page Container - Additional top padding for header */
.container.py-5 {
  padding-top: calc(var(--space-3xl) + 60px) !important;
  padding-bottom: var(--space-3xl);
}

.text-primary {
  color: var(--color-primary) !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(47deg, rgba(255, 255, 255, 1) 0%, rgb(244 58 9 / 15%) 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl);
  margin-bottom: var(--space-3xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  pointer-events: none;
}

.hero-section * {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  color: var(--text-primary);
  font-family: var(--font-primary-GEB);
  font-weight: var(--font-weight-bold);
}

.hero-section .lead {
  color: var(--text-secondary);
  font-family: var(--font-primary-GMB);
}

.hero-section img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.hero-features {
  margin-top: var(--space-xl);
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-md);
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--backdrop-blur-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--duration-normal) var(--ease-out);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(10px);
}

.feature-item i {
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-right: var(--space-md);
}

.feature-item span {
  font-family: var(--font-primary-GMB);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
}

/* Section headings */
.tech-directions h2,
.tech-process h2 {
  text-align: center;
  color: var(--text-primary);
  font-family: var(--font-primary-GEB);
  margin-bottom: var(--space-2xl);
  position: relative;
}

.tech-directions h2::after,
.tech-process h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-button-shape);
  border-radius: 2px;
}

/* Direction cards */
.tech-directions {
  margin-bottom: var(--space-3xl);
}

.tech-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(244, 58, 9, 0.02) 0%, rgba(194, 237, 218, 0.05) 100%);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
  pointer-events: none;
}

.tech-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}

.tech-card:hover::before {
  opacity: 1;
}

.tech-card > * {
  position: relative;
  z-index: 2;
}

.tech-icon {
  margin-bottom: var(--space-lg);
  text-align: center;
}

.tech-card h3 {
  font-family: var(--font-primary-GEB);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
  text-align: center;
}

.tech-card p {
  color: var(--text-secondary);
  font-family: var(--font-primary-GMB);
  margin-bottom: var(--space-lg);
}

.tech-links {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg);
  /* Список тянется, чтобы ссылка «подробнее» у всех трёх карточек
     оказалась на одной высоте независимо от длины текста */
  flex-grow: 1;
}

.tech-links li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.tech-links li::before {
  content: '\f0da';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

.tech-links a {
  color: var(--text-primary);
  font-family: var(--font-primary-GMB);
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-out);
}

.tech-links a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.tech-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-primary);
  font-family: var(--font-primary-GMB);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: gap var(--duration-normal) var(--ease-out);
}

.tech-more:hover {
  color: var(--color-primary);
  gap: var(--space-md);
}

/* Process steps */
.tech-process {
  margin-bottom: var(--space-3xl);
}

.process-step {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
}

.process-step:hover {
  transform: translateY(-5px);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-button-shape);
  color: var(--text-inverse);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  font-family: var(--font-primary-GEB);
  margin: 0 auto var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--duration-normal) var(--ease-out);
}

.process-step:hover .step-number {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.process-step h4 {
  font-family: var(--font-primary-GEB);
  color: var(--text-primary);
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
}

.process-step p {
  color: var(--text-secondary);
  font-family: var(--font-primary-GMB);
  font-size: 0.95rem;
}

/* Call to Action */
.cta-section {
  background: linear-gradient(47deg, rgba(255, 255, 255, 1) 0%, rgb(244 58 9 / 15%) 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl);
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

.cta-section * {
  position: relative;
  z-index: 2;
}

.cta-section h3 {
  color: var(--text-primary);
  font-family: var(--font-primary-GEB);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-md);
}

.cta-section p {
  color: var(--text-secondary);
  font-family: var(--font-primary-GMB);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.cta-buttons .btn {
  min-width: 220px;
}

/* Adaptive */
@media (max-width: 991.98px) {
  .hero-section,
  .cta-section {
    padding: var(--space-2xl);
  }

  .hero-section .col-lg-5 {
    margin-top: var(--space-xl);
  }
}

@media (max-width: 767.98px) {
  .container.py-5 {
    padding-top: calc(var(--space-2xl) + 60px) !important;
  }

  .hero-section,
  .cta-section {
    padding: var(--space-xl);
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  /* Своего max-width у лида здесь нет (в отличие от других страниц группы),
     но 18px, унаследованные из main.css .lead, всё равно крупнее ориентира
     для мобильного текста - остальные пять страниц группы уже доведены до 16px. */
  .hero-section .lead {
    font-size: 1rem;
  }

  .tech-card {
    padding: var(--space-lg);
  }

  /* заголовок карточки был фиксирован в 1.4rem - крупно для узкой колонки */
  .tech-card h3 {
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
  }

  /* Строка списка высотой в текст - 19px, пальцем не попасть.
     Растягиваем область нажатия до 44px. */
  .tech-links li {
    margin-bottom: 0;
  }

  .tech-links li::before {
    top: 50%;
    transform: translateY(-50%);
  }

  .tech-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .tech-more {
    min-height: 44px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
    /* Bootstrap-овский me-3 в колонку даёт лишний отступ справа */
    margin-right: 0 !important;
  }
}

@media (max-width: 575.98px) {
  .hero-section h1 {
    font-size: 1.65rem;
  }

  .feature-item:hover {
    transform: none;
  }
}

/* Кнопки призыва на телефоне: одна шириной, одной высотой, подпись в строку.
   me-3 из Bootstrap сдвигал первую кнопку на 8 px относительно второй, а
   18 px с полями 48 px ломали «Рассчитать стоимость» на две строки - кнопки
   выходили 88 и 70 px высотой. Отступ через !important: утилита Bootstrap
   объявлена так же. */
@media (max-width: 767.98px) {
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
    min-width: 0;
    margin: 0 !important;
    padding: 14px 20px;
    font-size: 1rem;
    white-space: nowrap;
  }
}

/* Пункты с галочками на телефоне стояли с зазором 16 px при высоте пункта
   41 px - слишком много воздуха, по замечанию заказчика. Теперь 8 px. */
@media (max-width: 575.98px) {
  .hero-features .feature-item {
    margin-bottom: 8px;
  }

  .hero-features .feature-item:last-child {
    margin-bottom: 0;
  }
}

/* Шаги процесса: короткие абзацы разъезжались от justify. */
@media (max-width: 767.98px) {
  .process-step p {
    text-align: center !important;
  }
}
