/* ── FAQ Section ─────────────────────────────────── */

.faqSection {
  background: #fff;
  padding: 100px max(50px, calc((100% - 1440px) / 2)) 200px;
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 100%;
}

.faqSection .header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faqSection .sectionTag {
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #2865BA;
}

.faqSection .heading {
  font-family: var(--font-unbounded, 'Arial Black', sans-serif);
  font-size: 40px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -1.5px;
  text-transform: uppercase;
  color: #201e1f;
}

.faqSection .headingOrange {
  color: #397de3;
}

.faqSection .grid {
  display: grid;
  grid-template-columns: 1fr 665px;
  gap: 28px;
  align-items: start;
  width: 100%;
}

/* ── Accordion ───────────────────────────────────── */

.faqSection .accordion {
  display: flex;
  flex-direction: column;
}

.faqSection .item {
  border-bottom: 1px solid #d6dce0;
}

.faqSection .question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faqSection .questionText {
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: #201e1f;
}

.faqSection .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1px solid #d6dce0;
  border-radius: 12px;
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  color: #60666b;
}

.faqSection .answerWrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faqSection .answerWrap.open {
  grid-template-rows: 1fr;
}

.faqSection .answerInner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faqSection .answer {
  padding-bottom: 16px;
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: #60666b;
  white-space: pre-line;
}

.faqSection .answerLink {
  padding-bottom: 16px;
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: #002b68;
  width: fit-content;
}

.faqSection .answerLink:hover {
  text-decoration: underline;
}

/* ── Form ────────────────────────────────────────── */

.faqSection .formSlot {
  position: relative;
}

.faqSection .formBox {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid #d6dce0;
  border-radius: 20px;
  padding: 29px;
}

.faqSection .formTitle {
  font-family: var(--font-unbounded, 'Arial Black', sans-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -0.3px;
  text-transform: uppercase;
  color: #0a0a0a;
}

.faqSection .formDescription {
  padding-bottom: 12px;
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #60666b;
}

.faqSection .formFields {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.faqSection .input,
.faqSection .textarea {
  width: 100%;
  background: #edf0f4;
  border: none;
  outline: none;
  border-radius: 10px;
  padding: 13px 16px;
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 400;
  color: #201e1f;
}

.faqSection .input::placeholder,
.faqSection .textarea::placeholder {
  color: #757575;
}

.faqSection .textarea {
  height: 132px;
  resize: none;
}

.faqSection .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
  cursor: pointer;
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: #60666b;
}

.faqSection .checkbox {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: #201e1f;
}

.faqSection .consentLink {
  text-decoration: underline;
  color: #60666b;
}

.faqSection .submitButton {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 100%;
  background: #201e1f;
  border: none;
  cursor: pointer;
  border-radius: 100px;
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  transition: opacity 0.2s;
}

.faqSection .submitButton:hover {
  opacity: 0.85;
}

.faqSection .submitButton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.faqSection .honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.faqSection .formError {
  margin-bottom: 6px;
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: #c0392b;
}

.faqSection .successCard {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: #fff;
  border: 1px solid #d6dce0;
  border-radius: 24px;
  animation: successIn 0.35s ease both;
}

@keyframes successIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: none; }
}

.faqSection .successWave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.faqSection .successInner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 490px;
  text-align: center;
}

.faqSection .successIcon {
  width: 100px;
  height: 100px;
}

.faqSection .successTitle {
  font-family: var(--font-onest, 'Onest', sans-serif);
  font-size: 20px;
  font-weight: 800;
  line-height: normal;
  letter-spacing: -0.3px;
  text-transform: uppercase;
  color: #0a0a0a;
}

.faqSection .successText {
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: #60666b;
}

/* Прячем форму, сохраняя высоту слота, пока виден successCard */
.faqSection .formHidden {
  visibility: hidden;
}

.faqSection .successCardOut {
  animation: successOut 0.35s ease both;
}

@keyframes successOut {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: scale(0.98); }
}

/* ── Adaptive ────────────────────────────────────── */

@media (max-width: 1200px) {
  .faqSection .grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 875px) {
  .faqSection { padding: 60px 20px 120px; gap: 32px; }
  .faqSection .heading { font-size: 24px; line-height: 26px; letter-spacing: -1px; }
  .faqSection .formBox { padding: 24px; }
  .faqSection .formTitle { font-size: 18px; }
}

@media (max-width: 475px) {
  .faqSection { padding: 48px 12px 80px; }
  .faqSection .formBox { padding: 20px; border-radius: 16px; }
}
