/* ============================================
   FAQ SECTION — аккордеон на светло-сером фоне
   ============================================ */

.faq-section {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, #f5f5f7 0%, #ebebf0 100%);
  overflow: hidden;
  box-shadow: inset 0 30px 50px -30px rgba(0, 0, 0, 0.08);
}

/* ============ ЗАГОЛОВОК ============ */
.faq-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.faq-title {
  font-size: 42px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.faq-sub {
  font-size: 16px;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

/* ============ СПИСОК ============ */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============ КАРТОЧКА ВОПРОСА ============ */
.faq-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.faq-item.active {
  box-shadow: 0 10px 40px rgba(193, 18, 31, 0.12);
}

/* ============ КНОПКА-ВОПРОС ============ */
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: #c1121f;
}

.faq-item.active .faq-question {
  color: #c1121f;
}

/* ============ ИКОНКА «+/×» ============ */
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f5f7;
  transition: all 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: #1a1a1a;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Горизонтальная линия */
.faq-icon::before {
  width: 12px;
  height: 2px;
  transform: translate(-50%, -50%);
}

/* Вертикальная линия */
.faq-icon::after {
  width: 2px;
  height: 12px;
  transform: translate(-50%, -50%);
}

/* Активное состояние — крестик становится минусом */
.faq-item.active .faq-icon {
  background: #c1121f;
  transform: rotate(180deg);
}

.faq-item.active .faq-icon::before,
.faq-item.active .faq-icon::after {
  background: #fff;
}

.faq-item.active .faq-icon::after {
  height: 0;
}

/* ============ ОТВЕТ (аккордеон) ============ */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 28px 24px;
  font-size: 15px;
  line-height: 1.65;
  color: #555;
}

.faq-answer-inner p {
  margin: 0;
}

.faq-answer-inner strong {
  color: #1a1a1a;
  font-weight: 600;
}

/* ============ АДАПТИВ ============ */

@media (max-width: 768px) {
  .faq-section {
    padding: 60px 0;
  }

  .faq-title {
    font-size: 28px;
  }

  .faq-sub {
    font-size: 14px;
  }

  .faq-header {
    margin-bottom: 40px;
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 15px;
  }

  .faq-icon {
    width: 28px;
    height: 28px;
  }

  .faq-answer-inner {
    padding: 0 20px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .faq-title {
    font-size: 24px;
  }

  .faq-question {
    padding: 16px 16px;
    font-size: 14px;
    gap: 12px;
  }

  .faq-answer-inner {
    padding: 0 16px 18px;
  }
}
