/* MODUŁY e-CEGŁA – wspólne style modułów (/upload/EC/moduly.css). Wczytuje go moduł galerii w stopce. */

/* ===== MENU – TABLET ===== */
.menu-tablet-galeria{display:flex;align-items:center;gap:12px;margin:0 0 12px;padding:10px 12px 10px 10px;border-radius:16px;background:linear-gradient(120deg,#141210,#2a241d);box-shadow:0 10px 26px rgba(20,18,16,.22);color:#fff;text-decoration:none}
.menu-tablet-galeria-foto{flex:0 0 auto;display:grid;grid-template-columns:repeat(3,46px);gap:4px}
.menu-tablet-galeria-foto img{display:block;width:46px;height:46px;border-radius:8px;object-fit:cover;background:#2a241d}
.menu-tablet-galeria-tresc{flex:1;min-width:0;display:flex;flex-direction:column}
.menu-tablet-galeria-nad{font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#e2c285}
.menu-tablet-galeria-tytul{font-size:14px;font-weight:800;line-height:1.25;color:#fff}
.menu-tablet-galeria-strzalka{flex:0 0 auto;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#e2c285,#c9a35a);color:#141210}
.menu-tablet-galeria-strzalka svg{width:18px;height:18px}
@media (max-width:420px){.menu-tablet-galeria-foto{grid-template-columns:repeat(2,44px)}.menu-tablet-galeria-foto img{width:44px;height:44px}.menu-tablet-galeria-foto img:nth-child(3){display:none}}
.menu-tablet-lista_dalej{margin-top:0}

/* ===== MENU – TELEFON ===== */
.menu-mobile-galeria{display:flex;align-items:center;gap:12px;margin:0 0 12px;padding:10px 12px 10px 10px;border-radius:16px;background:linear-gradient(120deg,#141210,#2a241d);box-shadow:0 10px 26px rgba(20,18,16,.22);color:#fff;text-decoration:none}
.menu-mobile-galeria-foto{flex:0 0 auto;display:grid;grid-template-columns:repeat(3,46px);gap:4px}
.menu-mobile-galeria-foto img{display:block;width:46px;height:46px;border-radius:8px;object-fit:cover;background:#2a241d}
.menu-mobile-galeria-tresc{flex:1;min-width:0;display:flex;flex-direction:column}
.menu-mobile-galeria-nad{font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#e2c285}
.menu-mobile-galeria-tytul{font-size:14px;font-weight:800;line-height:1.25;color:#fff}
.menu-mobile-galeria-strzalka{flex:0 0 auto;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#e2c285,#c9a35a);color:#141210}
.menu-mobile-galeria-strzalka svg{width:18px;height:18px}
@media (max-width:420px){.menu-mobile-galeria-foto{grid-template-columns:repeat(2,44px)}.menu-mobile-galeria-foto img{width:44px;height:44px}.menu-mobile-galeria-foto img:nth-child(3){display:none}}
.menu-mobile-lista_dalej{margin-top:0}

/* ===== POPUP −5% + KARTA NA BLOGU ===== */
.ec-pp { --ec-pp-zloto: #c9a35a; position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(20,18,16,.58); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s ease; font-family: inherit; color: #141210; -webkit-font-smoothing: antialiased; }
.ec-pp[hidden] { display: none; }
.ec-pp * { box-sizing: border-box; }
.ec-pp.ec-pp-on { opacity: 1; }
.ec-pp-okno { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain; border-radius: 24px; background: #fffdf9; box-shadow: 0 40px 90px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(201,163,90,.25); transform: translateY(24px) scale(.96); transition: transform .45s cubic-bezier(.2,.9,.25,1.15); }
.ec-pp.ec-pp-on .ec-pp-okno { transform: none; }
.ec-pp-foto { position: relative; height: 270px; overflow: hidden; background: #1e1b18; }
.ec-pp-foto img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.06); transition: transform 1.4s cubic-bezier(.2,.8,.2,1); }
.ec-pp.ec-pp-on .ec-pp-foto img { transform: scale(1); }
.ec-pp-foto::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, rgba(20,18,16,.55), transparent); pointer-events: none; }
.ec-pp-znak { position: absolute; left: 18px; bottom: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 15px 0 12px; border: 1px solid rgba(226,194,133,.65); border-radius: 999px; background: rgba(20,18,16,.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff8ea; font-size: 14px; font-weight: 700; letter-spacing: .01em; box-shadow: 0 8px 20px -8px rgba(0,0,0,.6); }
.ec-pp-znak svg { width: 17px; height: 17px; color: #e2c285; }
.ec-pp-zamknij { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,253,249,.92); color: #141210; cursor: pointer; box-shadow: 0 4px 14px -4px rgba(0,0,0,.4); transition: transform .2s, background .2s; }
.ec-pp-zamknij:hover { transform: rotate(90deg); background: #fff; }
.ec-pp-zamknij svg { width: 18px; height: 18px; }
.ec-pp-tresc { padding: 28px 34px 30px; }
.ec-pp-nad { margin: 0 0 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #a8853f; }
.ec-pp-tytul { margin: 0 0 12px; font-size: 27px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: #141210; }
.ec-pp-opis { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: #5a554c; }
.ec-pp-lista { display: grid; gap: 9px; margin: 0 0 24px; padding: 0; list-style: none; }
.ec-pp-lista li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.4; color: #2b2724; }
.ec-pp-lista li b { color: #141210; }
.ec-pp-lista svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: -1px; padding: 4px; border-radius: 50%; background: #f6ecd6; color: #8f6b24; }
.ec-pp-cta { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px; border-radius: 14px; background: radial-gradient(120% 160% at 20% 0%, #3a3127 0%, #141210 70%); color: #f3dcaa !important; font-size: 16px; font-weight: 800; letter-spacing: .01em; text-decoration: none !important; box-shadow: 0 0 0 1px rgba(226,194,133,.35) inset, 0 14px 30px -12px rgba(20,18,16,.6); transition: transform .2s, box-shadow .2s; }
.ec-pp-cta:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(226,194,133,.6) inset, 0 18px 34px -12px rgba(20,18,16,.65); }
.ec-pp-cta svg { width: 18px; height: 18px; transition: transform .2s; }
.ec-pp-cta:hover svg { transform: translateX(3px); }
.ec-pp-nie { display: block; margin: 14px auto 0; padding: 6px 10px; border: 0; background: none; color: #8a8273; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(138,130,115,.4); }
.ec-pp-nie:hover { color: #141210; }
.ec-pp-drobne { margin: 12px 0 0; text-align: center; font-size: 12px; color: #a49a88; }
.ec-pp-uwaga { margin: -14px 0 18px 30px; text-align: left; }
.ec-pp a:focus-visible, .ec-pp button:focus-visible { outline: 3px solid #e2c285; outline-offset: 2px; }
.ec-pp a:focus, .ec-pp button:focus { outline-color: transparent; }
/* kupon −5% */
.ec-pp-kupon { position: relative; display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 12px 12px 12px 16px; border: 1.5px dashed #d6b066; border-radius: 14px; background: linear-gradient(135deg, #fffaf0, #fbf0da); }
.ec-pp-kupon::before, .ec-pp-kupon::after { content: ""; position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fffdf9; border: 1.5px dashed #d6b066; }
.ec-pp-kupon::before { left: -8px; border-left-color: transparent; border-bottom-color: transparent; transform: rotate(45deg); }
.ec-pp-kupon::after { right: -8px; border-right-color: transparent; border-top-color: transparent; transform: rotate(45deg); }
.ec-pp-kupon-txt { flex: 1; min-width: 0; font-size: 13px; line-height: 1.35; color: #5a554c; }
.ec-pp-kupon-txt b { display: block; font-size: 17px; font-weight: 800; color: #141210; letter-spacing: -.01em; }
.ec-pp-kod { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px 0 14px; border: 0; border-radius: 10px; background: #141210; color: #f3dcaa; font: inherit; font-size: 15px; font-weight: 800; letter-spacing: .1em; cursor: pointer; transition: background .2s; }
.ec-pp-kod:hover { background: #2b2520; }
.ec-pp-kod small { padding-left: 8px; border-left: 1px solid rgba(243,220,170,.3); font-size: 11px; font-weight: 700; letter-spacing: .02em; color: #cfc6b4; }
.ec-pp-kod svg { width: 15px; height: 15px; }
.ec-pp-kupon-war { margin: -10px 0 18px; font-size: 11.5px; color: #a49a88; text-align: center; }
/* telefon: złote kółko z rabatem nad przyciskiem czatu (nie skacze, nie zasłania treści) */
.ec-pp-pasek { position: fixed; right: 14px; bottom: 90px; z-index: 2147479000; display: flex; align-items: center; gap: 8px; transform: translateY(16px) scale(.8); opacity: 0; transition: transform .45s cubic-bezier(.2,.9,.25,1.3), opacity .3s; font-family: inherit; pointer-events: none; }
.ec-pp-pasek[hidden] { display: none; }
.ec-pp-pasek.ec-pp-on { transform: none; opacity: 1; }
.ec-pp-pasek > * { pointer-events: auto; }
.ec-pp-pasek-otworz { position: relative; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ec-pp-pasek-otworz span { order: -1; padding: 9px 14px; border-radius: 999px; background: #141210; color: #f3dcaa; font-size: 13px; font-weight: 800; white-space: nowrap; box-shadow: 0 0 0 1px rgba(226,194,133,.35) inset, 0 10px 24px -10px rgba(20,18,16,.6); max-width: 240px; overflow: hidden; transition: max-width .45s ease, opacity .3s, padding .45s; }
.ec-pp-pasek.ec-pp-zwin .ec-pp-pasek-otworz span { max-width: 0; padding-left: 0; padding-right: 0; opacity: 0; }
.ec-pp-pasek-otworz i { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: radial-gradient(120% 120% at 30% 20%, #f7e4b8 0%, #c9a35a 70%, #a77d33 100%); color: #141210; box-shadow: 0 0 0 3px rgba(255,253,249,.9), 0 10px 24px -8px rgba(20,18,16,.55); }
.ec-pp-pasek-otworz i svg { width: 22px; height: 22px; }
.ec-pp-pasek-x { position: absolute; top: -6px; right: -5px; display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: #141210; color: #f3dcaa; cursor: pointer; box-shadow: 0 0 0 2px #fffdf9; }
.ec-pp-pasek-x svg { width: 10px; height: 10px; }
html.ec-pp-blokada .ec-pp-pasek, html.ecg-blokada .ec-pp-pasek, body:has(#ec-czat.ec-cz-otwarty) .ec-pp-pasek, body:has(#ec-czat.ec-cz-otwarty) .ec-pb, body.menu-mobile-otwarte .ec-pp-pasek, body.menu-tablet-otwarte .ec-pp-pasek { display: none; }

/* BLOG: karta z produktami pasującymi do artykułu */
.ec-pb { position: fixed; left: 22px; bottom: 96px; z-index: 2147479500; width: 340px; border-radius: 20px; background: #fffdf9; box-shadow: 0 30px 70px -18px rgba(20,18,16,.5), 0 0 0 1px rgba(201,163,90,.3); overflow: hidden; transform: translateY(30px) scale(.97); opacity: 0; transition: transform .5s cubic-bezier(.2,.9,.25,1.15), opacity .35s; font-family: inherit; color: #141210; -webkit-font-smoothing: antialiased; }
.ec-pb:not([hidden]) { display: block; }
.ec-pb[hidden] { display: none; }
.ec-pb.ec-pp-on { transform: none; opacity: 1; }
.ec-pb * { box-sizing: border-box; }
.ec-pb-foto { position: relative; display: block; width: 100%; height: 150px; background: #1e1b18; overflow: hidden; }
.ec-pb-foto img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.ec-pb-foto:hover img { transform: scale(1.04); }
.ec-pb-zamknij { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,253,249,.92); color: #141210; cursor: pointer; box-shadow: 0 3px 10px -3px rgba(0,0,0,.4); }
.ec-pb-zamknij svg { width: 15px; height: 15px; }
.ec-pb-tresc { padding: 16px 18px 18px; }
.ec-pb-nad { margin: 0 0 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #a8853f; }
.ec-pb-tytul { margin: 0 0 6px; font-size: 18px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.ec-pb-opis { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: #5a554c; }
.ec-pb-kupon { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; padding: 10px 10px 10px 12px; border: 1.5px dashed #d6b066; border-radius: 12px; background: linear-gradient(135deg, #fffaf0, #fbf0da); font-size: 12.5px; line-height: 1.3; color: #5a554c; }
.ec-pb-kupon > span { flex-basis: 100%; }
.ec-pb-kupon b { display: inline; margin-right: 4px; font-size: 14px; color: #141210; }
.ec-pb-kupon .ec-pp-kod { width: 100%; justify-content: center; height: 38px; font-size: 13.5px; padding: 0 12px; }
.ec-pb-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; border-radius: 12px; background: radial-gradient(120% 160% at 20% 0%, #3a3127 0%, #141210 70%); color: #f3dcaa !important; font-size: 14.5px; font-weight: 800; text-decoration: none !important; box-shadow: 0 0 0 1px rgba(226,194,133,.35) inset; transition: transform .2s; }
.ec-pb-cta:hover { transform: translateY(-1px); }
.ec-pb-cta svg { width: 16px; height: 16px; }
.ec-pb-probki { display: block; margin-top: 9px; text-align: center; font-size: 12.5px; font-weight: 600; color: #8a8273 !important; text-decoration: underline !important; text-underline-offset: 3px; text-decoration-color: rgba(138,130,115,.4) !important; }
html.ecg-blokada .ec-pb, body.menu-mobile-otwarte .ec-pb, body.menu-tablet-otwarte .ec-pb, html.ec-cz-czat-otwarty .ec-pb { display: none; }
@media (max-width: 575px) {
  .ec-pb { left: 10px; right: 10px; bottom: 84px; width: auto; grid-template-columns: 104px 1fr; border-radius: 18px; }
  .ec-pb:not([hidden]) { display: grid; }
  .ec-pb[hidden] { display: none; }
  .ec-pb-foto { height: auto; min-height: 100%; }
  .ec-pb-zamknij { top: 8px; right: 8px; left: auto; width: 28px; height: 28px; background: #f3ecdf; box-shadow: none; }
  .ec-pb-zamknij { position: absolute; }
  .ec-pb-tresc { padding: 12px 40px 12px 14px; }
  .ec-pb-nad { display: none; }
  .ec-pb-tytul { font-size: 15.5px; margin-bottom: 4px; }
  .ec-pb-opis { display: none; }
  .ec-pb-kupon { flex-wrap: wrap; gap: 6px; margin-bottom: 8px; padding: 7px 8px 8px 10px; font-size: 11px; }
  .ec-pb-kupon > span { flex-basis: 100%; }
  .ec-pb-kupon b { display: inline; font-size: 12.5px; margin-right: 4px; }
  .ec-pb-kupon .ec-pp-kod { width: 100%; justify-content: center; height: 32px; font-size: 12.5px; letter-spacing: .08em; }
  .ec-pb-kupon .ec-pp-kod small { display: none; }
  .ec-pb-cta { height: 38px; font-size: 13px; }
  .ec-pb-probki { display: none; }
}
html.ec-pp-blokada { overflow: hidden; }
html.ec-pp-blokada #ec-czat { display: none; }
@media (max-width: 575px) {
  .ec-pp { align-items: flex-end; padding: 0; }
  .ec-pp-okno { max-width: none; max-height: 92vh; max-height: 92dvh; border-radius: 26px 26px 0 0; transform: translateY(100%); transition: transform .5s cubic-bezier(.2,.9,.25,1); }
  .ec-pp-foto { height: 200px; }
  .ec-pp-foto::before { content: ""; position: absolute; top: 9px; left: 50%; z-index: 2; width: 42px; height: 4px; margin-left: -21px; border-radius: 999px; background: rgba(255,255,255,.7); }
  .ec-pp-tresc { padding: 22px 22px max(22px, env(safe-area-inset-bottom)); }
  .ec-pp-tytul { font-size: 23px; }
  .ec-pp-opis { font-size: 14.5px; margin-bottom: 14px; }
  .ec-pp-lista { margin-bottom: 20px; gap: 7px; }
  .ec-pp-kupon { flex-wrap: wrap; gap: 10px; padding: 14px 16px; }
  .ec-pp-kupon-txt { flex-basis: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  .ec-pp-kupon-txt b { font-size: 16px; }
  .ec-pp-kod { width: 100%; justify-content: center; height: 46px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .ec-pp, .ec-pp-okno, .ec-pp-foto img { transition: none !important; } }

/* ===== GALERIA – ZAPOWIEDŹ „REALIZACJE” I LICZNIKI ZDJĘĆ ===== */
.ecg-teaser{display:flex;align-items:center;gap:16px;margin:16px 0 0;padding:14px 14px 14px 14px;border:1px solid #ece3d0;border-radius:18px;background:#faf7f1;color:#3d3a35;text-decoration:none!important;cursor:pointer;transition:border-color .2s,box-shadow .2s;font:inherit;width:100%;text-align:left}
.ecg-teaser:hover{border-color:#c9a35a;box-shadow:0 10px 30px rgba(20,18,16,.08)}
.ecg-teaser-foto{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;flex:0 0 52%;max-width:300px}
.ecg-teaser-foto i{position:relative;display:block;aspect-ratio:1;border-radius:10px;background:#efe7d8 center/cover no-repeat;overflow:hidden}
.ecg-teaser-foto i:last-child::after{content:attr(data-plus);position:absolute;inset:0;display:grid;place-items:center;background:rgba(20,18,16,.55);color:#fff;font-weight:800;font-size:14px}
.ecg-teaser-txt{flex:1;min-width:0}
.ecg-teaser-txt b{display:block;font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#8f6b24;margin-bottom:3px}
.ecg-teaser-txt strong{display:block;font-size:16px;line-height:1.3;color:#141210}
.ecg-teaser-txt span{display:inline-flex;align-items:center;gap:6px;margin-top:6px;font-size:13px;font-weight:800;color:#141210}
.ecg-teaser-txt svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:991px){
.ecg-teaser{gap:12px;margin:12px 0 0;padding:10px 12px 10px 10px;border:0;border-radius:16px;background:linear-gradient(120deg,#141210,#2a241d);box-shadow:0 10px 26px rgba(20,18,16,.22);color:#fff}
.ecg-teaser-foto{flex:0 0 auto;width:auto;grid-template-columns:repeat(3,46px);gap:4px}
.ecg-teaser-foto i{border-radius:8px}
.ecg-teaser-foto i:nth-child(n+4){display:none}
.ecg-teaser-foto i:nth-child(3)::after{content:attr(data-plus3);position:absolute;inset:0;display:grid;place-items:center;background:rgba(20,18,16,.55);color:#fff;font-weight:800;font-size:13px}
.ecg-teaser-foto i:last-child::after{content:none}
.ecg-teaser-foto i:nth-child(3):last-child::after{content:attr(data-plus3)}
.ecg-teaser-txt b{color:#e2c285;font-size:10px;margin-bottom:1px}
.ecg-teaser-txt strong{color:#fff;font-size:14px;line-height:1.25}
.ecg-teaser-txt span{display:none}
.ecg-teaser-strz{display:grid!important;place-items:center;flex:0 0 auto;width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,#e2c285,#c9a35a);color:#141210}
}
.ecg-teaser-strz{display:none}
.ecg-teaser-strz svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
