/* ==========================================
   ColorClick — home.css
   Подключается только на front-page
   ========================================== */

/* ---------- Переменные ---------- */
:root {
  --cc-primary: #667eea;
  --cc-primary-end: #764ba2;
  --cc-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --cc-dark: #1a1a2e;
  --cc-text: #333333;
  --cc-muted: #666666;
  --cc-light: #f8f9fa;
  --cc-border: #e0e0e0;
  --cc-white: #ffffff;
  --cc-radius: 12px;
  --cc-shadow: 0 2px 8px rgba(0,0,0,0.08);
  --cc-shadow-hover: 0 8px 24px rgba(102,126,234,0.2);
  --cc-max-width: 1200px;
  --cc-section-py: 80px;
}

/* ---------- Базовый сброс для секций ---------- */
#cc-home *, #cc-home *::before, #cc-home *::after {
  box-sizing: border-box;
}
#cc-home section {
  padding: var(--cc-section-py) 0;
}
#cc-home img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Контейнер ---------- */
.cc-container {
  max-width: var(--cc-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Общие элементы ---------- */
.cc-gradient-text {
  background: var(--cc-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cc-section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--cc-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.cc-section-title {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  color: var(--cc-dark);
  margin: 0 0 40px;
  line-height: 1.25;
}

/* ---------- Кнопки ---------- */
.cc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
}
.cc-btn--primary {
  background: var(--cc-gradient);
  color: var(--cc-white);
  box-shadow: 0 4px 14px rgba(102,126,234,0.35);
}
.cc-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102,126,234,0.45);
  color: var(--cc-white);
  text-decoration: none;
}
.cc-btn--outline {
  background: transparent;
  color: var(--cc-primary);
  border-color: var(--cc-primary);
}
.cc-btn--outline:hover {
  background: var(--cc-gradient);
  color: var(--cc-white);
  border-color: transparent;
  text-decoration: none;
}
.cc-btn--ghost {
  background: transparent;
  color: var(--cc-text);
  border-color: var(--cc-border);
}
.cc-btn--ghost:hover {
  border-color: var(--cc-primary);
  color: var(--cc-primary);
  text-decoration: none;
}
.cc-btn--full { width: 100%; justify-content: center; }
.cc-btn--lg { padding: 18px 40px; font-size: 18px; }

/* ---------- HERO ---------- */
.cc-hero {
  background: var(--cc-white);
  padding: 100px 0 80px;
  overflow: hidden;
  position: relative;
}
.cc-hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(102,126,234,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cc-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.cc-hero__badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
  color: var(--cc-primary);
  border: 1px solid rgba(102,126,234,0.25);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.cc-hero__title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--cc-dark);
  margin: 0 0 20px;
}
.cc-hero__subtitle {
  font-size: 18px;
  color: var(--cc-muted);
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 480px;
}
.cc-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.cc-hero__note {
  font-size: 13px;
  color: #999;
  margin: 0;
}
.cc-play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  background: var(--cc-gradient);
  color: white;
  border-radius: 50%;
  font-size: 9px;
  flex-shrink: 0;
}
.cc-hero__mockup {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(102,126,234,0.2), 0 4px 20px rgba(0,0,0,0.1);
  border: 1px solid rgba(102,126,234,0.15);
}
.cc-hero__mockup img { width: 100%; }

/* ---------- КАК РАБОТАЕТ ---------- */
.cc-how {
  background: var(--cc-light);
}
.cc-steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.cc-step {
  flex: 1;
  background: var(--cc-white);
  border-radius: var(--cc-radius);
  padding: 28px 24px;
  box-shadow: var(--cc-shadow);
  border: 1px solid var(--cc-border);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.cc-step:hover {
  box-shadow: var(--cc-shadow-hover);
  transform: translateY(-3px);
}
.cc-step__number {
  width: 44px; height: 44px;
  background: var(--cc-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(102,126,234,0.35);
}
.cc-step__content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--cc-dark);
  margin: 0 0 8px;
}
.cc-step__content p {
  font-size: 14px;
  color: var(--cc-muted);
  line-height: 1.55;
  margin: 0;
}
.cc-step__arrow {
  font-size: 22px;
  color: var(--cc-primary);
  align-self: center;
  opacity: 0.5;
  flex-shrink: 0;
  padding-top: 4px;
}

/* ---------- ДЛЯ КОГО ---------- */
.cc-forwho { background: var(--cc-white); }
.cc-forwho__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cc-forwho__card--single {
  width: 100%;
  max-width: 560px;
}
.cc-forwho__card {
  border-radius: var(--cc-radius);
  padding: 36px 32px;
  border: 2px solid var(--cc-border);
  background: var(--cc-white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.cc-forwho__card:hover {
  border-color: var(--cc-primary);
  box-shadow: var(--cc-shadow-hover);
}
.cc-forwho__card--accent {
  border-color: var(--cc-primary);
  background: linear-gradient(135deg, #fafbff 0%, #f3f0ff 100%);
}
.cc-forwho__icon { font-size: 40px; margin-bottom: 16px; line-height: 1; }
.cc-forwho__card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--cc-dark);
  margin: 0 0 16px;
}
.cc-forwho__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cc-forwho__list li {
  font-size: 15px;
  color: var(--cc-muted);
  padding-left: 24px;
  position: relative;
  line-height: 1.45;
}
.cc-forwho__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cc-primary);
  font-weight: 700;
}

/* ---------- ТАРИФЫ ---------- */
.cc-pricing { background: var(--cc-light); }
.cc-pricing__toggle {
  display: inline-flex;
  background: var(--cc-white);
  border-radius: 10px;
  padding: 4px;
  border: 1px solid var(--cc-border);
  margin-bottom: 40px;
  gap: 4px;
}
.cc-toggle-btn {
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--cc-muted);
  transition: all 0.2s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cc-toggle-btn--active {
  background: var(--cc-gradient);
  color: var(--cc-white);
  box-shadow: 0 2px 8px rgba(102,126,234,0.3);
}
.cc-badge-save {
  background: #28a745;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}
.cc-pricing__grid {
  display: flex;
  justify-content: center;
  margin: 0 auto;
}
.cc-pricing__grid .cc-pricing__card {
  width: 100%;
  max-width: 560px;
}
.cc-pricing__card {
  background: var(--cc-white);
  border-radius: 16px;
  padding: 36px 32px;
  border: 2px solid var(--cc-border);
  position: relative;
  transition: box-shadow 0.3s ease;
}
.cc-pricing__card:hover { box-shadow: var(--cc-shadow-hover); }
.cc-pricing__card--featured {
  border-color: var(--cc-primary);
  box-shadow: 0 8px 32px rgba(102,126,234,0.18);
}
.cc-pricing__badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--cc-gradient);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  white-space: nowrap;
}
.cc-pricing__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--cc-dark);
  margin-bottom: 6px;
}
.cc-pricing__desc {
  font-size: 14px;
  color: var(--cc-muted);
  margin-bottom: 20px;
}
.cc-pricing__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
}
.cc-price-amount {
  font-size: 40px;
  font-weight: 800;
  color: var(--cc-dark);
  line-height: 1;
}
.cc-price-currency {
  font-size: 15px;
  color: var(--cc-muted);
}
.cc-pricing__features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cc-pricing__features li {
  font-size: 15px;
  color: var(--cc-text);
}

/* ---------- FAQ ---------- */
.cc-faq { background: var(--cc-white); }

/* 1. Делаем блок шире (было 780px, стало 900px) */
.cc-faq__inner { max-width: 900px; }

.cc-faq__list { display: flex; flex-direction: column; gap: 12px; }

.cc-faq__item {
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
  background: var(--cc-white);
}

.cc-faq__item:has(.cc-faq__question[aria-expanded="true"]) {
  border-color: #1f4068; /* Цвет рамки под цвет открытой шапки */
}

/* 2 & 4. Базовые стили вопроса и центрирование */
.cc-faq__question {
  width: 100%;
  background: var(--cc-white);
  border: none;
  padding: 20px 24px; /* Чуть больше отступов для баланса */
  display: flex;
  justify-content: space-between;
  align-items: center; /* Строгое выравнивание по центру вертикали */
  gap: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--cc-dark);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  line-height: 1.4;
  margin: 0; /* Сбрасываем возможные отступы от темы */
  transition: all 0.2s ease;
}

/* Наведение на закрытую вкладку */
.cc-faq__question:hover { 
  background: #f4f5f7; 
  color: var(--cc-dark); /* Жестко фиксируем темный текст */
}

/* 3. Стили для ОТКРЫТОЙ вкладки (темно-синий фон) */
.cc-faq__question[aria-expanded="true"] {
  background: #1f4068; /* Темно-синий, как на твоем скриншоте */
  color: #ffffff; /* Белый текст */
}

/* Наведение на ОТКРЫТУЮ вкладку */
.cc-faq__question[aria-expanded="true"]:hover {
  background: #183353; /* Делаем фон чуть темнее, текст остается белым */
  color: #ffffff;
}

/* Иконка плюсика */
.cc-faq__icon {
  font-size: 22px;
  color: var(--cc-primary);
  transition: transform 0.3s ease, color 0.2s ease;
  flex-shrink: 0;
  font-weight: 400;
  display: flex;
  align-items: center; /* Выравниваем сам плюсик */
  justify-content: center;
}

/* Иконка превращается в крестик и становится белой при открытии */
.cc-faq__question[aria-expanded="true"] .cc-faq__icon {
  transform: rotate(45deg);
  color: #ffffff;
}

/* Текст ответа */
.cc-faq__answer {
  padding: 20px 24px; /* Добавили отступ сверху, чтобы текст не прилипал к синему блоку */
  font-size: 15px;
  color: var(--cc-muted);
  line-height: 1.6;
  background: var(--cc-white);
}

.cc-faq__answer p { margin: 0; }

/* ---------- ФИНАЛЬНЫЙ CTA ---------- */
.cc-cta-final {
  background: var(--cc-gradient);
  color: white;
  text-align: center;
  padding: 80px 0;
}
.cc-cta-final__inner { max-width: 620px; }
.cc-cta-final h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  margin: 0 0 16px;
  color: white;
}
.cc-cta-final p {
  font-size: 18px;
  opacity: 0.88;
  margin: 0 0 36px;
  color: white;
}
.cc-cta-final .cc-btn--primary {
  background: white;
  color: var(--cc-primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.cc-cta-final .cc-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  color: var(--cc-primary);
}

/* ---------- БЛОГ ---------- */
.cc-blog { background: var(--cc-light); }
.cc-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}
.cc-blog__card {
  background: var(--cc-white);
  border-radius: var(--cc-radius);
  overflow: hidden;
  border: 1px solid var(--cc-border);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.cc-blog__card:hover {
  box-shadow: var(--cc-shadow-hover);
  transform: translateY(-3px);
}
.cc-blog__thumb img { width: 100%; height: 180px; object-fit: cover; }
.cc-blog__body { padding: 20px; }
.cc-blog__date { font-size: 12px; color: #999; display: block; margin-bottom: 8px; }
.cc-blog__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px;
}
.cc-blog__title a {
  color: var(--cc-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}
.cc-blog__title a:hover { color: var(--cc-primary); }
.cc-blog__excerpt { font-size: 14px; color: var(--cc-muted); margin: 0; line-height: 1.5; }
.cc-blog__more { text-align: center; }

/* ---------- VIDEO MODAL ---------- */
.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cc-modal[hidden] { display: none; }
.cc-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  cursor: pointer;
}
.cc-modal__box {
  position: relative;
  z-index: 1;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 860px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.cc-modal__close-btn {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cc-modal__close-btn:hover { background: rgba(255,255,255,0.3); }
.cc-modal__video-wrap { aspect-ratio: 16/9; }
.cc-modal__video-wrap video { width: 100%; height: 100%; display: block; }

/* ==========================================
   МОБИЛЬНАЯ АДАПТАЦИЯ — Mobile First
   ========================================== */

@media (max-width: 767px) {
  :root { --cc-section-py: 50px; }

  .cc-hero { padding: 60px 0 50px; }
  .cc-hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .cc-hero__visual { order: -1; }
  .cc-hero__subtitle { font-size: 16px; }
  .cc-hero__actions { flex-direction: column; }
  .cc-hero__actions .cc-btn { width: 100%; justify-content: center; }

  .cc-steps { flex-direction: column; }
  .cc-step__arrow { display: none; }

  .cc-forwho__grid { grid-template-columns: 1fr; }

  .cc-pricing__grid { grid-template-columns: 1fr; }
  .cc-pricing__card { padding: 28px 20px; }
  .cc-pricing__toggle { width: 100%; }
  .cc-toggle-btn { flex: 1; justify-content: center; }

  .cc-blog__grid { grid-template-columns: 1fr; }

  .cc-faq__question { font-size: 15px; padding: 16px 18px; }

  .cc-cta-final { padding: 60px 0; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .cc-hero__inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .cc-blog__grid { grid-template-columns: 1fr 1fr; }
  .cc-steps { flex-wrap: wrap; }
  .cc-step__arrow { display: none; }
  .cc-step { min-width: 200px; }
}
