/* style_v2.css — правки только для /ai-architect-v2/.
   Все селекторы новые (суффикс -v2 или новые id/классы), чтобы не задеть
   /ai-architect/, который продолжает использовать style.css как есть. */

:root {
  --brand: #3D3BF3;
  --brand-deep: #302ecb;
}

/* ── H1 героя: реальный размер главного обещания страницы (CRO-ревью 1.2, 3.2.1) ── */
.hero-title-v2 {
  font-size: clamp(30px, 5.2vw, 46px);
  line-height: 1.15;
}

/* ── Шапка: смена состояния по скроллу (CRO-ревью 1.11, 3.2.4) ── */
#site-header {
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
}
#site-header.is-scrolled {
  background: rgba(248, 248, 246, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#site-header.is-scrolled .brand-text {
  color: #1A1A1A;
}

/* ── Липкая мобильная CTA-панель (CRO-ревью 3.2.5) ── */
.sticky-cta-mobile {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(248, 248, 246, 0.98);
  border-top: 1px solid #E5E5E0;
  backdrop-filter: blur(8px);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}
.sticky-cta-mobile.is-visible {
  transform: translateY(0);
}
@media (min-width: 768px) {
  .sticky-cta-mobile {
    display: none;
  }
}

/* ── Полоска ответственности в блоке "дуги" (CRO-ревью 3.3а) ── */
.responsibility-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 4px;
}
.responsibility-bar__track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #E5E5E0;
  overflow: hidden;
}
.responsibility-bar__fill {
  height: 100%;
  background: #3D3BF3;
  border-radius: 999px;
}
.responsibility-bar__labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #6B6B6B;
  margin-top: 4px;
}

/* ── Переход-стрелка между карточками модулей (CRO-ревью 3.3в) ── */
.arc-transition {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #6B6B6B;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 0;
}
.arc-transition__circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1.5px solid #3D3BF3;
  color: #3D3BF3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  background: #FFFFFF;
}

/* ── Мини-таблица Тема/Шаги/На выходе ── */
.arc-table {
  margin-top: 16px;
  border-top: 1px solid #E5E5E0;
}
.arc-table__row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #E5E5E0;
  font-size: 14px;
}
.arc-table__row dt {
  flex: 0 0 96px;
  color: #6B6B6B;
}
.arc-table__row dd {
  flex: 1;
  color: #1A1A1A;
  font-weight: 500;
}

/* ── Карусель программы: выравнивание по контейнеру (CRO-ревью 1.10, 3.4) ── */
.carousel-v2 {
  display: flex;
  overflow-x: auto;
  gap: 24px;
  padding-bottom: 8px;
  padding-left: max(24px, calc((100vw - 1160px) / 2 + 24px));
  padding-right: 24px;
  box-sizing: border-box;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-v2::-webkit-scrollbar {
  display: none;
}
.carousel-v2 .program-card-v2 {
  scroll-snap-align: start;
}
.program-card-v2 {
  box-sizing: border-box;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #E5E5E0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  color: #1A1A1A;
  font-size: 18px;
}
.carousel-arrow--prev { left: 4px; }
.carousel-arrow--next { right: 4px; }
@media (max-width: 900px) {
  .carousel-arrow { display: none; }
}

.carousel-hint {
  display: none;
}
@media (max-width: 767px) {
  .carousel-hint {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #6B6B6B;
    margin-top: 8px;
  }
}

/* ── Блок "Для школы" на карточках программы (раунд 4, п.6) ── */
.for-school-block {
  margin-top: auto;
  background: #EEF0FF;
  border-radius: 12px;
  padding: 14px 16px;
}
.for-school-block__label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand);
  padding-bottom: 9px;
  margin-bottom: 9px;
  border-bottom: 1px solid rgba(61, 59, 243, 0.18);
}
.for-school-block__label svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.for-school-block__list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.for-school-block__list li {
  position: relative;
  padding-left: 14px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  color: #2D2D2D;
}
.for-school-block__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

/* ── Плитки статистики пилота (CRO-ревью 2.7) ── */
.stat-tile {
  border: 1px solid #E5E5E0;
  border-radius: 14px;
  padding: 20px;
  background: #FFFFFF;
}
.stat-tile__num {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  color: #3D3BF3;
  line-height: 1.1;
  margin-bottom: 6px;
}

/* ── FAQ аккордеон (CRO-ревью 2.9, 3.4) ── */
.faq-item {
  border-bottom: 1px solid #E5E5E0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 4px;
  font-weight: 600;
  font-size: 16px;
  color: #1A1A1A;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 400;
  color: #3D3BF3;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item__answer {
  padding: 0 4px 18px;
  font-size: 15px;
  line-height: 1.65;
  color: #2D2D2D;
}

/* ── Полоса фактов (CRO-ревью 2.2) ── */
.facts-strip {
  border-top: 1px solid #E5E5E0;
  border-bottom: 1px solid #E5E5E0;
  background: #FFFFFF;
}
.facts-strip__item {
  text-align: center;
  padding: 20px 12px;
}
.facts-strip__num {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--brand-deep);
  display: block;
}
.facts-strip__label {
  font-size: 13px;
  color: #6B6B6B;
  margin-top: 2px;
}

/* ── Фото-подписи ── */
.photo-caption {
  font-size: 13px;
  color: #6B6B6B;
  margin-top: 10px;
  line-height: 1.5;
}

/* ── Карточки отзывов родителей (раунд 4, п.10 — реальные анонимные цитаты) ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.testimonial-card {
  margin: 0;
  border: 1px solid #E5E5E0;
  border-radius: 14px;
  padding: 22px;
  background: #FFFFFF;
}
.testimonial-card blockquote {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.65;
  color: #2D2D2D;
}
.testimonial-card figcaption {
  font-size: 13px;
  color: #6B6B6B;
}

/* ── Секционные надзаголовки: убрать primary-цвет, оставить его только на CTA (CRO-ревью 3.2.3) ── */
.section-overline-v2 {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2.5px;
  color: #6B6B6B;
  margin-bottom: 16px;
}
