/* =======================================================
   Eksperymentuj.pl — Blueprint / #eks-blueprint
   Wersja: produkcyjna (v4.1.3 stable)
   Data kompilacji: 14.10.2025
   ======================================================= */

/* =======================================================
   GLOBALNE USTAWIENIA
   ======================================================= */
#eks-blueprint * {
  box-sizing: border-box;
  font-family: 'Segoe UI', Arial, sans-serif;
}

#eks-blueprint {
  margin-top: 12px;
  overflow-x: hidden; /* fix scroll */
}

/* =======================================================
   SIATKA WIERSZY
   ======================================================= */
#eks-blueprint .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
  position: relative;
}

#eks-blueprint .row::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(0, 50, 120, .15);
  transform: translateX(-50%);
}

@media (max-width: 960px) {
  #eks-blueprint .row {
    grid-template-columns: 1fr;
  }
  #eks-blueprint .row::before {
    display: none;
  }
}

/* =======================================================
   BLOKI I TYPOGRAFIA
   ======================================================= */
#eks-blueprint .block {
  padding: 20px;
  border-radius: 12px;
  position: relative;
  opacity: 0;
  transform: translateY(25px);
  transition: transform .35s ease, opacity .35s ease;
}

#eks-blueprint .block.visible {
  opacity: 1;
  transform: translateY(0);
}

#eks-blueprint .block.anim:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 60, 160, .15);
}

#eks-blueprint h2 {
  font-size: 1.55rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: #1b2a46;
  display: flex;
  align-items: center;
  gap: 8px;
}

#eks-blueprint p {
  margin: 0 0 8px;
  color: #223;
  line-height: 1.55;
}

#eks-blueprint ul {
  margin: 0;
  padding-left: 18px;
}

#eks-blueprint table {
  width: 100%;
  border-collapse: collapse;
}

#eks-blueprint td {
  padding: 8px 6px;
  border-top: 1px solid rgba(0, 0, 0, .06);
}

#eks-blueprint td:first-child {
  font-weight: 600;
  color: #4a90e2;
  width: 40%;
}

/* =======================================================
   🔩 BLOK FEATURES — INDYWIDUALNE BIAŁE TŁO
   ======================================================= */
#eks-blueprint .features {
  background: #f7f9ff;
  background-image:
    linear-gradient(0deg, transparent 97%, rgba(0, 0, 0, .03) 97%),
    linear-gradient(90deg, transparent 97%, rgba(0, 0, 0, .03) 97%);
  background-size: 24px 24px;
  border: 1px solid rgba(0, 50, 120, .15);
  box-shadow: 0 2px 8px rgba(0, 40, 100, .08);
}

#eks-blueprint .features ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-left: 0;
  margin: 0;
}

@media (max-width: 960px) {
  #eks-blueprint .features ul {
    grid-template-columns: 1fr;
  }
}

#eks-blueprint .features li {
  background: #fff;
  color: #111;
  border-radius: 10px;
  padding: 6px 10px;
  margin: 4px 0;
  list-style-position: inside;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  transition: transform .25s ease, box-shadow .25s ease;
}

#eks-blueprint .features li:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

/* =======================================================
   WARIANTY BLOKÓW
   ======================================================= */
#eks-blueprint .intro {
  background: #f5f8ff;
  border-left: 6px solid #4a90e2;
  box-shadow: 0 3px 10px rgba(0, 40, 100, .08);
  margin-bottom: 18px;
}

#eks-blueprint .intro h2 {
  color: #4a90e2;
}

#eks-blueprint .spec {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

#eks-blueprint .set {
  background: #f8faff;
  border: 1px dashed #4a90e2;
  box-shadow: 0 2px 8px rgba(0, 40, 120, .08);
}

#eks-blueprint .why {
  background: linear-gradient(135deg, #f1f4fb, #edf2fa);
  border: 1px solid rgba(0, 60, 160, .15);
  background-image: repeating-linear-gradient(45deg, rgba(0, 0, 0, .02) 0, rgba(0, 0, 0, .02) 1px, transparent 1px, transparent 10px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .05);
}

#eks-blueprint .care {
  background: #fff;
  border: 1px solid rgba(130, 170, 255, .3);
  box-shadow: 0 2px 8px rgba(0, 40, 120, .06);
}

#eks-blueprint .info {
  background: #f7f9ff;
  border: 1px solid rgba(0, 60, 160, .15);
  box-shadow: 0 2px 8px rgba(0, 40, 100, .06);
}

#eks-blueprint .build {
  background:
    linear-gradient(0deg, transparent 96%, rgba(74, 144, 226, .15) 96%),
    linear-gradient(90deg, transparent 96%, rgba(74, 144, 226, .15) 96%),
    #ffffff;
  background-size: 22px 22px;
  border: 1px solid rgba(74, 144, 226, .35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

#eks-blueprint .history {
  background: linear-gradient(135deg, #fafafa 0%, #f3f5f8 100%);
  border: 1px solid rgba(120, 130, 150, .25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 8px rgba(0, 0, 0, .05);
}

#eks-blueprint .eco {
  background: linear-gradient(135deg, #f1f9f6 0%, #f5fbff 100%);
  border: 1px solid rgba(74, 144, 226, .25);
  box-shadow: 0 2px 10px rgba(74, 144, 226, .08);
}

#eks-blueprint .summary {
  background: linear-gradient(180deg, #f2f6ff 0%, #f9fbff 100%);
  border-top: 4px solid rgba(74, 144, 226, .9);
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

/* =======================================================
   CIEKAWOSTKA I UWAGA
   ======================================================= */
#eks-blueprint .fact {
  background: #f4f7ff;
  border: 2px solid #4a90e2;
  box-shadow: 0 3px 10px rgba(0, 60, 180, .08);
}

#eks-blueprint .note {
  background: linear-gradient(135deg, #fffbea, #fff6c5);
  border: 1px solid #ffe89b;
  box-shadow: 0 2px 8px rgba(160, 120, 0, .1);
}

#eks-blueprint .note p {
  margin: 0;
  width: 100%;
}

/* =======================================================
   GALERIA
   ======================================================= */
#eks-blueprint .gallery-wrap {
  width: 95%;
  margin: 22px auto;
}

#eks-blueprint .gallery {
  display: grid;
  gap: 20px;
}

#eks-blueprint .gallery:has(> figure:nth-child(1):last-child) { grid-template-columns: 1fr; }
#eks-blueprint .gallery:has(> figure:nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
#eks-blueprint .gallery:has(> figure:nth-child(3):last-child),
#eks-blueprint .gallery:has(> figure:nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  #eks-blueprint .gallery { grid-template-columns: repeat(2, 1fr) !important; }
}

#eks-blueprint .gallery figure {
  margin: 0;
  background: #f9fbff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(130, 160, 255, .25);
  box-shadow: 0 4px 16px rgba(80, 120, 255, .1);
  transition: box-shadow .35s ease, transform .35s ease, border-color .35s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#eks-blueprint .gallery figure:hover {
  border-color: rgba(90, 130, 255, .45);
  box-shadow: 0 8px 24px rgba(70, 110, 255, .18);
  transform: translateY(-1px);
}

#eks-blueprint .gallery figure .img-box {
  width: 100%;
  position: relative;
  padding-top: 70%;
  overflow: hidden;
  border-bottom: 1px solid rgba(180, 200, 255, .35);
  border-radius: 10px;
  background: #f8faff;
  box-shadow: inset 0 0 0 1px rgba(100, 130, 200, .08);
}

#eks-blueprint .gallery:has(> figure:nth-child(2):last-child) .img-box { padding-top: 40%; }

#eks-blueprint .gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
  cursor: zoom-in;
}

#eks-blueprint .gallery figure:hover img {
  transform: scale(1.05);
  filter: brightness(1.08) contrast(1.03);
}

#eks-blueprint .gallery figcaption {
  padding: 10px 12px;
  font-size: .95rem;
  color: #444;
  text-align: center;
  background: #fff;
}

/* =======================================================
   LIGHTBOX
   ======================================================= */
#eks-blueprint .lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease;
}

#eks-blueprint .lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

#eks-blueprint .lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .6);
  cursor: zoom-out;
  transform: scale(.95);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}

#eks-blueprint .lightbox-overlay.active img {
  transform: scale(1);
  opacity: 1;
}

/* =======================================================
   WIDEO (16:9)
   ======================================================= */
#eks-blueprint .video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

#eks-blueprint .video {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #4a90e2;
  box-shadow: 0 3px 16px rgba(0, 0, 0, .15);
  background: #000;
  aspect-ratio: 16 / 9;
}

#eks-blueprint .video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 960px) {
  #eks-blueprint .video-grid {
    grid-template-columns: 1fr;
  }
}


/* =======================================================
   ANIMACJA DLA GALERII I FILMÓW
   ======================================================= */
#eks-blueprint .gallery-wrap,
#eks-blueprint .video-grid {
  opacity: 0;
  transform: translateY(25px);
  transition: transform .35s ease, opacity .35s ease;
}

#eks-blueprint .gallery-wrap.visible,
#eks-blueprint .video-grid.visible {
  opacity: 1;
  transform: translateY(0);
}


/* =======================================================
   STOPKA
   ======================================================= */
#eks-blueprint .footer-block {
  background: none;
  box-shadow: none;
  padding: 0;
  margin-top: 24px;
  font-size: .92rem;
  color: #444;
  line-height: 1.55;
}

#eks-blueprint .footer-block strong {
  color: #111;
}

/* =======================================================
   FINAL FIX: BLOK NOTE
   ======================================================= */
   
   /* =======================================================
   FIX: OGRANICZENIE SZEROKOŚCI KONTENERA
   ======================================================= */
#eks-blueprint {
  max-width: 1200px;       /* bezpieczna szerokość */
  margin: 0 auto;          /* wyśrodkowanie */
  padding: 0 12px;         /* wewnętrzny margines */
  box-sizing: border-box;
}

#eks-blueprint .row {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
   
   
#eks-blueprint .note {
  display: block !important;
}

#eks-blueprint .note > * {
  float: none !important;
}

#eks-blueprint .note h2 {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 0 10px !important;
  font-size: 1.55rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: #1b2a46 !important;
}

#eks-blueprint .note p {
  display: block !important;
  margin: 0 !important;
}

/* --- Akordeon uproszczony dla długich ciekawostek (.fact-long) --- */
#eks-blueprint .fact-long {
  position: relative;
  cursor: pointer;
}

#eks-blueprint .fact-long .fact-more {
  display: inline-block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .45s ease, opacity .45s ease;
}

#eks-blueprint .fact-long.expanded .fact-more {
  display: inline;
  max-height: 1000px;
  opacity: 1;
}

/* efekt „…” na końcu tekstu zanim się rozwinie */
#eks-blueprint .fact-long::after {
  content: " … "; /* spacja wąska + wielokropek */
  color: #4a90e2;
  font-weight: 600;
}

#eks-blueprint .fact-long.expanded::after {
  content: "";
}