/* ==========================================================================
   TG CATEGORY – spodní blok kategorie (benefity, text, délky, FAQ, recenze)
   Vše je pod .tg-cat, globální selektory ani třídy webu se nepřepisují.
   Zlomy: 991px (tablet), 575px (mobil).
   ========================================================================== */

.tg-cat {
  --tg-black: #000;
  --tg-white: #fff;
  --tg-grey: #555;          /* sekundární text, kontrast 7,5 : 1 */
  --tg-grey-eyebrow: #6f6f6f;
  --tg-line: #828282;       /* jen linky */
  --tg-bg: #f4f4f4;
  --tg-star: #ffd700;
  --tg-hairline: .5px solid var(--tg-line);
  --tg-radius: 3px;
  --tg-font: "Montserrat", sans-serif;
  --tg-font-eyebrow: "Arimo", Arial, sans-serif;
  --tg-gap: 48px;

  margin: 40px 0 16px;
  font-family: var(--tg-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: .7px;
  color: var(--tg-black);
  text-align: center;
}

.tg-cat > * + * { margin-top: var(--tg-gap); }
.tg-cat strong { font-weight: 500; }
.tg-cat a { color: var(--tg-black); text-decoration: underline; }
.tg-cat a:hover { color: var(--tg-grey); }
.tg-cat img { max-width: 100%; height: auto; }

/* ---------- společné: nadtitulek + nadpis ---------- */
.tg-cat .tg-cat__eyebrow {
  margin: 0 0 6px;
  font-family: var(--tg-font-eyebrow);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--tg-grey-eyebrow);
}
.tg-cat .tg-cat__title {
  margin: 0;
  padding: 0;
  font-family: var(--tg-font);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .3px;
  text-transform: none;
  color: var(--tg-black);
}

/* ---------- úvodní text ---------- */
.tg-cat__intro { max-width: 640px; margin-left: auto; margin-right: auto; }
.tg-cat .tg-cat__lead { margin: 12px 0 0; }
.tg-cat .tg-cat__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 8px;
  row-gap: 2px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--tg-grey);
}
.tg-cat .tg-cat__fact { margin: 0; padding: 0; background: none; }
.tg-cat .tg-cat__fact::before { content: none; }
.tg-cat .tg-cat__fact:not(:last-child)::after { content: "·"; display: inline; margin-left: 8px; position: static; background: none; }
.tg-cat .tg-cat__fact strong { color: var(--tg-black); }

/* ---------- benefity ---------- */
.tg-cat__benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 28px 0;
  border-top: var(--tg-hairline);
  border-bottom: var(--tg-hairline);
}
.tg-cat__benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px;
}
.tg-cat__benefit + .tg-cat__benefit { border-left: var(--tg-hairline); }
.tg-cat .tg-cat__benefit-icon { display: block; width: 40px; height: 40px; margin: 0 0 12px; }
.tg-cat .tg-cat__benefit-title {
  margin: 0;
  font-family: var(--tg-font);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--tg-black);
}
.tg-cat .tg-cat__benefit-text { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: var(--tg-grey); }

/* ---------- délky ---------- */
.tg-cat__lengths {
  padding: 40px 32px 32px;
  background: var(--tg-bg);
  border-radius: var(--tg-radius);
}
.tg-cat__length-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}
.tg-cat__length { padding: 4px 16px; }
.tg-cat__length + .tg-cat__length { border-left: var(--tg-hairline); }
.tg-cat .tg-cat__length-name {
  margin: 0;
  font-family: var(--tg-font);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--tg-black);
}
.tg-cat .tg-cat__length-value { margin: 4px 0 0; font-size: clamp(24px, 3vw, 30px); font-weight: 500; line-height: 1.15; letter-spacing: 0; white-space: nowrap; }
.tg-cat .tg-cat__length-unit { margin: 4px 0 0; font-size: 13px; color: var(--tg-grey); }
.tg-cat .tg-cat__note { margin: 24px 0 0; font-size: 13px; color: var(--tg-grey); }

/* ---------- FAQ ---------- */
.tg-cat__faq { max-width: 720px; margin-left: auto; margin-right: auto; }
.tg-cat__faq .tg-cat__title { margin-bottom: 24px; }
.tg-cat .tg-cat__faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--tg-hairline);
  text-align: left;
}
.tg-cat .tg-cat__faq-item { margin: 0; padding: 0; background: none; border-bottom: var(--tg-hairline); }
.tg-cat .tg-cat__faq-item::before { content: none; }
.tg-cat .tg-cat__faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 14px 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-family: var(--tg-font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .3px;
  text-align: left;
  text-transform: none;
  color: var(--tg-black);
  cursor: pointer;
}
.tg-cat .tg-cat__faq-q:focus-visible { outline: 2px solid var(--tg-black); outline-offset: 3px; }
.tg-cat .tg-cat__faq-icon { flex: 0 0 20px; width: 20px; height: 20px; object-fit: contain; transition: transform .3s ease; }
.tg-cat .tg-cat__faq-q[aria-expanded="true"] .tg-cat__faq-icon { transform: rotate(180deg); }
.tg-cat .tg-cat__faq-a {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .3s ease, visibility 0s linear .3s;
}
.tg-cat .tg-cat__faq-q[aria-expanded="true"] + .tg-cat__faq-a {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .3s ease, visibility 0s;
}
.tg-cat .tg-cat__faq-a-inner { min-height: 0; overflow: hidden; }
.tg-cat .tg-cat__faq-a-inner p { margin: 0; padding: 0 40px 20px 0; line-height: 22px; color: var(--tg-grey); }
.tg-cat .tg-cat__faq-a-inner strong { color: var(--tg-black); }

/* ---------- recenze (obsah vkládá tg-category.js) ---------- */
/* do načtení nezabírá místo; nesmí mít display:none (sleduje ho IntersectionObserver)
   a editor do něj vkládá &nbsp;, proto žádné :empty */
.tg-cat > .tg-cat__reviews:not(.is-ready) {
  margin-top: 0;
  min-height: 1px;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}
.tg-cat__review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
  text-align: left;
}
.tg-cat__review {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--tg-white);
  border: var(--tg-hairline);
  border-radius: var(--tg-radius);
}
.tg-cat__review-head { display: flex; align-items: center; gap: 12px; }
.tg-cat__review-avatar {
  display: flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tg-black);
  color: var(--tg-white);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}
.tg-cat__review-meta { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.tg-cat .tg-cat__review-name {
  margin: 0;
  overflow: hidden;
  font-family: var(--tg-font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .3px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--tg-black);
}
.tg-cat__review-stars { font-size: 14px; line-height: 1; letter-spacing: 1px; color: var(--tg-star); }
.tg-cat .tg-cat__review-source { display: block; flex: none; width: 28px; height: 28px; }
.tg-cat .tg-cat__review-source--heureka { width: 40px; height: 40px; }
.tg-cat .tg-cat__review-text { margin: 0; font-size: 13px; line-height: 1.6; }
.tg-cat__more-wrap { margin-top: 24px; }
.tg-cat .tg-cat__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid var(--tg-black);
  border-radius: var(--tg-radius);
  background: var(--tg-black);
  color: var(--tg-white);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .3s, color .3s;
}
.tg-cat .tg-cat__more:hover { background: var(--tg-white); color: var(--tg-black); text-decoration: none; }
.tg-cat .tg-cat__more:focus-visible { outline: 2px solid var(--tg-black); outline-offset: 3px; }
.tg-cat__reviews .tg-cat__title { text-transform: uppercase; letter-spacing: 1px; }

/* ---------- tablet ---------- */
@media (max-width: 991px) {
  .tg-cat__benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; border-bottom: 0; }
  .tg-cat__benefit { padding: 20px 8px; border-bottom: var(--tg-hairline); }
  .tg-cat__benefit + .tg-cat__benefit { border-left: 0; }
  .tg-cat__benefit:nth-child(2n) { border-left: var(--tg-hairline); }
}

/* ---------- mobil ---------- */
@media (max-width: 575px) {
  .tg-cat { --tg-gap: 40px; margin-top: 32px; }
  .tg-cat .tg-cat__title { font-size: 22px; }
  .tg-cat .tg-cat__eyebrow { font-size: 12px; }
  .tg-cat .tg-cat__facts { font-size: 12px; }
  .tg-cat .tg-cat__benefit-icon { width: 36px; height: 36px; margin-bottom: 10px; }
  .tg-cat .tg-cat__benefit-title,
  .tg-cat .tg-cat__benefit-text { font-size: 12px; }

  .tg-cat__lengths { padding: 32px 16px 24px; }
  .tg-cat__length-grid { grid-template-columns: 1fr; margin-top: 12px; }
  .tg-cat__length { padding: 14px 0; }
  .tg-cat__length + .tg-cat__length { border-left: 0; border-top: var(--tg-hairline); }
  .tg-cat .tg-cat__length-name,
  .tg-cat .tg-cat__length-unit { font-size: 12px; }
  .tg-cat .tg-cat__length-value { font-size: clamp(24px, 7vw, 30px); margin-top: 2px; }
  .tg-cat .tg-cat__note { margin-top: 12px; }

  .tg-cat__faq .tg-cat__title { margin-bottom: 20px; }
  .tg-cat .tg-cat__faq-q { min-height: 60px; gap: 16px; font-size: 15px; }
  .tg-cat .tg-cat__faq-icon { flex-basis: 18px; width: 18px; height: 18px; }
  .tg-cat .tg-cat__faq-a-inner p { padding-right: 0; }

  .tg-cat__review-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
  .tg-cat__review { gap: 10px; padding: 16px; }
  .tg-cat__review-head { gap: 10px; }
  .tg-cat__review-avatar { flex-basis: 34px; width: 34px; height: 34px; font-size: 13px; }
  .tg-cat .tg-cat__review-source { width: 26px; height: 26px; }
  .tg-cat .tg-cat__review-source--heureka { width: 36px; height: 36px; }
  .tg-cat__more-wrap { margin-top: 20px; }
  .tg-cat .tg-cat__more { display: flex; width: 100%; box-sizing: border-box; font-size: 15px; }
}
