/* ==========================================================================
   Kampania OKLEINY — style nowego UI (Figma: DESKTOP:: OKN_MATT_072026)
   Ładowany PO style-swiat.css (nadpisuje header/footer/body ze starego arkusza)
   ========================================================================== */

:root {
  --k-primary: #00b1eb;
  --k-text: #1c1c1c;
  --k-black: #0b0c0c;
  --k-menu-bg: rgba(18, 18, 18, 0.95);
  --k-form-bg: #f9fafc;
  --k-step-muted: #dfe4e7;
  --k-footer-link: #484950;
  --k-video-bg: #d4b891;
}

body {
  padding-top: 0 !important;
  font-family: "Clan Pro Regular", sans-serif;
}

/* ---------- wspólny button-pigułka ---------- */

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 24px;
  border: 0;
  border-radius: 64px;
  background: var(--k-primary);
  color: #ffffff;
  font: 700 12px/16px "Clan Pro Bold", sans-serif;
  letter-spacing: -0.2px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-pill:hover {
  background: #0091c2;
  color: #ffffff;
}

.btn-pill--ghost {
  background: transparent;
  border: 1px solid var(--k-primary);
  color: var(--k-primary);
}

.btn-pill--ghost:hover {
  background: rgba(0, 177, 235, 0.08);
  color: var(--k-primary);
}

/* ==========================================================================
   TOP MENU — pływająca pigułka, chowa się przy scrollu w dół
   ========================================================================== */

header.top-menu {
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  padding: 0;
  display: block;
  pointer-events: none;
  transition: transform 0.35s ease;
}

header.top-menu.is-hidden {
  transform: translateY(-130%);
}

.top-menu__bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
  padding: 0 24px;
  background: var(--k-menu-bg);
}

.top-menu__logo {
  display: inline-flex;
  flex-shrink: 0;
}

.top-menu__logo img {
  height: 20px;
  width: auto;
}

.top-menu__nav {
  display: none;
}

.top-menu__cta {
  display: none;
}

#mobile-menu {
  margin-left: auto;
}

/* pasek postępu scrollowania — tylko mobile/tablet (<1024px);
   nałożony na górną krawędź belki (absolute), nie tworzy przerwy nad menu */
.scroll-progress {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 5px;
  pointer-events: none;
}

.scroll-progress__fill {
  width: 0;
  height: 100%;
  background: #00b1eb;
}

/* floating icon kontaktu — tylko mobile/tablet (<1024px);
   ukryta na hero, pojawia się po przescrollowaniu (JS dodaje .is-visible) */
.floating-contact {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  width: 48px;
  height: 48px;
  padding: 6.857px;
  justify-content: center;
  align-items: center;
  border-radius: 17.143px;
  background: #00b1eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-contact.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-contact.is-visible:active {
  transform: scale(0.92);
}

/* belka <1024px jest na stałe: scrollowe chowanie wyłącza guard w main.js
   (celowo bez override'u CSS — lightbox nadal może schować belkę klasą is-hidden) */
@media (max-width: 1023px) {
  .scroll-progress {
    display: block;
  }
}

@media (min-width: 1024px) {
  .floating-contact {
    display: none;
  }
}

@media (min-width: 1024px) {
  header.top-menu {
    padding-top: 32px;
  }

  .top-menu__bar {
    width: min(1032px, calc(100% - 48px));
    margin: 0 auto;
    height: 72px;
    padding: 0 32px;
    border-radius: 16px;
    gap: 24px;
  }

  .top-menu__logo img {
    height: 24px;
  }

  /* nav wycentrowany między logo a CTA — równe odstępy po obu stronach */
  .top-menu__nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 auto;
  }

  .top-menu__link {
    position: relative;
    padding: 8px;
    color: #ffffff;
    font: 14px/16px "Clan Pro News", sans-serif;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
  }

  /* default: biały; hover: niebieski + podkreślenie (kreska 40px) */
  .top-menu__link:hover {
    color: var(--k-primary);
  }

  /* kreska dopasowana do szerokości tekstu (link ma padding 8px po bokach) */
  .top-menu__link::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 0;
    height: 1px;
    background: var(--k-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .top-menu__link:hover::after {
    opacity: 1;
  }

  .top-menu__link--buy {
    color: var(--k-primary);
  }

  .top-menu__cta {
    display: inline-flex;
    height: 32px;
    padding: 8px 24px;
    flex-shrink: 0;
  }

  #mobile-menu {
    margin-left: 0;
  }
}

/* mobilny drawer (nav.lp-promo-nav) — mechanika ze starego arkusza;
   header ma teraz 56px, drawer wjeżdża pod pasek */
header.top-menu .lp-promo-nav {
  pointer-events: none;
}

header.top-menu .lp-promo-nav.open {
  pointer-events: auto;
}

@media (min-width: 1024px) {
  header.top-menu .lp-promo-nav {
    display: none;
  }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.k-hero {
  position: relative;
  height: 560px;
  background: url(../images/top-hero-mobile.webp) center top / cover no-repeat;
  background-image: -webkit-image-set(
    url(../images/top-hero-mobile.webp) 1x,
    url(../images/top-hero-mobile@2x.webp) 2x
  );
  background-image: image-set(
    url(../images/top-hero-mobile.webp) 1x,
    url(../images/top-hero-mobile@2x.webp) 2x
  );
}

/* copy hero — ciemny tekst na jasnym zdjęciu, bez nakładki */
.k-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 335px;
  max-width: 100%;
  padding: 112px 24px 0;
}

.k-hero__title {
  width: 307px;
  max-width: 100%;
  color: #1c1c1c;
  font: 24px/34px "Clan Pro Bold", sans-serif;
  text-transform: uppercase;
  margin: 0 0 18px; /* odstęp tytuł → podtytuł: 18px */
}

.k-hero__subtitle {
  color: #1c1c1c;
  font: 30px/40px "Clan Pro Bold", sans-serif;
  margin: 0 0 24px;
}

.k-hero__text {
  color: #1c1c1c;
  font: 16px/24px "Clan Pro News", sans-serif;
  margin: 0 0 24px;
}

.k-hero__text strong {
  font-family: "Clan Pro Bold", sans-serif;
}


@media (min-width: 768px) {
  .k-hero {
    height: 624px;
    background: url(../images/top-hero.webp) center top / cover no-repeat;
    background-image: -webkit-image-set(
      url(../images/top-hero.webp) 1x,
      url(../images/top-hero@2x.webp) 2x
    );
    background-image: image-set(
      url(../images/top-hero.webp) 1x,
      url(../images/top-hero@2x.webp) 2x
    );
  }

  .k-hero__content {
    padding: 204px 0 0 10.28%;
    box-sizing: content-box;
  }
}

/* DESKTOP (>=1024): lewa krawędź hero na tej samej osi co tekst sekcji
   (wyśrodkowany canvas 1440 + offset 8.06%, jak .k-copy/.k-sub) */
@media (min-width: 1024px) {
  .k-hero__content {
    padding-left: 0; /* nadpisuje 10.28% z bloku 768+ */
    margin-left: max(8.06%, calc(50% - 604px));
  }
}

/* wskaźnik scrollowania (scroll.svg: napis + kreska + myszka) */
.k-hero .scroll-down {
  position: absolute;
  left: 0;
  bottom: -61px;
  width: 100%;
  display: none;
  justify-content: center;
  z-index: 20;
  pointer-events: none;
}

@media (min-width: 768px) {
  .k-hero .scroll-down {
    display: flex;
  }
}

.k-hero .scroll-down .scroll-down-wrapper {
  pointer-events: auto;
  cursor: pointer;
}

.k-hero .scroll-down .scroll-down-wrapper img {
  display: block;
  width: 101px;
  height: auto;
}

/* wskaźnik scrollowania — wersja mobile (scroll-mobile.svg: strzałka + napis) */
.k-hero .scroll-down-mobile {
  position: absolute;
  left: 50%;
  bottom: -33px;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  z-index: 20;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.k-hero .scroll-down-mobile.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.k-hero .scroll-down-mobile img {
  display: block;
  width: 101px;
  height: auto;
}

@media (min-width: 768px) {
  .k-hero .scroll-down-mobile {
    display: none;
  }
}

/* ==========================================================================
   ŚWIATY KOLORÓW — wspólny gradient + boczna nawigacja (mechanika starego CSS)
   ========================================================================== */

.k-worlds {
  /* tło z eksportu (1440×5413); kolor pod spodem = końcówka gradientu,
     gdyby treść była wyższa niż grafika */
  background-color: #ede8e4;
  background-image: url(../images/backgorund.webp);
  background-image: -webkit-image-set(
    url(../images/backgorund.webp) 1x,
    url(../images/backgorund@2x.webp) 2x
  );
  background-image: image-set(
    url(../images/backgorund.webp) 1x,
    url(../images/backgorund@2x.webp) 2x
  );
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
}

/* boczna nawigacja w sekcjach: kolory/typo ze starego arkusza (.content .nav-site) */

/* ---------- sekcja: tryb "canvas" 1:1 z Figmą (>=768px) ---------- */

.k-section {
  position: relative;
}

.k-canvas {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
}

/* typografia wspólna */
.k-title {
  font: 400 clamp(44px, 8.33vw, 120px) / 0.87 "Clan Pro Extd Bold", sans-serif;
  color: var(--k-text);
  text-align: center;
}

.k-sub {
  font: 700 clamp(22px, 2.22vw, 32px) / 1.5 "Clan Pro Bold", sans-serif;
  color: var(--k-text);
}

.k-word {
  font: 700 clamp(40px, 5vw, 72px) / 1.11 "Clan Pro Bold", sans-serif;
  color: var(--k-text);
}

.k-copy p {
  font: 16px/24px "Clan Pro News", sans-serif;
  color: var(--k-text);
  margin-bottom: 24px;
}

.k-copy strong {
  font-family: "Clan Pro Bold", sans-serif;
}

/* mobile (<768): układ w kolumnie */
.k-section {
  padding: 48px 0 8px;
}

.k-title,
.k-sub,
.k-word {
  text-align: center;
}

.k-copy {
  padding: 24px 16px 0;
}

.k-copy .btn-pill {
  margin: 0 auto;
}

.k-img {
  display: none;
}

.k-video {
  position: relative;
  width: 100%;
  aspect-ratio: 680 / 432;
  background: var(--k-video-bg);
  overflow: hidden;
  margin-top: 32px;
}

/* >=1024px: proporcjonalny canvas wg współrzędnych Figmy (1440 x H sekcji);
   poniżej 1024 układ warstwowy jak na starym LP (tablet/telefon) */
@media (min-width: 1024px) {
  .k-section {
    padding: 0;
  }

  .k-canvas {
    aspect-ratio: 1440 / 1824; /* SEMIMATT */
  }

  .k-section--matt .k-canvas {
    aspect-ratio: 1440 / 1640;
  }

  .k-section--woodec .k-canvas {
    aspect-ratio: 1440 / 1960;
  }

  .k-canvas > * {
    position: absolute;
    margin: 0;
    padding: 0;
  }

  .k-title {
    left: 0;
    width: 100%;
    text-align: center;
  }

  .k-sub,
  .k-word {
    text-align: left;
    white-space: nowrap;
  }

  .k-copy {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .k-copy .btn-pill {
    margin: 0;
  }

  .k-copy p {
    margin: 0;
    /* tekst skaluje się z canvasem (16px przy 1440), żeby nie nachodził na zdjęcia przy 1024-1440 */
    font-size: clamp(11px, 1.111vw, 16px);
    line-height: 1.5;
  }

  .k-img {
    display: block;
    overflow: hidden;
  }

  .k-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .k-video {
    margin: 0;
    aspect-ratio: auto;
  }

  /* ----- SEMIMATT (H=1824) ----- */
  .k-section--semimatt .k-title {
    top: 5.7%;
  }
  .k-section--semimatt .k-sub {
    left: 8.13%;
    top: 13.16%;
  }
  .k-section--semimatt .k-word {
    left: 14.17%;
    top: 16.23%;
  }
  .k-section--semimatt .k-copy {
    left: 8.06%;
    top: 21.93%;
    width: 35%;
  }
  .k-section--semimatt .k-img--1 {
    left: 50.83%;
    top: 13.6%;
    width: 41.11%;
    height: 21.88%;
  }
  .k-section--semimatt .k-img--2 {
    left: 59.65%;
    top: 41.17%;
    width: 27.85%;
    height: 20.61%;
  }
  .k-section--semimatt .k-video {
    left: 8.06%;
    top: 39.86%;
    width: 47.22%;
    height: 23.68%;
  }
  .k-section--semimatt .k-img--3 {
    left: 44.72%;
    top: 66.67%;
    width: 47.22%;
    height: 24.56%;
  }
  .k-section--semimatt .k-img--4 {
    left: 1.94%;
    top: 70.12%;
    width: 35%;
    height: 17.87%;
  }

  /* ----- MATT (H=1640) ----- */
  .k-section--matt .k-title {
    top: 0;
  }
  .k-section--matt .k-sub {
    left: 14.17%;
    top: 8.78%;
  }
  .k-section--matt .k-word {
    left: 20%;
    top: 12.2%;
  }
  .k-section--matt .k-copy {
    left: 56.94%;
    top: 9.27%;
    width: 28.47%;
  }
  .k-section--matt .k-img--1 {
    left: -2.43%;
    top: 19.51%;
    width: 51.67%;
    height: 27.8%;
  }
  .k-section--matt .k-video {
    left: 44.72%;
    top: 33.66%;
    width: 47.22%;
    height: 26.34%;
  }
  .k-section--matt .k-img--2 {
    left: 1.94%;
    top: 57.07%;
    width: 30.63%;
    height: 33.17%;
  }
  .k-section--matt .k-img--3 {
    left: 50.83%;
    top: 65.37%;
    width: 35%;
    height: 20.49%;
  }

  /* ----- WOODEC (H=1960) ----- */
  .k-section--woodec .k-title {
    top: 0;
  }
  .k-section--woodec .k-sub {
    left: 8.13%;
    top: 8.16%;
  }
  .k-section--woodec .k-word {
    left: 20.28%;
    top: 11.43%;
  }
  .k-section--woodec .k-copy {
    left: 8.33%;
    top: 16.73%;
    width: 36.39%;
  }
  .k-section--woodec .k-video {
    left: 50.83%;
    top: 11.84%;
    width: 41.11%;
    height: 19.18%;
  }
  .k-section--woodec .k-img--1 {
    left: 8.06%;
    top: 37.14%;
    width: 47.22%;
    height: 24.9%;
  }
  .k-section--woodec .k-img--2 {
    left: 63.06%;
    top: 28.11%;
    width: 36.94%;
    height: 40.87%;
  }
  .k-section--woodec .k-img--3 {
    left: 1.94%;
    top: 67.76%;
    width: 32.08%;
    height: 17.14%;
  }
  .k-section--woodec .k-img--4 {
    left: 38.61%;
    top: 73.06%;
    width: 22.78%;
    height: 18.78%;
  }
}

/* ---------- kafle wideo ---------- */

.k-video {
  background: var(--k-video-bg);
}

.k-video .player-dummy-thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.k-video .player-dummy-button {
  background-image: url(../images/kampania/play-button.svg) !important;
}

.k-video .plyr,
.k-video .plyr__video-wrapper {
  height: 100%;
}

.k-video .plyr {
  position: absolute;
  inset: 0;
  width: 100%;
}

/* ==========================================================================
   FORMULARZ ETAPOWY
   ========================================================================== */

/* ==========================================================================
   FORMULARZ KONTAKTOWY — 1:1 z Figmy „#14 formularz"
   (desktop 78:387, mobile 78:437)
   Mapowanie fontów: Clan Pro Medium(500) → Clan Pro Bold;
   Clan N Bold(700) → Clan Pro Bold (brak tych odmian w /fonts).
   ========================================================================== */

.k-contact {
  background: var(--k-form-bg);
  padding: 104px 0;
  scroll-margin-top: 120px;
}

.k-contact__grid {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

@media (min-width: 1024px) {
  .k-contact__grid {
    padding-left: 120px;
    padding-right: 120px;
  }
}

@media (min-width: 1200px) {
  .k-contact__grid {
    flex-wrap: nowrap;
    gap: 126px;
  }
}

/* ---------- lewa kolumna: intro + mapa partnerów ---------- */
.k-contact__intro {
  flex: 1 1 380px;
  max-width: 531px;
}

.k-contact__intro h2 {
  font: 40px/56px "Clan Pro Bold", sans-serif;
  color: #121212;
  margin-bottom: 22px;
}

.k-contact__intro > p {
  font: 16px/24px "Clan Pro News", sans-serif;
  color: #121212;
  max-width: 486px;
}

.k-map {
  margin-top: 93px;
}

.k-map h3 {
  font: 20px/30px "Clan Pro Bold", sans-serif;
  color: #121212;
  margin-bottom: 24px;
}

.k-map__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 12px/16px "Clan Pro News", sans-serif;
  letter-spacing: -0.4px;
  color: #484950;
  text-decoration: none;
  transition: color 0.2s ease;
}

.k-map__link svg {
  color: var(--k-primary);
}

.k-map__link:hover {
  color: var(--k-primary);
}

.k-map__image {
  display: block;
  margin-top: 24px;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 709 / 541;
}

.k-map__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.k-map__image:hover img {
  transform: scale(1.03);
}

/* ---------- prawa kolumna: formularz ---------- */
.k-contact__col--form {
  flex: 1 1 480px;
  max-width: 588px;
}

.k-contact__coltitle {
  font: 24px/32px "Clan Pro Bold", sans-serif;
  letter-spacing: -1.2px;
  color: #292d37;
  margin-bottom: 24px;
}

/* ---------- pola ---------- */
.k-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
  margin-bottom: 24px;
}

.k-field--full {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  .k-fields {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .k-field--half {
    grid-column: 1 / -1;
  }
}

.k-field label {
  display: flex;
  align-items: center;
  height: 24px;
  font: 12px/18px "Clan Pro News", sans-serif;
  color: #292d37;
  margin-bottom: 4px;
}

.k-field input[type="text"],
.k-field input[type="email"],
.k-field input[type="tel"],
.k-field textarea {
  width: 100%;
  height: 48px;
  font: 14px/20px "Clan Pro News", sans-serif;
  color: #121212;
  background: #ffffff;
  border: 1px solid #dce3e9;
  border-radius: 8px;
  box-shadow: 0 1px 2px 0 rgba(220, 227, 233, 0.5);
  padding: 13px 16px;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.k-field textarea {
  height: 132px;
  min-height: 132px;
  resize: vertical;
}

.k-field input::placeholder,
.k-field textarea::placeholder {
  color: #a7b7c9;
}

.k-field input:focus,
.k-field textarea:focus {
  outline: none;
  border-color: var(--k-primary);
}

.k-field.is-invalid input,
.k-field.is-invalid textarea {
  border-color: #bd2828;
}

.k-field__error {
  display: block;
  margin-top: 4px;
  font: 12px/18px "Clan Pro News", sans-serif;
  color: #bd2828;
}

.k-field__error[hidden] {
  display: none;
}

/* ---------- załącz plik ---------- */
.k-fileupload {
  margin-bottom: 24px;
}

.k-fileupload__note {
  display: block;
  font: 14px/22px "Clan Pro News", sans-serif;
  color: #121212;
  margin-bottom: 12px;
}

.k-fileupload__control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.k-fileupload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.k-fileupload__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 12px/18px "Clan Pro Bold", sans-serif;
  text-transform: uppercase;
  color: var(--k-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 16px;
  margin-left: -16px;
  border-radius: 64px;
  transition: opacity 0.2s ease;
}

.k-fileupload__btn svg {
  color: var(--k-primary);
}

.k-fileupload__btn:hover {
  opacity: 0.7;
}

.k-fileupload__list {
  font: 12px/18px "Clan Pro News", sans-serif;
  color: #121212;
}

.k-fileupload__clear {
  font: 12px/18px "Clan Pro Bold", sans-serif;
  text-transform: uppercase;
  color: var(--k-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
}

/* ---------- zgody ---------- */
.k-consent {
  border: none;
  padding: 0;
  margin: 0 0 24px;
}

.k-consent__desc {
  font: 12px/18px "Clan Pro News", sans-serif;
  color: #121212;
}

.k-consent__desc a {
  color: #121212;
  text-decoration: underline;
}

/* rozwijana treść „Czytaj więcej" — wpada w osobny akapit pod tekstem */
.js-read-more:not([hidden]) {
  display: block;
  margin-top: 4px;
}

.js-btn-read-more {
  display: block;
  margin-top: 4px;
  font: 12px/18px "Clan Pro News", sans-serif;
  color: #121212;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

/* checkboxy e-mail / telefon — 24px, radius 4, tick niebieski */
.k-consent--choices .k-consent__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
}

.k-consent__choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 12px/18px "Clan Pro News", sans-serif;
  color: #121212;
  cursor: pointer;
}

.k-consent__choice input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  margin: 0;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #dce3e9;
  border-radius: 4px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.k-consent__choice input[type="checkbox"]:checked {
  border-color: var(--k-primary);
}

.k-consent__choice input[type="checkbox"]:checked::after {
  content: "";
  width: 12px;
  height: 12px;
  background: url(../images/kampania/check-tick.svg) center / contain no-repeat;
}

/* ---------- submit ---------- */
.k-form-submit {
  display: flex;
  align-items: center;
  gap: 16px;
}

.k-form-submit .btn-pill {
  min-width: 0;
}

.k-form-submit .btn-pill:disabled {
  cursor: wait;
  opacity: 0.65;
}

.k-form-loader {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid #dce3e9;
  border-top-color: var(--k-primary);
  border-radius: 50%;
  animation: k-form-spin 0.8s linear infinite;
}

.k-form-check {
  font: 24px/24px "Clan Pro Bold", sans-serif;
  color: var(--k-primary);
}

.k-form-loader[hidden],
.k-form-check[hidden] {
  display: none;
}

.k-form-message {
  margin: 16px 0 0;
  font: 14px/22px "Clan Pro News", sans-serif;
  color: #121212;
}

.k-form-message.is-error {
  color: #bd2828;
}

@keyframes k-form-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer.k-footer {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 24px;
  position: relative;
}

@media (min-width: 1024px) {
  footer.k-footer {
    flex-direction: row;
    padding: 40px 48px;
  }
}

@media (min-width: 1300px) {
  footer.k-footer {
    padding: 40px 116px 40px 116px;
  }
}

.k-footer__logo img {
  height: 24px;
  width: auto;
  display: block;
}

.k-footer__menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.k-footer__menu a {
  padding: 8px;
  font: 14px/16px "Clan Pro News", sans-serif;
  color: var(--k-footer-link);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.k-footer__menu a:hover {
  color: var(--k-primary);
}

.k-footer__menu a.k-footer__buy {
  color: var(--k-primary);
}

.k-footer__social {
  display: flex;
  gap: 16px;
}

.k-footer__social a {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
}

.k-footer__social img {
  width: 40px;
  height: 40px;
  display: block;
}

/* kolorowa wersja ikony (wg Figmy) pojawia się na hover — crossfade */
.k-footer__social img.sm-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.k-footer__social a:hover img.sm-hover,
.k-footer__social a:focus-visible img.sm-hover {
  opacity: 1;
}

.k-footer__up {
  cursor: pointer;
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.k-footer__up:hover {
  transform: translateY(-4px);
}

.k-footer__up img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   MOBILE (<768px) — układ komponentów wg starego LP (wwwold):
   tytuł → podtytuł → wideo → slider zdjęć → opis + button
   ========================================================================== */

@media (max-width: 767px) {
  /* ---------- hero: treść wycentrowana, ciaśniejsze odstępy i całość
     wyżej, żeby copy nie wchodziło na grafikę okien w tle ---------- */
  .k-hero__content {
    max-width: 340px;
    margin: 0 auto;
    padding: 88px 16px 0;
    align-items: center;
    text-align: center;
  }

  .k-hero__title {
    margin-bottom: 10px;
  }

  .k-hero__subtitle {
    margin-bottom: 14px;
  }

  .k-hero__text {
    font: 15px/22px "Clan Pro News", sans-serif;
    margin-bottom: 18px;
  }

  /* ---------- sekcje: kolejność jak na starym LP ---------- */
  .k-section {
    display: flex;
    flex-direction: column;
    padding: 40px 0 16px;
  }

  .k-canvas {
    display: contents;
  }

  .k-title {
    order: 1;
  }

  .k-sub {
    order: 2;
    padding: 16px 16px 0;
  }

  .k-word {
    order: 3;
  }

  .k-video {
    order: 4;
    margin-top: 24px;
  }

  .slider-photo {
    order: 5;
  }

  /* zdjęcia w karuzeli w formacie kwadratu 1:1 */
  .slider-photo .item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }

  .slider-photo .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .k-copy {
    order: 6;
    padding: 24px 16px 0;
  }

  .k-img {
    display: none;
  }

  /* ---------- formularz kontaktowy (Figma 78:437) ----------
     kolejność: nagłówek → akapit → formularz → mapa (mapa spoza frame'a
     mobile — decyzja: pokazujemy ją pod formularzem) */
  .k-contact {
    padding: 40px 0 64px;
  }

  .k-contact__grid {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 24px;
  }

  .k-contact__intro {
    display: contents;
  }

  .k-contact__intro h2 {
    order: 1;
    font: 24px/36px "Clan Pro Bold", sans-serif;
    letter-spacing: -1px;
    margin: 0;
  }

  .k-contact__intro > p {
    order: 2;
    max-width: 100%;
  }

  .k-contact__col--form {
    order: 3;
    max-width: 100%;
  }

  .k-map {
    order: 4;
    margin-top: 16px;
  }

  /* button mobile: h40, radius 44 (Figma 78:481) */
  .k-form-submit .btn-pill {
    height: 40px;
    padding: 8px 24px;
    border-radius: 44px;
  }

  /* ---------- footer: strzałka w prawym dolnym rogu ---------- */
  footer.k-footer {
    padding-bottom: 72px;
  }

  .k-footer__up {
    position: absolute;
    right: 16px;
    bottom: 16px;
  }
}

/* ==========================================================================
   TABLET (768–1023px) — układ warstwowy ze starego LP:
   tytuł → podtytuł → wideo → siatka zdjęć 2 kolumny (slider ukryty) → opis
   ========================================================================== */

@media (min-width: 768px) and (max-width: 1023px) {
  .k-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
    padding: 56px 24px 32px;
  }

  .k-canvas {
    display: contents;
  }

  .k-title {
    grid-column: 1 / -1;
    order: 1;
  }

  .k-sub {
    grid-column: 1 / -1;
    order: 2;
    text-align: center;
    padding-top: 8px;
  }

  .k-word {
    grid-column: 1 / -1;
    order: 3;
    text-align: center;
  }

  .k-video {
    grid-column: 1 / -1;
    order: 4;
    margin: 16px 0 0;
    aspect-ratio: 680 / 432;
    width: 100%;
  }

  .k-img {
    display: block;
    order: 5;
    position: static;
    overflow: hidden;
    aspect-ratio: 3 / 2;
  }

  .k-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .k-copy {
    grid-column: 1 / -1;
    order: 6;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: left;
  }

  /* stary LP chowa slider zdjęć od 768px (zdjęcia w siatce) */
  .slider-photo {
    display: none;
  }

  /* hero: treść wyrównana do lewej jak na starym LP >=768 */
  .k-hero__content {
    max-width: 483px;
    padding: 204px 0 0 48px;
  }
}
