.mth-faq {
  padding: 0;
  background: var(--mth-light);
}

.mth-faq__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  align-items: start;
  /* misto pro odpoved otevrenou u posledni otazky dopocita script.js */
  transition: padding-bottom 0.35s ease;
}
.mth-faq__col {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* misto pro zavrenou kartu - vysku dosadi script.js */
.mth-faq__slot {
  position: relative;
  height: 95px;
}

/* --------------------------------- karta --------------------------------- */
/* Ramecek je inset stin, ne border - vyska karty pak presne odpovida vysce
   obsahu a nemusi se nikde pripocitavat 2 px. */
.mth-faq__item {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 95px;
  overflow: hidden;
  border-radius: var(--mth-radius);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--mth-line);
  transition:
    height 0.35s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}
.mth-faq__item.is-open {
  z-index: 5;
  background: var(--mth-brown);
  box-shadow: 0 18px 40px rgba(63, 30, 13, 0.18);
}

/* --------------------------------- otazka -------------------------------- */
/* Vyska otazky se nemeni ani po otevreni - z ni se pocita vyska slotu. */
.mth-faq__q {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  min-height: 95px;
  padding: 22px 36px;
  margin: 0;
  border: 0;
  background: none;
  font-family: var(--mth-font-body);
  font-size: 25px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #000;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s ease;
}
.mth-faq__q > span:first-child {
  flex: 1 1 auto;
}
.mth-faq__item.is-open .mth-faq__q {
  color: #fff;
}

.mth-faq__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 41px;
  height: 41px;
  flex: 0 0 41px;
  border-radius: 50%;
  background: var(--mth-brown);
  color: #fff;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}
.mth-faq__ico svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mth-faq__item.is-open .mth-faq__ico {
  background: var(--mth-yellow);
  transform: rotate(90deg);
}

/* -------------------------------- odpoved -------------------------------- */
/* Odpoved je uvnitr karty a je oriznuta jejim overflow:hidden. Lehky posun
   nahoru + prolnuti dela dojem, ze text vyjizdi zpod otazky. */
.mth-faq__a-in {
  padding-bottom: 30px;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.22s ease,
    transform 0.35s ease;
}
.mth-faq__item.is-open .mth-faq__a-in {
  opacity: 1;
  transform: none;
  transition-delay: 0.06s;
}
.mth-faq__a-in p {
  margin: 0;
  padding: 0 36px;
  font-size: 16px;
  line-height: 23px;
  color: #fff;
}
.mth-faq__a-in p + p {
  margin-top: 12px;
}
.mth-faq__a-in a {
  color: #fff;
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .mth-faq__cols,
  .mth-faq__item,
  .mth-faq__q,
  .mth-faq__ico,
  .mth-faq__a-in {
    transition: none;
  }
}

@media (max-width: 991px) {
  .mth-faq__cols {
    grid-template-columns: 1fr;
  }
  .mth-faq__slot,
  .mth-faq__item {
    height: 78px;
  }
  .mth-faq__q {
    min-height: 78px;
    padding: 18px 24px;
    gap: 14px;
    font-size: 20px;
  }
  .mth-faq__a-in {
    padding-bottom: 24px;
  }
  .mth-faq__a-in p {
    padding-inline: 24px;
  }
}
