/* =========================
   ČASTÉ OTÁZKY (FAQ)
   – stejný styl karet jako „Jak to funguje?“ a „Služby“
========================= */

.faq {
  background: var(--sage);
  padding: 110px 7% 115px;
  color: var(--forest);
  border-radius: 28px;
}

.faq-container {
  max-width: 1150px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
  align-items: start;
}


/* LEVÁ STRANA – NADPIS */

.faq-heading {
  position: sticky;
  top: 110px;
}

.faq-label {
  display: inline-block;
  margin-bottom: 18px;

  color: var(--forest);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.faq-heading h2 {
  color: var(--forest);
  font-size: clamp(40px, 4.6vw, 62px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -3px;
}

.faq-heading h2 span {
  color: #7A6352;
  font-style: italic;
}

.faq-description {
  max-width: 360px;
  margin-top: 22px;

  color: var(--forest);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.75;
}

/* karta „Nenašli jste odpověď?“ */

.faq-ask {
  max-width: 360px;
  margin-top: 32px;
  padding: 22px 24px;

  display: flex;
  flex-direction: column;
  gap: 8px;

  background: rgba(251, 250, 246, .65);
  border-radius: 15px;
}

.faq-ask strong {
  font-size: 16px;
  font-weight: 900;
}

.faq-ask p {
  margin-bottom: 6px;

  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.faq-ask a {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: var(--forest);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;

  transition: transform .3s ease;
}

.faq-ask a:hover {
  transform: translateX(4px);
}

.faq-ask a i {
  width: 30px;
  height: 30px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);

  font-size: 15px;
}


/* PRAVÁ STRANA – OTÁZKY */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #FBFAF6;
  border: 1px solid rgba(59, 47, 42, .06);
  border-radius: 15px;

  box-shadow: 0 10px 28px rgba(59, 47, 42, .08);

  transition: transform .3s ease, box-shadow .3s ease;
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(59, 47, 42, .13);
}

.faq-item h3 {
  margin: 0;
}

.faq-question {
  width: 100%;

  display: flex;
  align-items: center;
  gap: 18px;

  padding: 22px 24px;

  border: none;
  background: none;
  cursor: pointer;

  color: var(--forest);
  font-family: inherit;
  text-align: left;
}

.faq-question small {
  min-width: 22px;

  color: #B8A492;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
}

.faq-question span {
  flex: 1;

  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.3px;
  line-height: 1.35;
}

.faq-question:focus-visible {
  outline: 2px solid #8C7563;
  outline-offset: -4px;
  border-radius: 15px;
}

/* plusko, které se otočí na křížek */

.faq-icon {
  position: relative;
  flex-shrink: 0;

  width: 36px;
  height: 36px;

  border-radius: 50%;
  background: #F0EAE2;

  transition: transform .45s cubic-bezier(.68, -0.4, .27, 1.4), background .3s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;

  width: 13px;
  height: 2.5px;

  border-radius: 3px;
  background: var(--forest);

  transform: translate(-50%, -50%);
  transition: background .3s ease;
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-question:hover .faq-icon {
  background: #E8DFD3;
}

.faq-item.is-open .faq-icon {
  transform: rotate(135deg);
  background: var(--forest);
}

.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after {
  background: var(--cream);
}

/* odpověď – plynule se rozbalí */

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;

  transition: grid-template-rows .45s cubic-bezier(.2, .8, .2, 1);
}

.faq-answer > div {
  overflow: hidden;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer p {
  margin: 0 24px 24px 64px;
  padding-top: 16px;
  border-top: 1px solid #EFE9E2;

  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;

  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .3s ease, transform .4s ease;
}

.faq-item.is-open .faq-answer p {
  opacity: 1;
  transform: none;
  transition-delay: .1s;
}

.faq-answer a {
  color: var(--forest);
  font-weight: 800;
}


/* TABLET */

@media (max-width: 900px) {
  .faq-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq-heading {
    position: static;
  }
}


/* MOBIL */

@media (max-width: 650px) {
  .faq {
    padding: 75px 6% 80px;
    border-radius: 20px;
  }

  .faq-heading h2 {
    letter-spacing: -2px;
  }

  .faq-description {
    font-size: 14px;
  }

  .faq-question {
    gap: 12px;
    padding: 18px 18px;
  }

  .faq-question small {
    display: none;
  }

  .faq-question span {
    font-size: 16px;
  }

  .faq-icon {
    width: 32px;
    height: 32px;
  }

  .faq-answer p {
    margin: 0 18px 20px;
    font-size: 13px;
  }
}


@media (prefers-reduced-motion: reduce) {
  .faq-answer,
  .faq-answer p,
  .faq-icon {
    transition: none;
  }
}
