:root {
  --purple: #5b3fa8;
  --purple-deep: #2c1a63;
  --yellow: #fdc72f;
  --yellow-deep: #f2b100;
  --ink: #241b3d;
  --muted: #6c6584;
  --tint: #f6f3fd;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(44, 26, 99, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --head: 'Baloo 2', 'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, .h1 { font-family: var(--head); line-height: 1.1; }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  transition: background .3s, box-shadow .3s, padding .3s;
}
.topbar.is-solid { background: rgba(255,255,255,.6); box-shadow: 0 2px 20px rgba(0,0,0,.08); padding-block: 8px; backdrop-filter: blur(8px); }
.brand img { height: 50px; width: auto; border-radius: 12px; background: #fff; padding: 2px 6px; transition: height .3s; }
.topbar.is-solid .brand img { height: 42px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer;
  font: inherit; text-decoration: none; font-weight: 700; font-size: .95rem; color: #fff;
  padding: 9px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav__link:hover, .dd.open > .nav__link { background: rgba(255,255,255,.18); }
.topbar.is-solid .nav__link { color: var(--ink); }
.topbar.is-solid .nav__link:hover, .topbar.is-solid .dd.open > .nav__link { background: var(--tint); color: var(--purple); }
.chev { display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease); }
.dd.open .chev, .acc.open .chev { transform: translateY(1px) rotate(-135deg); }

/* panel rozwijany (desktop) – pozycjonowany względem paska */
.dd__panel {
  position: absolute; top: calc(100% - 4px); left: 50%;
  background: #fff; color: var(--ink); border-radius: 20px; box-shadow: 0 24px 60px rgba(36,27,61,.22);
  padding: 18px; opacity: 0; visibility: hidden; transform: translate(-50%, 10px);
  transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
}
.dd__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.dd.open > .dd__panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .2s, transform .25s var(--ease), visibility 0s; }
.dd__panel--mega {
  left: 0; right: 0; width: auto; transform: translateY(10px);
  border-radius: 0 0 26px 26px; padding: 26px clamp(16px, 4vw, 48px) 18px;
  max-height: calc(100vh - 90px); overflow-y: auto;
}
.dd.open > .dd__panel--mega { transform: none; }
.dd__panel--mega > * { max-width: 1400px; margin-inline: auto; }
.mega { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.mega a, .lines-menu a {
  display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px;
  text-decoration: none; color: var(--ink); transition: background .2s;
}
.mega a:hover, .lines-menu a:hover { background: var(--tint); }
.mega a { flex-direction: column; align-items: stretch; gap: 10px; padding: 8px 8px 12px; text-align: center; }
.mega__img { display: block; width: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--tint); }
.mega__txt { align-items: center; }
.mega--lines { grid-template-columns: repeat(5, 1fr); gap: 18px; }
.mega__img--line { position: relative; aspect-ratio: 4 / 3; }
.mega__img--line .lm__logo { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); width: 64px; height: 64px; }
.mega__img--line .lm__logo img { width: 400px; height: auto; object-fit: initial; }
.mega a:hover .mega__img--line .lm__logo img { transform: translate(-50%, -50%); }
.mega__txt b { font-size: .95rem; }
.mega__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.mega a:hover .mega__img img { transform: scale(1.1); }
.mega__txt, .lm__txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.mega__txt b, .lm__txt b { font-size: .92rem; }
.mega__txt small, .lm__txt small { color: var(--muted); font-size: .78rem; font-weight: 600; margin-top: 2px; }
.mega a:hover b, .lines-menu a:hover b { color: var(--purple); }
.dd__all { display: block; margin-top: 12px; padding: 12px 8px 2px; border-top: 1px solid #f0edf7; text-align: center; font-weight: 800; color: var(--purple); text-decoration: none; }
.dd__all:hover { text-decoration: underline; }
.lines-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.lm__logo { flex: none; position: relative; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 2px 10px rgba(44,26,99,.12); }
.lm__logo img { position: absolute; left: 50%; top: 50%; width: 320px; max-width: none; transform: translate(-50%, -50%); }

/* ---------- Hamburger + menu mobilne ---------- */
.burger {
  display: none; position: relative; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.18); cursor: pointer; backdrop-filter: blur(6px);
}
.burger span { position: absolute; left: 13px; width: 20px; height: 2.5px; border-radius: 2px; background: #fff; transition: background .3s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.topbar.is-solid .burger { background: var(--tint); }
.topbar.is-solid .burger span { background: var(--purple); }

.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(36,27,61,.55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 90vw);
  background: #fff; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 18px calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(100%); transition: transform .35s var(--ease);
  box-shadow: -20px 0 50px rgba(0,0,0,.2); display: flex; flex-direction: column;
}
.drawer.open .drawer__backdrop { opacity: 1; }
.drawer.open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer__head img { height: 40px; width: auto; }
.drawer__x { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--tint); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.drawer__nav > * { border-bottom: 1px solid #f0edf7; }
/* wejście elementów menu – keyframes, żeby nie kolidowało z transition kolorów */
.drawer__nav > *, .drawer__cta > * { opacity: 0; }
.drawer.open .drawer__nav > *, .drawer.open .drawer__cta > * {
  animation: drawerIn .5s var(--ease) both;
  animation-delay: calc(.12s + var(--i, 0) * 60ms);
}
.acc.open .drawer__cats a, .acc.open .lines-menu--drawer a, .acc.open .acc__all {
  animation: drawerIn .4s var(--ease) both;
  animation-delay: calc(.05s + var(--j, 0) * 30ms);
}
@keyframes drawerIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.drawer__link {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  border: 0; background: none; cursor: pointer; text-align: left; text-decoration: none;
  font-family: var(--head); font-weight: 700; font-size: 1.25rem; color: var(--ink);
  padding: 14px 8px; border-radius: 12px; transition: color .2s, background .2s;
}
a.drawer__link::after { content: "→"; color: var(--purple); font-size: 1rem; }
.drawer__link:hover, .drawer__link:active, .acc.open > .drawer__link { color: var(--purple); }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.acc.open > .acc__body { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; min-height: 0; }
.drawer__cats { display: grid; padding: 0 0 6px; }
.drawer__cats a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 10px 10px 16px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem;
}
.drawer__cats a small { min-width: 34px; text-align: center; padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--purple); font-size: .75rem; font-weight: 800; }
.drawer__cats a:hover, .drawer__cats a:active { background: var(--tint); color: var(--purple); }
.acc__all { display: block; padding: 8px 16px 16px; font-weight: 800; color: var(--purple); text-decoration: none; font-size: .9rem; }
.lines-menu--drawer { grid-template-columns: 1fr; padding-bottom: 10px; }
.lines-menu--drawer .lm__logo { width: 46px; height: 46px; }
.lines-menu--drawer .lm__logo img { width: 290px; }
.drawer__cta { display: grid; gap: 10px; margin-top: auto; padding-top: 22px; }
.drawer__cta .mini { padding: 13px 14px; font-size: .95rem; }
.mini--purple { background: var(--purple); color: #fff; }
.mini--purple:hover { background: var(--purple-deep); }

/* ---------- Split 50/50 ---------- */
.split { position: relative; display: flex; min-height: 100vh; min-height: 100svh; }
.half {
  position: relative; width: 50%; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center;
  padding: 120px clamp(24px, 5vw, 80px) 90px; color: #fff;
}
.half__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; container-type: size; }
.half__img {
  position: absolute; aspect-ratio: 1;
  width: 210%; width: max(210cqw, 210cqh);
  background-size: cover;
  transform: scale(1.08);
  transition: transform 1.6s var(--ease);
  animation: bgIn 1.8s var(--ease) both;
}
.half__img--retail { background-image: url(../img/woopie_art_1_optimized.jpg); left: 0; top: 0; transform-origin: 0 0; }
.half__img--b2b    { background-image: url(../img/woopie_r_optimized.jpg); right: 0; bottom: 0; transform-origin: 100% 100%; }
.half:hover .half__img { transform: scale(1.14); }
.half::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.half--retail::before { background: linear-gradient(160deg, rgba(91,63,168,.88) 0%, rgba(44,26,99,.78) 55%, rgba(253,199,47,.45) 100%); }
.half--b2b::before    { background: linear-gradient(200deg, rgba(36,27,61,.9) 0%, rgba(44,26,99,.85) 50%, rgba(91,63,168,.6) 100%); }
.half--retail::after { /* separator */
  content: ""; position: absolute; right: 0; top: 12%; bottom: 12%; width: 1px;
  background: linear-gradient(transparent, rgba(255,255,255,.45), transparent);
}
.half__content { max-width: 500px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.half h1, .half .h1 { font-size: clamp(2rem, 3.6vw, 3.4rem); font-weight: 800; margin: 18px 0 16px; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.half p { font-size: 1.08rem; opacity: .92; margin-bottom: 20px; }
.pill {
  display: inline-block; font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px;
}
.pill--yellow { background: var(--yellow); color: #3a2a00; }
.pill--white { background: #fff; color: var(--purple); }
.ticks { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 26px; font-weight: 700; font-size: .95rem; }
.ticks li::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; background: rgba(255,255,255,.2); font-size: .75rem; }
.partner { background: #fff; border-radius: 16px; padding: 6px 18px; margin-bottom: 26px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.partner img { width: 230px; height: auto; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; font-weight: 800; font-size: 1rem; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s;
}
.btn span { transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.25); }
.btn:hover span { transform: translateX(4px); }
.btn--yellow { background: var(--yellow); color: #2c2000; }
.btn--yellow:hover { background: var(--yellow-deep); }
.btn--white { background: #fff; color: var(--purple); }
.btn--ghost { border: 2px solid rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--purple); }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.8); border-radius: 20px;
}
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }

.login-link { margin-top: 14px; font-weight: 700; font-size: .9rem; color: #fff; opacity: .85; }
.login-link:hover { opacity: 1; }

/* ---------- Animacje wejścia ---------- */
.anim { opacity: 0; animation: up .9s var(--ease) both; animation-delay: var(--d, 0s); }
.half--b2b .anim { animation-name: upRight; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@keyframes up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes upRight { from { opacity: 0; transform: translate(30px, 20px); } to { opacity: 1; transform: none; } }
@keyframes bgIn { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: none; } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  max-width: 1100px; margin: -48px auto 0; position: relative; z-index: 5;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px clamp(16px, 3vw, 36px);
  width: calc(100% - 32px);
}
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--head); font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--purple); line-height: 1.1; }
.stat span { color: var(--muted); font-weight: 600; font-size: .92rem; }

/* ---------- Logotypy linii ---------- */
.brands { max-width: 1240px; margin: 0 auto; padding: 56px 16px 0; overflow: hidden; }
.brands__track { display: flex; }
.brands__set { display: flex; flex: 1; justify-content: space-around; align-items: center; gap: 24px; }
.blogo {
  position: relative; flex: none; width: 150px; height: 146px; overflow: hidden; display: block;
  transition: transform .3s var(--ease);
}
/* plik 800x800 ma logo ~125px na środku: powiększamy i centrujemy */
.blogo img {
  position: absolute; left: 50%; top: 50%; width: 900px; max-width: none; height: auto;
  transform: translate(-50%, -50%);
}
.blogo:hover { transform: translateY(-4px) scale(1.06); }
.brands__set[aria-hidden] { display: none; }

/* ---------- Sekcje ---------- */
.section { padding: 90px clamp(16px, 4vw, 48px); }
.section--tint { background: var(--tint); }
.section__head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.eyebrow { color: var(--purple); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; }
.section__head h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); margin: 8px 0 12px; }
.section__head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Kategorie ---------- */
.cat-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat {
  position: relative; display: block; aspect-ratio: 1; border-radius: 22px; overflow: hidden; isolation: isolate;
  text-decoration: none; color: #fff; background: var(--tint);
  box-shadow: 0 4px 16px rgba(44,26,99,.08);
  opacity: 0; transform: translateY(40px) scale(.94);
  transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .3s;
  transition-delay: var(--d, 0s);
}
.cat-grid.in .cat { opacity: 1; transform: none; }
.cat-grid.done .cat { transition-delay: 0s; }
.cat-grid.in .cat:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(44,26,99,.22); transition-delay: 0s; }
.cat__img { position: absolute; inset: 0; z-index: -2; }
.cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.cat:hover .cat__img img { transform: scale(1.08); }
.cat::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(44,26,99,0) 45%, rgba(44,26,99,.55) 70%, rgba(36,27,61,.92) 100%);
  transition: opacity .3s;
}
.cat__txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.cat h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.15; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.cat small { display: block; margin-top: 4px; font-weight: 700; font-size: .85rem; opacity: .85; }
.cat__go {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); color: #2c2000; font-weight: 800;
  transform: translateX(-6px); opacity: .0; transition: transform .3s var(--ease), opacity .3s;
}
.cat:hover .cat__go { transform: none; opacity: 1; }
@media (hover: none) { .cat__go { opacity: 1; transform: none; } }

/* ---------- Karuzele ---------- */
.carousel { max-width: 1240px; margin: 0 auto 56px; scroll-margin-top: 90px; }
.carousel:last-child { margin-bottom: 0; }
.carousel__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.carousel__head h3 { font-size: 1.6rem; }
.carousel__head h3 small { display: block; margin-top: 2px; font-family: 'Nunito', sans-serif; font-size: .9rem; color: var(--muted); font-weight: 600; }
.carousel__tools { display: flex; align-items: center; gap: 10px; }
.carousel__all { font-weight: 800; color: var(--purple); text-decoration: none; margin-right: 6px; font-size: .95rem; }
.carousel__all:hover { text-decoration: underline; }
.arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--purple); box-shadow: 0 4px 14px rgba(44,26,99,.14);
  font-size: 1.2rem; display: grid; place-items: center; transition: background .2s, color .2s, opacity .2s;
}
.arrow:hover { background: var(--purple); color: #fff; }
.arrow:disabled { opacity: .35; cursor: default; background: #fff; color: var(--purple); }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 4px 18px; scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.card {
  scroll-snap-align: start; background: #fff; border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none;
  box-shadow: 0 2px 10px rgba(44,26,99,.06); transition: transform .3s var(--ease), box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__img { position: relative; aspect-ratio: 1; background: #fff; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .5s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card__line { position: absolute; left: 10px; top: 10px; background: var(--tint); color: var(--purple); font-size: .7rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; border-top: 1px solid #f0edf7; }
.card__name { font-weight: 700; font-size: .95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.9em; }
.card__cta { margin-top: 12px; font-weight: 800; font-size: .85rem; color: var(--purple); }
.card:hover .card__cta { text-decoration: underline; }
.carousel .card { opacity: 0; transform: translateY(24px); }
.carousel.in .card { animation: up .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }

.card--more {
  background: linear-gradient(150deg, var(--purple) 0%, var(--purple-deep) 100%); color: #fff;
  position: relative; overflow: hidden; justify-content: center;
}
.card--more::after { content: ""; position: absolute; width: 220px; height: 220px; right: -80px; top: -80px; border-radius: 50%; background: rgba(253,199,47,.2); }
.more__inner { position: relative; z-index: 1; padding: 24px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; height: 100%; justify-content: center; }
.more__plus { font-family: var(--head); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--yellow); }
.card--more h4 { font-family: var(--head); font-size: 1.5rem; line-height: 1.1; }
.card--more p { font-size: .9rem; opacity: .85; margin-bottom: 6px; }
.card--more .mini { flex: none; width: 100%; max-width: 200px; }
.card--more:hover { transform: translateY(-6px); }

/* ---------- Linie ---------- */
.lines { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.line { position: relative; display: block; border-radius: var(--radius); overflow: hidden; min-height: 440px; color: #fff; isolation: isolate; scroll-margin-top: 100px; }
.line:target { box-shadow: 0 0 0 4px var(--yellow), var(--shadow); }
.line > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.line::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(44,26,99,.15) 0%, rgba(44,26,99,0) 30%, rgba(44,26,99,.6) 55%, rgba(36,27,61,.95) 100%); transition: opacity .4s; }
.line:hover > img { transform: scale(1.08); }
.line__txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; }
.line h3 { font-size: 1.4rem; }
.line p { font-size: .92rem; opacity: .9; }

.line__logo { position: absolute; top: 14px; left: 14px; width: 84px; height: 84px; border-radius: 50%; background: #fff; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.line__logo img { position: absolute; left: 50%; top: 50%; width: 500px; max-width: none; transform: translate(-50%, -50%); }
.line__txt { padding: 20px 18px; }
.line__btns { display: flex; gap: 8px; margin-top: 14px; }
.mini { flex: 1; text-align: center; padding: 9px 10px; border-radius: 999px; font-weight: 800; font-size: .85rem; text-decoration: none; transition: transform .2s var(--ease), background .2s; }
.mini:hover { transform: translateY(-2px); }
.mini--yellow { background: var(--yellow); color: #2c2000; }
.mini--yellow:hover { background: var(--yellow-deep); }
.mini--white { background: #fff; color: var(--purple); }
.blogo { cursor: pointer; }

/* ---------- Okno wyboru detal/hurt ---------- */
body.no-scroll { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(36,27,61,.6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s; }
.modal__box {
  position: relative; width: min(820px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; border-radius: 24px; display: grid; grid-template-columns: 1fr 1.1fr;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .25s var(--ease), transform .3s var(--ease);
}
.modal.open .modal__backdrop { opacity: 1; }
.modal.open .modal__box { opacity: 1; transform: none; }
.modal__x { position: absolute; top: 10px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--tint); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.modal__x:hover { background: var(--purple); color: #fff; }
.modal__img { background: #fff; display: grid; place-items: center; padding: 24px; border-right: 1px solid #f0edf7; }
.modal__img img { width: 100%; max-width: 360px; aspect-ratio: 1; object-fit: contain; }
.modal__body { padding: 30px 28px 26px; display: flex; flex-direction: column; align-items: flex-start; }
.modal__body .card__line { position: static; }
.modal__body h3 { font-size: 1.35rem; margin: 10px 30px 6px 0; }
.modal__lead { color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.choice {
  width: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: 16px; text-decoration: none; margin-bottom: 10px; border: 2px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.choice strong { font-family: var(--head); font-size: 1.3rem; line-height: 1.1; }
.choice span { grid-column: 1; font-size: .85rem; opacity: .85; }
.choice img { grid-column: 2; grid-row: 1 / 3; width: 110px; height: auto; border-radius: 8px; background: #fff; padding: 2px 6px; }
.choice:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(44,26,99,.18); }
.choice--retail { background: #fff6d6; color: #3a2a00; border-color: var(--yellow); }
.choice--b2b { background: var(--purple); color: #fff; }
.modal__hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.copy { border: 0; background: none; color: var(--purple); font-weight: 800; cursor: pointer; text-decoration: underline; font: inherit; font-weight: 800; }
.card__cta b { color: var(--ink); }

/* ---------- CTA ---------- */
.cta { padding: 0 clamp(16px, 4vw, 48px) 90px; }
.cta__box {
  max-width: 1240px; margin: 0 auto; border-radius: 26px; padding: clamp(28px, 5vw, 56px);
  background: linear-gradient(120deg, var(--purple-deep), var(--purple)); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta__box::after { content: ""; position: absolute; width: 340px; height: 340px; right: -90px; top: -150px; border-radius: 50%; background: rgba(253,199,47,.18); }
.cta__box h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 6px; }
.cta__box p { opacity: .9; max-width: 560px; }
.cta__btns { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid #eee; padding: 32px 16px; text-align: center; color: var(--muted); font-size: .9rem; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer nav { display: flex; gap: 20px; }
.footer nav a { font-weight: 700; text-decoration: none; color: var(--purple); }

/* ---------- Responsywność ---------- */
@media (max-width: 1280px) {
  .mega { grid-template-columns: repeat(4, 1fr); }
  .mega--lines { grid-template-columns: repeat(5, 1fr); gap: 10px; }
}
@media (max-width: 1100px) {
  .mega { grid-template-columns: repeat(4, 1fr); }
  .track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
  .lines { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .split { flex-direction: column; }
  .half { width: 100%; min-height: 88svh; padding: 110px 20px 70px; }
  .half--b2b { padding-top: 70px; }
  .half--retail::after { display: none; }
  .scroll-hint { display: none; }
  .nav { display: none; }
  .burger { display: block; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: -32px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .lines { grid-template-columns: repeat(2, 1fr); }
  .modal__box { grid-template-columns: 1fr; }
  .modal__img { border-right: 0; border-bottom: 1px solid #f0edf7; padding: 16px; }
  .modal__img img { max-width: 200px; }
  .track { grid-auto-columns: calc((100% - 16px) / 2); gap: 16px; }
  /* logotypy: płynna karuzela (marquee) */
  .brands { padding: 40px 0 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
  .brands__track { width: max-content; animation: marquee 18s linear infinite; }
  .brands__track:hover, .brands__track:active { animation-play-state: paused; }
  .brands__set, .brands__set[aria-hidden] { display: flex; flex: none; justify-content: flex-start; gap: 28px; padding-right: 28px; }
  .blogo { width: 120px; height: 108px; }
  .blogo img { width: 700px; }
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 520px) {
  .brand img { height: 40px; }
  .track {
    grid-auto-columns: 100%; gap: 14px;
    margin-inline: -16px; padding: 6px 12vw 18px;
  }
  .card { scroll-snap-align: center; }
  .lines { grid-template-columns: 1fr; }
  .cat-grid { gap: 12px; }
  .cat { border-radius: 16px; }
  .cat__txt { padding: 12px; }
  .cat h3 { font-size: 1rem; }
  .cat small { font-size: .75rem; }
  .cat__go { display: none; }
  .line { min-height: 380px; }
  .modal__body { padding: 20px 18px; }
  .choice img { width: 84px; }
  .carousel__all { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anim, .reveal, .carousel .card, .cat, .drawer__nav > *, .drawer__cta > * { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
