﻿/* === FAQ === */


.faq{
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}


/* Jedna položka */
.faq-item{
  margin: 0 0 12px 0;
  border: 1px solid #bbb2a3;
  border-radius: 0;
  background: #f3e9e1;
  overflow: hidden;
}


/* Klikací hlavička (summary) */
.faq-item > summary{
  list-style: none;
  cursor: pointer;


  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;


  padding: 14px 16px;


  font: inherit;
  color: inherit;


  background: #f3e9e1;
  border-bottom: 1px solid rgba(187,178,163,0);


  transition: background-color .15s ease, border-color .15s ease;
}


/* Skrytí markeru v Safari/Chromu */
.faq-item > summary::-webkit-details-marker{
  display: none;
}


/* Text otázky */
.faq-q{
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;


  flex: 1 1 auto;
  min-width: 0;
  color: inherit;
}


/* Ikona vlevo */
.faq-icon{
  flex: 0 0 auto;
  width: 28px;
  height: 28px;


  display: inline-flex;
  align-items: center;
  justify-content: center;


  border-radius: 999px;
  background: #fff;
  border: 1px solid #bbb2a3;
  color: inherit;


  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}


/* SVG chevron */
.faq-chevron{
  width: 16px;
  height: 16px;
  display: block;
}


/* Odpověď */
.faq-a{
  padding: 14px 16px 16px 16px;
  font: inherit;
  color: inherit;
  line-height: 1.55;
  background: #fbf7f5;
  border-top: 1px solid #bbb2a3;
}


/* Odkazy uvnitř odpovědi */
.faq-a a{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.faq-a a:hover{
  color: inherit;
}


/* Stav otevřeno */
.faq-item[open] > summary{
  background: #f3e9e1;
  border-bottom-color: transparent;
}


/* Otevřeno: šipka se otočí nahoru */
.faq-item[open] .faq-icon{
  transform: rotate(180deg);
  background: #fff;
  border-color: #bbb2a3;
}


/* Hover */
.faq-item > summary:hover{
  background: #f3e9e1;
}


/* Focus pro klávesnici */
.faq-item > summary:focus-visible{
  outline: 2px solid #bbb2a3;
  outline-offset: 2px;
}


/* Mobil */
@media (max-width: 640px){
  .faq{
    max-width: 100%;
  }


  .faq-item > summary{
    padding: 12px 14px;
    gap: 10px;
  }


  .faq-a{
    padding: 12px 14px 14px 14px;
  }


  .faq-q{
    font-size: 14px;
  }
}