/* Блок питань і відповідей.
   Величини взяті з наявних сторінок: заголовок як .contacts-title і .projects-page-title,
   надрубрика як .title-label, лінії між рядками як у гармошці на переліку послуг. */

.faq-block {
  max-width: 1600px;
  margin: 0 auto;
  padding: 120px 30px 140px;
}

.faq-block-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 60px;
  max-width: 780px;
}

.faq-block-title {
  margin: 0;
  color: #000;
  font-weight: 200;
  font-size: 64px;
  line-height: 1.06;
  letter-spacing: -0.012em;
}

.faq-block-description {
  font-weight: 300;
  font-size: 16px;
  line-height: 200%;
  color: #4D4D4D;
  max-width: 595px;
}

.faq-block-list { border-top: 1px solid rgba(0, 0, 0, 0.14); }

.faq-item { border-bottom: 1px solid rgba(0, 0, 0, 0.14); }

.faq-question-heading {
  margin: 0;
  font: inherit;
  font-weight: inherit;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 34px 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: #000;
}

.faq-question-text {
  font-weight: 300;
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: -0.008em;
  max-width: 60ch;
}

.faq-question:hover .faq-question-text { opacity: 0.6; }

.faq-question:focus-visible {
  outline: 1px solid #000;
  outline-offset: 4px;
}

/* Маркер: плюс, що стає мінусом. Той самий жест, що в гармошці переліку послуг. */
.faq-marker {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 6px;
}

.faq-marker::before,
.faq-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #000;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.faq-marker::before {
  width: 22px; height: 1px;
  transform: translate(-50%, -50%);
}

.faq-marker::after {
  width: 1px; height: 22px;
  transform: translate(-50%, -50%);
}

.faq-question[aria-expanded="true"] .faq-marker::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer-inner {
  padding: 0 0 38px;
  max-width: 720px;
  font-weight: 300;
  font-size: 16px;
  line-height: 200%;
  color: #4D4D4D;
}

.faq-answer-inner p { margin: 0 0 1em; }
.faq-answer-inner p:last-child { margin-bottom: 0; }

@media (max-width: 1380px) {
  .faq-block { padding: 80px 24px 100px; }
}

@media (max-width: 992px) {
  .faq-block { padding: 60px 18px 80px; }
  .faq-block-top { padding-bottom: 36px; gap: 16px; }
  .faq-block-title { font-size: 40px; }
  .faq-block-description { font-size: 13px; }
  .faq-question { gap: 20px; padding: 26px 0; }
  .faq-question-text { font-size: 17px; }
  .faq-marker { width: 18px; height: 18px; margin-top: 3px; }
  .faq-marker::before { width: 18px; }
  .faq-marker::after { height: 18px; }
  .faq-answer-inner { padding-bottom: 28px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-marker::before, .faq-marker::after { transition: none; }
}

/* Плавне розкриття відповіді. Висоту веде скрипт (атрибут hidden анімувати
   не можна), тут лише перехід і обрізка вмісту під час руху. */
.faq-answer {
  overflow: hidden;
  transition: height 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .faq-answer { transition: none; }
}
