/* Lody SKOLIM finder — sticker/merch look: ink outlines, hard offset shadows,
   sun gradient hero with a melting-drip edge. Tokens first. */

@font-face {
  font-family: "Baloo 2";
  src: url("fonts/baloo2-500-latin-ext.woff2") format("woff2");
  font-weight: 500; font-display: swap;
  unicode-range: U+0100-024F, U+0104, U+0106, U+0118, U+0141, U+0143, U+00D3, U+015A, U+0179, U+017B;
}
@font-face {
  font-family: "Baloo 2";
  src: url("fonts/baloo2-500-latin.woff2") format("woff2");
  font-weight: 500; font-display: swap; unicode-range: U+0000-00FF;
}
@font-face {
  font-family: "Baloo 2";
  src: url("fonts/baloo2-700-latin-ext.woff2") format("woff2");
  font-weight: 700; font-display: swap;
  unicode-range: U+0100-024F, U+0104, U+0106, U+0118, U+0141, U+0143, U+00D3, U+015A, U+0179, U+017B;
}
@font-face {
  font-family: "Baloo 2";
  src: url("fonts/baloo2-700-latin.woff2") format("woff2");
  font-weight: 700; font-display: swap; unicode-range: U+0000-00FF;
}
@font-face {
  font-family: "Baloo 2";
  src: url("fonts/baloo2-800-latin-ext.woff2") format("woff2");
  font-weight: 800; font-display: swap;
  unicode-range: U+0100-024F, U+0104, U+0106, U+0118, U+0141, U+0143, U+00D3, U+015A, U+0179, U+017B;
}
@font-face {
  font-family: "Baloo 2";
  src: url("fonts/baloo2-800-latin.woff2") format("woff2");
  font-weight: 800; font-display: swap; unicode-range: U+0000-00FF;
}

/* Oficjalne fonty brandu SKOLIM (Style_Guide.pdf): Cantata One + Great Vibes. */
@font-face {
  font-family: "Cantata One";
  src: url("fonts/cantata-400-latin-ext.woff2") format("woff2");
  font-weight: 400; font-display: swap;
  unicode-range: U+0100-024F, U+0104, U+0106, U+0118, U+0141, U+0143, U+00D3, U+015A, U+0179, U+017B;
}
@font-face {
  font-family: "Cantata One";
  src: url("fonts/cantata-400-latin.woff2") format("woff2");
  font-weight: 400; font-display: swap; unicode-range: U+0000-00FF;
}
@font-face {
  font-family: "Great Vibes";
  src: url("fonts/greatvibes-400-latin-ext.woff2") format("woff2");
  font-weight: 400; font-display: swap;
  unicode-range: U+0100-024F, U+0104, U+0106, U+0118, U+0141, U+0143, U+00D3, U+015A, U+0179, U+017B;
}
@font-face {
  font-family: "Great Vibes";
  src: url("fonts/greatvibes-400-latin.woff2") format("woff2");
  font-weight: 400; font-display: swap; unicode-range: U+0000-00FF;
}

:root {
  --zloty: #FFC933;
  --pomarancz: #FF8A3C;
  --roz: #FC37B4; /* oficjalny róż z brand booku */
  --serif: "Cantata One", Georgia, serif;
  --script: "Great Vibes", cursive;
  --truskawka: #E63B2E;
  --limonka: #7BC94A;
  --niebieski: #2AA0DC;
  --atrament: #191718; /* oficjalna czern z brand booku */
  --krem: #FDEFF9; /* rozowa mgielka (inputy/hover) */
  --bg: #FFFFFF;
  --bialy: #FFFFFF;
  --display: "Baloo 2", "Trebuchet MS", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
/* Tło html = kolor stopki: przy krótkiej stronie i przy „gumowym" scrollu na
   iOS pod stopką widać właśnie html, nie body (inaczej wychodzi biały pasek). */
html { scroll-behavior: smooth; background: #111010; }
body {
  margin: 0;
  overflow-x: clip;
  /* Sticky footer: stopka dosuwa się do dołu, gdy treści jest mniej niż ekranu. */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--atrament);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  background: linear-gradient(160deg, #FC37B4 0%, #A62481 55%, #111010 100%); /* brand book */
  padding: 18px 22px 118px;
  overflow: hidden;
}
.top { position: relative; z-index: 2; }
.logo { height: 74px; width: auto; display: block; background: #fff; padding: 8px 14px; border-radius: 16px; box-shadow: 0 6px 16px rgba(0,0,0,0.35); }
.hero h1 {
  position: relative; z-index: 2;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 9vw, 58px);
  line-height: 1.04;
  margin: 26px 0 12px;
  max-width: 560px;
  color: var(--bialy);
  /* twardy cień + obrys: czytelne i na różu, i na czerni, i na lodach */
  text-shadow: 3px 3px 0 var(--atrament),
    -1.5px -1.5px 0 var(--atrament), 1.5px -1.5px 0 var(--atrament),
    -1.5px 1.5px 0 var(--atrament), 1.5px 1.5px 0 var(--atrament);
}
.hero h1 .brand { color: var(--roz); }
.hero .sub {
  position: relative; z-index: 2;
  max-width: 430px;
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
}
.hero .sub strong { font-weight: 800; }
.hero .sub-cta { margin-top: 10px; font-weight: 700; }

/* Prawdziwe produkty (wycinanki z kluczowej grafiki marki) — bez ramek. */
.pack {
  position: absolute;
  z-index: 1;
  height: auto;
  filter: drop-shadow(0 10px 16px rgba(52, 20, 43, 0.35));
}
.pop-a { width: 250px; right: -62px; top: 26px; transform: scaleX(-1) rotate(-6deg); animation: floaty 6s ease-in-out infinite; }
/* Na mobile tylko jeden lód (prawy górny róg) — drugi wjeżdżał pod tekst. */
.pop-b { display: none; width: 170px; left: -52px; top: 218px; transform: rotate(8deg); animation: floaty 5s ease-in-out 0.7s infinite; }
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 10px; }
}

.drip { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 64px; fill: var(--bg); z-index: 1; }

/* ---------------------------------------------------------------- search */
main { padding: 0 18px 40px; max-width: 660px; margin: 0 auto; width: 100%; flex: 1 0 auto; }

.search-card {
  position: relative;
  z-index: 3;
  margin-top: -44px;
  background: var(--bialy);
  border: 3px solid var(--atrament);
  border-radius: 22px;
  box-shadow: 7px 7px 0 var(--atrament);
  padding: 18px;
}
.btn {
  font-family: var(--display);
  font-weight: 700;
  border: 3px solid var(--atrament);
  border-radius: 15px;
  cursor: pointer;
  transition: translate 0.06s ease, box-shadow 0.06s ease;
}
.btn:active { translate: 3px 3px; box-shadow: 1px 1px 0 var(--atrament) !important; }
.btn:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--niebieski);
  outline-offset: 2px;
}
.btn-geo {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--roz);
  color: var(--bialy);
  font-size: 19px;
  padding: 15px 16px;
  box-shadow: 4px 4px 0 var(--atrament);
}
.btn-geo svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn-geo[disabled], .btn-find[disabled] { opacity: 0.65; cursor: wait; }

.or {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0 12px;
  color: rgba(52, 20, 43, 0.75);
  font-family: var(--script);
  font-size: 22px; font-weight: 400;
}
.or::before, .or::after { content: ""; flex: 1; height: 2px; background: rgba(52, 20, 43, 0.15); border-radius: 2px; }

#find-form { display: flex; gap: 10px; }
.suggest-wrap { position: relative; flex: 1; min-width: 0; }
.sug-box {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  background: #fff;
  border: 3px solid var(--atrament);
  border-radius: 15px;
  box-shadow: 5px 6px 0 rgba(52, 20, 43, 0.25);
  max-height: min(46vh, 330px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sug-item {
  padding: 13px 15px;
  font: 500 16px var(--body);
  color: var(--atrament);
  cursor: pointer;
  border-bottom: 2px dashed rgba(52, 20, 43, 0.12);
}
.sug-item:last-child { border-bottom: 0; }
.sug-item.active,
.sug-item:hover { background: var(--krem); }
#q {
  width: 100%;
  min-width: 0;
  font: 500 16px var(--body);
  color: var(--atrament);
  background: var(--krem);
  border: 3px solid var(--atrament);
  border-radius: 15px;
  padding: 13px 14px;
}
#q::placeholder { color: rgba(52, 20, 43, 0.45); font-size: 14px; }
.btn-find {
  background: var(--atrament);
  color: #fff;
  font-size: 17px;
  padding: 13px 18px;
  box-shadow: 4px 4px 0 var(--atrament);
}
.status { margin: 12px 2px 0; font-size: 14.5px; font-weight: 600; min-height: 1.4em; }
.status.err { color: var(--truskawka); }
.status.busy::after { content: "…"; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* --------------------------------------------------------------- results */
.results { margin-top: 34px; }
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 25px;
  margin: 0 0 6px;
}
.chip {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  background: var(--atrament);
  color: var(--roz);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}
/* Data stanu zapasu: klient MUSI ja zobaczyc, zanim pojedzie do sklepu.
   Wczesniej byl to szary chip 13 px obok naglowka i ludzie go nie zauwazali. */
.stock-stamp {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 12px 0 0;
  padding: 11px 18px;
  background: var(--zloty);
  border: 3px solid var(--atrament);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--atrament);
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
  color: var(--atrament);
}
.stamp-ico {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: var(--atrament); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}
.stamp-date {
  font-size: 20px;
  letter-spacing: 0.01em;
  background: var(--atrament);
  color: var(--zloty);
  border-radius: 10px;
  padding: 2px 10px;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .stock-stamp { font-size: 15px; padding: 10px 14px; }
  .stamp-date { font-size: 19px; }
}
.note {
  background: var(--krem);
  border: 2px solid var(--atrament);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 600;
}
.results-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.store-card {
  background: var(--bialy);
  border: 2.5px solid var(--atrament);
  border-radius: 18px;
  box-shadow: 4px 4px 0 rgba(52, 20, 43, 0.18);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "dist addr addr" "dist badge go";
  gap: 4px 14px;
  align-items: center;
  animation: pop-in 0.35s ease both;
}
@keyframes pop-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.store-card .dist {
  grid-area: dist;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(19px, 5.8vw, 26px);
  white-space: nowrap;
  line-height: 1;
  color: var(--roz);
  text-align: center;
  min-width: 64px;
}
.store-card .dist small { display: block; font-size: 12px; font-weight: 700; color: rgba(52, 20, 43, 0.6); }
.store-card .addr { grid-area: addr; }
.store-card .addr strong { font-family: var(--display); font-weight: 700; font-size: 17px; display: block; line-height: 1.25; }
.store-card .addr span { font-size: 13.5px; color: rgba(52, 20, 43, 0.7); font-weight: 500; }
.badge {
  grid-area: badge;
  justify-self: start;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12.5px;
  white-space: nowrap;
  border: 2px solid var(--atrament);
  border-radius: 999px;
  padding: 2px 10px;
}
.badge.high { background: var(--limonka); color: var(--atrament); }
.badge.mid { background: var(--zloty); color: var(--atrament); }
.badge.low { background: var(--truskawka); color: var(--bialy); }
.go {
  grid-area: go;
  justify-self: end;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  background: var(--atrament);
  color: var(--bialy);
  border: 2.5px solid var(--atrament);
  border-radius: 12px;
  padding: 7px 16px;
  box-shadow: 3px 3px 0 rgba(52, 20, 43, 0.25);
}
.go:active { translate: 2px 2px; box-shadow: none; }

.map {
  height: 330px;
  margin-top: 16px;
  border: 3px solid var(--atrament);
  border-radius: 18px;
  overflow: hidden;
  background: #DCEFF7;
}
.pin {
  font-family: var(--display);
  font-weight: 800;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  background: var(--roz);
  color: var(--bialy);
  border: 2.5px solid var(--atrament);
  border-radius: 50% 50% 50% 4px;
  transform: rotate(0deg);
  box-shadow: 2px 2px 0 rgba(52, 20, 43, 0.4);
  font-size: 14px;
}
.pin-user {
  width: 20px; height: 20px;
  background: var(--niebieski);
  border: 3px solid var(--bialy);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--niebieski);
}
.fineprint { font-size: 12.5px; color: rgba(52, 20, 43, 0.6); margin-top: 12px; }

/* --------------------------------------------------------- how + faq ---- */

/* ---------------------------------------------------------------- footer */
footer {
  margin-top: 48px;
  flex: 0 0 auto;
  background: #111010; /* czern z brand booku */
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 0 22px 36px;
  font-size: 13px;
}
.drip-down {
  display: block;
  width: calc(100% + 44px);
  margin: 0 -22px;
  height: 54px;
  fill: var(--bg);
  transform: scaleY(-1);
}
.foot-inner { display: grid; justify-items: center; gap: 12px; padding-top: 14px; }
.foot-logo {
  height: 60px; width: auto;
  background: #fff;
  padding: 7px 13px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(252, 55, 180, 0.25);
}
.foot-brand {
  font-family: var(--script);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  color: var(--roz);
  margin: 0;
}
.foot-fb {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: var(--roz);
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(252, 55, 180, 0.4);
}
.foot-fb:hover { filter: brightness(1.08); }
.foot-privacy { color: rgba(255, 255, 255, 0.75); font-size: 13.5px; max-width: 460px; margin: 4px 0 0; }
footer a { color: var(--roz); }
.credits { color: rgba(255, 255, 255, 0.45); font-size: 12px; max-width: 600px; margin: 0; }
.credits a { color: rgba(255, 255, 255, 0.6); }

/* --------------------------------------------------------------- desktop */
@media (min-width: 760px) {
  .hero .sub { font-size: 19px; }
  .search-card { margin-top: -60px; padding: 24px; }
  .map { height: 420px; }
}

/* Układ z dwoma dużymi lodami dopiero, gdy jest na nie miejsce —
   na tablecie (760-1179px) wjeżdżały pod nagłówek. */
@media (min-width: 1180px) {
  .hero { padding: 26px 40px 140px; text-align: center; }
  .hero h1, .hero .sub { margin-left: auto; margin-right: auto; }
  .top { text-align: left; }
  .logo { height: 88px; }
  .pop-a { width: min(440px, 26vw); right: 1vw; top: 120px; transform: scaleX(-1) rotate(-4deg); }
  .pop-b { display: block; width: min(400px, 24vw); left: 1vw; top: 150px; transform: rotate(6deg); animation: floaty 7s ease-in-out 0.4s infinite; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pack { animation: none; }
  .store-card { animation: none; }
}
