/* ========================================= */
/* НАЧАЛО СТИЛЕЙ ДЛЯ СТРАНИЦЫ AI-ASSISTANT   */
/* Добавьте этот код в конец вашего CSS файла */
/* ========================================= */

/* 1. ИЗОЛЯЦИЯ И СБРОС (Важно для корректного отображения) */
/* Мы применяем это ТОЛЬКО внутри обертки .ai-wrapper, чтобы не ломать хедер/футер */
.ai-wrapper {
    width: 100%;
    /* Гарантируем шрифт, если он не наследовался */
    font-family: 'Montserrat', sans-serif; 
    line-height: 1.5;
    /* Сбрасываем цвет текста на дефолтный черный для контейнера */
    color: #1b2837; 
}

/* Принудительный border-box для всей геометрии внутри AI-блока */
.ai-wrapper *, .ai-wrapper *::before, .ai-wrapper *::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* 2. БАЗОВЫЕ НАСТРОЙКИ КОНТЕЙНЕРА */
.ai-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    width: 100%;
}

/* Класс для поднятия контента над темной пеленой */
.relative-z {
    position: relative;
    z-index: 2;
}

/* 3. HERO BLOCK (Главный экран) */
.ai-hero {
    /* Фоновая картинка задается в HTML, здесь только настройки */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #2c3e50; /* Резервный цвет */
    padding: 100px 0;
    text-align: center;
    position: relative;
}

/* Темная пелена (Оверлей) - чтобы белый текст читался на любой картинке */
.ai-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.85); /* 85% темноты */
    z-index: 1;
}

.ai-hero-content {
    max-width: 800px;
    margin: 0 auto;
    color: #ffffff;
}

/* Бейджик статуса */
.ai-status-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 25px;
    color: #ffffff;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-orange, #f28536);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 8px var(--primary-orange, #f28536);
}

/* Заголовок Hero */
.ai-title {
    font-family: 'Play', sans-serif;
    font-weight: 700;
    font-size: 3rem; /* 48px */
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff !important; /* Важно: белый цвет */
    margin-top: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.ai-subtitle {
    font-size: 1.1rem;
    color: #eeeeee;
    margin-bottom: 40px;
}

/* 4. КНОПКИ (Универсальный фикс для розового цвета) */
a.ai-btn {
    display: inline-block;
    background-color: var(--primary-orange, #f28536);
    color: #ffffff !important; /* !important перебивает глобальные стили ссылок */
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none !important;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 15px rgba(242, 133, 54, 0.3);
}

a.ai-btn:hover {
    background-color: #d97026;
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* 5. СЕТКА И СЕКЦИИ */
.ai-section {
    padding: 60px 0;
}

.ai-light-bg {
    background-color: #f9f9f9;
}

.ai-dark-bg {
    background-color: var(--dark-bg, #1a1a1a);
    color: #ffffff;
}

.ai-section-title {
    font-family: 'Play', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    text-align: center;
    color: var(--text-dark, #1b2837);
    margin-bottom: 10px;
    margin-top: 0;
}

.ai-section-title.text-white {
    color: #ffffff !important;
}

.ai-section-desc {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 30px;
}

/* 6. КАРТОЧКИ (СВЕТЛЫЕ) */
.ai-card {
    background: #ffffff;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
    border: 1px solid #eeeeee;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    transition: transform 0.3s ease;
}

.ai-card:hover {
    transform: translateY(-5px);
}

.ai-card-icon {
    margin-bottom: 25px;
    width: 100%;
    display: flex;
    justify-content: center;
    color: #f28536 !important; 
}

.ai-card-body {
    flex-grow: 1;
    width: 100%; 
    text-align: left; 
}

/* Настройка SVG иконок */
.ai-card-icon svg {
    width: 48px;
    height: 48px;
    stroke: #f28536 !important; 
    fill: none !important;
}

/* Дополнительная гарантия: красим сами линии внутри SVG */
.ai-card-icon svg path {
    stroke: #f28536 !important;
    fill: none !important;
}

.ai-card-title {
    font-family: 'Play', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #1b2837;
    margin-top: 0;
}

.ai-card-body {
    flex-grow: 1;
}

/* Блок "Проблема" внутри карточки */
.ai-problem {
    background-color: #fff4e5;
    border-left: 3px solid var(--primary-orange, #f28536);
    padding: 10px 15px;
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 15px;
    border-radius: 0 4px 4px 0;
}

/* Списки с буллитами */
.ai-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #333;
}

.ai-list li::before {
    content: "•";
    color: var(--primary-orange, #f28536);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 7. КАРТОЧКИ (ТЕМНЫЕ - SECURITY) */
.ai-card-dark {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
}

.ai-card-dark h3 {
    font-family: 'Play', sans-serif;
    color: var(--primary-orange, #f28536);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.ai-card-dark p {
    color: #cccccc;
    font-size: 0.95rem;
    margin: 0;
}

.ai-security-header {
    text-align: center;
    margin-bottom: 40px;
}

.ai-sec-icon svg {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
}

/* Акцентный текст внутри темных карточек */
.ai-accent {
    color: var(--primary-orange, #f28536);
    font-weight: bold;
}

.ai-cta-center {
    text-align: center;
    margin-top: 40px;
}

/* 8. АДАПТИВНОСТЬ (MOBILE) */
@media (max-width: 768px) {
    .ai-title { font-size: 2rem; }
    .ai-hero { padding: 60px 0; }
    .ai-grid { grid-template-columns: 1fr; }
    .ai-container { padding: 0 15px; }
    .ai-card {
        padding: 30px !important; 
    }
}

/* ========================================= */
/* КОНЕЦ СТИЛЕЙ ДЛЯ СТРАНИЦЫ AI-ASSISTANT    */
/* ========================================= */


/* Общие стили для сетки карточек (Преимущества, Проблемы и т.д.) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Общие стили для отдельной карточки */
.card-item {
  text-align: center;
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  background: white;
}

.card-item:hover {
  transform: translateY(-5px);
}

/* Общие стили для иконки внутри карточки */
.card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 50px;
  height: 50px;
  fill: var(--primary-orange);
}

/* Общие стили для текста (описания) внутри карточки */
.card-text {
  color: var(--text-dark);
  line-height: 1.5;
  font-size: 1rem;
  margin-top: 10px;
}
/* Стиль для выделения акцентных цифр */
.text-accent {
    color: #f28536;
    font-weight: bold;
}

/* --- Адаптивность --- */

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card-item {
    padding: 20px;
  }

  .card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .card-icon svg {
    width: 40px;
    height: 40px;
  }

  .card-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card-item {
    padding: 20px;
  }

  .card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }

  .card-icon svg {
    width: 40px;
    height: 40px;
  }

  .card-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
}

/* Дополнительные стили для блока преимуществ */
.benefits {
  background: var(--light-bg);
  padding: 60px 0;
}

/* Стили для блока интеграции */
.integration-icons {
  text-align: center;
  margin: 40px 0;
}

.integration-icons p {
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.2rem;
}

.integration-icons-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.integration-item {
  text-align: center;
  transition: transform 0.3s ease;
}

.integration-item:hover {
  transform: translateY(-5px);
}

.integration-item svg {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
  fill: var(--primary-orange);
}

.integration-item p {
  font-weight: 500;
  margin: 0;
  color: var(--text-dark);
}