/* Promocje: karty jak plakaty imprez (cms-event-scroll-section.css) i okienko gazetki/filmu. */
.cms-promotion-card { position: relative; }
.cms-promotion-card__until {
    position: absolute;
    z-index: 3;
    top: 8px;
    right: 8px;
    padding: 4px 7px;
    border-radius: 6px;
    background: #fff;
    color: #c2410c;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.cms-promotion-card__actions {
    position: absolute;
    z-index: 4;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}
.cms-promotion-card__action {
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 999px;
    background: rgba(17, 24, 39, .82);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}
.cms-promotion-card__action:hover,
.cms-promotion-card__action:focus-visible { background: #c2410c; border-color: #c2410c; }
.cms-promotion-card__action:focus-visible { outline: 3px solid #f26a07; outline-offset: 2px; }
.cms-promotion-section__empty { margin: 0; color: #5b6472; }

/* Lista /promocje/: te same karty w siatce zamiast przewijanego paska. */
.promotions-shell { padding-top: 24px; padding-bottom: 40px; }
.promotions-hero { margin-bottom: 20px; }
.promotions-hero__eyebrow { color: #c2410c; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.promotions-hero h1 { margin: 4px 0 6px; font-weight: 800; }
.promotions-hero p, .promotions-empty { color: #4b5563; }
.promotions-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.promotions-grid .cms-promotion-card {
    width: 228px;
    height: 304px;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}
.promotions-grid .cms-promotion-card > a { position: relative; display: block; width: 100%; height: 100%; color: #fff; text-decoration: none; }
.promotions-grid .cms-event-card__mobile-media,
.promotions-grid .cms-event-card__mobile-shade { position: absolute; inset: 0; display: block; }
.promotions-grid .cms-event-card__mobile-shade { z-index: 1; background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 45%, #000 100%); }
.promotions-grid .cms-event-card__category {
    position: absolute;
    z-index: 2;
    bottom: 72px;
    left: 10px;
    max-width: calc(100% - 20px);
    padding: 3px 6px;
    overflow: hidden;
    border-radius: 4px;
    background: #fff;
    color: #c2410c;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.promotions-grid .cms-event-card__mobile-title {
    position: absolute;
    z-index: 2;
    right: 8px;
    bottom: 12px;
    left: 10px;
    display: -webkit-box;
    overflow: hidden;
    font-size: 18px;
    line-height: 20px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
@media (max-width: 560px) {
    .promotions-grid { gap: 10px; }
    .promotions-grid .cms-promotion-card { width: calc(50% - 5px); height: auto; aspect-ratio: 3 / 4; }
    .promotions-grid .cms-event-card__mobile-title { font-size: 15px; line-height: 17px; }
    .promotions-grid .cms-event-card__category { bottom: 62px; }
}

/* Strona promocji. */
.promotion-detail { padding-top: 20px; padding-bottom: 40px; }
.promotion-detail__back { margin-bottom: 16px; }
.promotion-detail__layout { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 28px; align-items: start; }
.promotion-detail__poster { margin: 0; }
.promotion-detail__poster img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); }
.promotion-detail__company { color: #c2410c; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
.promotion-detail h1 { margin: 4px 0 8px; font-weight: 800; }
.promotion-detail__dates { color: #374151; font-weight: 600; }
.promotion-detail__status { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #fee2e2; color: #991b1b; font-size: 13px; }
.promotion-detail__description { margin: 12px 0 18px; font-size: 17px; line-height: 1.6; }
.promotion-detail__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.promotion-detail__video { margin-top: 24px; }
.promotion-detail__video h2 { font-size: 20px; font-weight: 800; }
@media (max-width: 767.98px) {
    .promotion-detail__layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .promotion-detail__poster { max-width: 420px; }
}

/* Odtwarzacz i okienko (gazetka PDF, film). */
.promotion-player__video { display: block; width: 100%; max-height: 75vh; background: #000; border-radius: 8px; }
.promotion-player__embed { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.promotion-player__embed--tiktok { max-width: 340px; aspect-ratio: 9 / 16; margin: 0 auto; }
.promotion-player__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }
.promotion-viewer {
    width: min(980px, 96vw);
    max-height: 94vh;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #111827;
    color: #fff;
}
.promotion-viewer::backdrop { background: rgba(0, 0, 0, .72); }
.promotion-viewer__bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; }
.promotion-viewer__title { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.promotion-viewer__open { color: #fdba74; font-weight: 700; white-space: nowrap; }
.promotion-viewer__close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 18px; cursor: pointer; }
.promotion-viewer__body { padding: 0 12px 12px; }
.promotion-viewer__pdf { display: block; width: 100%; height: calc(94vh - 72px); border: 0; border-radius: 8px; background: #fff; }
.promotion-viewer__pages { display: grid; gap: 10px; max-height: calc(94vh - 72px); overflow-y: auto; overscroll-behavior: contain; }
.promotion-viewer__page { display: block; width: 100%; height: auto; border-radius: 6px; background: #fff; }
.promotion-viewer__status { margin: 24px 8px; color: #e5e7eb; text-align: center; }
.promotion-viewer__status a { color: #fdba74; font-weight: 700; }
