/* =====================================================================
   SPORTOWETYPY — fundament: kolory, typografia, wspólne elementy
   ===================================================================== */

:root {
  /* ---- Zieleń: kolor wiodący ---- */
  --green-900: #05261A;
  --green-800: #084A2F;
  --green-700: #0A6B41;
  --green-600: #0D8A52;
  --green-500: #12A860;   /* główny */
  --green-400: #2BC87C;
  --green-300: #6CDFA6;
  --green-200: #A9EFCA;
  --green-100: #DCF9E9;
  --green-50:  #F1FDF7;

  /* ---- Żółty: akcent, CTA, wyróżnienia ---- */
  --yellow-600: #E0AE00;
  --yellow-500: #FFC700;  /* przyciski */
  --yellow-400: #FFD633;
  --yellow-200: #FFE98A;
  --yellow-100: #FFF3C4;
  --yellow-50:  #FFFBEB;

  /* ---- Tekst ---- */
  --ink:       #0B1A12;
  --ink-soft:  #566860;
  --ink-faint: #8C9A93;
  --ink-on-dark: #FFFFFF;

  /* ---- Tła i krawędzie ---- */
  --bg:    #F6F9F7;
  --bg-2:  #EFF4F1;
  --card:  #FFFFFF;
  --line:  #E2EAE5;
  --line-strong: #CBD8D1;

  /* ---- Stan ---- */
  --error: #D92D20;
  --star:  #FFC700;
  --telegram: #229ED9;

  /* ---- Kształt ---- */
  --r-xs:  8px;
  --r-sm: 12px;
  --r:    16px;
  --r-lg: 24px;
  --r-pill: 100px;

  /* ---- Cienie: podbarwione zielenią, nie czystą czernią ---- */
  --shadow-sm: 0 2px 10px rgba(10, 60, 36, 0.06);
  --shadow:    0 6px 24px rgba(10, 60, 36, 0.09);
  --shadow-lg: 0 16px 48px rgba(10, 60, 36, 0.14);
  --shadow-yellow: 0 6px 22px rgba(255, 199, 0, 0.40);
  --shadow-green:  0 6px 22px rgba(18, 168, 96, 0.30);

  /* ---- Ruch ---- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t:    0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* ---- Czcionki ---- */
  --font:      'Outfit', system-ui, -apple-system, Arial, sans-serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--yellow-200); color: var(--ink); }

/* =====================================================================
   LOGO
   ===================================================================== */
.wordmark {
  font-family: var(--font);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
  display: inline-block;
}
.wordmark em { font-style: inherit; color: var(--green-500); }
.wordmark--light { color: #fff; }
.wordmark--light em { color: var(--green-300); }

/* =====================================================================
   TYPOGRAFIA
   ===================================================================== */
.display {
  font-family: var(--font);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: var(--r-pill);
  padding: 6px 14px;
}

/* Znacznik pola do uzupełnienia — widoczny od razu, nie do przeoczenia */
.uzup {
  background: var(--yellow-200);
  color: #6B4E00;
  border-bottom: 2px dotted var(--yellow-600);
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.92em;
  white-space: nowrap;
}

/* =====================================================================
   PRZYCISKI
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  padding: 17px 30px;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { flex-shrink: 0; }

.btn--cta {
  background: var(--yellow-500);
  color: var(--ink);
  box-shadow: var(--shadow-yellow);
}
.btn--cta:hover { transform: translateY(-2px); background: var(--yellow-400); box-shadow: 0 10px 30px rgba(255,199,0,.52); }
.btn--cta:active { transform: translateY(0); }

.btn--green {
  background: var(--green-500);
  color: #fff;
  box-shadow: var(--shadow-green);
}
.btn--green:hover { transform: translateY(-2px); background: var(--green-600); }

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--green-400); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { transform: translateY(-2px); }

.btn:disabled {
  background: var(--line);
  color: var(--ink-faint);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.btn:disabled svg { opacity: .35; }

.btn--block { width: 100%; }
.btn--lg { height: 58px; font-size: 17px; padding: 0 32px; }

/* =====================================================================
   GWIAZDKI
   ===================================================================== */
.stars { color: var(--star); letter-spacing: 1px; font-size: 14px; line-height: 1; }

/* =====================================================================
   AWATARY (strona główna, oferta)
   ===================================================================== */
.avatars { display: flex; }
.avatars span {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2.5px solid #fff;
  margin-left: -11px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font); font-weight: 800; font-size: 14px;
  color: var(--green-800); background: var(--green-100);
}
.avatars span:first-child { margin-left: 0; }
.avatars span.more { background: var(--ink); color: #fff; font-size: 11px; }

/* =====================================================================
   KARTA OPINII (strona główna, oferta, quiz)
   ===================================================================== */
.r-card {
  width: 320px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.r-card .stars { margin-bottom: 9px; }
.r-card h4 { font-family: var(--font); font-size: 15px; font-weight: 800; margin-bottom: 7px; line-height: 1.3; }
.r-card p  { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }
.r-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.r-card { display: flex; flex-direction: column; }
.r-card p { flex: 1; }
.r-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-100); color: var(--green-800);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font); font-weight: 800; font-size: 13px;
  flex-shrink: 0;
}
.r-name { font-family: var(--font); font-size: 13px; font-weight: 700; }
.r-date { font-size: 11.5px; color: var(--ink-faint); }

/* Plakietka „✓ Zweryfikowana" */
.r-verified {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font);
  font-size: 10.5px; font-weight: 800;
  letter-spacing: .02em;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: var(--r-pill);
  padding: 4px 9px 4px 7px;
  white-space: nowrap;
}
.r-verified svg { flex-shrink: 0; }

/* ---- Zrzut dołączony do opinii (strona główna, oferta, checkout) ---- */
.r-shot {
  display: block;
  margin-top: 13px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: transform .3s var(--ease);
}
.r-shot img { width: 100%; height: auto; display: block; }

/* =====================================================================
   STOPKA 18+
   ===================================================================== */
.legal {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-faint);
  text-align: center;
}
.legal strong { color: var(--ink-soft); font-weight: 700; }
.legal a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }

/* =====================================================================
   KUPON
   ===================================================================== */
.kupon-wrap {
  width: 100%;
  max-width: 360px;
  margin: 6px auto 0;
  opacity: 0;
  transform: scale(1.02);
  animation: kuponIn .5s ease-out .15s forwards;
}
@keyframes kuponIn { to { opacity: 1; transform: none; } }

.kupon {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}
.kupon-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--green-900);
  color: #fff;
}
.kupon-head .wordmark { font-size: 15px; color: #fff; }
.kupon-head .wordmark em { color: var(--green-300); }
.kupon-date { font-family: var(--font-body); font-size: 11.5px; color: rgba(255,255,255,.65); }

.kupon-row {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}
.kupon-row:last-of-type { border-bottom: none; }
.kupon-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 3px;
}
.kupon-mecz {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.kupon-typ {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  margin-top: 5px;
}
.kupon-typ span {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-soft);
}
.kupon-kurs {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  background: var(--bg-2);
  border-radius: 6px;
  padding: 3px 8px;
  flex-shrink: 0;
}
.kupon-status {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  padding: 3px 8px;
}
.kupon-status.wygrany   { background: var(--green-100); color: var(--green-700); }
.kupon-status.przegrany { background: #FDECEA;          color: #B42318; }

.kupon-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px;
  background: var(--green-50);
  border-top: 2px solid var(--green-200);
}
.kupon-foot-label {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.kupon-foot-value {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--green-600);
}
/* Zrzut kuponu — nigdy nie wychodzi poza ekran, zawsze widać status na dole. */
.kupon-img {
  width: auto;
  max-width: 100%;
  max-height: 52vh;
  margin: 0 auto;
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
@media (max-height: 700px) { .kupon-img { max-height: 46vh; } }

/* =====================================================================
   SPINNER
   ===================================================================== */
.spinner {
  width: 20px; height: 20px;
  border: 3px solid rgba(11,26,18,.2);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin .75s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================================
   DOSTĘPNOŚĆ
   ===================================================================== */
:focus-visible { outline: 3px solid var(--green-400); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* =====================================================================
   SZEROKOŚĆ TREŚCI
   ===================================================================== */
.container      { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1420px; margin: 0 auto; padding: 0 20px; }

/* =====================================================================
   STOPKA
   ===================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.62); padding: 46px 0 calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-top .wordmark { font-size: 26px; }
.footer-tag { color: rgba(255,255,255,.55); font-size: 14px; margin-top: 8px; }
.footer-links { display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: 14px; }
/* 44 px na palec, bez zmiany wygladu */
.footer-links a, .footer-links span { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover { color: #fff; }
.footer-legal { margin-top: 22px; color: rgba(255,255,255,.45); font-size: 12px; line-height: 1.7; }
.footer-legal strong { color: rgba(255,255,255,.75); }
.footer-legal a { color: rgba(255,255,255,.7); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 640px) {
  .container, .container-wide { padding: 0 16px; }
  .footer-top { flex-direction: column; gap: 20px; }
}
