/* =========================================================
   inPHARM 2026 – úpravy v rámci stávající grafické identity
   Načítá se až za styles8bb0.css, původní šablona zůstává beze změny.
   ========================================================= */

/* --- 1. Terapeutické oblasti: vycentrování bloků -------------------------
   Sekce je postavená na třech sloupcích; po odebrání jednoho bloku
   zůstávaly zbylé zarovnané doleva. */
.main-therap-areas > .container > .row,
.claim .row.claims {
  justify-content: center;
}

/* --- 2. Produktové fotografie se nesmí ořezávat ------------------------- */
.product .product-image {
  background: #f5f6f8;
  padding-top: 86%;
}
.product .product-image img {
  -o-object-fit: contain;
  object-fit: contain;
  padding: 16px;
  -webkit-transition: -webkit-transform 0.25s ease;
  transition: transform 0.25s ease;
}
.product:hover .product-image img {
  -webkit-transform: scale(1.04);
  transform: scale(1.04);
}

/* --- 3. Čitelnost textu -------------------------------------------------
   Původní pevná výška řádku 32 px byla u menších velikostí příliš volná
   a u větších naopak těsná. */
p {
  line-height: 1.75;
}
.html-content p,
.html-content li {
  font-size: 16px;
  line-height: 1.75;
}
.html-content h3 {
  margin-top: 2rem;
}
.html-content ul {
  padding-left: 1.25rem;
}
.html-content li {
  margin-bottom: 0.35rem;
}

/* Karty terapeutických oblastí – text se nesmí useknout */
.category .category-name {
  height: auto;
  min-height: 58px;
}
.category p {
  font-size: 16px;
  line-height: 1.7;
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}

/* Názvy produktů v mřížce */
.product .product-name {
  line-height: 1.35;
}

/* --- 4. Čitelnost titulku v hlavičce ------------------------------------
   Titulek leží na tmavé fotografii; bez jemného stínu se ztrácí. */
header .header-text h1,
header .header-text .claim-header,
header .header-text p {
  text-shadow: 0 2px 16px rgba(8, 16, 34, 0.55);
}

@media (max-width: 767px) {
  .header-text h1,
  header .header-text h1 {
    font-size: 30px;
    line-height: 1.2;
    text-shadow: 0 2px 14px rgba(10, 20, 40, 0.55);
  }
  .header-text .claim-header,
  .header-text p {
    text-shadow: 0 1px 10px rgba(10, 20, 40, 0.55);
  }
  h1, .h1, .sub-heading {
    font-size: 30px;
    line-height: 1.2;
  }
}

/* --- 5. Přístupnost ----------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #e00129;
  outline-offset: 2px;
}

/* Obsah musí být vidět i bez animací nebo bez JavaScriptu. */
@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1 !important;
    -webkit-transform: none !important;
            transform: none !important;
    -webkit-transition: none !important;
            transition: none !important;
  }
}

/* --- 6. Drobnosti ------------------------------------------------------- */
img {
  max-width: 100%;
}
/* Tabulky a dlouhý obsah nesmí rozbít šířku stránky na mobilu */
.html-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
}

/* --- 7. Lišta souhlasu s cookies ---------------------------------------- */
.inph-cookies {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(16, 24, 40, 0.55);
}
.inph-cookies__card {
  width: 100%;
  max-width: 640px;
  background: #ffffff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.35);
}
.inph-cookies__title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 10px;
  color: #1c2434;
}
.inph-cookies__text {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 18px;
  color: #4f586b;
}
.inph-cookies__text a {
  color: #e00129;
  text-decoration: underline;
}
.inph-cookies__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.inph-btn {
  flex: 1 1 160px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 18px;
  border-radius: 40px;
  cursor: pointer;
  border: 2px solid #e00129;
  transition: background 0.15s, color 0.15s;
}
.inph-btn--accept {
  background: #e00129;
  color: #ffffff;
}
.inph-btn--accept:hover {
  background: #b70120;
  border-color: #b70120;
}
.inph-btn--reject {
  background: #ffffff;
  color: #e00129;
}
.inph-btn--reject:hover {
  background: #fdeef1;
}
@media (min-width: 576px) {
  .inph-cookies { align-items: center; }
}


/* --- 8. Typografie produktových stránek --------------------------------
   Texty byly původně vloženy z textového editoru – různé velikosti,
   nejednotné odsazení. Sjednoceno do jedné škály. */
main .html-content {
  color: #4f586b;
}
main .html-content > h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #1c2434;
  margin: 2.5rem 0 0.9rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e6e9ef;
}
main .html-content > h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
main .html-content > p {
  margin: 0 0 1.05rem;
}
main .html-content > p,
main .html-content > ul li,
main .html-content > ol li {
  font-size: 16.5px;
  line-height: 1.72;
}

/* Uvozující popisek před seznamem – drží se seznamu */
main .html-content > p.spec-lead {
  margin-bottom: 0.45rem;
  color: #1c2434;
}

/* Odstavce typu „Popisek: hodnota“ – jednotný vzhled na celém webu */
main .html-content > p.spec {
  margin: 0 0 0.85rem;
}
main .html-content > p.spec > strong:first-child {
  color: #1c2434;
  font-weight: 600;
}

/* Seznamy */
main .html-content > ul {
  margin: 0 0 1.4rem;
  padding-left: 1.3rem;
}
main .html-content > ul li {
  margin-bottom: 0.4rem;
}
main .html-content > ul li::marker {
  color: #e00129;
}

/* Perex vedle fotografie */
.article-right > .html-content > p:first-child,
main .html-content > p:first-of-type strong:only-child {
  color: #1c2434;
}

/* Řádek sekce je flex kontejner – obsah musí zabrat celou šířku,
   jinak se tlačítko „KOUPIT“ zalomí vedle textu. */
section.text > .container > .row > .html-content,
section.text > .container > .row > .top,
section.text > .container > .row > .article-left {
  width: 100%;
}

/* Perex vedle fotografie si ponechává původní vzhled */
section.text .text-about .html-content > p.spec {
  padding: 0;
  border: 0;
  margin: 0;
}
section.text .text-about .html-content > p.spec strong {
  display: inline;
  min-width: 0;
  padding-right: 0;
}

/* --- 9. Animace a interakce ---------------------------------------------
   Jemné, v rámci stávající identity. Vše se vypíná při nastavení
   „omezit pohyb“ v systému (viz blok prefers-reduced-motion níže). */

/* Karty produktů */
.product {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(.2,.7,.3,1), box-shadow 0.28s ease;
}
.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(16, 24, 40, 0.14);
}
.product .product-image img {
  transition: transform 0.45s cubic-bezier(.2,.7,.3,1);
}
.product:hover .product-image img {
  transform: scale(1.06);
}

/* Karty terapeutických oblastí a claim-boxy */
.category,
.claim-box {
  transition: transform 0.28s cubic-bezier(.2,.7,.3,1), box-shadow 0.28s ease;
}
.category:hover,
.claim-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(16, 24, 40, 0.18);
}
.category .category-icon img,
.claim-box .image img {
  transition: transform 0.45s cubic-bezier(.2,.7,.3,1);
}
.category:hover .category-icon img,
.claim-box:hover .image img {
  transform: scale(1.08) rotate(-2deg);
}

/* Odkaz se šipkou – šipka se rozjede doprava */
.link-with-arrow {
  transition: color 0.2s ease;
}
.link-with-arrow::after {
  transition: transform 0.25s cubic-bezier(.2,.7,.3,1);
}
.product:hover .link-with-arrow::after,
.category:hover .link-with-arrow::after,
a:hover > .link-with-arrow::after,
.link-with-arrow:hover::after {
  transform: translateX(6px);
}

/* Tlačítka */
.btn {
  transition: transform 0.18s ease, box-shadow 0.22s ease, background-color 0.18s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(224, 1, 41, 0.28);
}
.btn:active {
  transform: translateY(0);
}

/* Pomalý nájezd fotografie v hlavičce */
@keyframes inphHeroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}
header .header-photo,
header.header-subpage .header-photo {
  animation: inphHeroZoom 14s ease-out both;
}

/* Podtržení odkazů v textu */
main .html-content a:not(.btn):not(.link-with-arrow) {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.25s ease;
}
main .html-content a:not(.btn):not(.link-with-arrow):hover {
  background-size: 100% 1px;
}

/* Nájezd lišty souhlasu */
@keyframes inphCookiesIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.inph-cookies__card {
  animation: inphCookiesIn 0.35s cubic-bezier(.2,.7,.3,1) both;
}
.inph-cookies {
  animation: inphCookiesIn 0.25s ease both;
}

/* Plynulé skákání na kotvy */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .product:hover,
  .category:hover,
  .claim-box:hover,
  .btn:hover {
    transform: none;
  }
}

/* Nájezd fotografie nesmí rozšířit stránku */
header,
header.header-subpage,
section.text .top .image {
  overflow: hidden;
}

/* --- 11. Dlouhý titulek v hlavičce podstránky na mobilu ------------------
   Hlavička měla pevnou výšku a titulek byl v ní absolutně vycentrovaný,
   takže třířádkový nadpis se ořízl. Nově hlavička roste podle textu
   a fotografie je na pozadí. */
@media (max-width: 767px) {
  header.header-subpage {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    min-height: 260px !important;
  }
  header.header-subpage .header-photo {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    -o-object-fit: cover;
       object-fit: cover;
  }
  header.header-subpage .header-text {
    position: relative;
    top: auto; right: auto; bottom: auto; left: auto;
    width: 100%;
    padding: 26px 15px;
  }
  /* Oddělovač se nesmí zalomit na samostatný řádek */
  header.header-subpage .breadcrumb {
    display: block;
    text-align: center;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
  }
  header.header-subpage .breadcrumb .breadcrumb-item {
    display: inline;
  }
  header.header-subpage .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    float: none;
  }
}

/* --- 12. Nájezdová animace menu nesmí na okamžik rozšířit stránku ------- */
body {
  overflow-x: hidden;
}

/* --- 13. Doplnění za soubory, které nebyly součástí exportu --------------
   Balíček je soběstačný: dekorativní pozadí, stín a šipka jsou řešené
   v CSS, nic se nepřebírá z původního serveru. */

/* Červená šipka u odkazů (nahrazuje images/arrow-red.png) */
.link-with-arrow:after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='6' viewBox='0 0 14 6'%3E%3Cpath d='M0 2.5h10.4V0L14 3l-3.6 3V3.5H0z' fill='%23e00129'/%3E%3C/svg%3E");
  background-size: 14px 6px;
}

/* Pozadí patičky (nahrazuje images/bg-footer.jpg) */
footer {
  background-image: -webkit-linear-gradient(top, #04193c 0%, #02102e 65%);
  background-image: linear-gradient(180deg, #04193c 0%, #02102e 65%);
}

/* Pozadí sekce terapeutických oblastí (nahrazuje images/bg-oblasti.jpg) */
section.main-therap-areas {
  background-image: -webkit-linear-gradient(top left, #d4032c 0%, #c80227 55%, #a80120 100%);
  background-image: linear-gradient(150deg, #d4032c 0%, #c80227 55%, #a80120 100%);
}

/* Stín pod claim-boxy (nahrazuje images/claim-shadow.png) */
.claims .claim-box:before {
  background-image: none !important;
}

/* Tlačítko mobilního menu je nyní <button> – vynulovat výchozí vzhled */
#hamburger {
  border: 0;
  padding: 0;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}
