
.faq-hero {
  position: relative;
  height: 50vh;
  min-height: 360px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.faq-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('pictures/background.png');
  background-size: cover;
  background-position: center 40%;
  -webkit-transform: scale(1.04);
  transform: scale(1.04);
}

.faq-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 11, 18, 0.5) 0%,
    rgba(8, 11, 18, 0.72) 60%,
    rgba(8, 11, 18, 1) 100%
  );
}

.faq-hero__content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
}

.faq-hero__sub {
  max-width: 440px;
  margin: 0 auto;
}



.faq-main {
  padding: 64px 24px 100px;
}

.faq-inner {
  max-width: 760px;
  margin: 0 auto;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 56px;
}



.faq-group__title {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0.85;
  margin-bottom: 16px;
}



.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  -webkit-transition: border-color 0.22s;
  transition: border-color 0.22s;
  margin-bottom: 10px;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item.open {
  border-color: rgba(224, 32, 32, 0.28);
  background: rgba(224, 32, 32, 0.03);
}



.faq-item__q {
  width: 100%;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  -webkit-transition: background 0.18s;
  transition: background 0.18s;
}

.faq-item__q:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-item__q span {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
}



.faq-item__icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s;
}

.faq-item.open .faq-item__icon {
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
  color: var(--red);
}



.faq-item__a {
  max-height: 0;
  overflow: hidden;
  -webkit-transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                      padding 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .faq-item__a {
  max-height: 400px;
  padding-top: 17px;
}

.faq-item__a p {
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--muted);
  padding: 0 22px 20px;
  font-weight: 300;
}

.faq-item__a p strong {
  color: var(--text);
  font-weight: 600;
}

.faq-item__a p a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  -webkit-transition: opacity 0.18s;
  transition: opacity 0.18s;
}

.faq-item__a p a:hover {
  opacity: 0.75;
}

/* ── Oddělovač mezi otázkou a odpovědí ── */

.faq-item.open .faq-item__q {
  border-bottom: 1px solid var(--border);
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 640px) {
  .faq-item__q span { font-size: 14.5px; }
  .faq-item__q { padding: 17px 18px; }
  .faq-item__a p { padding: 0 18px 18px; font-size: 14.5px; }
  .faq-hero { height: 42vh; }
}
