/* ===== Poprawki wyglądu KRIDENN (ładowane po głównym CSS) ===== */

/* 1. Animacje pojawiania się: szybsze i bez długich opóźnień,
      żeby przy przewijaniu nie było pustych czarnych ekranów. */
html.motion [data-reveal] {
  transition-duration: .45s;
  transition-delay: calc(min(var(--i, 0), 3) * 60ms);
  transform: translateY(14px);
}
html.motion [data-reveal][data-dir=left] { transform: translate(-20px); }
html.motion [data-reveal][data-dir=right] { transform: translate(20px); }
html.motion [data-reveal].is-in { transform: none; }

/* 2. Czytelność na ciemnym motywie: jaśniejsze etykiety, szarości i ceny. */
html[data-theme=dark] {
  --accent2: #f0666d;
  --muted: #aeb8be;
  --label: #aeb8be;
}
html[data-theme=dark] .offer-price,
html[data-theme=dark] .pcard-price,
html[data-theme=dark] .pdp-price,
html[data-theme=dark] .panel--offer .offer-price { color: #ff5a63; }

/* 3. Drobne napisy: trochę większe. */
.panel-copy .stamp, .beat .stamp, .hero-copy .stamp { font-size: 12px; }
html .offer-name { font-size: max(13.5px, 1em); }

/* 4. Duży cytat: mniejszy i z większym odstępem między wierszami. */
.manifesto-text { font-size: clamp(26px, 4.2vw, 54px); line-height: 1.16; max-width: 24ch; }

/* 5. Pasek u góry: stała informacja zamiast przewijanego tekstu. */
.marquee-track { animation: none !important; width: 100%; justify-content: center; }
.marquee-group[aria-hidden] { display: none; }
.marquee-group { flex-wrap: wrap; justify-content: center; row-gap: 6px; }
.marquee-item:last-child .marquee-x { display: none; }
html .page--ticker .marquee-item { font-size: 11px; color: #fff; }
@media (width < 1100px) {
  .marquee-item:nth-child(n+3) { display: none; }
  .marquee-item:nth-child(2) .marquee-x { display: none; }
}
@media (width < 640px) {
  .marquee-item:nth-child(n+2) { display: none; }
  .marquee-item:first-child .marquee-x { display: none; }
  .marquee-item:first-child { padding-right: 0; }
}

/* 6. Sekcja FAQ. */
.faq { background: var(--bg); color: var(--text); padding: clamp(56px, 8vw, 110px) 16px; }
.faq-inner { max-width: 880px; margin: 0 auto; }
.faq-stamp {
  font-family: var(--font-label); letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent2); font-size: 12px; margin: 0 0 12px;
}
.faq h2 {
  font-family: var(--font-heading); text-transform: uppercase; font-weight: 700;
  font-size: clamp(28px, 4.4vw, 52px); line-height: 1.05; margin: 0 0 clamp(24px, 4vw, 40px);
}
.faq-list { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  background: var(--surface); border-radius: 12px; transition: border-color .25s;
}
.faq-item[open], .faq-item:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 24px; line-height: 1; color: var(--accent); transition: transform .25s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item h3 { margin: 0; font-family: var(--font-body); font-weight: 600; font-size: 17px; line-height: 1.35; }
.faq-item p { margin: 0; padding: 0 20px 20px; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* 7. Przycisk „Zadzwoń” na telefonach. */
.kd-call {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: none; align-items: center; gap: 8px;
  padding: 13px 18px; border-radius: 999px;
  background: linear-gradient(135deg, #cc1522 0%, #96101a 100%); color: #fff;
  font: 600 15px/1 "Jost", "Helvetica Neue", Arial, sans-serif; text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.kd-call i { font-size: 18px; }
@media (width < 900px) { .kd-call { display: inline-flex; } }
/* na stronach produktów jest już dolny pasek z przyciskiem — nie dubluj */
body:has(.pdp-buybar) .kd-call, body:has(.cart-page) .kd-call { display: none; }
@media print { .kd-call { display: none; } }

/* ===== Runda 2 poprawek wyglądu ===== */

/* 8. „Cztery etapy” i kontakt: ciemniejsze zdjęcie pod tekstem. */
#proces .panel-bg, #contact .panel-bg { filter: grayscale(1) contrast(1.1) brightness(.78) !important; }
#proces .panel-veil, #contact .panel-veil {
  background: linear-gradient(to right,
    color-mix(in srgb, var(--bg) 90%, transparent) 0%,
    color-mix(in srgb, var(--bg) 66%, transparent) 45%,
    color-mix(in srgb, var(--bg) 10%, transparent) 100%) !important;
}
@media (width < 900px) {
  #proces .panel-veil, #contact .panel-veil { background: color-mix(in srgb, var(--bg) 70%, transparent) !important; }
}
#proces .rule-list p, #contact .contact-intro .sub {
  color: color-mix(in srgb, var(--text) 90%, transparent);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
#proces .rule-list p { font-size: 15px; line-height: 1.6; }
#contact .contact-intro .sub { font-size: clamp(15px, 1.3vw, 17px); line-height: 1.6; }
#contact .contact-details {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-color: color-mix(in srgb, var(--text) 16%, transparent);
}

/* 9. Logo w menu: większe i wyraźniejsze. */
html .nav-brand .logo-frame {
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 4px 18px rgba(194, 20, 31, .28);
}
html .nav-brand .nav-logo { height: 50px; filter: brightness(1.18) saturate(1.1); }
@media (width < 900px) { html .nav-brand .nav-logo { height: 40px; } }

/* 10. Duże numery sekcji w tle: mniejsze i bardziej przygaszone. */
.panel-accent, .hero-accent { opacity: .45 !important; transform: scale(.8); transform-origin: top right; }

/* 11. „Sprzęt, który schodzi pierwszy”: większe opisy, więcej oddechu. */
.bs-desc { font-size: 15px !important; line-height: 1.65 !important; -webkit-line-clamp: 4 !important; color: #c9d2d7; }
html[data-theme=light] .bs-desc { color: var(--muted); }
html .bs-list { gap: clamp(36px, 5vw, 72px); }

/* 12. Równe odstępy między sekcjami. */
#manifest, #bestsellery, #projekt, #faq {
  padding-top: clamp(64px, 8vw, 112px);
  padding-bottom: clamp(64px, 8vw, 112px);
}
#realizacje, #pracownia, #proces, #contact { padding-bottom: clamp(64px, 8vw, 112px); }

/* 13. Galeria zdjęć na stronie produktu. */
.pdp-gallery { display: flex; align-items: center; gap: 8px; }
.pdp-thumbs { display: flex; justify-content: center; gap: 10px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.pdp-thumbs::-webkit-scrollbar { display: none; }
.pdp-thumb {
  flex: none; width: 76px; aspect-ratio: 1; padding: 6px; cursor: pointer;
  background: #fff; border-radius: 10px;
  border: 2px solid color-mix(in srgb, var(--text) 14%, transparent);
  opacity: .7; transition: opacity .2s, border-color .2s, transform .2s;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; mix-blend-mode: darken; }
.pdp-thumb:hover { opacity: 1; transform: translateY(-2px); }
.pdp-thumb.is-on { opacity: 1; border-color: var(--accent); }
.pdp-thumb:focus-visible, .pdp-gal-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pdp-gal-arrow {
  flex: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--text); font-size: 22px;
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  transition: border-color .2s, color .2s;
}
.pdp-gal-arrow:hover { border-color: var(--accent); color: var(--accent); }
@media (width < 640px) { .pdp-thumb { width: 64px; } .pdp-gal-arrow { width: 36px; height: 36px; } }
.pdp-media-plate img { animation: kd-fade .3s ease; }
@keyframes kd-fade { from { opacity: .3; } to { opacity: 1; } }

/* 14. Pasek filtrów w katalogu: gdy menu chowa się przy przewijaniu, pasek idzie na samą górę ekranu
       (wcześniej wisiał w miejscu menu, a nad nim przewijały się produkty). */
.shop-bar { transition: top .35s ease; }
body:has(.nav.is-down) .shop-bar { top: 0; }

/* 15. Wybór płatności w koszyku (Przelewy24 / przelew) — widoczny, gdy P24 jest włączone w panelu */
.kd-pay{border:0;margin:0 0 8px;padding:0;display:grid;gap:10px}
.kd-pay legend{padding:0;margin-bottom:10px}
.kd-pay label{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border:1px solid rgba(127,127,127,.35);border-radius:12px;cursor:pointer}
.kd-pay label:has(input:checked){border-color:#c2141f;box-shadow:0 0 0 1px #c2141f}
.kd-pay input{accent-color:#c2141f;margin-top:4px}
.kd-pay span{display:grid;gap:2px;font-size:.92em;opacity:.85}
.kd-pay strong{font-size:1.05em;opacity:1}

/* 16. Strona główna: Najnowsze produkty (lewa) i Bestsellery (prawa) */
.home-picks .hp-grid { flex-direction: row; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.hp-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hp-col h2 { margin: 0 0 8px; color: #f2f5f6; font-size: clamp(28px, 3.4vw, 46px); line-height: 1; letter-spacing: .01em; }
.hp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hp-card { display: grid; grid-template-columns: clamp(96px, 11vw, 140px) 1fr; gap: 16px; align-items: center;
  padding: 12px; border: 1px solid #ffffff14; border-radius: 14px; background: #ffffff08; }
.hp-img { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #fff; }
.hp-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.hp-card:hover .hp-img img { transform: scale(1.04); }
.hp-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hp-name { color: #f2f5f6; text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp-name:hover { color: #fff; text-decoration: underline; }
.hp-price { margin: 0; color: var(--accent); font-family: var(--font-heading); font-weight: 700; font-size: 20px; white-space: nowrap; }
.hp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.hp-actions .bs-buy { padding: 9px 16px; font-size: 11px; }
@media (max-width: 899px) {
  .home-picks .hp-grid { grid-template-columns: 1fr; }
}

/* 17. Telefon: u góry hasło i nagłówek, pod nimi zdjęcie, pod zdjęciem opis, przyciski i liczby */
@media (max-width: 767px) {
  .hero { padding-top: 78px; padding-bottom: 28px; }
  .hero .hero-inner { display: flex; flex-direction: column; align-items: stretch; gap: 14px; text-align: left; }
  .hero .hero-copy > * { align-self: stretch; text-align: left; }
  .hero .hero-actions, .hero .hero-facts { justify-content: flex-start; }
  .hero .hero-copy { display: contents; }
  .hero .hero-copy > .stamp { order: 1; font-size: 10px; letter-spacing: .14em; margin: 0; }
  .hero .hero-copy > .hero-title { order: 2; margin: 0 0 6px; }
  .hero .hero-visual { order: 3; width: 100%; margin: 0 0 6px; }
  .hero .hero-copy > .hero-sub { order: 4; margin: 0; font-size: 15px; line-height: 1.55; }
  .hero .hero-copy > .hero-actions { order: 5; gap: 10px; }
  .hero .hero-copy > .hero-facts { order: 6; }
  .hero .hero-shot--welder { width: 100%; aspect-ratio: 4 / 3; height: auto; max-height: 40svh; margin: 0; }
  .hero .hero-shot--welder img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
  .hero .hero-actions a { flex: 1 1 0; justify-content: center; padding-left: 12px; padding-right: 12px; }
}

/* 18. Koszyk: zdjęcia produktów na białym tle (strona koszyka i wysuwany koszyk) */
html .cart-item-thumb, html .cart-row-thumb { background: #fff !important; border-radius: 10px; overflow: hidden; }
html .cart-item-thumb img, html .cart-row-thumb img { background: #fff !important; padding: 4px; box-sizing: border-box; }

/* 19. Subtelny rozdzielacz między „Najnowsze produkty” a „Bestsellery” */
.home-picks .hp-grid { position: relative; }
.home-picks .hp-grid::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 50%; width: 1px; pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,.12) 18%, rgba(197,20,31,.6) 50%, rgba(255,255,255,.12) 82%, transparent 100%);
}
.home-picks .hp-grid::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; pointer-events: none;
  transform: translate(-50%, -50%) rotate(45deg); background: #05070a;
  border: 1px solid rgba(197,20,31,.85); box-shadow: 0 0 10px rgba(197,20,31,.45);
}
@media (max-width: 899px) {
  .home-picks .hp-grid::before, .home-picks .hp-grid::after { display: none; }
  .home-picks .hp-col + .hp-col { position: relative; padding-top: 30px; }
  .home-picks .hp-col + .hp-col::before {
    content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
    background: linear-gradient(to right, transparent 0%, rgba(255,255,255,.12) 18%, rgba(197,20,31,.6) 50%, rgba(255,255,255,.12) 82%, transparent 100%);
  }
  .home-picks .hp-col + .hp-col::after {
    content: ""; position: absolute; top: 0; left: 50%; width: 7px; height: 7px;
    transform: translate(-50%, -50%) rotate(45deg); background: #05070a;
    border: 1px solid rgba(197,20,31,.85); box-shadow: 0 0 10px rgba(197,20,31,.45);
  }
}

/* 20. Nowa stopka */
.site-footer.kf { padding: clamp(36px, 5vw, 64px) clamp(16px, 4vw, 56px) 22px; }
.kf > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.kf-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
  padding: clamp(20px, 3vw, 32px); border-radius: 18px; margin-bottom: clamp(32px, 4vw, 52px);
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 18%, transparent) 0%, color-mix(in srgb, var(--panel) 85%, transparent) 55%); }
.kf-stamp { margin: 0 0 6px; font-family: var(--font-label); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.kf-cta h2 { margin: 0; font-size: clamp(20px, 2.4vw, 30px); line-height: 1.15; color: var(--text); max-width: 560px; }
.kf-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.kf-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
  text-decoration: none; color: var(--text); border: 1px solid color-mix(in srgb, var(--text) 22%, transparent); transition: border-color .2s, background .2s; }
.kf-btn:hover { border-color: var(--accent); }
.kf-btn--solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.kf-btn--solid:hover { background: color-mix(in srgb, var(--accent) 85%, #000); }
.kf-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 28px clamp(20px, 3vw, 48px); padding-bottom: 28px; }
.kf-logo { display: inline-block; margin-bottom: 14px; }
.kf-logo img { height: 48px; width: auto; display: block; border-radius: 8px; }
.kf-brand p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 320px; }
.kf-socials { display: flex; gap: 8px; }
.kf-socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; font-size: 18px; color: var(--text);
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent); transition: border-color .2s, color .2s; }
.kf-socials a:hover { border-color: var(--accent); color: var(--accent); }
.kf-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.kf-col h3 { margin: 0 0 4px; font-family: var(--font-label); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text); }
.kf-col a, .kf-col span { color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.45; display: inline-flex; gap: 8px; align-items: flex-start; }
.kf-col a:hover { color: var(--text); }
.kf-col i { color: var(--accent); font-size: 15px; margin-top: 1px; }
.kf-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px 24px; flex-wrap: wrap; padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent); font-size: 12px; color: var(--muted); }
.kf-pay { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kf-pay b { font-weight: 600; font-size: 11px; padding: 3px 9px; border-radius: 999px; color: var(--text);
  border: 1px solid color-mix(in srgb, var(--text) 16%, transparent); }
@media (max-width: 899px) {
  .kf-grid { grid-template-columns: 1fr 1fr; }
  .kf-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .kf-grid { grid-template-columns: 1fr; }
  .kf-cta-actions, .kf-cta-actions .kf-btn { width: 100%; justify-content: center; }
  .kf-bottom { flex-direction: column; align-items: flex-start; }
}

/* 21. Opis produktu z panelu (akapity, listy, nagłówki) */
.kd-desc { display: flex; flex-direction: column; gap: 14px; }
.kd-desc-h { margin: 6px 0 -4px; font-family: var(--font-label); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--label, var(--muted)); font-weight: 500; }
.kd-desc .pdp-features li { position: relative; padding-left: 18px; }
.kd-desc .pdp-features li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
