/* ==========================================================================
   Szervezdvelem – "Black Week / club night" seasonal theme
   Everything is scoped under [data-tema="black-week"] (the shop's wrapper inside <body>).
   The decoration itself (tickers, equalisers, hero lockup, footer stage, coupon) is added
   by black-week.js; the hooks are data-zona / data-szekcio / data-doboz / main[data-oldal].
   Language: typography and light. Neon (sky blue) glow in the dark zones; the
   signal yellow is used as light and as thin lines; the footer is a real event
   photo in black and blue with the rig drawn as dark silhouettes.
   ========================================================================== */

[data-tema="black-week"] {
  /* Theme palette */
  --bw-black: #06080c;      /* stage black (slightly blue) */
  --bw-ink: #0c1119;        /* panels on black */
  --bw-panel: #121a25;      /* equipment silhouettes */
  --bw-edge: #2e4257;       /* outlines of silhouettes */
  --bw-sky: #49b8e7;        /* Szervezdvelem sky blue = the neon colour */
  --bw-blue: #2679af;       /* Szervezdvelem brand blue */
  --bw-hot: #ffe600;        /* the one hot accent: signal yellow */
  --bw-paper: #ffffff;
  --bw-neon: 0 0 6px rgb(73 184 231 / 0.95), 0 0 22px rgb(73 184 231 / 0.6), 0 0 46px rgb(38 121 175 / 0.85);
  --bw-tape: repeating-linear-gradient(-45deg, var(--bw-hot) 0 6px, var(--bw-black) 6px 12px);
  --bw-stage-h: min(520px, max(250px, 25vw));
  --bw-tape-h: 30px;
  /* the footer photo: shade (darker under the truss, black where the footer text starts),
     vignette, the photo as pure luminosity over brand blue = a black-and-blue duotone */
  --bw-photo:
    linear-gradient(180deg, rgb(2 5 10 / 0.82) 0%, rgb(2 5 10 / 0.52) 22%, rgb(2 5 10 / 0.4) 52%, rgb(0 0 0 / 0.6) 76%, #000 100%),
    radial-gradient(120% 100% at 50% 45%, transparent 45%, rgb(0 0 0 / 0.8) 100%),
    url("/tema/black-week-kozonseg.webp") 50% 62% / cover no-repeat,
    #2585c8;
}
/* The yellow tape above the header is there from the first paint (the wrapper is a flex column),
   so the page does not jump when the script lays the running text over it. */
[data-tema="black-week"]::before {
  content: "";
  flex: none;
  height: var(--bw-tape-h);
  background: var(--bw-hot);
}

/* Full-bleed bands and the ghost type may stick out sideways: clip, never scroll. */
[data-tema="black-week"] [data-zona="tartalom"] { overflow-x: clip; }

/* ---------- shared keyframes ---------- */
@keyframes bw-marquee { to { transform: translate3d(-50%, 0, 0); } }
@keyframes bw-marquee-back { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes bw-eq { from { transform: scaleY(0.28); } to { transform: scaleY(1); } }
@keyframes bw-sway { from { transform: rotate(var(--a)); } to { transform: rotate(var(--b)); } }
@keyframes bw-twinkle { 0%, 100% { opacity: 0.15; } 50% { opacity: 1; } }
@keyframes bw-flicker { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 63% { opacity: 0.72; } }
@keyframes bw-beam-pulse { from { opacity: 0.65; } to { opacity: 1; } }
@keyframes bw-haze { from { transform: translate3d(-5%, 0, 0); } to { transform: translate3d(5%, 0, 0); } }
@keyframes bw-tag-swing {
  0%, 64%, 100% { transform: rotate(3deg); }
  70% { transform: rotate(-5deg); }
  78% { transform: rotate(6deg); }
  86% { transform: rotate(-1deg); }
  93% { transform: rotate(4deg); }
}
@keyframes bw-tag-glint { 0%, 70% { transform: translateX(-40px) skewX(-20deg); } 86%, 100% { transform: translateX(40px) skewX(-20deg); } }
@keyframes bw-card-in { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes bw-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   1. HEADER
   ========================================================================== */

/* --- announcement tape above the header (injected) --- */
[data-tema="black-week"] .bw-ticker {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  font-family: var(--font-display);
  text-transform: uppercase;
}
[data-tema="black-week"] .bw-ticker__track {
  display: inline-flex;
  align-items: center;
  animation: bw-marquee 70s linear infinite;
  will-change: transform;
}
[data-tema="black-week"] .bw-ticker__item { flex: none; display: inline-flex; align-items: center; }

[data-tema="black-week"] .bw-ticker--tape {
  flex: none;
  height: var(--bw-tape-h);
  margin-top: calc(-1 * var(--bw-tape-h));
  line-height: var(--bw-tape-h);
  background: var(--bw-hot);
  color: var(--bw-black);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
[data-tema="black-week"] .bw-ticker--tape .bw-ticker__item { padding: 0 16px; }
[data-tema="black-week"] .bw-ticker--tape .bw-ticker__item--ghost { font-weight: 500; letter-spacing: 0.12em; }
[data-tema="black-week"] .bw-ticker--tape .bw-ticker__sep {
  flex: none;
  width: 26px;
  height: 12px;
  background: repeating-linear-gradient(-60deg, var(--bw-black) 0 3px, transparent 3px 7px);
}

/* --- thin menu bar --- */
[data-tema="black-week"] [data-zona="felso-sav"] { background-color: var(--bw-black); }
[data-tema="black-week"] [data-zona="felso-sav"] > div { border-bottom-color: rgb(73 184 231 / 0.28); }
[data-tema="black-week"] [data-zona="felso-sav"] nav a:hover,
[data-tema="black-week"] [data-zona="felso-sav"] > div > div > a:hover { color: var(--bw-hot); }

/* --- sticky main bar: black, with a brand-blue glow behind the logo and a neon edge --- */
[data-tema="black-week"] [data-zona="fo-sav"] {
  background:
    radial-gradient(46% 190% at 9% 115%, rgb(38 121 175 / 0.85), transparent 70%),
    radial-gradient(30% 150% at 92% -30%, rgb(73 184 231 / 0.22), transparent 70%),
    var(--bw-black);
  box-shadow: 0 2px 0 var(--bw-sky), 0 3px 12px rgb(73 184 231 / 0.9), 0 10px 34px rgb(38 121 175 / 0.55);
}
[data-tema="black-week"] [data-zona="fo-sav"] > div:not(.bw-eq) { position: relative; z-index: 1; }
[data-tema="black-week"] [data-zona="fo-sav"] form[role="search"] {
  box-shadow: 0 0 0 2px rgb(73 184 231 / 0.75), 0 0 20px rgb(73 184 231 / 0.45);
}
/* the green BÉRLÉS button stays green – it only gets a little stage light */
[data-tema="black-week"] [data-zona="fo-sav"] a.bg-cta {
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.18) inset, 0 0 22px rgb(78 176 30 / 0.65);
}

/* equaliser "skyline" along the bottom of the main bar (injected) */
[data-tema="black-week"] .bw-eq {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  pointer-events: none;
  /* fades out upwards, and stays clear of the logo on the left */
  --bw-eq-from: max(250px, calc(50% - 470px));
  -webkit-mask-image: linear-gradient(to top, #000 0, rgb(0 0 0 / 0.5) 45%, transparent 92%), linear-gradient(90deg, transparent var(--bw-eq-from), #000 calc(var(--bw-eq-from) + 70px));
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to top, #000 0, rgb(0 0 0 / 0.5) 45%, transparent 92%), linear-gradient(90deg, transparent var(--bw-eq-from), #000 calc(var(--bw-eq-from) + 70px));
  mask-composite: intersect;
}
[data-tema="black-week"] .bw-eq i {
  flex: none;
  width: 3px;
  height: var(--h);
  background: var(--bw-sky);
  opacity: 0.42;
  transform-origin: 50% 100%;
}
[data-tema="black-week"] .bw-eq i.bw-hot { background: var(--bw-hot); opacity: 0.7; }
[data-tema="black-week"] .bw-eq i.bw-live { animation: bw-eq var(--d) ease-in-out var(--dl) infinite alternate; }

/* --- category strip stays white (its icons are product photos); hazard tape closes the header --- */
[data-tema="black-week"] [data-zona="kategoria-sav"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 4px;
  background: var(--bw-tape);
  pointer-events: none;
}
[data-tema="black-week"] [data-zona="kategoria-sav"] a:hover { color: var(--bw-black); box-shadow: 0 2px 0 var(--bw-hot); }

/* ==========================================================================
   2. HERO
   ========================================================================== */
[data-tema="black-week"] [data-zona="hero"] { background-color: var(--bw-black); }
/* the slides' texts and buttons above the theme's shade, the dots above everything */
[data-tema="black-week"] [data-zona="hero"] > div[aria-hidden]:not(.bw-hero) > div { z-index: 2; }
[data-tema="black-week"] [data-zona="hero"] > div:not([aria-hidden]) { z-index: 3; }

[data-tema="black-week"] .bw-hero {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(72% 100% at 0% 100%, rgb(6 8 12 / 0.94), rgb(6 8 12 / 0.6) 45%, transparent 76%),
    linear-gradient(180deg, rgb(6 8 12 / 0.6) 0%, rgb(6 8 12 / 0.08) 30%, rgb(6 8 12 / 0.1) 52%, rgb(6 8 12 / 0.78) 86%, var(--bw-black) 100%);
}
[data-tema="black-week"] .bw-hero__beams {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  filter: blur(7px);
  animation: bw-beam-pulse 3.6s ease-in-out infinite alternate;
}

/* typographic lockup, bottom left */
[data-tema="black-week"] .bw-lockup {
  position: absolute;
  left: max(20px, calc(50% - 626px));
  bottom: 54px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-display);
  text-transform: uppercase;
  transform: skewX(-7deg);
  transform-origin: 0 100%;
}
[data-tema="black-week"] .bw-lockup__kicker {
  margin-bottom: 10px;
  padding: 3px 10px 2px;
  background: var(--bw-hot);
  color: var(--bw-black);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.5;
}
[data-tema="black-week"] .bw-lockup__l1,
[data-tema="black-week"] .bw-lockup__l2 {
  font-size: clamp(64px, 7.4vw, 112px);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.01em;
}
[data-tema="black-week"] .bw-lockup__l1 {
  color: transparent;
  -webkit-text-stroke: 2.5px #fff;
  filter: drop-shadow(0 0 5px rgb(73 184 231 / 0.95)) drop-shadow(0 0 20px rgb(73 184 231 / 0.75));
  animation: bw-flicker 7s linear infinite;
}
/* "WEEK" is one letter shorter: set 9% larger, so both lines are equally wide */
[data-tema="black-week"] .bw-lockup__l2 { color: var(--bw-hot); font-size: clamp(70px, 8.07vw, 122px); text-shadow: 0 0 34px rgb(255 230 0 / 0.35); }
[data-tema="black-week"] .bw-lockup__tag {
  margin-top: 14px;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: none;
}
[data-tema="black-week"] .bw-lockup__tag b { color: var(--bw-sky); font-weight: 700; }

/* phone: the lockup shrinks into a tape label in the top-left corner */
[data-tema="black-week"] .bw-hero__label { display: none; }
@media (max-width: 767px) {
  [data-tema="black-week"] .bw-lockup { display: none; }
  [data-tema="black-week"] .bw-hero__label {
    position: absolute;
    left: 0;
    top: 16px;
    display: inline-flex;
    align-items: stretch;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    line-height: 26px;
    text-transform: uppercase;
    transform: rotate(-3deg);
    transform-origin: 0 50%;
    box-shadow: 0 6px 18px rgb(0 0 0 / 0.5);
  }
  [data-tema="black-week"] .bw-hero__label b { padding: 0 10px 0 14px; background: var(--bw-hot); color: var(--bw-black); font-weight: 900; }
  [data-tema="black-week"] .bw-hero__label span { padding: 0 10px; background: var(--bw-black); color: #fff; font-weight: 700; }
}

/* ==========================================================================
   3. DARK BANDS (photo-tile sections) + their designed edges
   ========================================================================== */
[data-tema="black-week"] [data-szekcio="ajanlatok"],
[data-tema="black-week"] [data-szekcio="csomagok"],
[data-tema="black-week"] [data-szekcio="szolgaltatasok"] {
  position: relative;
  isolation: isolate;
}
[data-tema="black-week"] [data-szekcio="ajanlatok"]::before,
[data-tema="black-week"] [data-szekcio="csomagok"]::before,
[data-tema="black-week"] [data-szekcio="szolgaltatasok"]::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  pointer-events: none;
}

/* dark bands: black with a soft blue glow */
[data-tema="black-week"] [data-szekcio="ajanlatok"]::before {
  background:
    radial-gradient(55% 300px at 50% 0, rgb(38 121 175 / 0.5), transparent 75%),
    var(--bw-black);
}
[data-tema="black-week"] [data-szekcio="csomagok"]::before {
  background:
    var(--bw-tape) 0 0 / 100% 6px no-repeat,
    radial-gradient(circle at 11px 100%, var(--bw-paper) 7px, transparent 7.6px) 0 100% / 22px 9px repeat-x,
    radial-gradient(50% 280px at 50% 100%, rgb(38 121 175 / 0.45), transparent 75%),
    var(--bw-black);
}
[data-tema="black-week"] [data-szekcio="szolgaltatasok"]::before {
  background:
    radial-gradient(circle at 11px 0, var(--bw-paper) 7px, transparent 7.6px) 0 0 / 22px 9px repeat-x,
    radial-gradient(40% 420px at 12% 30%, rgb(38 121 175 / 0.42), transparent 75%),
    radial-gradient(40% 420px at 88% 75%, rgb(73 184 231 / 0.2), transparent 75%),
    var(--bw-black);
}

/* neon-sign titles on the dark bands */
[data-tema="black-week"] :is([data-szekcio="ajanlatok"], [data-szekcio="csomagok"], [data-szekcio="szolgaltatasok"]) > div:has(> h2) { position: relative; }
[data-tema="black-week"] :is([data-szekcio="ajanlatok"], [data-szekcio="csomagok"], [data-szekcio="szolgaltatasok"]) > div:has(> h2) h2 { color: #fff; text-shadow: var(--bw-neon); }
[data-tema="black-week"] :is([data-szekcio="ajanlatok"], [data-szekcio="csomagok"], [data-szekcio="szolgaltatasok"]) > div:has(> h2) h2 + p { color: var(--bw-hot); }
[data-tema="black-week"] :is([data-szekcio="ajanlatok"], [data-szekcio="csomagok"], [data-szekcio="szolgaltatasok"]) > div:has(> h2)::before {
  /* small kicker in the section's top padding – no layout shift */
  content: attr(data-bw-kicker);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  margin-bottom: 2px;
  color: var(--bw-hot);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  line-height: 1.4;
  text-transform: uppercase;
  pointer-events: none;
}
[data-tema="black-week"] :is([data-szekcio="ajanlatok"], [data-szekcio="csomagok"], [data-szekcio="szolgaltatasok"]) > div:has(> h2)::after {
  /* neon tube under the title, sitting in the title's bottom margin */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -17px;
  width: 132px;
  height: 3px;
  margin-left: -66px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--bw-sky) 0 44%, var(--bw-hot) 44% 56%, var(--bw-sky) 56%);
  box-shadow: 0 0 8px var(--bw-sky), 0 0 22px rgb(73 184 231 / 0.8);
  pointer-events: none;
}
[data-tema="black-week"] [data-szekcio="szolgaltatasok"] h3 { color: #fff; }
[data-tema="black-week"] [data-szekcio="szolgaltatasok"] h3::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 12px;
  background: var(--bw-hot);
  transform: translateY(-3px) rotate(45deg);
}

/* big outlined ghost type behind the packages title */
[data-tema="black-week"] [data-szekcio="csomagok"]::after {
  content: "BLACK WEEK";
  position: absolute;
  z-index: -1;
  top: 6px;
  left: 50%;
  transform: translateX(-50%) skewX(-7deg);
  color: transparent;
  -webkit-text-stroke: 1.5px rgb(73 184 231 / 0.2);
  font-family: var(--font-display);
  font-size: 172px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

/* photo tiles on the dark bands: hairline + neon on hover */
[data-tema="black-week"] [data-szekcio="ajanlatok"] li > a,
[data-tema="black-week"] [data-szekcio="csomagok"] li > a,
[data-tema="black-week"] [data-szekcio="szolgaltatasok"] li > a {
  box-shadow: 0 0 0 1px rgb(73 184 231 / 0.35);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
[data-tema="black-week"] [data-szekcio="ajanlatok"] li > a::after,
[data-tema="black-week"] [data-szekcio="csomagok"] li > a::after,
[data-tema="black-week"] [data-szekcio="szolgaltatasok"] li > a::after {
  /* thin yellow bar that grows under the tile label on hover */
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: var(--bw-hot);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.25s ease;
}
@media (hover: hover) {
  [data-tema="black-week"] [data-szekcio="ajanlatok"] li > a:hover,
  [data-tema="black-week"] [data-szekcio="csomagok"] li > a:hover,
  [data-tema="black-week"] [data-szekcio="szolgaltatasok"] li > a:hover {
    box-shadow: 0 0 0 2px var(--bw-sky), 0 0 26px rgb(73 184 231 / 0.7);
    transform: translateY(-2px);
  }
  [data-tema="black-week"] [data-szekcio="ajanlatok"] li > a:hover::after,
  [data-tema="black-week"] [data-szekcio="csomagok"] li > a:hover::after,
  [data-tema="black-week"] [data-szekcio="szolgaltatasok"] li > a:hover::after { transform: scaleX(1); }
}

/* a neon sign fills the empty cells when the last row of offers is not full (desktop grid: 4 columns) */
@media (min-width: 1024px) {
  [data-tema="black-week"] [data-szekcio="ajanlatok"] > ul[data-bw-sign]:has(> li:last-child:nth-child(4n + 1))::after,
  [data-tema="black-week"] [data-szekcio="ajanlatok"] > ul[data-bw-sign]:has(> li:last-child:nth-child(4n + 2))::after {
    /* the words (translated) are set by the script */
    content: attr(data-bw-sign);
    grid-column: span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bw-sky);
    border-radius: 12px;
    outline: 1.5px solid var(--bw-hot);
    outline-offset: -11px;
    background: rgb(4 6 10 / 0.86);
    box-shadow: 0 0 14px rgb(73 184 231 / 0.75), 0 0 38px rgb(38 121 175 / 0.55), 0 0 16px rgb(73 184 231 / 0.22) inset;
    color: transparent;
    -webkit-text-stroke: 1.6px #e6f6ff;
    font-family: var(--font-display);
    font-size: 54px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.12;
    text-align: center;
    text-transform: uppercase;
    white-space: pre;
    text-shadow: 0 0 16px rgb(73 184 231 / 0.7);
    animation: bw-flicker 9s linear 1s infinite;
    pointer-events: none;
  }
  [data-tema="black-week"] [data-szekcio="ajanlatok"] > ul[data-bw-sign]:has(> li:last-child:nth-child(4n + 1))::after { grid-column: span 3; }
}

/* --- outlined marquee band: closes the dark top of the page (injected) --- */
[data-tema="black-week"] [data-szekcio="ajanlatok"] { --bw-pb: 20px; }
@media (min-width: 640px) {
  [data-tema="black-week"] [data-szekcio="ajanlatok"] { --bw-pb: 40px; }
}
[data-tema="black-week"] .bw-ticker--outline {
  /* the last child of the offers' section: full bleed, right after the section's bottom padding */
  width: 100vw;
  margin: var(--bw-pb) 0 calc(-1 * var(--bw-pb)) calc(50% - 50vw);
  padding: 6px 0 26px;
  background: var(--bw-black);
  font-size: 86px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
[data-tema="black-week"] .bw-ticker--outline::after {
  /* ticket perforation biting into the band */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9px;
  background: radial-gradient(circle at 11px 100%, var(--bw-paper) 7px, transparent 7.6px) 50% 100% / 22px 9px repeat-x;
}
[data-tema="black-week"] .bw-ticker--outline .bw-ticker__track {
  animation: bw-marquee-back 90s linear infinite;
  transform: translate3d(-50%, 0, 0);
}
[data-tema="black-week"] .bw-ticker--outline .bw-ticker__item {
  padding: 0 22px;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--bw-sky);
  transform: skewX(-7deg);
}
[data-tema="black-week"] .bw-ticker--outline .bw-ticker__item--solid {
  color: var(--bw-hot);
  -webkit-text-stroke: 0;
}
[data-tema="black-week"] .bw-ticker--outline .bw-ticker__sep { flex: none; width: 2px; height: 56px; margin: 0 14px; background: var(--bw-hot); transform: skewX(-20deg); }

/* ==========================================================================
   4. LIGHT SECTIONS: title ornaments, tickets, cards
   ========================================================================== */

/* ornaments live in the title's bottom margin (absolute) so nothing moves */
[data-tema="black-week"] :is([data-szekcio="miert"], section#ajanlat, section#kapcsolat) > div:has(> h2),
[data-tema="black-week"] :is([data-szekcio="velemenyek"], section:has(> div > details)) > div:has(> h2),
[data-tema="black-week"] [data-szekcio="ugyfelek"] > div:has(> h2) { position: relative; }
[data-tema="black-week"] :is([data-szekcio="miert"], section#ajanlat, section#kapcsolat) > div:has(> h2)::after,
[data-tema="black-week"] :is([data-szekcio="velemenyek"], section:has(> div > details)) > div:has(> h2)::after,
[data-tema="black-week"] [data-szekcio="ugyfelek"] > div:has(> h2)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -22px;
  pointer-events: none;
}
/* a) a fine spectrum: thin bars, two of them in sky blue */
[data-tema="black-week"] :is([data-szekcio="miert"], section#ajanlat, section#kapcsolat) > div:has(> h2)::after {
  width: 63px;
  height: 18px;
  margin-left: -31.5px;
  background:
    linear-gradient(var(--bw-black), var(--bw-black)) 0 100% / 3px 5px,
    linear-gradient(var(--bw-black), var(--bw-black)) 6px 100% / 3px 9px,
    linear-gradient(var(--bw-black), var(--bw-black)) 12px 100% / 3px 14px,
    linear-gradient(var(--bw-sky), var(--bw-sky)) 18px 100% / 3px 10px,
    linear-gradient(var(--bw-black), var(--bw-black)) 24px 100% / 3px 16px,
    linear-gradient(var(--bw-black), var(--bw-black)) 30px 100% / 3px 18px,
    linear-gradient(var(--bw-black), var(--bw-black)) 36px 100% / 3px 12px,
    linear-gradient(var(--bw-sky), var(--bw-sky)) 42px 100% / 3px 15px,
    linear-gradient(var(--bw-black), var(--bw-black)) 48px 100% / 3px 8px,
    linear-gradient(var(--bw-black), var(--bw-black)) 54px 100% / 3px 11px,
    linear-gradient(var(--bw-black), var(--bw-black)) 60px 100% / 3px 5px;
  background-repeat: no-repeat;
}
/* b) waveform, drawn as one thin line */
[data-tema="black-week"] :is([data-szekcio="velemenyek"], section:has(> div > details)) > div:has(> h2)::after {
  width: 150px;
  height: 18px;
  margin-left: -75px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 18' fill='none' stroke-width='1.4' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath stroke='%2306080c' d='M1 9h22l4-5 5 10 5-13 6 16 5-12 4 7 3-3h6'/%3E%3Cpath stroke='%2349b8e7' d='M61 9l4-7 6 14 5-11 4 6 4-2h5'/%3E%3Cpath stroke='%2306080c' d='M89 9l4 5 5-11 5 13 6-15 5 11 4-3h31'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* c) a rule with one short yellow segment */
[data-tema="black-week"] [data-szekcio="ugyfelek"] > div:has(> h2)::after {
  width: 120px;
  height: 2px;
  margin-left: -60px;
  bottom: -14px;
  background: linear-gradient(90deg, var(--bw-black) 0 40%, var(--bw-hot) 40% 60%, var(--bw-black) 60%);
}

/* "Miért válassz minket?" – the three stat cards become dark tickets with a hairline frame */
[data-tema="black-week"] [data-szekcio="miert"] ul + ul > li,
[data-tema="black-week"][data-mod="sotet"]:not(#_) [data-szekcio="miert"] ul + ul > li {
  position: relative;
  background:
    radial-gradient(circle at 0 50%, var(--bw-paper) 7px, transparent 7.6px),
    radial-gradient(circle at 100% 50%, var(--bw-paper) 7px, transparent 7.6px),
    radial-gradient(70% 120% at 100% 100%, rgb(38 121 175 / 0.55), transparent 70%),
    linear-gradient(115deg, var(--bw-black) 0%, #0a1420 100%);
  box-shadow: 0 14px 28px -14px rgb(38 121 175 / 0.85);
}
[data-tema="black-week"] [data-szekcio="miert"] ul + ul > li::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgb(73 184 231 / 0.32);
  border-radius: 5px;
  pointer-events: none;
}
[data-tema="black-week"] [data-szekcio="miert"] ul + ul > li > p:first-child,
[data-tema="black-week"][data-mod="sotet"]:not(#_) [data-szekcio="miert"] ul + ul > li > p:first-child { color: var(--bw-hot); text-shadow: 0 0 22px rgb(255 230 0 / 0.28); }
[data-tema="black-week"] [data-szekcio="miert"] ul + ul > li > p + p,
[data-tema="black-week"][data-mod="sotet"]:not(#_) [data-szekcio="miert"] ul + ul > li > p + p { color: rgb(255 255 255 / 0.88); }

/* the product zone stays white; only a little stage light spills in from the dark band above */
[data-tema="black-week"] [data-szekcio="nepszeru"] { position: relative; isolation: isolate; }
[data-tema="black-week"] [data-szekcio="nepszeru"]::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  height: 260px;
  left: calc(50% - 50vw);
  width: 100vw;
  pointer-events: none;
  background: radial-gradient(50% 100% at 50% 0, rgb(73 184 231 / 0.2), transparent 75%);
}
/* carousel arrows: black dots with a yellow chevron */
[data-tema="black-week"] [data-szekcio="korhintak"] > section [aria-roledescription="carousel"] > button,
[data-tema="black-week"] [data-szekcio="ugyfelek"] [aria-roledescription="carousel"] > button {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bw-black);
  color: var(--bw-hot);
  transition: box-shadow 0.15s ease;
}
[data-tema="black-week"] [data-szekcio="korhintak"] > section [aria-roledescription="carousel"] > button:hover,
[data-tema="black-week"] [data-szekcio="ugyfelek"] [aria-roledescription="carousel"] > button:hover {
  color: var(--bw-hot);
  box-shadow: 0 0 0 1px var(--bw-sky), 0 0 14px rgb(73 184 231 / 0.7);
}
[data-tema="black-week"] [data-szekcio="korhintak"] > section [aria-roledescription="carousel"] > button svg,
[data-tema="black-week"] [data-szekcio="ugyfelek"] [aria-roledescription="carousel"] > button svg { width: 15px; height: 15px; stroke-width: 2; }

/* "Legnépszerűbb termékeink" – a small black label after the title (desktop) */
@media (min-width: 1024px) {
  [data-tema="black-week"] [data-szekcio="nepszeru"] h2::after {
    content: "Black Week";
    display: inline-block;
    margin-left: 18px;
    padding: 0 12px;
    background: var(--bw-black);
    color: var(--bw-hot);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    line-height: 24px;
    text-transform: uppercase;
    vertical-align: middle;
    transform: translateY(-3px);
  }
}
/* carousel shelf titles: three thin bars */
[data-tema="black-week"] [data-szekcio="korhintak"] > section > h2::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 20px;
  margin-right: 10px;
  background:
    linear-gradient(var(--bw-black), var(--bw-black)) 0 100% / 3px 11px,
    linear-gradient(var(--bw-sky), var(--bw-sky)) 6px 100% / 3px 20px,
    linear-gradient(var(--bw-black), var(--bw-black)) 12px 100% / 3px 15px;
  background-repeat: no-repeat;
  vertical-align: -1px;
}

/* product cards stay white and readable; the SALE ribbon turns black/yellow,
   hover lifts the card on a blue glow with a thin yellow line */
[data-tema="black-week"] [data-zona="tartalom"] article.shadow-card .bg-sale {
  background: var(--bw-black);
  color: var(--bw-hot);
  letter-spacing: 0.12em;
}
@media (hover: hover) {
  [data-tema="black-week"] [data-zona="tartalom"] article.shadow-card { transition: transform 0.18s ease, box-shadow 0.18s ease; }
  [data-tema="black-week"] [data-zona="tartalom"] article.shadow-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px var(--bw-black), 0 -2px 0 0 var(--bw-hot) inset, 0 22px 36px -16px rgb(38 121 175 / 0.95);
  }
}

/* FAQ: the open question gets a dark hairline and a yellow marker line */
[data-tema="black-week"] [data-zona="tartalom"] :is(section > div > details, section > details) { transition: box-shadow 0.18s ease; }
[data-tema="black-week"] [data-zona="tartalom"] :is(section > div > details, section > details)[open] {
  border-color: var(--bw-black);
  box-shadow: 3px 0 0 0 var(--bw-hot) inset, 0 14px 28px -18px rgb(38 121 175 / 0.8);
}

/* ==========================================================================
   5. THE GRADIENT BOXES AND THE BLUE BAND
   ========================================================================== */

/* help box: night-blue stage with a spotlight on Nándi */
[data-tema="black-week"] [data-doboz="segitseg"] {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 340' preserveAspectRatio='none'%3E%3Cg fill='none' stroke-width='1'%3E%3Cpath stroke='%2349b8e7' opacity='.4' d='M1200 0L0 180M1200 0L0 340M1200 0L420 340'/%3E%3Cpath stroke='%23ffe600' opacity='.3' d='M1200 0L760 340'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat,
    radial-gradient(34% 90% at 80% 12%, rgb(73 184 231 / 0.55), transparent 72%),
    linear-gradient(100deg, var(--bw-black) 0%, #0c2030 46%, #1d6293 100%);
  box-shadow: 0 0 0 1px rgb(73 184 231 / 0.75), 0 0 34px rgb(73 184 231 / 0.4);
}
[data-tema="black-week"] [data-doboz="segitseg"] h2 { color: #fff; }
[data-tema="black-week"] [data-doboz="segitseg"] h2 + p { color: var(--bw-hot); }
[data-tema="black-week"] [data-doboz="segitseg"] p,
[data-tema="black-week"] [data-doboz="segitseg"] p a { color: #fff; }
[data-tema="black-week"] [data-doboz="segitseg"] p a:hover { color: var(--bw-sky); }
[data-tema="black-week"] [data-doboz="segitseg"] a.bg-brand { box-shadow: 0 0 0 1px rgb(73 184 231 / 0.8), 0 0 18px rgb(73 184 231 / 0.45); }

/* promo box keeps the Szervezdvelem gradient; a foil-thin yellow frame is printed on it */
[data-tema="black-week"] [data-doboz="promo"] {
  --bw-foil: linear-gradient(rgb(255 230 0 / 0.9), rgb(255 230 0 / 0.9));
  background-image:
    var(--bw-foil), var(--bw-foil), var(--bw-foil), var(--bw-foil),
    linear-gradient(115deg, transparent 0 46%, rgb(255 255 255 / 0.1) 46% 52%, transparent 52% 58%, rgb(255 255 255 / 0.07) 58% 61%, transparent 61%),
    linear-gradient(90deg, rgb(6 8 12 / 0.42), transparent 62%),
    linear-gradient(90deg, #49b8e7 0%, #2679af 100%);
  background-size: calc(100% - 20px) 1px, calc(100% - 20px) 1px, 1px calc(100% - 20px), 1px calc(100% - 20px), auto, auto, auto;
  background-position: 10px 10px, 10px calc(100% - 10px), 10px 10px, calc(100% - 10px) 10px, 0 0, 0 0, 0 0;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px var(--bw-black), 0 24px 44px -20px rgb(38 121 175 / 0.95);
}
/* the blue "we bring a new one" band: taped off top and bottom, thinly */
[data-tema="black-week"] [data-szekcio="garancia"]::before,
[data-tema="black-week"] [data-szekcio="garancia"]::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--bw-tape);
  pointer-events: none;
}
[data-tema="black-week"] [data-szekcio="garancia"]::before { top: 0; }
[data-tema="black-week"] [data-szekcio="garancia"]::after { bottom: 0; }

/* ==========================================================================
   6. THE HIDDEN COUPON: a small black swing tag dangling from the help box
   ========================================================================== */
[data-tema="black-week"] .bw-tag {
  position: absolute;
  left: 62px;
  top: calc(100% - 5px);
  width: 44px;
  height: 80px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: rotate(3deg);
  transform-origin: 50% 5px;
  animation: bw-tag-swing 10s ease-in-out 2s infinite;
  -webkit-tap-highlight-color: transparent;
}
[data-tema="black-week"] .bw-tag svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 3px 4px rgb(6 8 12 / 0.28));
  transition: filter 0.2s ease;
}
[data-tema="black-week"] .bw-tag__glint { animation: bw-tag-glint 10s ease-in-out 2s infinite; }
[data-tema="black-week"] .bw-tag:hover svg { filter: drop-shadow(0 3px 4px rgb(6 8 12 / 0.28)) drop-shadow(0 0 7px rgb(255 230 0 / 0.75)); }
[data-tema="black-week"] .bw-tag:focus-visible { outline: 2px solid var(--bw-sky); outline-offset: 2px; border-radius: 6px; }

/* the card: a dark ticket, yellow only as foil-thin lines, the figure and the button */
[data-tema="black-week"] .bw-kupon {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgb(3 5 8 / 0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-family: var(--font-display);
  animation: bw-fade-in 0.2s ease both;
}
[data-tema="black-week"] .bw-kupon[hidden] { display: none; }
[data-tema="black-week"] .bw-kupon__card {
  position: relative;
  width: min(372px, 100%);
  max-height: 100%;
  filter: drop-shadow(0 0 1px rgb(255 230 0 / 0.9)) drop-shadow(0 0 30px rgb(73 184 231 / 0.42)) drop-shadow(0 22px 44px rgb(0 0 0 / 0.75));
  animation: bw-card-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  outline: none;
}
[data-tema="black-week"] .bw-kupon__ticket {
  --n: 176px; /* height of the upper stub = where the notches sit */
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(90% 60% at 100% 100%, rgb(38 121 175 / 0.5), transparent 70%),
    radial-gradient(70% 40% at 0 0, rgb(73 184 231 / 0.16), transparent 70%),
    #080c12;
  -webkit-mask-image: radial-gradient(circle 10px at 0 var(--n), transparent 9.4px, #000 10px), radial-gradient(circle 10px at 100% var(--n), transparent 9.4px, #000 10px);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(circle 10px at 0 var(--n), transparent 9.4px, #000 10px), radial-gradient(circle 10px at 100% var(--n), transparent 9.4px, #000 10px);
  mask-composite: intersect;
}
[data-tema="black-week"] .bw-kupon__top {
  position: relative;
  box-sizing: border-box;
  height: var(--n);
  padding: 26px 28px 0;
  color: #fff;
  /* perforation: a dotted hairline between the two notches */
  background: linear-gradient(90deg, rgb(255 255 255 / 0.4) 0 4px, transparent 4px) 16px 100% / 9px 1px repeat-x;
}
[data-tema="black-week"] .bw-kupon__brand { margin: 0; color: var(--bw-hot); font-size: 10.5px; font-weight: 700; letter-spacing: 0.26em; line-height: 1.4; text-transform: uppercase; }
[data-tema="black-week"] .bw-kupon__big {
  margin: 6px 0 0;
  color: var(--bw-hot);
  font-size: 86px;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-shadow: 0 0 34px rgb(255 230 0 / 0.35);
  transform: skewX(-7deg);
  transform-origin: 0 100%;
}
[data-tema="black-week"] .bw-kupon__big { white-space: nowrap; }
[data-tema="black-week"] .bw-kupon__big span { font-size: 0.5em; font-weight: 600; margin-left: 4px; }
/* an amount instead of a percentage ("2 000 Ft") is longer: set smaller, on the same base line */
[data-tema="black-week"] .bw-kupon__big--long { margin-top: 22px; font-size: 58px; line-height: 1.2; }
[data-tema="black-week"] .bw-kupon__big--xlong { margin-top: 30px; font-size: 46px; line-height: 1.34; }
[data-tema="black-week"] .bw-kupon__what { margin: 2px 0 0; color: rgb(255 255 255 / 0.9); font-size: 14px; font-weight: 500; letter-spacing: 0.02em; line-height: 1.3; }
[data-tema="black-week"] .bw-kupon__x {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
[data-tema="black-week"] .bw-kupon__x:hover { border-color: var(--bw-hot); color: var(--bw-hot); }
[data-tema="black-week"] .bw-kupon__x:focus-visible,
[data-tema="black-week"] .bw-kupon__copy:focus-visible { outline: 2px solid var(--bw-sky); outline-offset: 3px; }
[data-tema="black-week"] .bw-kupon__bottom { padding: 22px 28px 26px; color: #fff; }
[data-tema="black-week"] .bw-kupon__title { margin: 0; color: #fff; font-size: 22px; font-weight: 600; line-height: 1.2; }
[data-tema="black-week"] .bw-kupon__text { margin: 8px 0 0; color: rgb(255 255 255 / 0.78); font-size: 14px; line-height: 1.55; }
[data-tema="black-week"] .bw-kupon__code {
  margin-top: 18px;
  padding: 10px 12px 11px;
  border: 1px solid rgb(73 184 231 / 0.7);
  border-radius: 4px;
  background: rgb(73 184 231 / 0.06);
  text-align: center;
}
[data-tema="black-week"] .bw-kupon__code span { display: block; color: var(--bw-sky); font-size: 10px; font-weight: 600; letter-spacing: 0.28em; line-height: 1.4; text-transform: uppercase; }
[data-tema="black-week"] .bw-kupon__code strong { display: block; color: var(--bw-hot); font-size: 23px; font-weight: 700; letter-spacing: 0.1em; line-height: 1.35; user-select: all; white-space: nowrap; }
[data-tema="black-week"] .bw-kupon__valid { margin: 10px 0 0; color: rgb(255 255 255 / 0.78); font-size: 13px; line-height: 1.4; text-align: center; }
[data-tema="black-week"] .bw-kupon__valid b { color: #fff; font-weight: 600; }
[data-tema="black-week"] .bw-kupon__copy {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 18px;
  border: 0;
  border-radius: 2px;
  background: var(--bw-hot);
  color: var(--bw-black);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}
[data-tema="black-week"] .bw-kupon__copy:hover { box-shadow: 0 0 24px rgb(255 230 0 / 0.45); }
[data-tema="black-week"] .bw-kupon__status:empty { display: none; }
[data-tema="black-week"] .bw-kupon__status { margin: 14px 0 0; color: var(--bw-sky); font-size: 12px; line-height: 1.5; text-align: center; }

/* ==========================================================================
   7. FOOTER: fine spectrum, night-blue feature strip, the stage
   ========================================================================== */
[data-tema="black-week"] [data-zona="lablec"] { position: relative; }

/* a fine black spectrum rising out of the footer into the white page */
[data-tema="black-week"] .bw-skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 54px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  pointer-events: none;
}
[data-tema="black-week"] .bw-skyline i {
  flex: none;
  width: 5px;
  height: var(--h);
  background: var(--bw-black);
  transform-origin: 50% 100%;
}
[data-tema="black-week"] .bw-skyline i.bw-sky { background: var(--bw-sky); }
[data-tema="black-week"] .bw-skyline i.bw-live { animation: bw-eq var(--d) ease-in-out var(--dl) infinite alternate; }

[data-tema="black-week"] [data-zona="lablec-elonyok"] {
  position: relative;
  background:
    radial-gradient(50% 160% at 50% 130%, rgb(73 184 231 / 0.35), transparent 70%),
    linear-gradient(130deg, var(--bw-black) 0%, #0e2a40 45%, #2679af 100%);
  box-shadow: 0 2px 0 var(--bw-sky) inset, 0 -1px 0 var(--bw-black);
}
[data-tema="black-week"] [data-zona="lablec-elonyok"] li {
  border-color: rgb(73 184 231 / 0.75);
  background: rgb(6 8 12 / 0.35);
  box-shadow: 0 0 16px rgb(73 184 231 / 0.4), 0 0 14px rgb(73 184 231 / 0.14) inset;
}
[data-tema="black-week"] [data-zona="lablec-elonyok"] li svg { color: var(--bw-hot); }

[data-tema="black-week"] [data-zona="lablec-fekete"] {
  position: relative;
  padding-top: calc(var(--bw-stage-h) + 36px);
  background-color: #000;
}
/* the photo is there before the script builds the stage over it (the rig, the beams, the haze) */
[data-tema="black-week"] [data-zona="lablec-fekete"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bw-stage-h);
  background: var(--bw-photo);
  background-blend-mode: normal, normal, luminosity, normal;
  pointer-events: none;
}
[data-tema="black-week"] [data-zona="lablec-fekete"] > div:not(.bw-stage) { position: relative; z-index: 1; }
[data-tema="black-week"] [data-zona="lablec-fekete"] h2 { position: relative; }
[data-tema="black-week"] [data-zona="lablec-fekete"] h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 26px;
  height: 2px;
  background: var(--bw-hot);
}

/* --- the stage: a real event photo in black and blue, light on top, rig in silhouette --- */
[data-tema="black-week"] .bw-stage {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bw-stage-h);
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
  background: #02040a;
}
[data-tema="black-week"] .bw-stage__photo {
  position: absolute;
  inset: 0;
  background: var(--bw-photo);
  background-blend-mode: normal, normal, luminosity, normal;
}
/* a 1440x360 box, as tall as the stage and centred: the rig's coordinate system */
[data-tema="black-week"] .bw-stage__box {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  aspect-ratio: 1440 / 360;
  transform: translateX(-50%);
}
/* the stage always ends in pure black, where the footer's own content begins */
[data-tema="black-week"] .bw-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 66%, rgb(0 0 0 / 0.88) 90%, #000 100%);
}
[data-tema="black-week"] .bw-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* below 1000px only the middle of the stage is in view: the line-array hangs move inwards */
[data-tema="black-week"] .bw-stage .bw-rig-narrow { display: none; }
@media (max-width: 999px) {
  [data-tema="black-week"] .bw-stage .bw-rig-wide { display: none; }
  [data-tema="black-week"] .bw-stage .bw-rig-narrow { display: inline; }
}
/* the narrowest phones see even less of the stage: the two hangs move in a little more */
@media (max-width: 359px) {
  [data-tema="black-week"] .bw-stage .bw-hang-l { transform: translateX(30px); }
  [data-tema="black-week"] .bw-stage .bw-hang-r { transform: translateX(-30px); }
}
/* drifting haze */
[data-tema="black-week"] .bw-haze {
  position: absolute;
  left: -15%;
  width: 130%;
  top: 0;
  height: 100%;
  background:
    radial-gradient(30% 42% at 26% 52%, rgb(73 184 231 / 0.34), transparent 72%),
    radial-gradient(28% 40% at 70% 44%, rgb(150 215 245 / 0.26), transparent 72%),
    radial-gradient(22% 30% at 50% 62%, rgb(73 184 231 / 0.2), transparent 72%),
    radial-gradient(36% 26% at 24% 10%, rgb(73 184 231 / 0.24), transparent 72%);
  mix-blend-mode: screen;
  animation: bw-haze 36s ease-in-out infinite alternate;
  will-change: transform;
}
/* a beam = a cone with soft edges and a brighter core, fading along its length */
[data-tema="black-week"] .bw-beam {
  position: absolute;
  background: conic-gradient(from 168deg at 50% 0, transparent 0deg, rgb(96 196 240 / 0.3) 3.5deg, rgb(140 214 247 / 0.62) 8deg, rgb(226 246 255 / 0.95) 12deg, rgb(140 214 247 / 0.62) 16deg, rgb(96 196 240 / 0.3) 20.5deg, transparent 24deg, transparent 360deg);
  -webkit-mask-image: linear-gradient(#000 0, rgb(0 0 0 / 0.82) 20%, rgb(0 0 0 / 0.42) 55%, rgb(0 0 0 / 0.12) 85%, transparent 100%);
  mask-image: linear-gradient(#000 0, rgb(0 0 0 / 0.82) 20%, rgb(0 0 0 / 0.42) 55%, rgb(0 0 0 / 0.12) 85%, transparent 100%);
  mix-blend-mode: screen;
  /* the yoke pivot is 23 of the element's 440 units below its top */
  transform-origin: 50% 5.227%;
  transform: rotate(var(--a));
  animation: bw-sway var(--d) ease-in-out infinite alternate;
  will-change: transform;
}
/* the head of the fixture turns with its beam (its pivot is the origin of the group) */
[data-tema="black-week"] .bw-pan {
  transform-origin: 0 0;
  transform: rotate(var(--a));
  animation: bw-sway var(--d) ease-in-out infinite alternate;
}
[data-tema="black-week"] .bw-bokeh {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--c) / 0.5) 0, rgb(var(--c) / 0.3) 48%, transparent 70%);
  mix-blend-mode: screen;
  animation: bw-twinkle var(--d) ease-in-out var(--dl) infinite;
}
/* film grain over everything */
[data-tema="black-week"] .bw-stage__grain {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.16;
  mix-blend-mode: overlay;
}

/* ==========================================================================
   8. THE REST OF THE SHOP (lists, product, cart, checkout, account, content pages)
   Restrained: the black header and the stage frame every page; inside, the page
   heroes and photo panels turn black-and-blue, titles get a yellow hairline, and
   everything one reads or fills in stays as it is (white tiles, clean forms).
   ========================================================================== */

/* room for the footer's spectrum, so it never stands on the last line of a page
   */
[data-tema="black-week"] [data-zona="tartalom"]::after { content: ""; display: block; height: 60px; }
/* a page that ends with the FAQ has that room already: its own bottom padding shrinks instead
   (the last child that is not a page kept hidden for the "back" button) */
[data-tema="black-week"] [data-zona="tartalom"] > section:has(> details, > div > details):nth-last-child(1 of :not([style*="display: none"], [hidden])) { padding-bottom: 20px; }

/* page titles: a short hairline, its first stretch in signal yellow */
[data-tema="black-week"] [data-zona="tartalom"] h1.text-heading::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--bw-hot) 0 22px, var(--bw-black) 22px);
}
[data-tema="black-week"] [data-zona="tartalom"] :is(h1.text-center, .text-center > h1).text-heading::after { margin-left: auto; margin-right: auto; }

/* centred section titles of the content pages: the same rule as under "Velük már dolgoztunk"
   (:where keeps these weaker than the home page's own ornaments) */
[data-tema="black-week"] :where([data-zona="tartalom"] section:not([data-szekcio]) > div.text-center:has(> h2:first-child):not(:has(> :nth-child(3)))),
[data-tema="black-week"] :where([data-zona="tartalom"] section > h2.text-center) { position: relative; }
[data-tema="black-week"] :where([data-zona="tartalom"] section:not([data-szekcio]) > div.text-center:has(> h2:first-child):not(:has(> :nth-child(3))))::after,
[data-tema="black-week"] :where([data-zona="tartalom"] section > h2.text-center)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 120px;
  height: 2px;
  margin-left: -60px;
  background: linear-gradient(90deg, var(--bw-black) 0 40%, var(--bw-hot) 40% 60%, var(--bw-black) 60%);
  pointer-events: none;
}

/* photo panels washed in brand blue (the banner of the cart, the checkout and the account, the
   log-in panel, the head of the order summary): black to night blue, a yellow-blue hairline along the bottom */
[data-tema="black-week"] [data-zona="tartalom"] img + div[aria-hidden][class*="bg-gradient-to-"] {
  background-image:
    linear-gradient(90deg, var(--bw-hot) 0, var(--bw-hot) 88px, var(--bw-sky) 88px, rgb(73 184 231 / 0) 72%),
    radial-gradient(60% 130% at 100% 0, rgb(73 184 231 / 0.3), transparent 70%),
    linear-gradient(100deg, rgb(6 8 12 / 0.95) 0%, rgb(9 24 37 / 0.88) 48%, rgb(29 98 147 / 0.74) 100%);
  background-size: 100% 2px, auto, auto;
  background-position: 0 100%, 0 0, 0 0;
  background-repeat: no-repeat;
}

/* page heroes and photo bands: the photo steps back into black and blue, hazard tape on the edge */
[data-tema="black-week"] :is([data-zona="oldalfej"], [data-zona="kepes-sav"]) { isolation: isolate; background-color: var(--bw-black); }
[data-tema="black-week"] :is([data-zona="oldalfej"], [data-zona="kepes-sav"]) > :is(img, video) { filter: saturate(0.6) brightness(0.82) contrast(1.05); }
[data-tema="black-week"] [data-zona="oldalfej"]:not(:has(> div[aria-hidden]))::before,
[data-tema="black-week"] [data-zona="kepes-sav"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    var(--bw-tape) 0 100% / 100% 4px no-repeat,
    radial-gradient(60% 80% at 50% 112%, rgb(38 121 175 / 0.6), transparent 70%),
    linear-gradient(180deg, rgb(6 8 12 / 0.8) 0%, rgb(6 8 12 / 0.4) 36%, rgb(6 8 12 / 0.46) 62%, rgb(6 8 12 / 0.88) 100%);
}
[data-tema="black-week"] [data-zona="kepes-sav"]::before {
  background:
    var(--bw-tape) 0 0 / 100% 4px no-repeat,
    var(--bw-tape) 0 100% / 100% 4px no-repeat,
    radial-gradient(60% 80% at 50% 112%, rgb(38 121 175 / 0.6), transparent 70%),
    linear-gradient(180deg, rgb(6 8 12 / 0.82) 0%, rgb(6 8 12 / 0.5) 40%, rgb(6 8 12 / 0.5) 60%, rgb(6 8 12 / 0.86) 100%);
}
/* the photo bands are light pictures made for dark titles: as pure luminosity over brand blue they
   become the same black-and-blue duotone as the footer's photo */
[data-tema="black-week"] [data-zona="kepes-sav"] { background-color: #2585c8; }
[data-tema="black-week"] [data-zona="kepes-sav"] > img { filter: contrast(1.5) brightness(0.55); mix-blend-mode: luminosity; }
[data-tema="black-week"] :is([data-zona="oldalfej"], [data-zona="kepes-sav"]) > :is(div, h2):not([aria-hidden]) { position: relative; z-index: 2; }
[data-tema="black-week"] [data-zona="kepes-sav"] h2 { color: #fff; text-shadow: var(--bw-neon); }

/* ==========================================================================
   9. PHONE
   ========================================================================== */
@media (max-width: 767px) {
  [data-tema="black-week"] { --bw-tape-h: 26px; }
  [data-tema="black-week"] .bw-ticker--tape { font-size: 11px; }
  [data-tema="black-week"] .bw-ticker--tape .bw-ticker__item { padding: 0 12px; }
  [data-tema="black-week"] .bw-ticker--tape .bw-ticker__sep { width: 20px; height: 10px; }

  [data-tema="black-week"] .bw-eq { justify-content: flex-start; --bw-eq-from: 118px; }
  [data-tema="black-week"] .bw-eq i { height: calc(var(--h) * 0.8); }
  [data-tema="black-week"] .bw-eq i:nth-child(n + 52) { display: none; }

  [data-tema="black-week"] .bw-ticker--outline { padding: 4px 0 20px; font-size: 46px; }
  [data-tema="black-week"] .bw-ticker--outline .bw-ticker__item { padding: 0 12px; -webkit-text-stroke-width: 1px; }
  [data-tema="black-week"] .bw-ticker--outline .bw-ticker__sep { height: 30px; margin: 0 6px; }

  [data-tema="black-week"] :is([data-szekcio="ajanlatok"], [data-szekcio="csomagok"], [data-szekcio="szolgaltatasok"]) > div:has(> h2)::before { font-size: 10px; letter-spacing: 0.26em; margin-bottom: 0; }
  [data-tema="black-week"] :is([data-szekcio="ajanlatok"], [data-szekcio="csomagok"], [data-szekcio="szolgaltatasok"]) > div:has(> h2)::after { bottom: -11px; width: 96px; margin-left: -48px; }
  [data-tema="black-week"] [data-szekcio="csomagok"]::after { top: 16px; font-size: 76px; }

  [data-tema="black-week"] :is([data-szekcio="miert"], section#ajanlat, section#kapcsolat) > div:has(> h2)::after { bottom: -15px; transform: scale(0.7); transform-origin: 50% 100%; }
  [data-tema="black-week"] :is([data-szekcio="velemenyek"], section:has(> div > details)) > div:has(> h2)::after { bottom: -16px; width: 110px; height: 13px; margin-left: -55px; }
  [data-tema="black-week"] [data-szekcio="ugyfelek"] > div:has(> h2)::after { bottom: -11px; width: 90px; margin-left: -45px; }

  [data-tema="black-week"] [data-doboz="promo"] {
    background-size: calc(100% - 14px) 1px, calc(100% - 14px) 1px, 1px calc(100% - 14px), 1px calc(100% - 14px), auto, auto, auto;
    background-position: 7px 7px, 7px calc(100% - 7px), 7px 7px, calc(100% - 7px) 7px, 0 0, 0 0, 0 0;
  }

  [data-tema="black-week"] .bw-tag { left: 24px; width: 40px; height: 68px; top: calc(100% - 5px); }

  [data-tema="black-week"] [data-zona="tartalom"]::after { height: 44px; }
  [data-tema="black-week"] [data-zona="tartalom"] h1.text-heading::after { width: 52px; margin-top: 10px; }
  [data-tema="black-week"] :where([data-zona="tartalom"] section:not([data-szekcio]) > div.text-center:has(> h2:first-child):not(:has(> :nth-child(3))))::after,
  [data-tema="black-week"] :where([data-zona="tartalom"] section > h2.text-center)::after { bottom: -11px; width: 90px; margin-left: -45px; }

  [data-tema="black-week"] .bw-skyline { height: 38px; justify-content: flex-start; }
  [data-tema="black-week"] .bw-skyline i { height: calc(var(--h) * 0.68); }
  [data-tema="black-week"] .bw-skyline i:nth-child(n + 52) { display: none; }
  [data-tema="black-week"] .bw-bokeh:nth-of-type(2n) { display: none; }

  [data-tema="black-week"] [data-zona="lablec-fekete"] { padding-top: calc(var(--bw-stage-h) + 24px); }

  [data-tema="black-week"] .bw-kupon__ticket { --n: 164px; }
  [data-tema="black-week"] .bw-kupon__top { padding: 24px 22px 0; }
  [data-tema="black-week"] .bw-kupon__big { font-size: 78px; }
  [data-tema="black-week"] .bw-kupon__big--long { margin-top: 18px; font-size: 54px; }
  [data-tema="black-week"] .bw-kupon__big--xlong { margin-top: 26px; font-size: 42px; }
  [data-tema="black-week"] .bw-kupon__bottom { padding: 20px 22px 22px; }
  [data-tema="black-week"] .bw-kupon__code strong { font-size: 21px; }
}

/* ==========================================================================
   10. REDUCED MOTION: everything stands still
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  [data-tema="black-week"] .bw-ticker__track,
  [data-tema="black-week"] .bw-eq i,
  [data-tema="black-week"] .bw-skyline i,
  [data-tema="black-week"] .bw-hero__beams,
  [data-tema="black-week"] .bw-lockup__l1,
  [data-tema="black-week"] [data-szekcio="ajanlatok"] > ul::after,
  [data-tema="black-week"] .bw-tag,
  [data-tema="black-week"] .bw-tag__glint,
  [data-tema="black-week"] .bw-kupon,
  [data-tema="black-week"] .bw-kupon__card,
  [data-tema="black-week"] .bw-haze,
  [data-tema="black-week"] .bw-beam,
  [data-tema="black-week"] .bw-pan,
  [data-tema="black-week"] .bw-bokeh { animation: none !important; }
  [data-tema="black-week"] .bw-tag__glint { display: none; }
  [data-tema="black-week"] [data-zona="tartalom"] article.shadow-card,
  [data-tema="black-week"] [data-szekcio] li > a { transition: none; }
}

/* ==========================================================================
   The visitor's dark look (data-mod="sotet", with public/tema/sotet.css loaded before this file): the parts that
   look like the base design go dark, the decoration stays. Only what was drawn for a white page is retuned here.
   ========================================================================== */
/* Where the dark sheet speaks louder than a rule of the theme's own element, that rule also carries the selector
   [data-mod="sotet"]:not(#_) (the never-matching id only lifts its weight above the dark sheet). */
/* the "paper" the tickets and the perforated edges are punched out of is the dark page */
[data-tema="black-week"][data-mod="sotet"] { --bw-paper: #0b0d18; }
