.gw-page {color-scheme:dark}
.wrap { width: min(1192px, calc(100% - 9vw)); margin-inline: auto; }
.gw-page main { padding-top: 106px; }
.gw-hero:not([data-home-page]) { margin-bottom: clamp(55px, 8vw, 115px); }
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .gw-page main { padding-top: 82px; }
}

.gw-hero .offer-compare {position:relative;inset:auto;aspect-ratio:16/9;border-radius:13px;--brand:#3b8ceb;--font-body:Manrope,sans-serif}

.gw-page [data-offer-info] {
  position: relative;
  text-align: center;
}

.gw-page .gw-offer-info-panel {
  position: absolute;
  top: calc(100% + 12px);
  inset-inline: 0;
  width: max-content;
  max-width: min(280px,calc(100vw - 32px));
  margin-inline: auto;
  box-sizing: border-box;
  white-space: normal;
  z-index: 300;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(8,12,18,.96);
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
  color: rgba(255,255,255,.88);
  font-family: Manrope,Arial,sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

/* Keep the pointer over the disclosure when crossing the gap to its text. */
.gw-page .gw-offer-info-panel::before {
  content: "";
  position: absolute;
  inset: -12px 0 100%;
}

@media (max-width: 520px) {
  .gw-page .gw-offer-info-panel { max-width: min(220px, 100%); }
}

.gw-page .gw-info-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: baseline;
  gap: 0 5px;
}

.gw-page .gw-info-option input {
  margin-inline: 0;
}

.gw-page .gw-info-option label {
  cursor: pointer;
}

.gw-page .gw-info-name {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.gw-page .gw-model-name {
  white-space: nowrap;
}

@media (max-width: 380px) {
  .gw-page #gw-panel-5 {
    padding-left: 8px;
    padding-right: 8px;
  }

  .gw-page #gw-panel-5 .gw-info-name .gw-model-name {
    font-size: .875rem;
  }
}

.gw-page .gw-product-info-button {
  display: inline-grid;
  place-items: center;
  width: 25px;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
}

.gw-page .gw-product-info-button span {
  display: grid;
  place-items: center;
  width: 12px;
  height: 12px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 400 9px/1 var(--font-body);
}

.gw-page .gw-product-info-button:hover,
.gw-page .gw-product-info-button[aria-expanded="true"] {
  color: var(--brand-hover);
}

.gw-page .gw-offer-info-panel--product {
  position: fixed;
  inset: auto;
  max-width: min(280px, calc(100vw - 24px));
  margin: 0;
  text-align: center;
}

.gw-page .gw-offer-info-panel--product::before {
  content: none;
}

@media (pointer: coarse) {
  .gw-page .gw-product-info-button { min-height: 34px; }
}

/* Use the case-study player glow around the spot, inside the offer card. */
.gw-page .gw-spot-frame {
  position: relative;
  grid-area: visual;
  align-self: center;
  min-width: 0;
  margin: clamp(10px, 1.4vw, 20px);
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-black);
  box-shadow: 0 0 26px var(--brand-soft);
}

.gw-page .gw-spot-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.gw-page .gw-price {
  color: var(--text-soft);
  font-family: var(--font-body);
  font-weight: 300;
  white-space: nowrap;
}

.gw-page .gw-price-number {
  color: var(--brand-hover);
  font-variant-numeric: tabular-nums;
}

.gw-page #gwiazdka-film p.nc-description,
.gw-page #home-competencies .nc-description {
  font: 400 clamp(.98rem, 1.5vw, 1.08rem)/1.6 var(--font-body);
  text-wrap: pretty;
}

.gw-page #gwiazdka-film .partner-fkf-copy { gap: 0; }

.gw-page #gwiazdka-film .nc-description + .nc-description,
.gw-page #gw-panel-1 .nc-description + .nc-description {
  margin-block-start: 1em;
}

.gw-page .gw-price-row {
  margin: 0;
  padding-block-start: 14px;
}

.gw-page .gw-option-name {
  font-family: var(--font-body);
  font-weight: 700;
}

.gw-page .gw-price-tag {
  cursor: default;
}

.gw-page .gw-price-tag:hover {
  transform: none;
}

.gw-page .partner-fkf-cta:hover {
  background: linear-gradient(var(--brand-soft), var(--brand-soft)), var(--bg-elevated);
}

.gw-page label.partner-fkf-cta {
  cursor: pointer;
  font-weight: 400;
}

.gw-page .partner-fkf-cta input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-content: center;
  flex: 0 0 17px;
  inline-size: 17px;
  block-size: 17px;
  margin: 0;
  border: 1px solid var(--brand-hover);
  border-radius: 4px;
  background: var(--bg-elevated);
  cursor: inherit;
}

.gw-page .partner-fkf-cta input[type="checkbox"]:checked {
  background: var(--brand-hover);
}

.gw-page .partner-fkf-cta input[type="checkbox"]:checked::after {
  content: "";
  inline-size: 8px;
  block-size: 4px;
  border-left: 2px solid var(--bg-black);
  border-bottom: 2px solid var(--bg-black);
  transform: translateY(-1px) rotate(-45deg);
}

.gw-page .partner-fkf-cta input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--brand-hover);
  outline-offset: 3px;
}

.gw-page #home-competencies input[type="radio"] {
  accent-color: var(--brand-hover);
}

@media (forced-colors: active) {
  .gw-page .partner-fkf-cta input[type="checkbox"] {
    -webkit-appearance: checkbox;
    appearance: auto;
  }

  .gw-page .partner-fkf-cta input[type="checkbox"]:checked::after {
    content: none;
  }
}

/* Keep long headings on the same measure as their copy while a panel opens. */
.gw-page #home-competencies.nc-horizontal .nc-panel.is-active .nc-label {
  width: var(--nc-copy-width);
}

/* Keep both branded props in the accordion’s image area. */
.gw-page #home-competencies.nc-horizontal [data-image-style="bauble"] .nc-photo {
  top: auto;
  right: 0;
  bottom: 0;
  left: auto;
  width: 62%;
  height: auto;
  --gw-prop-image-mask: linear-gradient(transparent, #000 16%, #000 88%, transparent),
    linear-gradient(90deg, transparent, #000 20%);
  -webkit-mask-image: var(--gw-prop-image-mask);
  -webkit-mask-composite: source-in;
  mask-image: var(--gw-prop-image-mask);
  mask-composite: intersect;
}

.gw-page #home-competencies:not(.nc-horizontal) [data-image-style="bauble"] .nc-photo {
  height: min(300px, 72vw);
  object-position: 50% 78%;
}

/* Use the accordion's bottom inset for the main price. */
.gw-page [data-gw-offer-variants] {
  --gw-price-bottom-space: 28px;
}

.gw-page #gwiazdka-film .home-offer-stack__copy {
  padding-block-end: var(--gw-price-bottom-space);
}

.gw-page #home-competencies .nc-body {
  padding-block-end: var(--gw-price-bottom-space);
}

.gw-page #gwiazdka-film .gw-price-row,
.gw-page #gw-panel-1 .gw-price-row,
.gw-page #gw-panel-2 .gw-price-row,
.gw-page #gw-panel-3 .gw-price-row {
  display: flex;
}

.gw-page #gwiazdka-film .gw-price-tag,
.gw-page #gw-panel-1 .gw-price-tag,
.gw-page #gw-panel-2 .gw-price-row > .partner-fkf-cta,
.gw-page #gw-panel-3 .gw-price-row > .partner-fkf-cta {
  margin-inline: 0;
}

@media (max-width: 520px) {
  .gw-page [data-gw-offer-variants] {
    --gw-price-bottom-space: 24px;
  }
}

@media (min-width: 901px) {
  .gw-page [data-gw-offer-variants] {
    --gw-price-bottom-space: 30px;
  }

  .gw-page #gwiazdka-film .gw-spot-frame {
    align-self: end;
  }

  .gw-page #gwiazdka-film .home-offer-stack__copy {
    display: flex;
    flex-direction: column;
    align-self: stretch;
  }

  .gw-page #gwiazdka-film .partner-fkf-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
  }

  .gw-page #gwiazdka-film .gw-price-row {
    margin-block-start: auto;
  }
}

.gw-page #home-competencies.nc-horizontal .nc-panel.is-active,
.gw-page #home-competencies.nc-horizontal .nc-copy {
  display: flex;
  flex-direction: column;
}

.gw-page #home-competencies.nc-horizontal .nc-body:not([hidden]) {
  display: flex;
  flex: 1;
}

.gw-page #home-competencies.nc-horizontal .nc-copy {
  flex-shrink: 0;
}

.gw-page #home-competencies.nc-horizontal #gw-panel-4 [data-offer-controls],
.gw-page #home-competencies.nc-horizontal [data-offer-portrait] {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.gw-page #home-competencies.nc-horizontal .gw-price-row,
.gw-page #home-competencies.nc-horizontal #gw-panel-5 [data-offer-controls] {
  margin-block-start: auto;
}

@media (hover: hover) and (pointer: fine) {
  .gw-page .gw-spot-frame:hover {
    box-shadow: 0 0 32px var(--brand-line);
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .gw-page .gw-spot-frame {
    transition: box-shadow 240ms ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gw-page .gw-price-tag {
    transition: none;
  }
}

/* The summary uses the accordion’s text and divider on the page background. */
.gw-page .gw-summary {
  max-width: 40rem;
}

.gw-page .gw-summary {
  display: grid;
  row-gap: 20px;
  width: 100%;
}

.gw-page .gw-summary .ghost-title {
  margin: 0;
}

.gw-page .gw-summary .nc-accordion {
  display: block;
  margin: 0;
}

.gw-page .gw-summary-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gw-page .gw-summary .nc-award {
  margin: 16px 0 0;
}

.gw-page .gw-summary-contact {
  display: flex;
  justify-content: center;
}

.gw-page .gw-more-offer {
  width: min(1180px, calc(100% - 2 * clamp(16px, 2.2vw, 28px)));
  margin: 0 auto;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  text-align: center;
}

.gw-page .gw-more-offer .nc-description {
  margin-bottom: 20px;
}

.gw-page .gw-more-offer .home-offer-links__link {
  grid-template-columns: 24px minmax(0, 1fr) 24px;
}

.gw-page .gw-more-offer .home-offer-links__name {
  grid-column: 2;
  text-align: center;
}

@media (max-width: 520px) {
  .gw-page .gw-more-offer .home-offer-links__link {
    grid-template-columns: 18px minmax(0, 1fr) 18px;
  }
}

.gw-page #home-competencies.nc-horizontal #gw-panel-4 .gw-format-options:not([hidden]),
.gw-page .gw-format-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 1.12fr);
  gap: clamp(14px, 2vw, 28px);
}

.gw-page .gw-format-ratio {
  white-space: nowrap;
}

.gw-page .gw-format-options .gw-info-option > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gw-page .gw-format-price {
  margin-block-end: 8px;
}

.gw-page .gw-format-figure {
  margin: 24px auto 0;
  display: grid;
  place-items: start center;
  width: min(100%, clamp(198px, 25vw, 288px));
  aspect-ratio: 9 / 16;
}

/* Bring the preview beside the title of the horizontal accordion panel. */
.gw-page #home-competencies.nc-horizontal .gw-format-figure {
  margin-top: -72px;
}

.gw-page .gw-format-preview {
  width: min(100%, 186px);
  aspect-ratio: 1;
  position: relative;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-md);
  background: var(--surface-premium-solid);
}

/* Offset the square past the raised preview start and the existing .nc-award heading. */
.gw-page #home-competencies.nc-horizontal .gw-format-preview[data-gw-format-preview="1:1"] {
  margin-block-start: calc(72px + 22px + 1px + 20px + clamp(1rem, 1.28vw, 1.14rem) * 1.72);
}

.gw-page .gw-format-preview[data-gw-format-preview="9:16"] {
  width: 100%;
  aspect-ratio: 9 / 16;
}

.gw-page .gw-format-preview img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: inherit;
}

.gw-page .gw-preview-ratio {
  position: absolute;
  bottom: calc(100% + 4px);
  inset-inline: 0;
  color: var(--brand-hover);
  text-align: center;
  font-size: .875rem;
}

.gw-page .gw-preview-wishes {
  display: block;
  margin: 10px 3px 0;
  text-align: center;
  color: var(--text);
  font: 600 .72rem/1.3 var(--font-body);
}

.gw-page #modal-partner-contact.gw-contact-modal {
  width: min(680px, 100%);
}

.gw-page .gw-contact-modal .nc-layout {
  display: block;
}

.gw-page .gw-contact-modal .nc-form-side {
  padding: 0;
  border: 0;
}

.gw-page .gw-contact-modal .nc-form-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.4vw, 2rem);
  text-align: center;
  margin: 0 18px;
}

.gw-page .gw-contact-summary {
  color: #142131;
}

.gw-page .gw-contact-summary h4 {
  margin: 0 0 10px;
}

.gw-page .gw-contact-summary > div {
  background: #f0f5fb;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  overflow-wrap: anywhere;
}

.gw-page .gw-contact-summary li {
  margin: 0;
  line-height: 1.7;
}

.gw-page .gw-contact-summary .nc-award {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid #dce2e8;
  font-weight: 600;
}

.gw-page .gw-contact-summary .gw-price {
  color: #526173;
}

.gw-page .gw-contact-summary .gw-price-number {
  color: #2269bd;
}

@media (max-width: 620px) {
  .gw-page .gw-format-options {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 400px) {
  .gw-page .gw-format-price {
    display: block;
  }

  .gw-page .gw-format-price > [aria-hidden] {
    display: none;
  }
}

@supports not (aspect-ratio: 1) {
  .gw-page .gw-format-preview[data-gw-format-preview="9:16"] {
    min-height: 186px;
  }
}


.gw-bookmark { text-align: center; }
.gw-bookmark button {
  padding: .4em .2em;
  color: var(--brand-hover, #69aaf4);
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: .2em;
  font: inherit;
  cursor: pointer;
}
.gw-bookmark [role="status"]:not(:empty) { display: block; margin: .3em 0; }

.gw-page .gw-footer {
  padding: 16px 16px max(24px, env(safe-area-inset-bottom));
  text-align: center;
}

.gw-page .premium-box-stack.is-touch-sequence {
  padding-bottom: 0;
}

.gw-page .home-offer-stack.is-touch-sequence > .home-offer-stack__slot:focus-within {
  z-index: auto;
}

/* The homepage’s screening effect in the Christmas offer’s text flow. */
.gw-page .gw-delivery.home-screening {
  --screening-dim-ink: #b8c0cc;
  --screening-ink: var(--brand);
  display: block;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.5;
  min-height: 0;
  max-width: none;
  margin: clamp(16px, 2.3vw, 28px) 0 0;
  padding: 0;
  text-align: left;
}

.gw-page .gw-delivery.home-screening::before {
  display: none;
}

/* Keep the original square above the one-shot caption, with a continuous seam. */
.gw-page .gw-format-preview img:has(+ .gw-lettering) {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.gw-page .gw-format-preview .gw-lettering {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Filter the surrounding content, never a parent of the player or native controls. */
@media (prefers-reduced-motion: no-preference) {
  .gw-page.gw-spot-focused { --gw-surround-filter: blur(3.6px); }
  .gw-page :is(main > .page-episode, main > .gw-hero[data-home-page],
      #gwiazdka-film .home-offer-stack__copy, #gwiazdka-konfiguracja > article > *,
      .case-film-cta-wrap, .gw-more-offer, .gw-footer, #patronTopbar) {
    filter: var(--gw-surround-filter, none);
    transition: filter 320ms ease;
  }
}

.np-process__loading { position:absolute; right:20px; bottom:20px; z-index:2; display:grid; place-items:center; width:42px; height:42px; border:1px solid #ffffff26; border-radius:50%; background:#070b12b3; pointer-events:none; }
.np-process__loading[hidden] { display:none; }
.np-process__loading::before { content:''; width:18px; height:18px; border:1.5px solid #ffffff30; border-top-color:#cfe7ff; border-radius:50%; animation:np-film-loading .85s linear infinite; }
@keyframes np-film-loading { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .np-process__loading::before { animation:none; } }

/* Palette shares the contact dialog's surface and form controls. */
.gw-palette {
  width: min(29rem, calc(100vw - 32px));
  max-height: 85svh;
  box-sizing: border-box;
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(16px, 4vw, 32px);
  font: inherit;
  color: inherit;
  background: inherit;
  border: inherit;
  border-radius: inherit;
  box-shadow: inherit;
  margin: auto;
}
.gw-palette .nc-form { gap: 16px; }
.gw-palette-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gw-palette-actions .nc-action { min-height: 44px; padding: 8px 14px; font: inherit; }
.gw-palette [hidden] { display: none !important; }
.gw-palette-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(32px,1fr)); gap: 5px; }
.gw-palette-grid button { width: 100%; aspect-ratio: 1; border: 1px solid #b9c3cf; border-radius: 8px; cursor: pointer; }
.gw-palette input[type="range"] { width: 100%; accent-color: var(--brand); }
.gw-palette .nc-privacy { margin: 0; }

.narrix-contact .gw-palette .nc-field input[type="range"] { appearance:none; -webkit-appearance:none; box-sizing:border-box; width:100%; height:32px; min-height:32px; margin:0; padding:0; border:0; background:transparent; cursor:pointer; }
.narrix-contact .gw-palette .nc-field input[type="range"]::-webkit-slider-runnable-track { box-sizing:border-box; height:8px; border:0; border-radius:8px; background:var(--gw-track); box-shadow:inset 0 0 0 1px #52617355; }
.narrix-contact .gw-palette .nc-field input[type="range"]::-webkit-slider-thumb { appearance:none; -webkit-appearance:none; box-sizing:border-box; width:20px; height:20px; margin-top:-6px; border:2px solid var(--gw-ring); border-radius:50%; background:var(--gw-thumb); box-shadow:0 0 0 1px #526173; }
.narrix-contact .gw-palette .nc-field input[type="range"]::-moz-range-track { box-sizing:border-box; height:8px; border:0; border-radius:8px; background:var(--gw-track); box-shadow:inset 0 0 0 1px #52617355; }
.narrix-contact .gw-palette .nc-field input[type="range"]::-moz-range-thumb { appearance:none; -webkit-appearance:none; box-sizing:border-box; width:20px; height:20px; border:2px solid var(--gw-ring); border-radius:50%; background:var(--gw-thumb); box-shadow:0 0 0 1px #526173; }
