:root {
  --campaign-violet: #6639e5;
  --campaign-violet-dark: #5c30d4;
}

.ann { background: var(--campaign-violet); color: #fff; }

.bf-lettering {
  --bf-font-size: min(25.65cqw, 164.7px);
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgb(14 14 16 / 11%);
  font-size: min(var(--bf-font-size), 26cqw);
  font-stretch: 100%;
  font-weight: 800;
  line-height: .84;
  letter-spacing: -.04em;
  text-align: center;
  pointer-events: none;
}
@supports (transform: scaleX(calc(1px / 1px))) {
  .bf-lettering {
    font-size: var(--bf-font-size);
    /* FRIDAY is about 3.6em wide in Archivo. Fit it with a gutter on each side. */
    transform: scaleX(min(1, calc((100cqw - 12px) / 3.64em)));
  }
}
.gallery-stage .bf-lettering { display: none; }

.lang-switch {
  display: flex;
  border: 1px solid #cfd0d4;
  border-radius: 999px;
  padding: 3px;
}

.drop-badge {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 999px;
  background: #0e0e10;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
}

.stock-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid #e8bc78;
  border-radius: 999px;
  background: #fff0d8;
  color: #6d3600;
  font-size: 13px;
  font-weight: 700;
}
.stock-note i {
  display: grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #7a3800;
  color: #fff;
  font: 800 12px/1 Archivo, system-ui, sans-serif;
  letter-spacing: 0;
}
.stock-note i::before { content: "!"; }

@media (max-width: 1023px) {
  :root { --page-gutter: clamp(16px, 4.6vw, 28px); }

  /* Keep the sticky home header in the viewport's scroll container. */
  #app { overflow: clip !important; }

  .ann {
    padding: 8px var(--page-gutter) !important;
    gap: 3px 12px !important;
    text-align: center;
  }
  .ann .mont { font-size: 10px !important; }
  .ann .wide {
    font-stretch: 100%;
    letter-spacing: .06em;
  }
  .main-nav {
    height: auto !important;
    min-height: 60px;
    padding: 6px var(--page-gutter) !important;
    gap: 12px !important;
  }
  .main-nav > a { min-height: 44px; }
  .nav-logo { height: clamp(24px, 7.25vw, 34px) !important; }
  .nav-actions { gap: 6px !important; }
  .lang-switch {
    position: relative;
    isolation: isolate;
    border: 0;
    padding: 0;
  }
  .lang-switch::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 7px 2px;
    border: 1px solid #cfd0d4;
    border-radius: inherit;
  }
  .lang-pill {
    position: relative;
    isolation: isolate;
    min-width: 44px;
    height: 44px;
    font-size: 10px;
  }
  .lang-pill[aria-pressed="true"] { background: transparent; }
  .lang-pill[aria-pressed="true"]::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 10px 6px;
    border-radius: inherit;
    background: #0e0e10;
  }

  section#top {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "art";
    align-items: center;
    gap: 16px !important;
    padding: 24px var(--page-gutter) 32px !important;
  }
  .hero-copy { grid-area: copy; }
  .hero-badges { margin-bottom: 14px !important; }
  section#top h1 { font-size: clamp(32px, 9.4vw, 52px) !important; }
  section#top p {
    margin-top: 16px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  .hero-ctas a {
    width: 100%;
    max-width: 440px;
  }
  .hero-art {
    grid-area: art;
    height: clamp(218px, 65vw, 326px) !important;
    border-radius: 24px;
  }
  .hero-art .bf-lettering { --bf-font-size: clamp(66.15px, 21.33vw, 124.2px); }
  .hero-art .float { width: clamp(116px, 36vw, 174px) !important; }
  .hero-art .shadow-pulse { bottom: 18px !important; width: 62% !important; }
  .bf-stamp {
    top: 12px !important;
    right: 12px !important;
    width: clamp(62px, 18vw, 88px) !important;
    height: clamp(62px, 18vw, 88px) !important;
  }
  .stamp-date { font-size: 15px !important; }
  .stamp-date + span { font-size: 8px !important; margin-top: 3px !important; }

  .hero-ticker { padding: 13px 0 !important; }
  .hero-ticker .marquee { font-size: 10px !important; letter-spacing: .08em; }
  .hero-ticker .marquee > span { gap: 24px !important; padding-right: 24px !important; }
  .hero-ticker .marquee img { width: 12px !important; }

  .prod-main { padding: 22px var(--page-gutter) 64px !important; }
  .product-layout { row-gap: 18px; }
  .product-intro h1 { font-size: clamp(25px, 7.2vw, 42px) !important; }
  .product-intro p { margin-top: 10px !important; font-size: 14px !important; }
  .product-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }
  .gallery-stage {
    container-type: inline-size;
    height: clamp(182px, 56vw, 300px);
    aspect-ratio: auto !important;
    border-radius: 22px !important;
    background: radial-gradient(ellipse at 48% 42%, #fff 4%, #e8e8ec 100%) !important;
  }
  .gallery-stage .bf-lettering {
    --bf-font-size: min(25.65cqw, 100px);
    display: flex;
  }
  .gallery-stage img { position: relative; z-index: 1; }
  .gallery-stage .stage-img {
    width: min(128%, 510px) !important;
    -webkit-mask-image: radial-gradient(ellipse 43% 52% at 50% 52%, #000 53%, transparent 100%);
    mask-image: radial-gradient(ellipse 43% 52% at 50% 52%, #000 53%, transparent 100%);
  }
  .gallery-stage .campaign-badge, .product-offer { display: none; }
  .gallery-thumbs {
    flex-direction: column;
    gap: 8px !important;
    margin: 0 !important;
  }
  .gallery-thumbs .thumb {
    width: clamp(50px, 14vw, 70px);
    height: clamp(50px, 14vw, 70px);
    border-radius: 13px;
  }
  .product-details fieldset { min-inline-size: 0; margin-top: 22px !important; }
  .product-details .opt { padding-inline: 12px; }
  .option-prices {
    flex: none;
    display: grid;
    justify-items: end;
    gap: 5px;
    white-space: nowrap;
  }
  .option-price-label {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 999px;
    background: #0e0e10;
    color: #fff;
    font-size: 10px;
    font-stretch: 100%;
    font-weight: 700;
  }
  .option-sale-price { color: #0e0e10; }

  section#produkt, section#sklad, section#jak, section#faq {
    padding: clamp(54px, 9vw, 86px) var(--page-gutter) !important;
  }
  section#produkt p br { display: none; }
  .box-zoom {
    margin: -12% 0 18px !important;
    overflow: clip;
  }
  .box-zoom .box-stage { width: min(154%, 930px) !important; }
  .box-stage .pull-hint { display: none; }
  .box-toggle {
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: -7%;
    padding: 0 18px;
    border-radius: 999px;
    font: 600 14px Archivo, system-ui, sans-serif;
    background: #fff;
  }
  .box-toggle[aria-pressed="true"] { background: #0e0e10; color: #fff !important; }

  .foot-inner { padding: 52px var(--page-gutter) 32px !important; }
  .doc { padding: 38px var(--page-gutter) 64px !important; }
  .doc a, .doc code { overflow-wrap: anywhere; }
}

@media (min-width: 680px) and (max-width: 1023px) {
  section#top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "copy art"; }
  section#top h1 { font-size: clamp(42px, 6vw, 60px) !important; }
  .home-header .nav-links { gap: 18px !important; }
  .home-header ~ section[id] { scroll-margin-top: 72px; }
}

@media (max-width: 760px) {
  .wide { font-stretch: 112%; }
  section#produkt h2, section#sklad h2, section#jak h2, section#faq h2 {
    font-size: clamp(28px, 7.6vw, 40px) !important;
  }
  section#produkt .rv > p, section#sklad .rv > p, section#jak .rv > p,
  .steps p, section#faq p { font-size: 15px !important; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .stats > div { padding: 19px 14px !important; }
  .stats .mont { font-size: clamp(26px, 8vw, 34px) !important; }
  .stats > div > div:last-child { font-size: 13px !important; }

  .chem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-top: 30px !important;
  }
  .chem-grid > div { padding: 16px 12px !important; }
  .chem-grid > div:last-child { grid-column: 1 / -1; }
  .chem-grid .chem { max-width: 130px; margin: 8px auto 2px; }
  .chem-grid > div > .mont:nth-last-child(2) { font-size: 18px !important; }
  .chem-grid > div > div:last-child { font-size: 13px !important; }

  .steps { margin-top: 30px !important; gap: 12px !important; }
  .steps > .card { min-height: 0 !important; padding: 24px 20px !important; }
  .steps .pk-wrap { padding: 4px 0 12px; }
  .steps .pk { max-width: 150px; }
  .steps h3 { font-size: 21px !important; }

  section#faq .faq-btn { padding: 18px 0 !important; gap: 12px; }
  section#faq .faq-btn .mont { font-size: 16px !important; }

  .cookie-banner {
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: calc(100% - 20px);
    max-height: calc(100% - 24px - env(safe-area-inset-bottom));
    overflow-y: auto;
    display: grid;
    gap: 10px;
    padding: 13px;
    border-radius: 18px;
    font-size: 13px;
  }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-btn { justify-content: center; padding: 0 12px; }
}

@media (max-width: 679px) {
  .home-header .main-nav {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 8px !important;
    row-gap: 0 !important;
    padding-bottom: 0 !important;
  }
  .home-header .nav-links {
    grid-area: 2 / 1 / 3 / -1;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px !important;
    border-top: 1px solid #e0e0e4;
  }
  .home-header .nav-link {
    display: grid;
    place-items: center;
    min-height: 44px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
  }
  .home-header ~ section[id] { scroll-margin-top: 110px; }
  .main-nav > div > .nav-links { display: none !important; }
}

@media (max-width: 1023px) and (max-height: 480px) {
  .home-header { position: relative !important; }
  .home-header ~ section[id] { scroll-margin-top: 0; }
}
