/* ==========================================================================
   TOONEXY FAQ CSS — Specifični stilovi za FAQ stranicu
   ========================================================================== */

.toonexyFaq {
  width: min(100%, 980px);
  position: relative;
  margin: 30px auto 20px;
  padding: clamp(26px, 5vw, 52px);
  overflow: hidden;
  border: 5px solid #171717;
  background: radial-gradient(rgba(23, 23, 23, 0.12) 1px, transparent 1px), #fffdf5;
  background-size: 8px 8px;
  box-shadow: 10px 10px 0 #171717, 20px 20px 0 #e5322d;
}

.toonexyFaq::before,
.toonexyFaq::after {
  position: absolute;
  z-index: 0;
  width: 130px;
  height: 130px;
  border: 5px solid #171717;
  content: "";
  opacity: 0.95;
}

.toonexyFaq::before {
  top: -72px;
  left: -62px;
  background: #ffd52e;
  transform: rotate(19deg);
}

.toonexyFaq::after {
  right: -62px;
  bottom: -72px;
  background: #3d8ee8;
  transform: rotate(19deg);
}

.toonexyFaq > * {
  position: relative;
  z-index: 1;
}

.faqHero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 0 auto 26px;
}

.faqLogoLink {
  display: inline-block;
  border-radius: 28%;
  line-height: 0;
}

.faqLogoLink:focus-visible {
  outline: 3px solid #3d8ee8;
  outline-offset: 5px;
}

.faqLogo {
  display: block;
  width: 112px;
  height: 112px;
  border: 4px solid #171717;
  border-radius: 28%;
  background: #ffffff;
  box-shadow: 5px 5px 0 #171717;
  object-fit: cover;
  transform: rotate(-4deg);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.faqLogoLink:hover .faqLogo {
  transform: translate(3px, 3px) rotate(-4deg);
  box-shadow: 2px 2px 0 #171717;
}

.faqHeroText {
  max-width: 560px;
}

.faqBurst {
  display: inline-block;
  margin-bottom: 15px;
  padding: 7px 13px;
  border: 3px solid #171717;
  background: #6eb3ff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  transform: rotate(-4deg);
}

.faqKicker {
  margin: 0 0 13px;
  color: #e5322d;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
}

#faqTitle {
  margin: 0;
  color: #171717;
  font-size: clamp(32px, 6vw, 64px);
  font-style: italic;
  font-weight: 950;
  letter-spacing: -2px;
  line-height: 1;
  text-shadow: 3px 3px 0 #ffd52e, 6px 6px 0 #e5322d;
  text-transform: uppercase;
}

.faqIntro {
  max-width: 720px;
  margin: 0 auto 28px;
  padding: 15px 17px;
  border: 3px solid #171717;
  background: #6eb3ff;
  box-shadow: 4px 4px 0 #171717;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.faqList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 780px;
  margin: 0 auto;
}

.faqItem {
  padding: 18px;
  border: 3px solid #171717;
  background: #ffffff;
  box-shadow: 4px 4px 0 #171717;
}

.faqItem:nth-child(3n + 1) { background: #fff7c5; }
.faqItem:nth-child(3n + 2) { background: #e4f0ff; }
.faqItem:nth-child(3n) { background: #ffe1df; }

.faqQuestion {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.faqQuestion::before {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid #171717;
  border-radius: 50%;
  background: #ffffff;
  content: "?";
  font-size: 18px;
  font-weight: 900;
}

.faqAnswer { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.5; }
.faqAnswer strong { font-weight: 900; }

.cromWord {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  cursor: help;
}

.cromWord:focus-visible { outline: 2px solid #3d8ee8; outline-offset: 2px; }

#cromPreview {
  position: fixed;
  z-index: 1000;
  display: none;
  width: min(400px, calc(100vw - 20px));
  height: min(400px, calc(100vh - 20px));
  object-fit: contain;
  background: #ffffff;
  border: 3px solid #171717;
  box-shadow: 5px 5px 0 #171717;
  pointer-events: none;
}

#cromPreview.isVisible { display: block; }

.faqFooter {
  max-width: 780px;
  margin: 26px auto 0;
  padding: 14px 16px;
  border: 3px solid #171717;
  background: #ffffff;
  box-shadow: 3px 3px 0 #171717;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.faqBackLink {
  display: inline-block;
  margin-top: 10px;
  color: #111111;
  font-size: 14px;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.faqBackLink:hover { color: #e5322d; }
.faqBackLink:focus-visible { outline: 3px solid #3d8ee8; outline-offset: 3px; }

@media (max-width: 700px) {
  .toonexyFaq { margin-top: 18px; padding: 20px 12px; }
  .faqHero { flex-direction: column; gap: 16px; text-align: center; }
  .faqHeroText { max-width: 100%; }
  #faqTitle { letter-spacing: -1px; }
  .faqList { grid-template-columns: 1fr; }
}