.faq {
  width: 95%;
  margin: 0;
  padding: 0;
  background: #ffffff;
  box-sizing: border-box;
}
.faq * {
  box-sizing: border-box;
}
.faq-header {
  margin-bottom: 10px;
  padding: 0 0 10px 0;
}
.faq-header h4 {
  color: #8b4513;
  margin: 0 0 10px 0;
  font-size: 28px;
  font-weight: 600;
}
.faq-container {
  margin: 0 0 20px 0;
}
.faq-item {
  margin: 0 0 10px 0;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 20px 25px;
  background: #f9f7f2 !important;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
  font-family: inherit;
  font-size: 18px;
  color: #333 !important;
  font-weight: 500;
  text-decoration: none !important;
}
.faq-question:hover {
  background: #f5f0e6 !important;
}
.faq-question:active {
  background: #f5f0e6 !important;
}
.faq-question:focus {
  background: #f5f0e6 !important;
  outline: 2px solid #8b4513;
  outline-offset: 2px;
}
.faq-question[aria-expanded="true"] {
  background: #f5f0e6 !important;
}
.question-text {
  flex: 1;
  margin-right: 15px;
  color: #8b4513 !important;
}
.faq-toggle {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}
.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  background: #8b4513;
  transition: transform 0.3s;
}
.faq-toggle::before {
  width: 2px;
  height: 12px;
  left: 9px;
  top: 4px;
}
.faq-toggle::after {
  width: 12px;
  height: 2px;
  left: 4px;
  top: 9px;
}
.faq-question[aria-expanded="true"] .faq-toggle::before {
  transform: rotate(90deg);
}
.faq-question[aria-expanded="true"] .faq-toggle::after {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  background: #ffffff;
}
.faq-answer.open {
  padding: 10px 25px 20px 25px;
  max-height: 2000px;
}
.faq-answer p {
  margin: 0 0 15px 0;
  line-height: 1.6;
  color: #444;
}
.faq-answer ul,
.faq-answer ol {
  margin: 10px 0 10px 10px;
  padding: 0;
}
.faq-answer li {
  margin: 0 0 8px 0;
  line-height: 1.5;
  color: #444;
}
.faq-answer strong {
  color: #8b4513;
  font-weight: 600;
}
.faq-note {
  background: #f8f8f8;
  padding: 15px;
  margin: 15px 0 0 0;
  border-left: 4px solid #8b4513;
}
.faq-note strong {
  color: #8b4513;
}
@media (max-width: 768px) {
  .faq {
    padding: 0;
  }
  .faq-header h4 {
    font-size: 24px;
  }
  .faq-question {
    padding: 18px 20px;
    font-size: 16px;
  }
  .faq-answer.open {
    padding: 10px;
  }
}
.faq-question:focus:not(:focus-visible) {
  outline: none;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.faq-answer.open p,
.faq-answer.open ul,
.faq-answer.open ol {
  animation: fadeIn 0.3s ease-out;
}

/* Tabulky uvnitř FAQ */
.faq-answer table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  font-size: 15px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
}

.faq-answer th,
.faq-answer td {
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  text-align: left;
  line-height: 1.5;
}

.faq-answer th {
  background: #f9f7f2;
  color: #8b4513;
  font-weight: 600;
}

.faq-answer tr:nth-child(even) td {
  background: #fafafa;
}

.faq-answer tr:hover td {
  background: #f5f0e6;
}

/* mobilní scroll bez rozbití šířky */
.faq-answer {
  overflow-x: auto;
}

/* menší řádkování v otevřené odpovědi */
.faq-answer.open p,
.faq-answer.open li,
.faq-answer.open td {
  line-height: 1.25;
}