
    :root {
      --blue: #1f7ae0;
      --blue-dark: #1552a8;
      --yellow: #fbbf24;
      --bg: #f4f5f7;
      --card-bg: #f7f8fb;
      --paper: #fcfdff; /* premium biel (zamiast #fff) */
      --paper-2: #fafcff; /* delikatny gradient / panele */ 
      --text-main: #111827;
      --text-muted: #6b7280;
      --border: #e5e7eb;
      --radius-lg: 18px;
      --radius-md: 12px;
    }



    * { box-sizing: border-box; }


    body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
}



    a { color: inherit; text-decoration: none; }



    .container {
      max-width: 1120px;
      margin: 0 auto;
      padding: 0 16px;
    }



    /* ======= CONTENT ======= */
    main { padding: 24px 0 56px; }



    .page-hero {
      background: var(--paper);
      border-radius: var(--radius-lg);
      padding: 22px 20px;
      box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
      margin-bottom: 18px;
    }


    .page-hero h1{
      margin: 0 0 10px;
      font-size: 1.85rem;
      line-height: 1.2;
    }


    .page-hero p{
      margin: 0;
      color: #4b5563;
      font-size: 1rem;
      line-height: 1.55;
    }



    .section-card {
  /* glass / frost background */
  background: rgba(252,253,255,0.82);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);

  /* shape */
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-top: 14px;

  /* subtle border for glass effect */
  border: 1px solid rgba(252,253,255,0.45);

  /* soft modern shadow */
  box-shadow:
    0 8px 28px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(252,253,255,0.35);

  /* smooth transitions (nice on hover/scroll) */
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}



/* delikatny „lift” przy hover – bardzo premium */
.section-card:hover {
  box-shadow:
    0 14px 40px rgba(15, 23, 42, 0.28),
    inset 0 1px 0 rgba(252,253,255,0.45);
  transform: translateY(-1px);
}



    .section-title {
      margin: 0 0 10px;
      font-size: 1.25rem;
    }



    /* ======= SLIDER (desktop: para obok siebie) ======= */
    .pair-slider {
      position: relative;
      overflow: hidden;
      border-radius: 16px;
      border: 1px solid rgba(229,231,235,0.9);
      background: var(--paper);
    }



    .pair-track {
      display: flex;
      transition: transform 420ms ease;
      will-change: transform;
    }



    .pair-slide {
      min-width: 100%;
      padding: 16px;
    }



    .pair-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
      align-items: stretch;
    }



    .pair-figure {
      position: relative;
      border-radius: 14px;
      overflow: hidden;
      border: 1px solid rgba(229,231,235,0.95);
      background: var(--paper);
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10);
      cursor: zoom-in;
    }



    .pair-figure img {
      width: 100%;
      height: 360px;
      object-fit: cover;
      display: block;
      transform: scale(1.0001);
    }



    .badge {
      position: absolute;
      top: 12px;
      left: 12px;
      z-index: 2;
      padding: 7px 10px;
      border-radius: 999px;
      font-weight: 800;
      font-size: 0.85rem;
      letter-spacing: 0.03em;
      color: #0b1220;
      background: rgba(252,253,255,0.92);
      border: 1px solid rgba(0,0,0,0.06);
      box-shadow: 0 6px 14px rgba(0,0,0,0.14);
    }



    .badge--before { }


    .badge--after  { }



    .pair-meta {
      margin-top: 12px;
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
    }



    .pair-meta .name {
      font-weight: 800;
      font-size: 1rem;
    }


    .pair-meta .note {
      color: var(--text-muted);
      font-size: 0.92rem;
    }



    /* Controls */
    .pair-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 42px;
      height: 42px;
      border-radius: 999px;
      border: 1px solid rgba(0,0,0,0.10);
      background: rgba(252,253,255,0.92);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 10px 22px rgba(0,0,0,0.18);
      z-index: 5;
    }


    .pair-btn:hover { transform: translateY(-50%) scale(1.02); }


    .pair-btn:active{ transform: translateY(-50%) scale(0.98); }


    .pair-btn svg { width: 18px; height: 18px; }



    .pair-btn.prev { left: 10px; }


    .pair-btn.next { right: 10px; }



    .dots {
      display: flex;
      gap: 8px;
      justify-content: center;
      padding: 12px 12px 14px;
      background: linear-gradient(180deg, rgba(252,253,255,0), rgba(250,252,255,1));
    }


    .dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      border: 2px solid rgba(17,24,39,0.25);
      cursor: pointer;
      background: transparent;
      transition: transform 120ms ease, border 120ms ease;
    }


    .dot.is-active {
      border: 6px solid rgba(255, 99, 71, 0.95); /* tomato akcent jak lubisz */
      transform: scale(1.02);
    }



    /* Mobile: układ 1 kolumna (czytelnie) */
    @media (max-width: 900px) {
      .pair-grid { grid-template-columns: 1fr; }


      .pair-figure img { height: 300px; }


      .pair-btn { display:none; }
}


    /* ===== MOBILE slider (toggle PRZED/PO + swipe) ===== */
#mobileSlider { display: none; }



@media (max-width: 900px) {
  /* Na telefonie chowamy desktopowy slider, pokazujemy mobilny */
  #pairSlider { display: none; }


  #mobileSlider { display: block; }
}



.mobile-pair{
  border-radius: 16px;
  border: 1px solid rgba(229,231,235,0.95);
  background: var(--paper);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.10);
  overflow: hidden;
}



.mobile-pair__top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(229,231,235,0.8);
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
}



.mobile-pair__title{
  font-weight: 900;
  font-size: 1rem;
}



.mobile-pair__count{
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text-muted);
  white-space: nowrap;
}



.mobile-pair__imgwrap{
  position: relative;
  background: #0b1220;
}



.mobile-pair__imgwrap img{
  width: 100%;
  height: 64vh;
  max-height: 560px;
  min-height: 340px;
  object-fit: contain;
  display:block;
  background: #0b1220;
}



.mobile-pair__badge{
  position:absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: #0b1220;
  background: rgba(252,253,255,0.92);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 6px 14px rgba(0,0,0,0.20);
}



.mobile-pair__controls{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(229,231,235,0.8);
  background: var(--paper);
}



.mToggle{
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 12px 10px;
  font-weight: 900;
  cursor:pointer;
  background: rgba(31,122,224,0.06);
}



.mToggle.is-active{
  background: rgba(255, 99, 71, 0.16);
  border-color: rgba(255, 99, 71, 0.55);
}



.mobile-pair__nav{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 14px;
  background: var(--paper);
  border-top: 1px solid rgba(229,231,235,0.8);
}



.mNav{
  width: 44px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(252,253,255,0.92);
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 900;
  cursor:pointer;
}



.mobile-pair__hint{
  color: var(--text-muted);
  font-size: 0.92rem;
  text-align:center;
  flex: 1;
}



    /* ======= GRID wszystkich par ======= */
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      margin-top: 12px;
    }



    .gallery-card {
      border-radius: 16px;
      border: 1px solid rgba(229,231,235,0.95);
      background: var(--paper);
      box-shadow: 0 6px 16px rgba(15, 23, 42, 0.10);
      overflow: hidden;
    }



    .gallery-card .head {
      display:flex;
      align-items:center;
      justify-content: space-between;
      gap: 10px;
      padding: 12px 12px 10px;
      border-bottom: 1px solid rgba(229,231,235,0.8);
      background: linear-gradient(180deg, var(--paper), var(--paper-2));
    }


    .gallery-card .head .title {
      font-weight: 800;
      font-size: 0.98rem;
    }


    .gallery-card .head .mini {
      font-size: 0.85rem;
      color: var(--text-muted);
      white-space: nowrap;
    }



    .gallery-card .pair {
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      padding: 12px;
    }



    .thumb {
      position: relative;
      border-radius: 12px;
      overflow: hidden;
      border: 1px solid rgba(229,231,235,0.95);
      background: var(--paper);
      cursor: zoom-in;
    }


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


    .thumb .badge {
      top: 10px;
      left: 10px;
      font-size: 0.78rem;
      padding: 6px 9px;
    }



    @media (max-width: 980px) {
      .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }


      .thumb img { height: 170px; }
}


    @media (max-width: 620px) {
      .gallery-grid { grid-template-columns: 1fr; }


      .gallery-card .pair { grid-template-columns: 1fr; }


      .thumb img { height: 220px; }
}



    /* ======= MODAL (powiększanie) ======= */
    .modal {
      position: fixed;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      background: rgba(0,0,0,0.68);
      z-index: 200;
      padding: 18px;
    }


    .modal.is-open { display:flex; }


    .modal-inner {
      width: min(1100px, 96vw);
      background: var(--paper);
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 18px 60px rgba(0,0,0,0.40);
    }


    .modal-bar {
      display:flex;
      align-items:center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 14px;
      border-bottom: 1px solid rgba(229,231,235,0.9);
      background: linear-gradient(135deg, #1f7ae0, #22c1c3);
      color:#fff;
    }


    .modal-title {
      font-weight: 800;
      font-size: 0.95rem;
    }


    /* ===== FIX: krzyżyk modala pod niebieską belką (safe-area) ===== */
.modal-close,
#modalClose {
  position: fixed !important;
  top: calc(env(safe-area-inset-top, 0px) + 12px) !important;
  right: calc(env(safe-area-inset-right, 0px) + 12px) !important;
  z-index: 99999 !important;

  width: 44px;
  height: 44px;
  border-radius: 12px;

  display: grid;
  place-items: center;

  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}


    .modal-content {
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      padding: 14px;
      background: #0b1220;
    }


    .modal-content figure {
      margin: 0;
      border-radius: 12px;
      overflow:hidden;
      position: relative;
      border: 1px solid rgba(255,255,255,0.10);
      background: #111827;
    }


    .modal-content img {
      width:100%;
      height: 560px;
      object-fit: contain;
      display:block;
      background: #0b1220;
    }


    .modal-content .badge { background: rgba(252,253,255,0.92); color:#0b1220; }



    @media (max-width: 900px) {
      .modal-content { grid-template-columns: 1fr; }


      .modal-content img { height: 420px; }
}



    footer {
      text-align: center;
      font-size: 0.85rem;
      color: #4b5563;
      padding: 18px 0 20px;
    }


    /* ===== FIX: Modal na telefonie – bez ucinania, scroll w środku ===== */
@media (max-width: 900px){

  /* overlay */
  #imgModal{
    padding: 10px !important;
  }



  /* okno modala jako kolumna */
  #imgModal .modal-inner{
    width: 96vw !important;
    max-width: 96vw !important;
    max-height: calc(100vh - 20px) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important; /* scroll będzie w .modal-content */
  }



  /* pasek u góry zostaje widoczny */
  #imgModal .modal-bar{
    flex: 0 0 auto;
    position: sticky;
    top: 0;
    z-index: 5;
  }



  /* TU ROBIMY SCROLL */
  #imgModal .modal-content{
    flex: 1 1 auto;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0 16px;
  }



  /* krzyżyk zawsze nad belką */
  #imgModal .modal-close{
    position: fixed !important;
    top: calc(env(safe-area-inset-top, 0px) + 12px) !important;
    right: calc(env(safe-area-inset-right, 0px) + 12px) !important;
    z-index: 99999 !important;
  }



  /* obrazy – nie ucinać, trzymać proporcje */
  #imgModal img{
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 12px;
  }
}


/* ===============================
   MINI-HOVER dla zdjęć (slider + grid)
   działa na: .pair-figure oraz .thumb
   =============================== */

/* tylko na urządzeniach z hoverem (desktop/laptop) */
@media (hover: hover) and (pointer: fine) {

  .pair-figure,
  .thumb{
    position: relative;
    transform: translateZ(0);
    transition:
      transform 220ms ease,
      box-shadow 220ms ease,
      border-color 220ms ease;
    will-change: transform;
  }



  /* subtelna “poświata” + highlight */
  .pair-figure::after,
  .thumb::after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    opacity:0;
    transition: opacity 220ms ease;
    background:
  /* subtelny, “czystościowy” niebieski */
  radial-gradient(
    600px 260px at 30% 15%,
    rgba(31,122,224,0.055),
    transparent 65%
  ),
  /* mikro-ciepły akcent (żółty) – bardzo delikatny */
  radial-gradient(
    520px 240px at 85% 90%,
    rgba(255, 196, 60, 0.045),
    transparent 60%
  ),
  /* delikatne światło/cień dla czytelności */
  linear-gradient(
    180deg,
    rgba(252,253,255,0.10),
    rgba(0,0,0,0.06)
  );
  }


  /* delikatny zoom obrazu */
  .pair-figure img,
  .thumb img{
    transition: transform 260ms ease, filter 260ms ease;
    will-change: transform;
  }



  /* HOVER */
  .pair-figure:hover,
  .thumb:hover{
    transform: translateY(-2px) scale(1.01);
    border-color: rgba(31,122,224,0.35);
    box-shadow:
      0 14px 34px rgba(15, 23, 42, 0.22),
      0 0 0 3px rgba(31, 122, 224, 0.08);
  }



  .pair-figure:hover::after,
  .thumb:hover::after{
    opacity: 1;
  }



  .pair-figure:hover img,
  .thumb:hover img{
    transform: scale(1.045);
    filter: saturate(1.02) contrast(1.02);
  }



  /* badge też lekko “żyje” */
  .pair-figure:hover .badge,
  .thumb:hover .badge{
    transform: translateY(-1px);
    transition: transform 220ms ease;
  }
}


/* === TŁO GALERII – WARIANT A (Deep Ice) === */
body{
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(255,255,255,0.55), transparent 60%),
    linear-gradient(180deg, #eaf6ff 0%, #cfeaf6 45%, #b7deee 100%);
}


.section-card--grid{
  background: rgba(214, 238, 250, 0.82);
  border: 1px solid rgba(160, 220, 245, 0.60);
}


/* ===== Slider (Wybrane realizacje) – tło jak w "Wszystkie realizacje" ===== */
.section-card--hero{
  background: rgba(214, 238, 250, 0.82) !important;
  border: 1px solid rgba(160, 220, 245, 0.60) !important;
}


/* ===== Premium opisy w kartach (subtitle + desc) ===== */

/* ===== UJEDNOLICENIE: nagłówek karty (tytuł zawsze równo + badge obok) ===== */
.gallery-card .head{
  display: grid;
  grid-template-columns: 1fr auto;  /* tytuł | badge */
  align-items: start;
  gap: 8px 10px;
}



/* tytuł (lewa strona) – zabezpieczenie, żeby nie robił dziwnych marginesów */
.gallery-card .head h3,
.gallery-card .head .title{
  margin: 0;
  line-height: 1.15;
}



/* prawy “mini” w nagłówku karty — subtitle/badge */
.gallery-card .head .mini{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  justify-self: end;        /* przyklej do prawej w gridzie */
  max-width: 240px;         /* możesz dać 280px jeśli chcesz */

  padding: 4px 10px;
  border-radius: 999px;

  background: rgba(252,253,255,0.78); /* spójne z “paper” */
  border: 1px solid rgba(15,23,42,0.10);

  color: rgba(15,23,42,0.72);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: .2px;

  /* ===== KLUCZ: zawijanie długich napisów w badge ===== */
  white-space: normal;
  word-break: break-word;
  line-height: 1.2;
  text-align: center;

  /* żeby nie wyglądało “przyklejone” */
  box-shadow: 0 6px 16px rgba(15,23,42,0.08);
}



/* dłuższy opis pod zdjęciami */
.gallery-card .card-desc{
  margin-top: 10px;
  padding: 10px 12px 12px;

  border-top: 1px solid rgba(15,23,42,0.08);

  color: rgba(15,23,42,0.72);
  font-size: 0.93rem;
  line-height: 1.35;
}



/* delikatne “uspokojenie” na małych ekranach */
@media (max-width: 720px){
  .gallery-card .card-desc{
    font-size: 0.92rem;
    padding: 10px 10px 12px;
  }


  .gallery-card .head .mini{
    font-size: 0.80rem;
    padding: 4px 9px;
  }
}



/* na bardzo małych ekranach: badge spada POD tytuł (czytelniej) */
@media (max-width: 520px){
  .gallery-card .head{
    grid-template-columns: 1fr;
  }


  .gallery-card .head .mini{
    justify-self: start;
    max-width: 100%;
  }
}


/* ===== FAQ – premium, SEO + UX ===== */
.faq-section{
  margin: 60px auto 40px;
  padding: 30px 26px;
  max-width: 1100px;

  background: rgba(255,255,255,0.85);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(15,23,42,0.08);
}



.faq-title{
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}



.faq-lead{
  color: rgba(15,23,42,0.7);
  margin-bottom: 26px;
  max-width: 700px;
}



.faq-list details{
  border-top: 1px solid rgba(15,23,42,0.1);
  padding: 14px 0;
}



.faq-list details:first-child{
  border-top: none;
}



.faq-list summary{
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 28px;
}



.faq-list summary::after{
  content: "＋";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.3rem;
  transition: transform .2s ease;
}



.faq-list details[open] summary::after{
  content: "–";
}



.faq-list p{
  margin-top: 10px;
  color: rgba(15,23,42,0.75);
  line-height: 1.5;
  max-width: 900px;
}



@media (max-width: 720px){
  .faq-section{
    padding: 24px 18px;
  }


  .faq-title{
    font-size: 1.5rem;
  }
}

/* Widoczny fokus bez zmiany wymiarów miniatur i przycisków. */
.pair-figure:focus-visible, .thumb:focus-visible, #mImgWrap:focus-visible,
.pair-btn:focus-visible, .dot:focus-visible, .modal-close:focus-visible,
.mToggle:focus-visible, .mNav:focus-visible {
  outline: 3px solid #1f7ae0;
  outline-offset: 3px;
}
