.hor-pp {
  --hor-pp-navy: #202867;
  --hor-pp-yellow: #FFCF3F;
  --hor-pp-white: #fff;
  --hor-pp-bg: #f7faff;
  --hor-pp-soft: #edf5ff;
  --hor-pp-line: #dfe7f3;
  --hor-pp-muted: #5f6d86;
  --hor-pp-red: #a83838;
  --hor-pp-radius: 18px;
  --hor-pp-shadow: 0 12px 32px rgba(32,40,103,.07);
  color: var(--hor-pp-navy);
  font-family: inherit;
  box-sizing: border-box;
}
.hor-pp *, .hor-pp *::before, .hor-pp *::after { box-sizing: border-box; }

/* Wyłączamy wyłącznie stare prezentacyjne bloki Woo/Elementor, które dublują nasz layout. */
body.hor-pp-enabled div.product > .summary.entry-summary { display: none !important; }
body.hor-pp-enabled div.product { display: block !important; width: 100% !important; }
body.hor-pp-enabled .woocommerce div.product div.images,
body.hor-pp-enabled .woocommerce div.product div.summary { float: none !important; width: auto !important; }
body.hor-pp-enabled .woocommerce-tabs,
body.hor-pp-enabled .related.products,
body.hor-pp-enabled .upsells.products,
body.hor-pp-enabled .elementor-widget-woocommerce-product-content,
body.hor-pp-enabled .elementor-widget-woocommerce-product-data-tabs { display: none !important; }
body.hor-pp-enabled .woocommerce-notices-wrapper { max-width: 1240px; margin-left: auto; margin-right: auto; }
body.hor-pp-enabled .woocommerce-breadcrumb { max-width: 1240px; margin: 18px auto 22px !important; padding: 0 10px; font-size: 13px !important; line-height: 1.45; }

.hor-pp--shop-v4 { width: min(1240px, calc(100% - 28px)); max-width: 1240px; margin: 0 auto; }

/* HERO — układ sklepowy 3 kolumny */
.hor-pp__commerce-hero {
  display: grid;
  grid-template-columns: minmax(250px, 34fr) minmax(255px, 39fr) minmax(220px, 27fr);
  gap: 22px;
  align-items: stretch;
  margin: 0 0 14px;
  padding: 20px;
  border: 1px solid #e4edf8;
  border-radius: 20px;
  background: linear-gradient(135deg, #f1f7ff 0%, #fbfdff 52%, #f0f6fd 100%);
}

.hor-pp__gallery-card { min-width: 0; }
.hor-pp__main-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 345px;
  margin: 0;
  padding: 8px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(32,40,103,.055);
}
.hor-pp__main-image { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
.hor-pp__thumbs { display: flex; gap: 8px; margin-top: 9px; overflow-x: auto; padding: 1px 1px 3px; }
.hor-pp__thumb { flex: 0 0 58px; width: 58px; height: 58px; padding: 3px; border: 2px solid transparent; border-radius: 9px; background: #fff; cursor: pointer; }
.hor-pp__thumb.is-active { border-color: var(--hor-pp-yellow); }
.hor-pp__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.hor-pp__image-placeholder img { display: block; width: 100%; height: auto; }

.hor-pp__product-copy { align-self: center; min-width: 0; padding: 4px 0; }
.hor-pp__eyebrow { font-size: 11px; line-height: 1.25; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; color: #2f5f9d; }
.hor-pp__title { margin: 7px 0 8px !important; color: var(--hor-pp-navy) !important; font-size: clamp(34px, 3.7vw, 50px) !important; line-height: .98 !important; letter-spacing: -.04em; font-weight: 900 !important; }
.hor-pp__level { display: inline-flex; margin: 0 0 11px; padding: 5px 9px; border-radius: 999px; background: #fff; border: 1px solid #dbe8f8; color: #37567e; font-size: 10px; font-weight: 850; letter-spacing: .045em; }
.hor-pp__benefit { margin: 0 0 9px; color: var(--hor-pp-navy); font-size: clamp(17px, 1.6vw, 22px); line-height: 1.25; font-weight: 800; }
.hor-pp__short-copy { margin: 0; color: #3f4f68; font-size: 13.5px; line-height: 1.55; }

.hor-pp__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 18px; }
.hor-pp__fact { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: #293955; font-size: 10px; line-height: 1.22; font-weight: 780; }
.hor-pp__icon,
.hor-pp__feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #e7f2ff; color: var(--hor-pp-navy); }
.hor-pp svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hor-pp__buy-card {
  align-self: stretch;
  min-width: 0;
  padding: 18px;
  border: 1px solid #e0e8f3;
  border-radius: 15px;
  background: rgba(255,255,255,.97);
  box-shadow: var(--hor-pp-shadow);
}
.hor-pp__buy-kicker { display: block; width: 100%; padding: 6px 9px; border-radius: 999px; background: linear-gradient(90deg, #ffd34e, #ffcc33); color: var(--hor-pp-navy); font-size: 9px; font-weight: 900; letter-spacing: .06em; }
.hor-pp__price { margin: 14px 0 11px; color: var(--hor-pp-navy); font-size: clamp(31px, 3vw, 40px); line-height: 1; font-weight: 900; letter-spacing: -.035em; }
.hor-pp__price del { color: #8d98aa; font-size: .55em; font-weight: 600; }
.hor-pp__price ins { text-decoration: none; }
.hor-pp__native-cart form.cart { display: block !important; margin: 0 0 13px !important; }
.hor-pp__native-cart .quantity { margin: 0 0 8px !important; }
.hor-pp__native-cart button.single_add_to_cart_button { width: 100%; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 0 !important; border-radius: 13px !important; background: var(--hor-pp-yellow) !important; color: var(--hor-pp-navy) !important; font-size: 14px !important; font-weight: 900 !important; box-shadow: none !important; }
.hor-pp__native-cart .variations { margin-bottom: 10px !important; }
.hor-pp__native-cart .variations select { width: 100%; min-height: 40px; }

.hor-pp__availability-note { display: flex; flex-direction: column; gap: 4px; margin: 0 0 13px; padding: 12px; border: 1px solid #efcaca; border-radius: 11px; background: #fff5f5; color: #843030; }
.hor-pp__availability-note strong { font-size: 12px; }
.hor-pp__availability-note span, .hor-pp__availability-note p { margin: 0 !important; font-size: 11px; line-height: 1.4; }
.hor-pp__buy-list { list-style: none !important; margin: 13px 0 0 !important; padding: 13px 0 0 !important; border-top: 1px solid var(--hor-pp-line); }
.hor-pp__buy-list li { display: flex; gap: 7px; align-items: flex-start; margin: 0 0 7px !important; color: #2d3b52; font-size: 11px; line-height: 1.35; }
.hor-pp__mini-check { flex: 0 0 17px; color: #e0ac00; }
.hor-pp__mini-check svg { width: 15px; height: 15px; stroke-width: 2.7; }
.hor-pp__buy-trust { display: grid; gap: 7px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--hor-pp-line); }
.hor-pp__buy-trust > div { display: flex; align-items: center; gap: 8px; color: #394961; font-size: 10.8px; }
.hor-pp__trust-icon { display: inline-flex; color: var(--hor-pp-navy); }
.hor-pp__trust-icon svg { width: 16px; height: 16px; }

/* pasek cech */
.hor-pp__feature-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin: 0 0 15px; padding: 12px 10px 13px; border: 1px solid #e5edf6; border-radius: 16px; background: #fff; }
.hor-pp__feature-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 3px 5px; text-align: center; color: #2e3f59; font-size: 10px; line-height: 1.27; font-weight: 750; }
.hor-pp__feature-item .hor-pp__feature-icon { width: 39px; height: 39px; }

.hor-pp__below { padding-bottom: 34px; }

/* kompaktowe preview: tekst po lewej, realne assety po prawej */
.hor-pp__preview-section { display: grid; grid-template-columns: minmax(190px, .78fr) minmax(0, 2.22fr); gap: 16px; align-items: stretch; margin: 0 0 15px; padding: 14px 16px; border: 1px solid #e3edf8; border-radius: 16px; background: linear-gradient(135deg, #edf7ff, #f6fbff); }
.hor-pp__section-heading { display: flex; flex-direction: column; justify-content: center; padding: 4px 2px; }
.hor-pp__section-heading h2,
.hor-pp__related h2,
.hor-pp__faq-section h2 { margin: 0 0 5px !important; color: var(--hor-pp-navy) !important; font-size: 24px !important; line-height: 1.13; font-weight: 880 !important; }
.hor-pp__section-heading p { margin: 0; color: var(--hor-pp-muted); font-size: 12px; line-height: 1.45; }
.hor-pp__preview-grid { display: grid; gap: 9px; min-width: 0; }
.hor-pp__preview-section--1 .hor-pp__preview-grid { grid-template-columns: 1fr; }
.hor-pp__preview-section--2 .hor-pp__preview-grid { grid-template-columns: repeat(2, 1fr); }
.hor-pp__preview-section--3 .hor-pp__preview-grid { grid-template-columns: repeat(3, 1fr); }
.hor-pp__preview-card { margin: 0; overflow: hidden; height: 170px; border: 1px solid var(--hor-pp-line); border-radius: 11px; background: #fff; }
.hor-pp__preview-image { width: 100%; height: 100%; overflow: hidden; }
.hor-pp__preview-card img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* zakładki informacyjne — krótko, jak karta produktu */
.hor-pp__tabs { margin: 0 0 17px; overflow: hidden; border: 1px solid var(--hor-pp-line); border-radius: 14px; background: #fff; }
.hor-pp__tablist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--hor-pp-line); overflow-x: auto; }
.hor-pp__tab { min-height: 46px; padding: 9px 11px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--hor-pp-navy); font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; white-space: nowrap; }
.hor-pp__tab.is-active { border-bottom-color: var(--hor-pp-yellow); background: #fffdf8; }
.hor-pp__tabpanel { display: none; padding: 16px 18px; }
.hor-pp__tabpanel.is-active { display: block; }
.hor-pp__description-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(210px, .75fr); gap: 20px; align-items: start; }
.hor-pp__prose { color: #33425e; font-size: 12.2px; line-height: 1.55; }
.hor-pp__prose p { margin: 0 0 8px; }
.hor-pp__prose > :first-child { margin-top: 0; }
.hor-pp__prose > :last-child { margin-bottom: 0; }
.hor-pp__detail-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 10px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.hor-pp__detail-list li { display: flex; gap: 8px; align-items: flex-start; margin: 0 !important; padding: 10px; border-radius: 10px; background: #f7faff; color: #35445d; font-size: 11.5px; line-height: 1.4; }
.hor-pp__info-callout { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 13px; border-radius: 12px; background: linear-gradient(135deg, #fff9e8, #fff2c9); }
.hor-pp__info-callout > div { display: flex; flex-direction: column; gap: 3px; }
.hor-pp__info-callout strong { font-size: 13px; }
.hor-pp__info-callout span { color: #4c5670; font-size: 11px; line-height: 1.4; }

/* podobne produkty — zawsze sklepowy, zwarty rząd */
.hor-pp__related { margin: 0 0 17px; }
.hor-pp__section-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hor-pp__related-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; }
.hor-pp__related-card { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 8px; min-width: 0; min-height: 126px; padding: 8px; border: 1px solid var(--hor-pp-line); border-radius: 11px; background: #fff; }
.hor-pp__related-image { display: block; overflow: hidden; border-radius: 7px; background: #f7f8fc; }
.hor-pp__related-image img { display: block; width: 100%; height: 100%; min-height: 108px; object-fit: cover; }
.hor-pp__related-content { display: flex; flex-direction: column; min-width: 0; }
.hor-pp__related-content h3 { margin: 0 0 5px !important; font-size: 10.5px !important; line-height: 1.25 !important; font-weight: 800 !important; }
.hor-pp__related-content h3 a { color: var(--hor-pp-navy); text-decoration: none; }
.hor-pp__related-price { margin-top: auto; margin-bottom: 5px; color: var(--hor-pp-navy); font-size: 13px; font-weight: 900; }
.hor-pp__related-button { display: inline-flex; align-items: center; justify-content: center; min-height: 27px; padding: 5px 7px; border-radius: 999px; background: var(--hor-pp-yellow); color: var(--hor-pp-navy); text-decoration: none; font-size: 9px; font-weight: 850; }

/* FAQ jako osobna sekcja, nie piąta rozbudowana zakładka */
.hor-pp__faq-section { margin: 0 0 17px; padding: 13px 15px 15px; border: 1px solid var(--hor-pp-line); border-radius: 14px; background: #fff; }
.hor-pp__faq-section h2 { font-size: 17px !important; }
.hor-pp__faq-list { display: grid; gap: 5px; }
.hor-pp__faq-item { border: 1px solid var(--hor-pp-line); border-radius: 9px; background: #fff; }
.hor-pp__faq-item summary { display: flex; justify-content: space-between; gap: 13px; padding: 10px 12px; cursor: pointer; color: #33425d; font-size: 10.8px; font-weight: 760; list-style: none; }
.hor-pp__faq-item summary::-webkit-details-marker { display: none; }
.hor-pp__faq-item p { margin: 0; padding: 0 12px 11px; color: #526078; font-size: 10.8px; line-height: 1.48; }

/* Autorka — ostatnia sekcja przed stopką */
.hor-pp__author { display: grid; grid-template-columns: 118px minmax(0, 1.65fr) minmax(230px, .78fr); gap: 18px; align-items: center; margin: 0; padding: 17px 18px; border: 1px solid #e3edf8; border-radius: 16px; background: linear-gradient(135deg, #eef7ff 0%, #f5faff 100%); }
.hor-pp__author-photo img { display: block; width: 104px; height: 104px; object-fit: cover; border-radius: 50%; }
.hor-pp__author h2 { margin: 2px 0 3px !important; color: var(--hor-pp-navy) !important; font-size: 21px !important; font-weight: 880 !important; }
.hor-pp__author-role { margin: 0 0 6px; color: #3c4f6d; font-size: 11px; font-weight: 760; }
.hor-pp__author-copy p { margin: 0 0 5px; color: #43516a; font-size: 10.5px; line-height: 1.42; }
.hor-pp__text-link { color: #145bb7; font-size: 10.5px; font-weight: 850; text-decoration: none; }
.hor-pp__author-quote { margin: 0; padding: 16px; border: 0; border-radius: 13px; background: rgba(255,255,255,.78); color: #32425e; font-size: 11px; line-height: 1.45; }
.hor-pp__author-quote::before { content: '“'; display: block; margin-bottom: -6px; color: #cbdcf1; font-size: 44px; line-height: .75; font-family: Georgia, serif; }
.hor-pp__author-quote span { display: block; margin-top: 7px; color: #2f5f9d; font-weight: 850; font-style: italic; }

/* Desktop/tablet: trzy kolumny utrzymujemy znacznie dłużej niż poprzednio. */
@media (max-width: 900px) {
  .hor-pp--shop-v4 { width: min(100% - 18px, 1240px); }
  .hor-pp__commerce-hero { grid-template-columns: minmax(205px, 33fr) minmax(220px, 39fr) minmax(185px, 28fr); gap: 12px; padding: 13px; }
  .hor-pp__main-image-wrap { height: 300px; }
  .hor-pp__title { font-size: 31px !important; }
  .hor-pp__benefit { font-size: 16px; }
  .hor-pp__short-copy { font-size: 11.5px; line-height: 1.45; }
  .hor-pp__facts { gap: 4px; margin-top: 13px; }
  .hor-pp__fact { font-size: 9px; }
  .hor-pp__icon { width: 35px; height: 35px; }
  .hor-pp__buy-card { padding: 13px; }
  .hor-pp__price { font-size: 29px; }
  .hor-pp__buy-list li { font-size: 9.5px; }
  .hor-pp__feature-strip { grid-template-columns: repeat(6, minmax(0,1fr)); }
  .hor-pp__feature-item { font-size: 8.8px; }
  .hor-pp__feature-item .hor-pp__feature-icon { width: 34px; height: 34px; }
  .hor-pp__preview-section { grid-template-columns: 170px 1fr; }
  .hor-pp__related-card { grid-template-columns: 58px minmax(0,1fr); }
  .hor-pp__related-image img { min-height: 94px; }
  .hor-pp__related-content h3 { font-size: 9px !important; }
  .hor-pp__author { grid-template-columns: 90px minmax(0,1.6fr) minmax(180px,.8fr); }
  .hor-pp__author-photo img { width: 82px; height: 82px; }
}

/* Dopiero rzeczywisty telefon przechodzi w jedną kolumnę. */
@media (max-width: 680px) {
  body.hor-pp-enabled .woocommerce-breadcrumb { margin: 12px auto 14px !important; font-size: 11px !important; }
  .hor-pp--shop-v4 { width: calc(100% - 14px); }
  .hor-pp__commerce-hero { grid-template-columns: 1fr; gap: 13px; padding: 11px; border-radius: 14px; }
  .hor-pp__gallery-card { order: 1; }
  .hor-pp__main-image-wrap { height: 285px; }
  .hor-pp__product-copy { order: 2; }
  .hor-pp__buy-card { order: 3; }
  .hor-pp__title { font-size: 34px !important; }
  .hor-pp__facts { grid-template-columns: repeat(4, 1fr); }
  .hor-pp__feature-strip { grid-template-columns: repeat(3, 1fr); }
  .hor-pp__preview-section { display: block; padding: 13px; }
  .hor-pp__section-heading { margin-bottom: 10px; }
  .hor-pp__preview-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .hor-pp__preview-card { flex: 0 0 78%; height: 230px; scroll-snap-align: start; }
  .hor-pp__tablist { display: flex; }
  .hor-pp__tab { flex: 0 0 auto; }
  .hor-pp__tabpanel { padding: 14px; }
  .hor-pp__description-layout { grid-template-columns: 1fr; }
  .hor-pp__detail-list { grid-template-columns: 1fr; }
  .hor-pp__related-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .hor-pp__related-card { flex: 0 0 82%; scroll-snap-align: start; grid-template-columns: 80px 1fr; }
  .hor-pp__author { grid-template-columns: 76px 1fr; gap: 11px; }
  .hor-pp__author-photo img { width: 72px; height: 72px; }
  .hor-pp__author-copy p { grid-column: 1 / -1; }
  .hor-pp__author-quote { grid-column: 1 / -1; }
}

/* =========================================================
   v0.2.4 — READABILITY + CLEAR PRODUCT FORMAT + REAL PREVIEW
   Tylko prezentacja. Bez zmian logiki WooCommerce.
========================================================= */
.hor-pp { font-size: 17px; line-height: 1.55; }
body.hor-pp-enabled .woocommerce-breadcrumb { font-size: 16px !important; line-height: 1.5; }

.hor-pp__eyebrow { font-size: 13px; line-height: 1.35; }
.hor-pp__level { font-size: 12.5px; padding: 6px 11px; }
.hor-pp__short-copy { font-size: 16.5px; line-height: 1.62; }
.hor-pp__benefit { font-size: clamp(20px, 1.7vw, 25px); line-height: 1.28; }

.hor-pp__format-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 14px;
}
.hor-pp__format-line span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #d8e6f7;
  border-radius: 999px;
  background: #fff;
  color: #294b78;
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 820;
}

.hor-pp__fact { font-size: 13.5px; line-height: 1.3; }
.hor-pp__buy-kicker { font-size: 11.5px; padding: 8px 11px; }
.hor-pp__native-cart button.single_add_to_cart_button { font-size: 16px !important; }
.hor-pp__availability-note strong { font-size: 15.5px; }
.hor-pp__availability-note span,
.hor-pp__availability-note p { font-size: 14.5px; line-height: 1.48; }

.hor-pp__purchase-format {
  display: grid;
  gap: 3px;
  margin: 0 0 14px;
  padding: 11px 12px;
  border-radius: 11px;
  background: #f5f8ff;
  border: 1px solid #e2eaf6;
  color: #33445f;
}
.hor-pp__purchase-format strong {
  color: var(--hor-pp-navy);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .045em;
}
.hor-pp__purchase-format span { font-size: 15px; line-height: 1.42; font-weight: 720; }

.hor-pp__buy-list li { font-size: 14.5px; line-height: 1.45; margin-bottom: 9px !important; }
.hor-pp__buy-trust > div { font-size: 14px; line-height: 1.35; }
.hor-pp__feature-item { font-size: 13.5px; line-height: 1.35; }

.hor-pp__section-heading h2,
.hor-pp__related h2,
.hor-pp__faq-section h2 { font-size: 28px !important; line-height: 1.16; }
.hor-pp__section-heading p { font-size: 15.5px; line-height: 1.55; }
.hor-pp__preview-hint {
  display: inline-flex;
  margin-top: 10px;
  color: #2f5f9d;
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 760;
}

.hor-pp__preview-section { grid-template-columns: minmax(220px, .8fr) minmax(0, 2.2fr); padding: 18px 20px; gap: 20px; }
.hor-pp__preview-section--4 .hor-pp__preview-grid,
.hor-pp__preview-section--5 .hor-pp__preview-grid,
.hor-pp__preview-section--6 .hor-pp__preview-grid { grid-template-columns: repeat(3, 1fr); }
.hor-pp__preview-card { height: 190px; position: relative; }
.hor-pp__preview-open {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  cursor: zoom-in;
  color: inherit;
}
.hor-pp__preview-image { display: block; width: 100%; height: 100%; padding: 7px; background: #fff; }
.hor-pp__preview-card img { width: 100%; height: 100%; object-fit: contain; }
.hor-pp__preview-zoom {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(32,40,103,.92);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(32,40,103,.16);
}
.hor-pp__preview-open:hover .hor-pp__preview-zoom,
.hor-pp__preview-open:focus-visible .hor-pp__preview-zoom { background: var(--hor-pp-yellow); color: var(--hor-pp-navy); }
.hor-pp__preview-open:focus-visible { outline: 3px solid rgba(255,207,63,.65); outline-offset: -3px; }

.hor-pp__lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 34px 74px;
  background: rgba(15,22,58,.88);
  backdrop-filter: blur(5px);
}
.hor-pp__lightbox.is-open { display: flex; }
.hor-pp__lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1100px, 90vw);
  height: min(84vh, 900px);
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.hor-pp__lightbox-image { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.hor-pp__lightbox-close,
.hor-pp__lightbox-nav {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--hor-pp-navy);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  cursor: pointer;
}
.hor-pp__lightbox-close { top: 18px; right: 20px; width: 46px; height: 46px; font-size: 32px; line-height: 1; }
.hor-pp__lightbox-nav { top: 50%; width: 50px; height: 50px; margin-top: -25px; font-size: 38px; }
.hor-pp__lightbox-prev { left: 18px; }
.hor-pp__lightbox-next { right: 18px; }
.hor-pp__lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 9px;
  transform: translateX(-50%);
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(32,40,103,.9);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
body.hor-pp-lightbox-open { overflow: hidden; }

.hor-pp__tab { min-height: 54px; font-size: 15px; line-height: 1.25; }
.hor-pp__tabpanel { padding: 22px 24px; }
.hor-pp__description-layout { grid-template-columns: minmax(0, 1.8fr) minmax(250px, .72fr); gap: 28px; }
.hor-pp__prose { font-size: 17px; line-height: 1.65; }
.hor-pp__prose p { margin-bottom: 14px; }
.hor-pp__detail-list li { font-size: 15px; line-height: 1.52; padding: 13px; }
.hor-pp__info-callout { padding: 16px; }
.hor-pp__info-callout strong { font-size: 16px; line-height: 1.3; }
.hor-pp__info-callout span { font-size: 14.5px; line-height: 1.5; }

.hor-pp__related-content h3 { font-size: 13.5px !important; line-height: 1.32 !important; }
.hor-pp__related-price { font-size: 16px; }
.hor-pp__related-button { min-height: 34px; font-size: 12.5px; }
.hor-pp__faq-item summary { padding: 13px 15px; font-size: 15px; line-height: 1.4; }
.hor-pp__faq-item p { padding: 0 15px 14px; font-size: 15px; line-height: 1.55; }

.hor-pp__author h2 { font-size: 25px !important; }
.hor-pp__author-role { font-size: 14.5px; line-height: 1.4; }
.hor-pp__author-copy p { font-size: 14.5px; line-height: 1.55; }
.hor-pp__text-link { font-size: 14px; }
.hor-pp__author-quote { font-size: 15px; line-height: 1.55; }

@media (max-width: 900px) {
  .hor-pp { font-size: 16px; }
  .hor-pp__short-copy { font-size: 15px; line-height: 1.55; }
  .hor-pp__fact { font-size: 12px; }
  .hor-pp__buy-list li { font-size: 13px; }
  .hor-pp__feature-item { font-size: 12px; }
  .hor-pp__related-content h3 { font-size: 12px !important; }
  .hor-pp__author-role,
  .hor-pp__author-copy p { font-size: 13px; }
  .hor-pp__preview-section { grid-template-columns: 185px 1fr; }
}

@media (max-width: 680px) {
  body.hor-pp-enabled .woocommerce-breadcrumb { font-size: 14px !important; }
  .hor-pp { font-size: 16px; }
  .hor-pp__eyebrow { font-size: 12px; }
  .hor-pp__level,
  .hor-pp__format-line span { font-size: 12px; }
  .hor-pp__short-copy { font-size: 16px; }
  .hor-pp__fact { font-size: 12px; }
  .hor-pp__buy-list li,
  .hor-pp__buy-trust > div { font-size: 14px; }
  .hor-pp__feature-item { font-size: 12.5px; }
  .hor-pp__section-heading h2,
  .hor-pp__related h2,
  .hor-pp__faq-section h2 { font-size: 25px !important; }
  .hor-pp__section-heading p { font-size: 15px; }
  .hor-pp__preview-card { height: 240px; }
  .hor-pp__preview-image { padding: 5px; }
  .hor-pp__tab { font-size: 14px; }
  .hor-pp__prose { font-size: 16px; line-height: 1.62; }
  .hor-pp__detail-list li,
  .hor-pp__faq-item summary,
  .hor-pp__faq-item p { font-size: 15px; }
  .hor-pp__lightbox { padding: 64px 12px 18px; }
  .hor-pp__lightbox-stage { width: 100%; height: 78vh; padding: 10px; }
  .hor-pp__lightbox-close { top: 12px; right: 12px; }
  .hor-pp__lightbox-prev { left: 8px; }
  .hor-pp__lightbox-next { right: 8px; }
}


/* =========================================================
   v0.2.5 — TYPOGRAPHY BALANCE + HERO ALIGNMENT
   Tylko prezentacja. Bez zmian logiki WooCommerce.
========================================================= */

/* Hero: treść zaczyna się od góry, a obraz optycznie od poziomu H1. */
.hor-pp__commerce-hero { align-items: start; }
.hor-pp__product-copy { align-self: start; padding-top: 2px; }
.hor-pp__gallery-card { align-self: start; padding-top: 29px; }
.hor-pp__buy-card { align-self: start; }

/* v0.2.4 było czytelne, ale zbyt duże. Zmniejszamy o jeden stopień. */
.hor-pp { font-size: 16px; line-height: 1.52; }
body.hor-pp-enabled .woocommerce-breadcrumb { font-size: 15px !important; line-height: 1.48; }

.hor-pp__eyebrow { font-size: 12px; line-height: 1.32; }
.hor-pp__title {
  font-size: clamp(32px, 3.25vw, 44px) !important;
  line-height: 1.01 !important;
  margin-top: 6px !important;
}
.hor-pp__level { font-size: 12px; padding: 6px 10px; }
.hor-pp__format-line span { font-size: 12px; min-height: 28px; padding: 5px 9px; }
.hor-pp__benefit { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.3; }
.hor-pp__short-copy { font-size: 15.5px; line-height: 1.58; }

.hor-pp__fact { font-size: 12.5px; line-height: 1.28; }
.hor-pp__buy-kicker { font-size: 10.5px; padding: 7px 10px; }
.hor-pp__price { font-size: clamp(29px, 2.7vw, 37px); }
.hor-pp__purchase-format strong { font-size: 12px; }
.hor-pp__purchase-format span { font-size: 14px; line-height: 1.4; }
.hor-pp__availability-note strong { font-size: 14.5px; }
.hor-pp__availability-note span,
.hor-pp__availability-note p { font-size: 13.5px; line-height: 1.45; }
.hor-pp__buy-list li { font-size: 13.5px; line-height: 1.42; }
.hor-pp__buy-trust > div { font-size: 13px; }
.hor-pp__feature-item { font-size: 12.5px; line-height: 1.32; }

.hor-pp__section-heading h2,
.hor-pp__related h2,
.hor-pp__faq-section h2 { font-size: 25px !important; line-height: 1.15; }
.hor-pp__section-heading p { font-size: 14.5px; line-height: 1.5; }
.hor-pp__preview-hint { font-size: 12.5px; }

.hor-pp__tab { min-height: 50px; font-size: 14px; }
.hor-pp__tabpanel { padding: 20px 22px; }
.hor-pp__prose { font-size: 16px; line-height: 1.62; }
.hor-pp__prose p { margin-bottom: 13px; }
.hor-pp__detail-list li { font-size: 14px; line-height: 1.48; }
.hor-pp__info-callout strong { font-size: 15px; }
.hor-pp__info-callout span { font-size: 13.5px; line-height: 1.45; }

.hor-pp__related-content h3 { font-size: 12.5px !important; }
.hor-pp__related-price { font-size: 15px; }
.hor-pp__related-button { font-size: 11.5px; min-height: 32px; }
.hor-pp__faq-item summary { font-size: 14px; padding: 12px 14px; }
.hor-pp__faq-item p { font-size: 14px; line-height: 1.5; padding: 0 14px 13px; }

.hor-pp__author h2 { font-size: 23px !important; }
.hor-pp__author-role { font-size: 13.5px; }
.hor-pp__author-copy p { font-size: 13.5px; line-height: 1.5; }
.hor-pp__text-link { font-size: 13px; }
.hor-pp__author-quote { font-size: 14px; line-height: 1.5; }

@media (max-width: 900px) {
  .hor-pp__gallery-card { padding-top: 25px; }
  .hor-pp__title { font-size: 30px !important; }
  .hor-pp__benefit { font-size: 17px; }
  .hor-pp__short-copy { font-size: 14.5px; }
}

@media (max-width: 680px) {
  /* Na telefonie obraz ma być pierwszy, więc nie robimy sztucznego offsetu. */
  .hor-pp__gallery-card { padding-top: 0; }
  .hor-pp__title { font-size: 31px !important; }
  .hor-pp__short-copy { font-size: 15px; }
  .hor-pp__section-heading h2,
  .hor-pp__related h2,
  .hor-pp__faq-section h2 { font-size: 23px !important; }
  .hor-pp__prose { font-size: 15.5px; }
}

/* =========================================================
   v0.2.6 — CALM HIERARCHY + CROSS-SELL DISCOVERY
   Cel: mniej bodźców, mocniejsza hierarchia, spokojniejszy sklep.
   Tylko warstwa prezentacji. Bez zmian logiki WooCommerce.
========================================================= */

/* Więcej oddechu między głównymi modułami zamiast kolejnych ramek jedna pod drugą. */
.hor-pp__below > section { margin-bottom: 28px; }
.hor-pp__below > section:last-child { margin-bottom: 0; }

/* Format produktu: nadal bardzo widoczny, ale bez czterech konkurujących pigułek. */
.hor-pp__format-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 15px;
  color: #3f5878;
}
.hor-pp__format-line span {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #3f5878;
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 760;
}
.hor-pp__format-line span:not(:last-child)::after {
  content: '·';
  display: inline-block;
  margin: 0 8px;
  color: #9aacc3;
  font-weight: 700;
}

/* Drugorzędne korzyści: tylko trzy, bez dużej "karty w karcie". */
.hor-pp__feature-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 4px 0 30px;
  padding: 13px 0;
  border: 0;
  border-top: 1px solid #e7edf5;
  border-bottom: 1px solid #e7edf5;
  border-radius: 0;
  background: transparent;
}
.hor-pp__feature-item {
  flex-direction: row;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  padding: 4px 18px;
  text-align: left;
  color: #42516a;
  font-size: 12.5px;
  line-height: 1.38;
  font-weight: 720;
}
.hor-pp__feature-item + .hor-pp__feature-item { border-left: 1px solid #edf1f6; }
.hor-pp__feature-item .hor-pp__feature-icon {
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  background: #f0f6fd;
}
.hor-pp__feature-item .hor-pp__feature-icon svg { width: 17px; height: 17px; }

/* FAQ ma redukować obiekcje, a nie wyglądać jak kolejny ciężki blok reklamowy. */
.hor-pp__faq-section {
  margin: 0 0 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.hor-pp__faq-section h2 {
  margin-bottom: 12px !important;
  font-size: 23px !important;
}
.hor-pp__faq-list {
  gap: 0;
  border-top: 1px solid #e1e8f2;
}
.hor-pp__faq-item {
  border: 0;
  border-bottom: 1px solid #e1e8f2;
  border-radius: 0;
  background: transparent;
}
.hor-pp__faq-item summary {
  padding: 14px 2px;
  color: #33425d;
  font-size: 14px;
  font-weight: 760;
}
.hor-pp__faq-item p {
  padding: 0 2px 14px;
  color: #5a677c;
  font-size: 14px;
  line-height: 1.55;
}

/* Cross-sell: bardziej zauważalny jako cała sekcja, ale spokojniejsze CTA.
   Główny żółty przycisk zostaje zarezerwowany dla zakupu głównego produktu. */
.hor-pp__related {
  margin: 0 0 32px;
  padding: 22px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #f2f7fd 0%, #f8fbff 100%);
}
.hor-pp__related-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 20px;
  align-items: end;
  margin: 0 0 16px;
}
.hor-pp__related-eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  color: #2f5f9d;
  font-size: 10.5px;
  line-height: 1.3;
  font-weight: 850;
  letter-spacing: .08em;
}
.hor-pp__related h2 {
  margin: 0 !important;
  font-size: 24px !important;
  line-height: 1.14;
}
.hor-pp__related-heading p {
  max-width: 480px;
  margin: 0;
  color: #68758a;
  font-size: 12.5px;
  line-height: 1.45;
  text-align: right;
}
.hor-pp__related-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.hor-pp__related-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e1e8f2;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(32,40,103,.045);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.hor-pp__related-card:hover {
  transform: translateY(-2px);
  border-color: #cfdced;
  box-shadow: 0 12px 24px rgba(32,40,103,.075);
}
.hor-pp__related-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 0;
  background: #fff;
}
.hor-pp__related-image img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  padding: 10px;
}
.hor-pp__related-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 13px 13px;
}
.hor-pp__related-content h3 {
  display: -webkit-box;
  min-height: 2.65em;
  margin: 0 0 9px !important;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--hor-pp-navy);
  font-size: 13px !important;
  line-height: 1.32 !important;
  font-weight: 790 !important;
}
.hor-pp__related-price {
  margin: auto 0 9px;
  color: var(--hor-pp-navy);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
}
.hor-pp__related-button {
  min-height: 34px;
  border: 1px solid #ccd9ec;
  border-radius: 10px;
  background: #fff;
  color: var(--hor-pp-navy);
  font-size: 11.5px;
  font-weight: 820;
}
.hor-pp__related-button:hover,
.hor-pp__related-button:focus-visible {
  border-color: var(--hor-pp-navy);
  background: #f8faff;
  color: var(--hor-pp-navy);
}

/* Pozostałe sekcje: mniej konkurujących cieni i ramek. */
.hor-pp__tabs { box-shadow: none; }
.hor-pp__author { box-shadow: none; }
.hor-pp__preview-section { box-shadow: none; }

@media (max-width: 900px) {
  .hor-pp__feature-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hor-pp__feature-item { padding-inline: 10px; font-size: 11.5px; }
  .hor-pp__related-heading { display: block; }
  .hor-pp__related-heading p { margin-top: 5px; text-align: left; }
  .hor-pp__related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .hor-pp__format-line { display: block; }
  .hor-pp__format-line span { display: inline; }
  .hor-pp__format-line span:not(:last-child)::after { margin: 0 5px; }
  .hor-pp__feature-strip {
    display: block;
    margin-bottom: 22px;
    padding: 7px 0;
  }
  .hor-pp__feature-item {
    justify-content: flex-start;
    padding: 8px 2px;
  }
  .hor-pp__feature-item + .hor-pp__feature-item {
    border-left: 0;
    border-top: 1px solid #edf1f6;
  }
  .hor-pp__related { padding: 17px 14px; }
  .hor-pp__related-grid {
    display: flex;
    gap: 11px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }
  .hor-pp__related-card {
    flex: 0 0 76%;
    scroll-snap-align: start;
  }
  .hor-pp__related-image { aspect-ratio: 4 / 3; }
}

/* v0.3.2 refinements: uncropped hero image + compact preview carousel */
.hor-pp__main-image {
  object-fit: contain;
  background: #fff;
}

.hor-pp__preview-section--carousel {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 2.28fr);
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
}

.hor-pp__section-heading--compact {
  max-width: 260px;
}

.hor-pp__preview-carousel-wrap {
  min-width: 0;
}

.hor-pp__preview-carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 0 10px;
}

.hor-pp__preview-nav {
  width: 38px;
  height: 38px;
  border: 1px solid #d6e2f2;
  border-radius: 999px;
  background: #fff;
  color: var(--hor-pp-navy);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(32,40,103,.06);
}

.hor-pp__preview-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
}

.hor-pp__preview-slide {
  flex: 0 0 min(240px, calc((100% - 28px) / 3));
  min-width: 220px;
  margin: 0;
  scroll-snap-align: start;
}

.hor-pp__preview-open {
  display: block;
  width: 100%;
  border: 1px solid #e2ebf7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(32,40,103,.05);
  overflow: hidden;
  padding: 0;
}

.hor-pp__preview-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  aspect-ratio: 4 / 3;
  padding: 12px;
}

.hor-pp__preview-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.hor-pp__preview-zoom {
  display: block;
  padding: 11px 14px;
  border-top: 1px solid #eef3fb;
  background: #fff;
  color: var(--hor-pp-navy);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 980px) {
  .hor-pp__preview-section--carousel {
    grid-template-columns: 1fr;
  }
  .hor-pp__section-heading--compact {
    max-width: none;
  }
  .hor-pp__preview-slide {
    flex-basis: min(250px, 78vw);
    min-width: min(250px, 78vw);
  }
}

@media (max-width: 640px) {
  .hor-pp__preview-section--carousel {
    padding: 14px;
  }
  .hor-pp__preview-carousel-controls {
    margin-bottom: 8px;
  }
}

/* v0.3.2 gallery fidelity */
.hor-pp__thumb { background:#fff; }
.hor-pp__thumb img { object-fit: contain; background:#fff; }

/* =========================================================
   v0.3.3 — FULL COVER + FOCUSED PREVIEW VIEWER
   Wyłącznie warstwa prezentacji.
========================================================= */

/* Gramatyka cz. 1: pełna okładka z oryginalnego PDF, bez kadrowania logo. */
.hor-pp__main-image-wrap--portrait-cover {
  height: 470px;
  padding: 12px;
  background: #fff;
}
.hor-pp__main-image-wrap--portrait-cover .hor-pp__main-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
}
.hor-pp__thumb img {
  object-fit: contain !important;
  object-position: center center !important;
}

/* Zamiast kilku dużych kart: jeden spokojny viewer + miniatury. */
.hor-pp__preview-section--viewer {
  display: grid;
  grid-template-columns: minmax(215px, .72fr) minmax(0, 2.28fr);
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid #e3edf8;
  border-radius: 18px;
  background: linear-gradient(135deg, #edf7ff 0%, #f8fbff 100%);
  box-shadow: none;
}

.hor-pp__preview-viewer {
  min-width: 0;
}

.hor-pp__preview-stage-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 52px;
}

.hor-pp__preview-stage-open {
  position: relative;
  display: block;
  width: 100%;
  height: 360px;
  padding: 0;
  border: 1px solid #dfe8f4;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 34px rgba(32,40,103,.07);
  cursor: zoom-in;
}

.hor-pp__preview-stage-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 18px 22px;
  background: #fff;
}

.hor-pp__preview-stage-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hor-pp__preview-stage-zoom {
  position: absolute;
  right: 16px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(32,40,103,.94);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(32,40,103,.14);
}

.hor-pp__preview-side-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid #d6e2f2;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: var(--hor-pp-navy);
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(32,40,103,.08);
}
.hor-pp__preview-side-nav--prev { left: 0; }
.hor-pp__preview-side-nav--next { right: 0; }
.hor-pp__preview-side-nav:hover,
.hor-pp__preview-side-nav:focus-visible {
  border-color: #b8cce6;
  background: #f9fbff;
}

.hor-pp__preview-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.hor-pp__preview-thumb {
  height: 68px;
  padding: 5px;
  border: 1px solid #dfe8f4;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}
.hor-pp__preview-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hor-pp__preview-thumb.is-active {
  border: 2px solid var(--hor-pp-yellow);
  box-shadow: 0 0 0 1px rgba(255,207,63,.18);
}

@media (max-width: 1100px) {
  .hor-pp__main-image-wrap--portrait-cover { height: 410px; }
  .hor-pp__preview-stage-open { height: 330px; }
}

@media (max-width: 900px) {
  .hor-pp__preview-section--viewer {
    grid-template-columns: 1fr;
  }
  .hor-pp__section-heading--compact { max-width: none; }
  .hor-pp__preview-stage-wrap { padding: 0 46px; }
}

@media (max-width: 680px) {
  .hor-pp__main-image-wrap--portrait-cover { height: 400px; }
  .hor-pp__preview-section--viewer { padding: 15px; gap: 16px; }
  .hor-pp__preview-stage-wrap { padding: 0 34px; }
  .hor-pp__preview-stage-open { height: 320px; }
  .hor-pp__preview-side-nav { width: 34px; height: 34px; font-size: 23px; }
  .hor-pp__preview-thumbs {
    display: flex;
    overflow-x: auto;
    gap: 7px;
    padding-bottom: 3px;
  }
  .hor-pp__preview-thumb { flex: 0 0 58px; width: 58px; height: 58px; }
}


/* =========================================================
   v0.8.0 — KURS A0→A1
   Wariant kursowy oparty na tym samym systemie co 30 DÍAS.
   Wyłącznie prezentacja — bez zmian logiki WooCommerce.
========================================================= */
body.hor-pp-course-product .hor-pp__main-image-wrap--course {
  height: 360px;
  padding: 14px;
  background: #fff;
}
body.hor-pp-course-product .hor-pp__main-image-wrap--course .hor-pp__main-image {
  object-fit: contain !important;
  object-position: center center !important;
}
body.hor-pp-course-product .hor-pp__commerce-hero {
  background: linear-gradient(135deg, #f2f7ff 0%, #ffffff 56%, #f5f9ff 100%);
}
body.hor-pp-course-product .hor-pp__feature-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
body.hor-pp-course-product .hor-pp__preview-stage-open {
  height: 390px;
}
body.hor-pp-course-product .hor-pp__preview-stage-image {
  padding: 14px;
}
body.hor-pp-course-product .hor-pp__preview-stage-image img,
body.hor-pp-course-product .hor-pp__preview-thumb img {
  object-fit: contain !important;
  background: #fff;
}
@media (max-width: 900px) {
  body.hor-pp-course-product .hor-pp__main-image-wrap--course { height: 310px; }
  body.hor-pp-course-product .hor-pp__feature-strip { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 680px) {
  body.hor-pp-course-product .hor-pp__main-image-wrap--course { height: 280px; }
  body.hor-pp-course-product .hor-pp__feature-strip { grid-template-columns: 1fr; }
  body.hor-pp-course-product .hor-pp__feature-item + .hor-pp__feature-item { border-left: 0; border-top: 1px solid #edf1f6; }
  body.hor-pp-course-product .hor-pp__preview-stage-open { height: 290px; }
}


/* =========================================================
   v0.9.1 — GRAMATYKA CZ. 1 + CZ. 2
   Spójna, atrakcyjniejsza sekcja łącząca oba tomy.
========================================================= */
.hor-pp__grammar-pair {
  margin: 30px 0;
  padding: 30px;
  border: 1px solid #dbe5f2;
  border-radius: 24px;
  background: linear-gradient(135deg, #f4f8ff 0%, #ffffff 52%, #fff9e8 100%);
}
.hor-pp__grammar-pair-head { max-width: 920px; margin-bottom: 16px; }
.hor-pp__grammar-pair-head > span {
  display: block;
  margin-bottom: 8px;
  color: #3566a8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}
.hor-pp__grammar-pair-head h2 {
  margin: 0 0 10px;
  color: var(--hor-pp-navy);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
}
.hor-pp__grammar-pair-head p {
  margin: 0;
  color: #53647f;
  font-size: 17px;
  line-height: 1.68;
}
.hor-pp__grammar-pair-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid #e3ebf6;
  border-radius: 16px;
  background: rgba(255,255,255,.82);
}
.hor-pp__grammar-pair-ribbon span {
  color: #5d6d86;
  font-size: 14px;
  font-weight: 700;
}
.hor-pp__grammar-pair-ribbon strong {
  color: var(--hor-pp-navy);
  font-size: 15px;
}
.hor-pp__grammar-pair-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.hor-pp__grammar-volume {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 24px;
  border: 1px solid #dce5f2;
  border-radius: 20px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 28px rgba(32,40,103,.04);
}
.hor-pp__grammar-volume.is-current {
  border-color: rgba(255, 207, 63, .95);
  box-shadow: inset 0 4px 0 var(--hor-pp-yellow), 0 12px 30px rgba(32,40,103,.06);
}
.hor-pp__grammar-volume-label {
  color: #3566a8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
}
.hor-pp__grammar-volume h3 {
  margin: 8px 0 10px;
  color: var(--hor-pp-navy);
  font-size: 24px;
  line-height: 1.18;
}
.hor-pp__grammar-volume p {
  margin: 0 0 14px;
  color: #53647f;
  font-size: 16px;
  line-height: 1.65;
}
.hor-pp__grammar-topics {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.hor-pp__grammar-topics li {
  position: relative;
  margin: 0;
  padding-left: 20px;
  color: #44556f;
  font-size: 15px;
  line-height: 1.55;
}
.hor-pp__grammar-topics li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--hor-pp-yellow);
  box-shadow: 0 0 0 3px rgba(255,207,63,.22);
}
.hor-pp__grammar-link,
.hor-pp__grammar-current {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 800;
}
.hor-pp__grammar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: var(--hor-pp-navy);
  text-decoration: none;
  border: 1px solid #d7e2f0;
  border-radius: 999px;
  background: #fff;
}
.hor-pp__grammar-link:hover,
.hor-pp__grammar-link:focus-visible {
  color: #0c63b9;
  border-color: #bdd3ec;
}
.hor-pp__grammar-current {
  padding: 9px 13px;
  border-radius: 999px;
  background: #fff6d1;
  color: var(--hor-pp-navy);
  font-size: 13px;
}
@media (max-width: 760px) {
  .hor-pp__grammar-pair { padding: 20px; }
  .hor-pp__grammar-pair-ribbon { padding: 12px 14px; }
  .hor-pp__grammar-pair-grid { grid-template-columns: 1fr; }
  .hor-pp__grammar-volume { padding: 20px; }
}
