/* FAQ Page Styles */

.faq {
  margin: 0 auto;
  width: min(1180px, calc(100% - 32px));
  padding: 5rem;
  background: #F4F2F0;

}

.faq-title {
  margin-bottom: 2.25rem;
  font-size: 3.5rem;
  font-weight: 600;
  color: #2A1E1A;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 0.05em;

}

.faq-content {
  display: grid;
  width: 82%;
  grid-template-columns: 1.12fr 0.9fr;
  align-items: flex-start;
  gap: 10rem;
  margin: 0 auto;
}

/* FAQ Section */
.faq-section {
  flex: 1;
}

.faq-section h2 {
  font-size: 1.5rem;
  color: #2E2925;
  font-weight: bold;
  font-style: italic;
  margin-bottom: 2rem;
}

.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-item {
  margin-bottom: 1rem;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 1.5rem 2rem;
  font-size: 1.125rem;
  text-transform: uppercase;
  font-weight: 600;
  color: #2A1E1A;
  border: 1px solid #E4DED8;
  cursor: pointer;
  position: relative;
  line-height: 1.2;
}

.faq-question::after {
  content: '';
  position: absolute;
  right: 1.313rem;
  top: 0.688rem;
  width: 3rem;
  height: 3rem;
  background: url('../images/plus.svg') no-repeat center;
  background-size: contain;
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  transform: rotate(45deg);
}

.faq-question.active {
  background: #FFFFFF;
  border-color: #FFF;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0;
}

.faq-answer.active {
  background: #FFF;
}

.faq-answer-content {
  position: relative;
  padding: 1.5rem 2rem;
}

.faq-answer-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2rem;
  width: 80%;
  height: 1px;
  display: block;
  background: #E4DED8;
}

.faq-answer p {
  font-size: 1.125rem;
  line-height: 1.2;
  color: #2A1E1A;
  margin: 0 0 1rem 0;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Contact Form Section */
.contact-section {
  background: #FFF5F7;
  /*border-radius: 1rem;*/
  padding: 5.1rem 3.938rem;
}

.contact-section h2 {
  font-size: 3rem;
  line-height: 0.9;
  color: #E42261;
  font-family: 'Dessert Script', sans-serif;
  font-weight: 400;
  margin-bottom: 1rem;
  text-align: center;
}

.contact-section p {
  font-size: 1.125rem;
  line-height: 1.15;
  color: #666;
  text-align: center;
  font-weight: bold;
  margin-bottom: 1.8rem;
  font-style: italic;
}

/* General Form Styles */

.form-submit-btn {
  margin-top: 1rem;
  align-self: center;
  width: 100%;
}

/* Responsive Design for FAQ Page */
@media (max-width: 1024px) {
  .faq-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .faq-main {
    padding: 6rem 0 2rem;
  }

  .faq-content {
    gap: 3.4rem;
  }

  .contact-section {
    padding: 1.5rem;
  }

  .faq-question {
    font-size: 0.9rem;
    padding: 0.8rem 0;
  }

}

@media (max-width:480px) {

  .faq {
    padding: 3rem 0;
    border-radius: 0rem;
  }

  .faq .container {
    padding: 0 14px;
  }

  .faq-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
  }

  .faq-content {
    width: 100%;
  }

  .faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .faq-item {
    margin: 0;
    /*border-radius: 10px;*/
    overflow: hidden;
  }

  /* ВОПРОС */
  .faq-question {
    padding: 14px 40px 14px 14px;
    font-size: 0.95rem;
    line-height: 1.3;

    /*border-radius: 10px;*/
    border: 1px solid #E4DED8;

    background: #fff;
  }

  /* плюсик */
  .faq-question::after {
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
  }

  .faq-question.active::after {
    transform: translateY(-50%) rotate(45deg);
  }

  /* ОТВЕТ */
  .faq-answer {
    background: #fff;
  }

  .faq-answer-content {
    padding: 12px 14px;
  }

  .faq-answer-content::before {
    left: 14px;
    width: calc(100% - 28px);
  }

  .faq-answer p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #333;
  }

  .faq-question:active {
    transform: scale(0.98);
  }

}