/* TECH-2659 - oferta usługi na wpisie bloga (wariant B testu A/B T22). Wygląd 1:1 z plików wariantu B (T22-wariant-B-v3.zip):
   karta .offer-card (kolumna, koniec artykułu, banery w treści, exit pop-up), sekcja „bez / z” .offer-compare, okno .offer-exit,
   wideo doradcy .offer-video (komputer) i .offer-video-end (telefon). Elementy renderuje serwer (BlogItem::ServiceOffer,
   Includes/BlogOffer*.ss), zachowanie i pomiar: js/blog-offer.js. Ładowane tylko na wpisach z ofertą (PageController::installCss).

   Różnice względem plików wariantu:
   - próg komputer / telefon 992 px - ten sam, przy którym zmienia się układ wpisu (w plikach 1100 px),
   - grafika usługi to obrazek z CMS (.offer-card__graphic) w miejscu makiety HTML; obrót, kadr i cień jak makieta,
     --tall = grafika wyraźnie pionowa, np. post z Meta (wyższy kadr; BlogService::graphicData),
   - teksty kart w <span> zamiast <p>/<ul>/<div> - nie łapią stylów treści wpisu (.wysiwyg-content),
   - karta w kolumnie przykleja się jak karta formularza (pod menu strony), a nie 20 px od góry okna,
   - exit pop-up z grafiką pionową (Meta) na telefonie ma kadr 140 px jak pozostałe - w pliku 540 px i okno nie mieści się na ekranie.

   Test A/B: wariant B w Omniconvert wkleja .ab-t22-a { display: none !important } .ab-t22-b { display: block !important }.
   Kontener .ab-t22-b (Includes/BlogOfferSlot.ss) nie ma własnego układu - widoczność wg urządzenia trzyma element w środku. */

/* ==========================================================================
   Test A/B T22: elementy wariantu B domyślnie ukryte
   ========================================================================== */
.ab-t22-b { display: none; }

.offer-slot { font-family: "Raleway", system-ui, sans-serif; }

/* ==========================================================================
   KARTA USŁUGI (pliki: .svc, prototyp 1, kierunek C)
   ========================================================================== */
/* bez .offer-slot w selektorze: modyfikatory (--sidebar, --end, --inline, --exit) i ukrywanie wg urządzenia mają tę samą wagę i stoją niżej */
.offer-card { display: block; position: relative; overflow: hidden; border-radius: 14px; cursor: pointer; text-align: left;
  color: #fff; text-decoration: none; transition: none;
  background: radial-gradient(120% 80% at 100% 0%, rgba(65, 194, 7, .28), transparent 55%), #06180c; }
/* strona: a:hover w treści wpisu zmienia background-size (podkreślenie linków) - karta ma tło z gradientem */
.offer-slot a.offer-card:hover, .offer-slot a.offer-card:focus { color: #fff; background-size: auto; }
.offer-card:focus-visible { outline: 3px solid #41c207; outline-offset: 3px; }
.offer-card__body, .offer-card__eyebrow, .offer-card__headline, .offer-card__text, .offer-card__shot { display: block; }
.offer-card__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 1.6px; line-height: normal; text-transform: uppercase; color: #6be03a; }
.offer-card__headline { margin: 0 0 10px; font-weight: 800; letter-spacing: -.3px; color: #fff; }
.offer-card__eyebrow + .offer-card__headline { margin-top: 8px; }
.offer-card__headline em { font-style: normal; color: #6be03a; }
.offer-card__text { margin: 0; color: #b9d0bf; line-height: 1.55; }
.offer-card__points { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; }
.offer-card__point { position: relative; margin: 0; padding: 6px 12px 6px 28px; border: 1px solid rgba(107, 224, 58, .35); border-radius: 20px;
  background: rgba(107, 224, 58, .08); color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.45; }
.offer-card__point::before { content: ""; position: absolute; left: 7px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; border-radius: 50%; background: #41c207; }
.offer-card__point::after { content: ""; position: absolute; left: 12px; top: 50%; width: 3px; height: 7px; margin-top: -5px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.offer-card__button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; max-width: 100%; padding: 15px 20px; border-radius: 6px;
  background: #41c207; color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .5px; line-height: 1.35; text-align: center; text-transform: uppercase;
  transition: background .15s; }
.offer-card:hover .offer-card__button { background: #38a906; }
/* grafika usługi = zrzut makiety; zaokrąglenie i cień jak makieta w plikach */
.offer-slot .offer-card__graphic { display: block; max-width: none; height: auto; border-radius: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); background: #fff; }

/* --- kolumna (komputer) i koniec artykułu (telefon): tekst, pod nim wystająca grafika --- */
.offer-card--sidebar, .offer-card--end { display: flex; flex-direction: column; }
.offer-card--sidebar .offer-card__body, .offer-card--end .offer-card__body { padding: 26px 24px 8px; }
.offer-card--sidebar .offer-card__headline, .offer-card--end .offer-card__headline { font-size: 25px; line-height: 1.2; }
.offer-card--sidebar .offer-card__text, .offer-card--end .offer-card__text { font-size: 15px; }
.offer-card--sidebar .offer-card__button, .offer-card--end .offer-card__button { width: 100%; margin-top: 18px; }
.offer-card--sidebar .offer-card__shot, .offer-card--end .offer-card__shot { height: 160px; padding: 22px 24px 0; overflow: hidden; }
.offer-card--sidebar.offer-card--tall .offer-card__shot, .offer-card--end.offer-card--tall .offer-card__shot { height: 340px; }
.offer-card--sidebar .offer-card__graphic, .offer-card--end .offer-card__graphic { width: calc(100% - 10px); margin-left: 10px; transform: rotate(-3deg); transform-origin: left top; }
.offer-card--sidebar.offer-card--no-graphic .offer-card__body, .offer-card--end.offer-card--no-graphic .offer-card__body { padding-bottom: 26px; }

/* kolumna: przyklejona jak karta formularza (css/blog-hero.css .blog-form-card) */
@media (min-width: 992px) {
  .offer-slot--sidebar { position: sticky; top: calc(var(--blog-nav-height, 76px) + 16px); margin-top: 44px; z-index: 5; }
}

/* --- baner w treści: tekst z lewej, grafika wjeżdża z prawej, obrócona i przycięta --- */
.offer-slot .offer-card--inline { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 250px; margin: 48px 0; }
.offer-card--inline .offer-card__body { position: relative; z-index: 1; padding: 32px 0 32px 34px; }
.offer-card--inline .offer-card__headline { font-size: 27px; line-height: 1.18; }
.offer-card--inline .offer-card__text { font-size: 16px; }
.offer-card--inline .offer-card__button { margin-top: 20px; }
.offer-card--inline .offer-card__shot { position: relative; }
.offer-card--inline .offer-card__graphic { position: absolute; left: 30px; top: 34px; width: 330px; transform: rotate(-6deg); }
.offer-card--inline.offer-card--tall .offer-card__graphic { top: 22px; }
.offer-slot .offer-card--inline.offer-card--no-graphic { grid-template-columns: 1fr; min-height: 0; }
.offer-card--inline.offer-card--no-graphic .offer-card__body { padding-right: 34px; }

/* ==========================================================================
   SEKCJA „BEZ / Z” (pliki: .ba, prototyp 2)
   ========================================================================== */
.offer-compare { overflow: hidden; margin: 48px 0; border: 1px solid #e1e1e1; border-radius: 10px; background: #fff; font-family: "Raleway", sans-serif; text-align: left; }
/* 17 px / 1.8 jak plik na ekranie (w pliku .article p nadpisuje 24 px z .ba-tyt; decyzja 13.11.2026) */
.offer-compare__title { display: block; margin: 0; padding: 22px 26px 16px; color: #000; font: 700 17px/1.8 "Raleway", sans-serif; letter-spacing: -.4px; }
.offer-compare__grid { display: grid; grid-template-columns: 1fr 1fr; }
.offer-compare__row { display: contents; }
.offer-compare__head { display: block; padding: 10px 22px; font: 700 13px/1.3 "Raleway", sans-serif; letter-spacing: .8px; text-transform: uppercase; }
.offer-compare__head--without { background: #f4f4f4; color: #555; }
.offer-compare__head--with { background: #41c207; color: #fff; }
.offer-compare__cell { display: flex; align-items: flex-start; gap: 10px; padding: 14px 22px; border-top: 1px solid #ececec; font: 500 15px/1.45 "Raleway", sans-serif; }
.offer-compare__cell--without { color: #666; }
.offer-compare__cell--with { background: #f3fbef; color: #111; font-weight: 600; }
.offer-compare__icon { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.offer-compare__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; border-top: 1px solid #ececec; }
.offer-compare__note { color: #444; font: 500 14px/1.45 "Raleway", sans-serif; }
.offer-slot a.offer-compare__button { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 14px; max-width: 100%; height: 52px; padding: 0 24px;
  border-radius: 6px; background: #41c207; color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .5px; line-height: 1.35; text-align: center;
  text-decoration: none; text-transform: uppercase; transition: background .15s; }
.offer-slot a.offer-compare__button:hover, .offer-slot a.offer-compare__button:focus { color: #fff; }

/* ==========================================================================
   EXIT POP-UP (pliki: .exit, prototyp 1) - komputer i telefon
   ========================================================================== */
.offer-exit { position: fixed; inset: 0; z-index: 1015; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .6); }
.offer-exit.is-open { display: flex; animation: offer-fade .2s ease; }
@keyframes offer-fade { from { opacity: 0; } to { opacity: 1; } }
.offer-exit__box { position: relative; width: min(780px, 100%); }
.offer-slot .offer-card--exit { display: grid; grid-template-columns: 1.05fr .95fr; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.offer-card--exit .offer-card__body { display: flex; flex-direction: column; justify-content: center; padding: 44px 10px 44px 38px; }
.offer-card--exit .offer-card__headline { font-size: 29px; line-height: 1.15; }
.offer-card--exit .offer-card__text { font-size: 16px; }
.offer-card--exit .offer-card__button { align-self: flex-start; margin-top: 22px; }
.offer-card--exit .offer-card__shot { position: relative; min-height: 340px; overflow: hidden; }
.offer-card--exit .offer-card__graphic { position: absolute; left: 24px; top: 46px; width: calc(100% + 36px); transform: rotate(-5deg); transform-origin: left top; }
.offer-slot .offer-card--exit.offer-card--no-graphic { grid-template-columns: 1fr; }
.offer-card--exit.offer-card--no-graphic .offer-card__body { padding-right: 38px; }
@media (min-width: 992px) {
  .offer-card--exit.offer-card--tall .offer-card__shot { min-height: 540px; }
  .offer-card--exit.offer-card--tall .offer-card__graphic { top: 40px; width: calc(100% - 46px); transform: rotate(-4deg); }
}
.offer-exit__close { position: absolute; top: -14px; right: -14px; z-index: 2; width: 40px; height: 40px; margin: 0; padding: 1px 6px; border: 0; border-radius: 50%;
  background: #fff; color: #111; font: 700 20px Arial, sans-serif; text-align: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }

/* ==========================================================================
   WIDEO DORADCY NA KOMPUTERZE (pliki: .vp, prototyp 4, projekt „ania”: grafit, proste rogi)
   ========================================================================== */
.offer-video { position: fixed; left: 24px; bottom: 24px; z-index: 990; font-family: "Raleway", system-ui, sans-serif; line-height: 1.5; }
.offer-video.is-hidden { display: none; }
.offer-video * { box-sizing: border-box; margin: 0; padding: 0; }
.offer-video__card { width: 288px; background: #303234; color: #E5E3DD; box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .55); animation: offer-video-in .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes offer-video-in { from { opacity: 0; transform: translateX(-120%); } to { opacity: 1; transform: none; } }
.offer-video__media, .offer-video-end__media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #111; cursor: pointer; }
.offer-video__player, .offer-video-end__player { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.offer-video__minimize { position: absolute; top: 10px; right: 10px; z-index: 3; width: 32px; height: 32px; border: 0; background: rgba(17, 17, 17, .7); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.offer-slot .offer-video__sound { position: absolute; left: 10px; top: 10px; z-index: 3; display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 11px; border: 0;
  background: rgba(17, 17, 17, .7); color: #fff; font: 600 12px/1 "Raleway", sans-serif; cursor: pointer; }
.offer-video__sound svg { width: 16px; height: 16px; fill: #fff; }
.offer-slot .offer-video__body { display: block; padding: 18px 20px 20px; }
.offer-slot .offer-video__name { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.5; }
.offer-video__name i { width: 8px; height: 8px; border-radius: 50%; background: #43C600; animation: offer-video-dot 2s infinite; }
@keyframes offer-video-dot { 0% { box-shadow: 0 0 0 0 rgba(67, 198, 0, .55); } 70% { box-shadow: 0 0 0 8px rgba(67, 198, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(67, 198, 0, 0); } }
.offer-slot .offer-video__text { display: block; margin: 0 0 16px; color: #E5E3DD; font-size: 15px; line-height: 1.5; }
.offer-slot .offer-video__button { display: block; width: 100%; margin: 0; padding: 16px 20px; border: 0; border-radius: 0; background: #43C600; color: #fff;
  font: 700 14px/1.3 "Raleway", sans-serif; letter-spacing: .03em; text-align: center; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.offer-slot .offer-video__button:hover { background: #3AB000; }
.offer-video__mini { position: relative; display: none; align-items: center; }
.offer-video.is-min .offer-video__card { display: none; }
.offer-video.is-min .offer-video__mini { display: flex; animation: offer-video-in .35s ease both; }
.offer-video__bubble { position: relative; z-index: 2; flex: none; width: 76px; height: 76px; border: 3px solid #43C600; border-radius: 50%;
  background: #303234 48% 12% / 230% auto no-repeat; cursor: pointer; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5); }
.offer-video .offer-video__label { position: relative; z-index: 1; margin-left: -12px; padding: 13px 18px 13px 24px; border: 0; background: #303234; color: #fff;
  font: 700 14px/1.2 "Raleway", sans-serif; white-space: nowrap; cursor: pointer; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5); }
.offer-video__dismiss { position: absolute; top: -9px; right: -9px; z-index: 3; width: 22px; height: 22px; border: 0; background: #111; color: #fff; font-size: 15px; line-height: 22px; text-align: center; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .offer-video__card, .offer-video__name i { animation: none; } }

/* wideo doradcy na telefonie: blok na końcu artykułu, pod kartą (pliki: .vpi) */
.offer-video-end { display: none; }

/* ==========================================================================
   KOMPUTER / TELEFON (próg układu wpisu: 992 px)
   ========================================================================== */
@media (min-width: 992px) {
  .offer-card--end { display: none; }
}
@media (max-width: 991px) {
  .offer-card--sidebar { display: none; }
  .offer-video { display: none !important; }

  .offer-slot .offer-card--end { margin: 48px 0 10px; }

  /* telefon: jedna kolejność w każdej karcie - nadtytuł, nagłówek, tekst, (punkty), przycisk, grafika pod przyciskiem */
  .offer-slot .offer-card--inline { display: flex; flex-direction: column; min-height: 0; margin: 40px 0; }
  .offer-card--inline .offer-card__body { padding: 24px 20px 8px; }
  .offer-card--inline.offer-card--no-graphic .offer-card__body { padding: 24px 20px; }
  .offer-card--inline .offer-card__headline { font-size: 23px; }
  .offer-card--inline .offer-card__text { font-size: 15.5px; }
  .offer-card--inline .offer-card__button { width: 100%; }
  .offer-card--inline .offer-card__shot { height: 150px; padding: 18px 20px 0; overflow: hidden; }
  .offer-card--inline .offer-card__graphic,
  .offer-card--inline.offer-card--tall .offer-card__graphic { position: static; width: calc(100% - 8px); margin-left: 8px; transform: rotate(-3deg); }

  .offer-compare { margin: 40px 0; }
  .offer-compare__title { padding: 18px 16px 12px; }
  .offer-compare__head { padding: 8px 12px; font-size: 11.5px; letter-spacing: .4px; }
  .offer-compare__cell { flex-direction: column; gap: 6px; padding: 12px; font-size: 13.5px; }
  .offer-compare__foot { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px 16px; }
  .offer-slot a.offer-compare__button { width: 100%; height: 50px; }

  .offer-exit { align-items: center; padding: 10px; }
  .offer-exit__box { width: 100%; }
  .offer-slot .offer-card--exit { display: flex; flex-direction: column; border-radius: 16px; }
  .offer-card--exit .offer-card__body { padding: 24px 20px 8px; }
  .offer-card--exit.offer-card--no-graphic .offer-card__body { padding: 24px 20px; }
  .offer-card--exit .offer-card__headline { padding-right: 28px; font-size: 24px; }
  .offer-card--exit .offer-card__text { font-size: 15.5px; }
  .offer-card--exit .offer-card__button { align-self: stretch; width: 100%; }
  .offer-card--exit .offer-card__shot { height: 140px; min-height: 0; padding: 18px 20px 0; }
  .offer-card--exit .offer-card__graphic { position: static; width: calc(100% - 8px); margin: 0 0 0 8px; transform: rotate(-3deg); transform-origin: left top; }
  .offer-exit__close { top: 10px; right: 10px; width: 34px; height: 34px; font-size: 17px; }

  .offer-video-end { display: block; margin: 24px 0 10px; background: #303234; color: #E5E3DD; font-family: "Raleway", system-ui, sans-serif; line-height: 1.5; }
  .offer-video-end * { box-sizing: border-box; }
  .offer-video-end .offer-video__body { padding: 16px 18px 18px; }
  /* podpis i tekst jak plik na ekranie: w pliku blok wideo stoi w treści i .article p daje 17 px / 1.8 (decyzja 13.11.2026) */
  .offer-video-end .offer-video__name { margin: 0 0 6px; font-size: 17px; line-height: 1.8; }
  .offer-video-end .offer-video__text { margin: 0 0 14px; font-size: 15px; line-height: 1.8; }
  .offer-slot .offer-video-end .offer-video__button { padding: 13px 12px; font-size: 13px; }
}
