/* === OBECNÉ NASTAVENÍ === */
[class*="biorepel"],
[id*="biorepel"] {
  font-family: "Inter", "Open Sans", sans-serif;
  color: #1d1d1b;
  line-height: 1.6;
  word-spacing: 0.05em;
}

/* ==== KONTEJNER ==== */
[class*="biorepel"] .od-wrapper {
  width: 100%;
  max-width: 1380px;
  margin: 30px auto;
  padding: 0 40px;
}

/* ==== BLOKY ==== */
[class*="biorepel"] .od-blok,
[class*="biorepel"] .od-blok-funguje,
[class*="biorepel"] .od-blok.chemie,
[class*="biorepel"] .od-blok-problem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: nowrap;
}

[class*="biorepel"] .od-obrazek,
[class*="biorepel"] .od-text {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

[class*="biorepel"] .od-obrazek img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: contain;
  margin: 0 auto;
}

/* ==== ZVĚTŠENÝ OBRÁZEK „PŘED A PO“ ==== */
[class*="biorepel"] .od-blok:first-of-type .od-obrazek img {
  width: 115%;
  max-width: none;
  margin-left: -7%;
}

/* ==== TEXT / NADPISY ==== */
[class*="biorepel"] .od-text {
  text-align: left;
  align-items: flex-start;
}

/* >>> sjednocená velikost všech nadpisů <<< */
[class*="biorepel"] .od-text h2 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  color: #1d1d1b;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3em;
}

[class*="biorepel"] .od-text h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #1d1d1b;
  margin-top: 4px;
  margin-bottom: 14px;
}

[class*="biorepel"] .od-text p {
  font-size: 1.05rem;
  margin-bottom: 14px;
}

/* ==== BLOK FUNGUJE ==== */
[class*="biorepel"] .od-blok-funguje {
  margin-bottom: 60px;
}

[class*="biorepel"] .funguje-obrazky {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 25px;
}

/* Láhev */
[class*="biorepel"] .funguje-biorepel {
  width: 200px;
  height: auto;
  display: block;
}

/* === Animace (šipka + Pythium vpravo) === */
[class*="biorepel"] .funguje-animace {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center right;
}

/* Šipka */
[class*="biorepel"] .funguje-sipka {
  position: absolute;
  bottom: -12px;
  left: 30%;
  width: 40px;
  height: auto;
  transform: rotate(-10deg);
  z-index: 0;
  opacity: 0.9;
}

/* Kruh vpravo (Pythium) */
[class*="biorepel"] .funguje-pythium {
  width: 120px;
  height: auto;
  border-radius: 50%;
  position: relative;
  top: -20px;
  z-index: 1;
  transform: scale(0.2);
  transform-origin: center center;
  transition: transform 0.3s ease;
}

/* ==== BLOK: IKONY ==== */
[class*="biorepel"] .od-ikony-5-radek {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  flex-wrap: wrap;
  margin: 40px auto;
  max-width: 1000px;
}

[class*="biorepel"] .od-ikony-5-radek-ikona {
  flex: 1 1 180px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

[class*="biorepel"] .od-ikony-5-radek-ikona img {
  width: 80px;
  height: auto;
  margin-bottom: 10px;
}

[class*="biorepel"] .od-ikony-5-radek-ikona p {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1d1d1b;
  line-height: 1.4;
  min-height: 3.5em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* ==== BLOK PROBLÉM ==== */
[class*="biorepel"] .od-blok-problem .od-text h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: #1d1d1b;
  line-height: 1.2;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
}

/* === zvýraznění pro „vážnější problém“ === */
[class*="biorepel"] .zvyraz-problem {
  position: relative;
  display: inline-block;
  color: #188f3d;
  font-weight: 800;
  z-index: 1;
  white-space: nowrap;
}

[class*="biorepel"] .zvyraz-problem::before {
  content: "";
  position: absolute;
  bottom: 0.08em;
  left: 0;
  width: 100%;
  height: 0.8em;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center bottom;
  background-image: url("/user/documents/upload/zvyrazneni_bojovat.svg");
  opacity: 1;
}

/* ==== BLOK 3 KROKY ==== */
[class*="biorepel"] .bojovani-tri-kroky {
  width: 100%;
  margin: 40px auto 60px;
  text-align: center;
}

[class*="biorepel"] .bojovani-tri-kroky-inner {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

[class*="biorepel"] .bojovani-krok {
  flex: 1 1 250px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

[class*="biorepel"] .bojovani-krok img {
  width: 100%;
  height: auto;
  margin-bottom: 12px;
}

[class*="biorepel"] .bojovani-krok p {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  color: #1d1d1b;
  text-align: center;
}

/* ==== BLOK CHEMIE ==== */
[class*="biorepel"] .od-blok.chemie .od-obrazek img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ==== ZVÝRAZNĚNÍ SPOLEČNÁ ==== */
[class*="biorepel"] .zvyraz-ochrani,
[class*="biorepel"] .zvyraz-funguje,
[class*="biorepel"] .zvyraz-bojovat,
[class*="biorepel"] .zvyraz-neni-reseni {
  position: relative;
  display: inline-block;
  color: #188f3d;
  font-weight: 800;
  z-index: 1;
  margin-left: 0.25em; /* 👈 mezera mezi slovy (plísni bojovat apod.) */
}

[class*="biorepel"] .zvyraz-ochrani::before,
[class*="biorepel"] .zvyraz-funguje::before,
[class*="biorepel"] .zvyraz-bojovat::before,
[class*="biorepel"] .zvyraz-neni-reseni::before {
  content: "";
  position: absolute;
  bottom: 0.08em;
  left: 0;
  width: 100%;
  height: 0.8em;
  z-index: -1;
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center bottom;
  opacity: 1;
}
[class*="biorepel"] .zvyraz-ochrani::before {
  background-image: url("/user/documents/upload/zvyrazneni_ochranidomacnost.svg");
}
[class*="biorepel"] .zvyraz-funguje::before {
  background-image: url("/user/documents/upload/zvyrazneni_funguje.svg");
}
[class*="biorepel"] .zvyraz-bojovat::before {
  background-image: url("/user/documents/upload/zvyrazneni_bojovat.svg");
}
[class*="biorepel"] .zvyraz-neni-reseni::before {
  background-image: url("/user/documents/upload/zvyrazneni_nenireseni.svg");
}

/* ==== RESPONSIVE ==== */
@media (max-width: 1200px) {
  [class*="biorepel"] .od-wrapper {
    max-width: 95%;
    padding: 0 25px;
    margin: 20px auto;
  }

  [class*="biorepel"] .od-text h2 {
    font-size: 2rem;
  }

  [class*="biorepel"] .funguje-pythium {
    transform: scale(0.18);
  }
}

/* ==== MOBILNÍ CENTRACE === */
@media (max-width: 900px) {
  /* všechny obecné bloky pod sebou */
  [class*="biorepel"] .od-blok,
  [class*="biorepel"] .od-blok-funguje,
  [class*="biorepel"] .od-blok.chemie,
  [class*="biorepel"] .od-blok-problem {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* texty a nadpisy */
  [class*="biorepel"] .od-text,
  [class*="biorepel"] .od-text h2,
  [class*="biorepel"] .od-text h3,
  [class*="biorepel"] .od-text p {
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* zvýraznění */
  [class*="biorepel"] .zvyraz-ochrani,
  [class*="biorepel"] .zvyraz-funguje,
  [class*="biorepel"] .zvyraz-bojovat,
  [class*="biorepel"] .zvyraz-neni-reseni,
  [class*="biorepel"] .zvyraz-problem {
    text-align: center;
    margin: 0 auto;
  }

  /* všechny obrázky na střed */
  [class*="biorepel"] img {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  /* ikony a texty pod nimi */
  [class*="biorepel"] .od-ikony-5-radek,
  [class*="biorepel"] .od-ikony-5-radek-ikona {
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* speciálně centrování obrázků „před a po“, „zed“ a „chemie“ */
  [class*="biorepel"] .od-blok:first-of-type .od-obrazek img,
  [class*="biorepel"] .od-blok-problem .od-obrazek img,
  [class*="biorepel"] .od-blok.chemie .od-obrazek img {
    margin: 0 auto;
    display: block;
  }
}
