/*
 * Warstwa własna na Bootstrapie 5.3.
 * Akcent #fd2b2b i ciemny nagłówek #191919 pochodzą z motywu oryginału.
 */

:root {
  --w2s-accent: #fd2b2b;
  --w2s-accent-ciemny: #d61919;
  --w2s-accent-kontrast: #ffffff;
  --w2s-nav-h: 72px;
  --w2s-ciemny: #191919;
  --w2s-promien: .75rem;
}

[data-bs-theme="light"] {
  --w2s-tlo: #ffffff;
  --w2s-tlo-alt: #f6f4f1;
  --w2s-tekst: #2d3940;
  --w2s-tekst-slaby: #66737b;
  --w2s-obwod: rgba(0, 0, 0, .08);
  --w2s-karta: #ffffff;
}

[data-bs-theme="dark"] {
  --w2s-tlo: #14181b;
  --w2s-tlo-alt: #1b2024;
  --w2s-tekst: #e6ebef;
  --w2s-tekst-slaby: #a3adb3;
  --w2s-obwod: rgba(255, 255, 255, .12);
  --w2s-karta: #1f2529;
}

body {
  background: var(--w2s-tlo);
  color: var(--w2s-tekst);
  padding-top: var(--w2s-nav-h);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
}

h1, h2, h3, h4, h5 { font-weight: 650; line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

a { color: var(--w2s-accent); }
a:hover { color: var(--w2s-accent-ciemny); }

/* --- przyciski ----------------------------------------------------------- */

.btn-accent {
  --bs-btn-bg: var(--w2s-accent);
  --bs-btn-border-color: var(--w2s-accent);
  --bs-btn-color: var(--w2s-accent-kontrast);
  --bs-btn-hover-bg: var(--w2s-accent-ciemny);
  --bs-btn-hover-border-color: var(--w2s-accent-ciemny);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--w2s-accent-ciemny);
  --bs-btn-active-border-color: var(--w2s-accent-ciemny);
  --bs-btn-active-color: #fff;
  --bs-btn-focus-shadow-rgb: 253, 43, 43;
}

.btn-outline-accent {
  --bs-btn-color: var(--w2s-accent);
  --bs-btn-border-color: var(--w2s-accent);
  --bs-btn-hover-bg: var(--w2s-accent);
  --bs-btn-hover-border-color: var(--w2s-accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--w2s-accent-ciemny);
  --bs-btn-active-border-color: var(--w2s-accent-ciemny);
  --bs-btn-active-color: #fff;
  --bs-btn-focus-shadow-rgb: 253, 43, 43;
}

/* --- navbar: ciemny jak w oryginale, białe logo bez podkładki ---------------- */

.w2s-navbar {
  min-height: var(--w2s-nav-h);
  background: rgba(25, 25, 25, .97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.w2s-logo { height: 40px; width: auto; }

.w2s-navbar .nav-link {
  color: #c1c1c1;
  font-weight: 500;
  padding-inline: .8rem;
}

.w2s-navbar .nav-link:hover,
.w2s-navbar .nav-link:focus,
.w2s-navbar .nav-link.show { color: #fff; }

.w2s-navbar .nav-link.active { color: #fff; box-shadow: inset 0 -2px 0 var(--w2s-accent); }

.w2s-navbar .dropdown-menu {
  --bs-dropdown-bg: #222;
  --bs-dropdown-link-active-bg: var(--w2s-accent);
  border: 0;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, .35);
}

/* --- sekcje single-page -------------------------------------------------- */

.w2s-view[hidden] { display: none; }
.w2s-view { scroll-margin-top: var(--w2s-nav-h); }

.w2s-sekcja { padding: 4rem 0; }
.w2s-sekcja-alt { background: var(--w2s-tlo-alt); }

.w2s-tytul-sekcji {
  text-align: center;
  margin-bottom: 2.25rem;
}

.w2s-tytul-sekcji::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: .75rem auto 0;
  background: var(--w2s-accent);
  border-radius: 2px;
}

.w2s-eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--w2s-accent);
  margin-bottom: .5rem;
}

/* --- hero ------------------------------------------------------------------ */

.w2s-hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: center;
  padding: 5rem 0;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.w2s-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 10, .82) 0%, rgba(10, 10, 10, .55) 55%, rgba(10, 10, 10, .2) 100%);
}

.w2s-hero > .container { position: relative; }
.w2s-hero h1 { max-width: 16em; font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.w2s-hero .lead { max-width: 36rem; color: rgba(255, 255, 255, .88); }

/* --- nagłówek podstrony / sekcji ------------------------------------------- */

.w2s-pagehead {
  padding: 3.5rem 0 3rem;
  background:
    radial-gradient(ellipse at top right, rgba(253, 43, 43, .18), transparent 55%),
    var(--w2s-ciemny);
  color: #fff;
}

.w2s-pagehead h1 { margin-bottom: .75rem; }
.w2s-pagehead .lead { max-width: 46rem; color: rgba(255, 255, 255, .85); }
.w2s-pagehead-sub { margin-top: .5rem; color: rgba(255, 255, 255, .65); }
.w2s-pagehead-sub a { color: #fff; }

.w2s-okruszki {
  font-size: .875rem;
  color: rgba(255, 255, 255, .6);
  margin-bottom: .75rem;
}

.w2s-okruszki a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.w2s-okruszki a:hover { color: #fff; text-decoration: underline; }

/* --- kafle oferty na stronie głównej ---------------------------------------- */

.w2s-kafel {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--w2s-promien);
  aspect-ratio: 3 / 4;
  color: #fff;
  text-decoration: none;
  background: var(--w2s-ciemny);
}

.w2s-kafel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.w2s-kafel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .78));
}

.w2s-kafel-tytul {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: .9rem;
  z-index: 1;
  font-weight: 650;
  font-size: 1.1rem;
  line-height: 1.25;
}

.w2s-kafel:hover { color: #fff; }
.w2s-kafel:hover img { transform: scale(1.05); }
.w2s-kafel:hover .w2s-kafel-tytul { text-decoration: underline; text-decoration-color: var(--w2s-accent); text-underline-offset: .25em; }

.w2s-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 1;
  background: var(--w2s-accent);
  font-size: .75rem;
}

.w2s-atut {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.w2s-atut strong { font-size: 1.6rem; color: var(--w2s-accent); }
.w2s-atut span { color: var(--w2s-tekst-slaby); }

/* --- pasek CTA ------------------------------------------------------------- */

.w2s-cta { padding: 3rem 0; }

.w2s-cta-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.25rem 2.5rem;
  border-radius: calc(var(--w2s-promien) * 1.5);
  background: linear-gradient(120deg, var(--w2s-accent), #b51212);
  color: #fff;
}

.w2s-cta-box .btn-light { color: var(--w2s-accent-ciemny); font-weight: 600; }

/* --- O nas ----------------------------------------------------------------- */

.w2s-krok {
  position: relative;
  padding: 2rem 1.75rem 1.5rem;
  border: 1px solid var(--w2s-obwod);
  border-radius: var(--w2s-promien);
  background: var(--w2s-karta);
}

.w2s-krok-nr {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--w2s-accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}

.w2s-krok p:last-child { margin-bottom: 0; }

/* --- zdjęcia i miniatury ---------------------------------------------------- */

.w2s-foto { display: block; }
.w2s-foto img { width: 100%; border-radius: var(--w2s-promien); box-shadow: 0 1rem 2rem rgba(0, 0, 0, .12); }

.w2s-miniatura {
  display: block;
  overflow: hidden;
  border-radius: calc(var(--w2s-promien) * .75);
  aspect-ratio: 1;
  background: var(--w2s-tlo-alt);
  cursor: zoom-in;
}

.w2s-miniatura img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease, opacity .2s;
}

.w2s-miniatura:hover img { transform: scale(1.06); }

.w2s-galeria-el figcaption {
  margin-top: .5rem;
  font-size: .85rem;
  line-height: 1.4;
  color: var(--w2s-tekst-slaby);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- oferta ---------------------------------------------------------------- */

.w2s-oferta-wiersz + .w2s-oferta-wiersz {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--w2s-obwod);
}

/* --- karty (porady, akcesoria) ---------------------------------------------- */

.w2s-card {
  overflow: hidden;
  border: 1px solid var(--w2s-obwod);
  border-radius: var(--w2s-promien);
  background: var(--w2s-karta);
  transition: transform .18s ease, box-shadow .18s ease;
}

.w2s-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 .75rem 1.75rem rgba(0, 0, 0, .13);
}

.w2s-card-img {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--w2s-tlo-alt);
}

.w2s-card-img img { width: 100%; height: 100%; object-fit: cover; }

.w2s-card .card-title a { color: var(--w2s-tekst); text-decoration: none; }
.w2s-card:hover .card-title a { color: var(--w2s-accent); }
.w2s-card .card-text { color: var(--w2s-tekst-slaby); font-size: .925rem; }

.w2s-data { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--w2s-tekst-slaby); }
.w2s-wiecej { font-weight: 600; color: var(--w2s-accent); font-size: .925rem; }

/* --- treść podstron i artykułów ---------------------------------------------- */

.w2s-prose { font-size: 1.05rem; }
.w2s-prose-waska { max-width: 46rem; margin-inline: auto; }
.w2s-prose h2 { font-size: 1.5rem; margin-top: 2.25rem; margin-bottom: .75rem; }
.w2s-prose h3 { font-size: 1.2rem; margin-top: 1.75rem; }
.w2s-prose > :first-child { margin-top: 0; }
.w2s-prose li { margin-bottom: .35rem; }
.w2s-prose em { color: var(--w2s-tekst-slaby); }

.w2s-artykul-foto { margin-bottom: 2rem; }
.w2s-artykul-foto img { width: 100%; max-height: 28rem; object-fit: cover; border-radius: var(--w2s-promien); }

@media (min-width: 768px) {
  .w2s-sekcja .col-md-5 > .w2s-foto { position: sticky; top: calc(var(--w2s-nav-h) + 1.5rem); }
}

/* --- kontakt ----------------------------------------------------------------- */

.w2s-kontakt-kafel {
  height: 100%;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--w2s-obwod);
  border-left: 4px solid var(--w2s-accent);
  border-radius: var(--w2s-promien);
  background: var(--w2s-karta);
}

.w2s-kontakt-kafel h2 {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--w2s-tekst-slaby);
  font-size: .8rem;
}

.w2s-kontakt-duzy { font-size: 1.3rem; font-weight: 650; text-decoration: none; word-break: break-word; }

.w2s-form-box {
  padding: 2rem;
  border: 1px solid var(--w2s-obwod);
  border-radius: var(--w2s-promien);
  background: var(--w2s-tlo-alt);
}

.w2s-form { max-width: none; }

/* --- lightbox ------------------------------------------------------------------ */

.w2s-lightbox-modal .modal-content {
  background: #0d0d0d;
  border: 0;
  overflow: hidden;
}

.w2s-lightbox-modal img {
  display: block;
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: #000;
}

.w2s-lightbox-modal .btn-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 2;
  background-color: rgba(0, 0, 0, .55);
  border-radius: 50%;
  padding: .6rem;
  opacity: 1;
}

.w2s-lightbox-pasek {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  color: #ddd;
  font-size: .925rem;
  text-align: center;
}

.w2s-lightbox-pasek .btn { min-width: 2.5rem; font-size: 1.2rem; line-height: 1; }

/* --- stopka ------------------------------------------------------------------- */

.w2s-footer {
  background: var(--w2s-ciemny);
  color: #a6a6a6;
  padding: 3.5rem 0 1.5rem;
  font-size: .925rem;
}

.w2s-footer-logo { max-width: 220px; height: auto; }

.w2s-footer-h {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #fff;
  margin-bottom: 1rem;
}

.w2s-footer-lista li { padding: .2rem 0; }

.w2s-footer a { color: #d0d0d0; text-decoration: none; }
.w2s-footer a:hover { color: #fff; text-decoration: underline; }

.w2s-footer-dol {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

/* --- mobile ---------------------------------------------------------------------- */

@media (max-width: 991.98px) {
  .w2s-navbar .nav-link { padding-inline: 0; }
  .w2s-navbar .nav-link.active { box-shadow: none; color: var(--w2s-accent); }
  .w2s-navbar .navbar-collapse { max-height: calc(100vh - var(--w2s-nav-h)); overflow-y: auto; }
  .w2s-sekcja { padding: 3rem 0; }
}

@media (max-width: 575.98px) {
  .w2s-logo { height: 32px; }
  .w2s-hero { padding: 3.5rem 0; min-height: 0; }
  .w2s-cta-box { padding: 1.75rem 1.5rem; }
  .w2s-form-box { padding: 1.25rem; }
  .w2s-kafel-tytul { font-size: .95rem; left: .75rem; right: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .w2s-kafel img, .w2s-miniatura img, .w2s-card { transition: none; }
}
