/* =========================================================
   LP „Podaruj prezent, odbierz zwrot” – Mattel x SMYK
   Projekt bazowy: lp.psd (1920 × 1160)
   Wszystkie wymiary desktopowe liczone w jednostce --u
   (1 px projektu przy szerokości 1920, skaluje się w dół).
   ========================================================= */

:root {
  --u: min(1px, calc(100vw / 1920));

  --c-white: #fff;
  --c-teal: #007876;        /* teksty + prezent Fisher-Price */
  --c-hw: #37a2d8;          /* prezent Hot Wheels */
  --c-barbie: #da5097;      /* prezent Barbie */
  --c-shadow: rgba(0, 67, 65, .23);

  --ff: "macho", "Macho", "Nunito", "Arial Rounded MT Bold", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--ff);
  color: var(--c-white);
  background: #5fb3c9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

/* ---------- Sekcja / tło ---------- */

.lp {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  background: url("../img/bg.jpg") center top / cover no-repeat;
}

.lp__stage {
  position: relative;
  max-width: 1920px;
  min-height: calc(1160 * var(--u));
  margin: 0 auto;
}

/* ---------- Dekoracje (pozycje 1:1 z PSD) ---------- */

.lp__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.decor { position: absolute; height: auto; max-width: none; }

.decor--tree-l,
.decor--tree-r { filter: drop-shadow(0 0 calc(13 * var(--u)) var(--c-shadow)); }

.decor--tree-l { left: calc(-162 * var(--u)); top: calc(82 * var(--u)); width: calc(484 * var(--u)); }
.decor--tree-r { left: calc(1597 * var(--u)); top: calc(83 * var(--u)); width: calc(486 * var(--u)); }

.decor--sparkles-a,
.decor--sparkles-b,
[class*="decor--flake"] { opacity: .35; }

.decor--sparkles-a { left: calc(1480 * var(--u)); top: calc(105 * var(--u)); width: calc(224 * var(--u)); }
.decor--sparkles-b { left: calc(324 * var(--u));  top: calc(402 * var(--u)); width: calc(192 * var(--u)); }
.decor--flake-1    { left: calc(357 * var(--u));  top: calc(203 * var(--u)); width: calc(63 * var(--u)); }
.decor--flake-2    { left: calc(258 * var(--u));  top: calc(112 * var(--u)); width: calc(84 * var(--u)); }
.decor--flake-3    { left: calc(1459 * var(--u)); top: calc(445 * var(--u)); width: calc(84 * var(--u)); }
.decor--flake-4    { left: calc(1512 * var(--u)); top: calc(541 * var(--u)); width: calc(52 * var(--u)); }

/* ---------- Treść ---------- */

.lp__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(88 * var(--u)) 16px calc(60 * var(--u));
  text-align: center;
}

.lp__title {
  margin: 0;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.lp__title-top,
.lp__title-main { display: block; }

.lp__title-top {
  font-weight: 400;
  font-size: max(30px, calc(75.5 * var(--u)));
}

.lp__title-main {
  margin-top: calc(12 * var(--u));
  font-weight: 900;
  font-size: max(40px, calc(102.6 * var(--u)));
}

.lp__lead {
  margin: calc(36 * var(--u)) 0 0;
  max-width: 900px;
  font-weight: 900;
  font-size: max(15px, calc(24 * var(--u)));
  line-height: 1.25;
  color: var(--c-teal);
}

.lp__lead sup {
  font-size: .55em;
  line-height: 0;
  vertical-align: .75em;
}

.lp__subtitle {
  margin: calc(38 * var(--u)) 0 0;
  font-weight: 900;
  font-size: max(24px, calc(45 * var(--u)));
  line-height: 1.22;
  color: var(--c-teal);
}

/* ---------- Prezenty ---------- */

.gifts {
  display: flex;
  justify-content: center;
  gap: calc(26 * var(--u));
  margin: calc(22 * var(--u)) 0 0;
  padding: 0;
  list-style: none;
}

.gift { width: calc(317 * var(--u)); }

.gift--hw     { color: var(--c-hw); }
.gift--fp     { color: var(--c-teal); }
.gift--barbie { color: var(--c-barbie); }

.gift__link {
  position: relative;
  display: block;
  aspect-ratio: 317 / 275;
  color: inherit;
  text-decoration: none;
  transition: transform .25s ease;
}

.gift__box {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 calc(3 * var(--u)) var(--c-shadow));
}

.gift__logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: auto;
}

.gift--hw .gift__logo     { top: 38.5%; width: 82.6%; }   /* 262×79  @ y106 */
.gift--fp .gift__logo     { top: 38.2%; width: 53.9%; }   /* 171×65  @ y105 */
.gift--barbie .gift__logo { top: 38.2%; width: 52%;   }   /* 165×80  @ y105 */

.btn {
  position: absolute;
  left: 50%;
  top: 76%;                                              /* y209 / 275 */
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 41.3%;                                          /* 131 / 317 */
  height: 14.5%;                                         /* 40 / 275 */
  border: max(1px, calc(1.5 * var(--u))) solid var(--c-white);
  border-radius: calc(10 * var(--u));
  font-weight: 900;
  font-size: max(14px, calc(20 * var(--u)));
  line-height: 1;
  color: var(--c-white);
  transition: background-color .2s ease, color .2s ease;
}

.gift__link:hover,
.gift__link:focus-visible { transform: translateY(-6px); }

.gift__link:hover .btn,
.gift__link:focus-visible .btn {
  background: var(--c-white);
  color: currentColor;
}

/* .btn dziedziczy kolor prezentu przy hoverze */
.gift--hw .gift__link:hover .btn,
.gift--hw .gift__link:focus-visible .btn         { color: var(--c-hw); }
.gift--fp .gift__link:hover .btn,
.gift--fp .gift__link:focus-visible .btn         { color: var(--c-teal); }
.gift--barbie .gift__link:hover .btn,
.gift--barbie .gift__link:focus-visible .btn     { color: var(--c-barbie); }

.gift__link:focus-visible { outline: 2px solid var(--c-white); outline-offset: 4px; }

/* ---------- Stopka prawna ---------- */

.lp__legal {
  margin-top: calc(14 * var(--u));
}

.lp__legal p { margin: 0; }

.lp__legal-note {
  font-weight: 700;
  font-size: max(13px, calc(15 * var(--u)));
  line-height: 1.3;
}

.lp__legal-text {
  margin-top: calc(6 * var(--u)) !important;
  font-weight: 400;
  font-size: max(10px, calc(12 * var(--u)));
  line-height: 1.25;
}

.lp__legal a { color: inherit; text-decoration: none; }
.lp__legal a:hover { text-decoration: underline; }

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1100px) {
  .br-desktop { display: none; }

  .lp__content { padding-top: 56px; padding-bottom: 48px; }
  .lp__title-top  { font-size: 44px; }
  .lp__title-main { font-size: 60px; margin-top: 6px; }
  .lp__lead { margin-top: 24px; max-width: 560px; font-size: 17px; }
  .lp__subtitle { margin-top: 28px; font-size: 30px; }
  .gifts { gap: 16px; margin-top: 24px; }
  .gift { width: 200px; }
  .btn { border-radius: 8px; font-size: 14px; }
  .lp__legal { margin-top: 20px; max-width: 700px; }
  .lp__legal-text { margin-top: 6px !important; }
}

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 767px) {
  .lp { background-size: 100% 100%; }

  .lp__content { padding: 40px 16px 40px; }

  .lp__title-top  { font-size: clamp(24px, 7.4vw, 40px); }
  .lp__title-main { font-size: clamp(36px, 11.5vw, 56px); margin-top: 4px; }

  .lp__lead { font-size: 15px; margin-top: 20px; }
  .lp__subtitle { font-size: clamp(22px, 6.4vw, 28px); margin-top: 24px; }

  .gifts {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  .gift { width: min(280px, 82vw); }
  .btn { font-size: 16px; }

  .lp__legal-note { font-size: 13px; }
  .lp__legal-text { font-size: 11px; }

  /* dekoracje na mobile: choinki przy krawędziach, mniej gwiazdek */
  .decor--tree-l { width: 40vw; left: -20vw; top: 220px; }
  .decor--tree-r { width: 40vw; left: auto; right: -20vw; top: 520px; }
  .decor--sparkles-b,
  .decor--flake-1,
  .decor--flake-3,
  .decor--flake-4 { display: none; }
  .decor--sparkles-a { width: 64px; left: auto; right: 6px; top: 6px; }
  .decor--flake-2 { width: 28px; left: 8px; top: 8px; }
}

/* Tablet: dekoracje w stałych rozmiarach */
@media (min-width: 768px) and (max-width: 1100px) {
  .decor--tree-l { width: 220px; left: -170px; top: 80px; }
  .decor--tree-r { width: 220px; left: auto; right: -170px; top: 80px; }
  .decor--sparkles-a { width: 110px; left: auto; right: 60px; top: 24px; }
  .decor--sparkles-b { width: 90px; left: 50px; top: 300px; }
  .decor--flake-1 { width: 30px; left: 100px; top: 110px; }
  .decor--flake-2 { width: 42px; left: 50px; top: 36px; }
  .decor--flake-3,
  .decor--flake-4 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gift__link, .btn { transition: none; }
  .gift__link:hover, .gift__link:focus-visible { transform: none; }
}
