/* =========================================================================
   Landing „Powrót" — gra „Wybierz swoją bramkę" (wg wizualizacji LP-WIZ)
   Jasny motyw: kremowa scena, żółte kurtyny, 3 łukowe bramki, kot i pies.
   Scena = grafika (assets/img/scena.webp); bramki = klikalne hotspoty na scenie.
   ========================================================================= */
:root {
    --cream: #f6edd9;
    --cream-card: #fffcf5;
    --navy: #173b66;
    --navy-ink: #122c4d;
    --gold: #f3b13c;
    --gold-2: #ffc83d;
    --gold-soft: #f7d99a;
    --txt: #2c2c2c;
    --muted: #7b7b7b;
    --line: #ece3cf;
    --ok: #2ecc71;
    --shadow: 0 18px 40px -20px rgba(60,45,10,.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--txt);
    background: var(--cream);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }

.col { width: 100%; margin: 0 auto; background: var(--cream); overflow-x: hidden; }
body { overflow-x: hidden; }
/* treść (formularz + sekcje) wyśrodkowana w czytelnej szerokości; baner = pełna szerokość */
.section, .how, .trust { max-width: 680px; margin-left: auto; margin-right: auto; }

/* ---------- HERO (baner z wpieczonymi bramkami — dekoracyjny) — PEŁNA SZEROKOŚĆ ---------- */
.hero { position: relative; line-height: 0; width: 100%; }
.hero img, .hero picture { display: block; width: 100%; height: auto; }

/* ---------- KROK 2: DEDYKOWANE BRAMKI (w modalu na zaciemnionej stronie) ---------- */
.gates-view { width: min(680px, 92vw); text-align: center; color: #fff; position: relative; }
.gates-view h2 { color: #fff; font-size: clamp(20px, 5vw, 32px); margin: 0 24px 6px; text-transform: uppercase; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.gates-sub { color: rgba(255,255,255,.88); margin: 0 0 12px; font-size: clamp(14px, 2.6vw, 17px); }
.gates-view .msg { max-width: 420px; margin: 0 auto 6px; }
.gates-row { display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 2.5vw, 22px); margin-top: 18px; }
.gate { width: clamp(86px, 30%, 190px); border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gate img { display: block; width: 100%; height: auto; transition: transform .25s ease, filter .25s ease; animation: gglow 1.8s ease-in-out infinite; }
@keyframes gglow { 0%,100% { filter: drop-shadow(0 3px 6px rgba(0,0,0,.18)) drop-shadow(0 0 5px rgba(243,177,60,.4)); } 50% { filter: drop-shadow(0 3px 6px rgba(0,0,0,.18)) drop-shadow(0 0 18px rgba(243,177,60,.9)); } }
.gate:hover img { transform: translateY(-8px) scale(1.04); filter: drop-shadow(0 8px 14px rgba(0,0,0,.22)) drop-shadow(0 0 26px rgba(243,177,60,1)); animation: none; }
.gate.dim img { animation: none; filter: grayscale(.5) brightness(.92); opacity: .5; transform: none; }
.gate.chosen img { animation: none; transform: translateY(-10px) scale(1.07); filter: drop-shadow(0 10px 16px rgba(0,0,0,.25)) drop-shadow(0 0 36px rgba(243,177,60,1)); }
.gates-view.done .gates-row { display: none; }
/* przełączanie widoków w modalu */
.gates-view, .prize-card { display: none; }
.overlay.view-gates .gates-view { display: block; }
.overlay.view-prize .prize-card { display: block; }

/* ---------- KARTA FORMULARZA ---------- */
.section { padding: 0 18px; }
.card {
    background: var(--cream-card);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: clamp(22px, 5vw, 34px);
    margin: -36px auto 0;
    position: relative; z-index: 4;
    box-shadow: var(--shadow);
}
.card h2 { text-align: center; color: var(--navy); font-size: clamp(19px, 4vw, 24px); margin: 0 0 4px; letter-spacing: .02em; text-transform: uppercase; }
.card .lead { text-align: center; color: var(--muted); margin: 0 0 22px; font-size: 15px; }

.fields { display: grid; gap: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 13px; color: var(--navy-ink); }

/* tooltip „gdzie znajdę ID" */
.help { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 6px; vertical-align: middle; border-radius: 50%; background: var(--gold); color: var(--navy); font-size: 12px; font-weight: 900; cursor: help; }
.help .tip {
    position: absolute; bottom: 150%; left: -4px;
    width: max-content; max-width: min(250px, 72vw);
    background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.45;
    text-align: left; padding: 9px 12px; border-radius: 10px;
    box-shadow: 0 10px 24px -8px rgba(0,0,0,.5);
    opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease;
    z-index: 20; pointer-events: none;
}
.help .tip::after { content: ""; position: absolute; top: 100%; left: 11px; border: 6px solid transparent; border-top-color: var(--navy); }
.help:hover .tip, .help:focus .tip, .help:focus-visible .tip { opacity: 1; visibility: visible; transform: translateY(0); }
.input-wrap { position: relative; }
.input-wrap .ic {
    position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; border-radius: 50%; background: #fdf1d8;
    display: grid; place-items: center; color: var(--gold); font-size: 16px;
}
.field input {
    width: 100%; padding: 15px 16px 15px 56px; font-size: 16px;
    border: 1.5px solid var(--line); border-radius: 13px; outline: none;
    background: #fff; color: var(--txt);
    transition: border-color .12s ease, box-shadow .12s ease;
}
.field input::placeholder { color: #b3b3b3; }
.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(243,177,60,.18); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    font-weight: 900; font-size: 18px; padding: 16px 30px; border-radius: 14px;
    border: 0; cursor: pointer; text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn--primary { background: var(--navy); color: #fff; box-shadow: 0 12px 24px -10px rgba(23,59,102,.7); text-transform: uppercase; letter-spacing: .06em; }
.btn--primary .arrow { width: 30px; height: 30px; border-radius: 50%; background: var(--gold-2); color: var(--navy); display: grid; place-items: center; font-size: 16px; }
.btn--primary:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--navy); }
.btn--block { width: 100%; margin-top: 20px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

.secure { text-align: center; color: var(--muted); font-size: 12px; margin: 14px 0 0; }
.secure::before { content: "🔒 "; }

.msg { padding: 12px 15px; border-radius: 11px; font-size: 14px; margin-bottom: 14px; display: none; }
.msg--err { background: #fdecec; color: #b3261e; display: block; }
.msg--ok { background: #eafaf0; color: #1f8a4c; display: block; }

/* potwierdzenie po weryfikacji (zastępuje formularz) */
.confirm { text-align: center; }
.confirm .tick { font-size: 46px; line-height: 1; }
.confirm h2 { margin: 10px 0 4px; }
.confirm p { color: var(--muted); margin: 0; }

/* ---------- JAK TO DZIAŁA (nowoczesny moduł) ---------- */
.how { padding: 52px 18px 16px; max-width: 780px; }
.how h3 { text-align: center; color: var(--navy); font-size: clamp(22px, 4.4vw, 30px); letter-spacing: .02em; text-transform: uppercase; margin: 0 0 4px; }
.how .how-sub { text-align: center; color: var(--muted); margin: 0 0 32px; font-size: clamp(14px, 2.4vw, 17px); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; position: relative; }
/* kreskowany łącznik między krokami (desktop) */
@media (min-width: 720px) {
    .steps::before {
        content: ""; position: absolute; top: 86px; left: 14%; right: 14%; height: 3px; z-index: 0;
        background: repeating-linear-gradient(90deg, rgba(243,177,60,.7) 0 9px, transparent 9px 18px);
    }
}
.step {
    position: relative; z-index: 1; min-width: 0;
    background: var(--cream-card); border: 1px solid var(--line); border-radius: 22px;
    padding: 30px 18px 24px; text-align: center; box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: 0 26px 44px -24px rgba(60,45,10,.5); }
.step .num {
    position: absolute; top: 14px; left: 14px; width: 30px; height: 30px; border-radius: 50%;
    background: var(--navy); color: #fff; font-weight: 900; font-size: 13px;
    display: grid; place-items: center; box-shadow: 0 5px 12px -4px rgba(23,59,102,.6);
}
.step .ico-wrap {
    width: 108px; height: 108px; margin: 0 auto 16px; border-radius: 50%;
    background: radial-gradient(circle at 50% 38%, #ffffff, #fdf2d6);
    display: grid; place-items: center;
    box-shadow: inset 0 0 0 2px rgba(243,177,60,.3), 0 10px 22px -12px rgba(60,45,10,.4);
}
.step .ico-wrap img { width: 64px; height: 64px; display: block; }
.step h4 { margin: 0 0 6px; color: var(--navy); font-size: 16px; text-transform: uppercase; letter-spacing: .02em; }
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- PASEK ZAUFANIA ---------- */
.trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 44px; padding: 38px 18px; }
.trust img { height: 46px; width: auto; max-width: 100%; }

/* ---------- OPINIE GOOGLE (jak shop) ---------- */
.reviews { padding: 50px 18px 8px; }
.reviews-inner { max-width: 1080px; margin: 0 auto; text-align: center; }
.reviews h3 { color: var(--navy); font-size: clamp(24px, 4.4vw, 38px); margin: 0 0 12px; }
.reviews-rate { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(18px, 3vw, 24px); color: var(--navy); font-weight: 800; }
.reviews-rate svg { display: block; }
.reviews-rate .gstars { color: var(--gold); letter-spacing: 2px; }
.reviews-rate .gcount { color: var(--muted); font-weight: 600; font-size: .8em; }
.reviews-sub { color: var(--muted); font-size: 14px; margin: 8px 0 30px; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; text-align: left; }
.review-card { background: var(--cream-card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.review-card .rc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.review-card .rc-stars { color: var(--gold); letter-spacing: 1px; font-size: 15px; }
.review-card .rc-date { color: var(--muted); font-size: 12px; }
.review-card .rc-text { color: var(--ink); font-size: 14px; line-height: 1.55; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review-card .rc-author { color: var(--muted); font-size: 13px; margin: 0; }
.reviews-cta { margin-top: 28px; }
.reviews-cta a { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); color: var(--navy); font-weight: 700; padding: 12px 22px; border-radius: 12px; text-decoration: none; background: #fff; transition: background .12s ease; }
.reviews-cta a:hover { background: var(--cream); }

/* ---------- STOPKA (jak shop.michapupila.pl) ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.85); margin-top: 28px; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; transition: color .12s ease; }
.site-footer a:hover { color: #fff; }
.foot-inner { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* newsletter */
.foot-news { text-align: center; padding: 44px 22px 38px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot-news h3 { color: #fff; font-size: clamp(22px, 4vw, 30px); margin: 0 0 10px; }
.foot-news p.n-lead { color: rgba(255,255,255,.8); max-width: 56ch; margin: 0 auto 18px; font-size: 15px; line-height: 1.55; }
.foot-news p.n-lead .hl { color: var(--gold); font-weight: 700; }
.news-form { display: flex; gap: 10px; max-width: 540px; margin: 0 auto; flex-wrap: wrap; }
.news-form input { flex: 1; min-width: 200px; padding: 14px 16px; border-radius: 12px; border: 0; font-size: 15px; outline: none; }
.news-form button { background: var(--gold); color: var(--navy); font-weight: 800; border: 0; border-radius: 12px; padding: 14px 26px; cursor: pointer; }
.news-form button:hover { filter: brightness(1.05); }
.news-msg { display: none; max-width: 540px; margin: 12px auto 0; font-size: 13px; font-weight: 700; }
.news-msg.ok { display: block; color: #9be7b4; }
.news-msg.err { display: block; color: #ffb3bd; }
.news-consent { color: rgba(255,255,255,.55); font-size: 12px; max-width: 540px; margin: 12px auto 0; line-height: 1.5; }
.news-consent a { color: rgba(255,255,255,.75); text-decoration: underline; }

/* kolumny */
.foot-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 32px; padding: 46px 22px; }
.foot-brand img { height: 44px; width: auto; margin-bottom: 16px; }
.foot-brand p { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.65; max-width: 34ch; margin: 0 0 12px; }
.foot-brand .company { font-size: 12px; color: rgba(255,255,255,.5); }
.foot-col h4 { color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 16px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col ul a { font-size: 14px; }
.foot-contact .crow { display: flex; gap: 9px; margin-bottom: 12px; font-size: 14px; align-items: flex-start; color: rgba(255,255,255,.8); }
.foot-contact .crow .ic { color: var(--gold); flex: 0 0 auto; }

/* dolny pasek */
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.foot-bottom-inner { max-width: 1080px; margin: 0 auto; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-bottom .copy { font-size: 12px; color: rgba(255,255,255,.65); }
.foot-rating { font-size: 13px; color: rgba(255,255,255,.85); display: inline-flex; align-items: center; gap: 8px; }
.foot-rating .stars { color: var(--gold); letter-spacing: 1px; }
.foot-rating b { color: #fff; }
.foot-pay { height: 30px; width: auto; border-radius: 6px; }

/* ---------- STRONA REGULAMINU ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 40px 22px 64px; color: var(--ink); }
.legal-back { display: inline-block; color: var(--navy); font-weight: 700; text-decoration: none; margin-bottom: 18px; }
.legal-back:hover { text-decoration: underline; }
.legal h1 { color: var(--navy); font-size: clamp(23px, 4vw, 34px); margin: 0 0 6px; }
.legal-meta { color: var(--muted); font-size: 13px; margin: 0 0 26px; }
.legal h2 { color: var(--navy); font-size: 19px; margin: 28px 0 10px; }
.legal ol, .legal ul { padding-left: 22px; margin: 0 0 10px; }
.legal li { margin: 0 0 8px; line-height: 1.6; font-size: 15px; }
.legal ul { margin-top: 8px; }
.legal a { color: var(--navy); }
.legal-foot { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (max-width: 760px) {
    .foot-cols { grid-template-columns: 1fr 1fr; gap: 26px; }
    .foot-brand { grid-column: 1 / -1; }
    .foot-bottom-inner { justify-content: center; text-align: center; }
}
@media (max-width: 460px) { .foot-cols { grid-template-columns: 1fr; } }

/* ---------- MODAL (bramki / nagroda) — zaciemnia całą stronę ---------- */
.overlay {
    position: fixed; inset: 0; z-index: 50; display: none;
    background: rgba(14,24,42,.82); backdrop-filter: blur(5px);
    align-items: center; justify-content: center; padding: 20px; overflow-y: auto;
}
.overlay.show { display: flex; animation: fade .25s ease; }
.close--light { position: absolute; top: -6px; right: 0; background: none; border: 0; font-size: 34px; line-height: 1; color: rgba(255,255,255,.8); cursor: pointer; }
.close--light:hover { color: #fff; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.prize-card {
    background: var(--cream-card); border-radius: 24px; padding: 34px 28px;
    width: min(440px, 100%); text-align: center; position: relative;
    box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); animation: pop .4s ease;
}
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.prize-card .close { position: absolute; top: 12px; right: 16px; background: none; border: 0; font-size: 26px; color: #c4b89c; cursor: pointer; line-height: 1; }
.prize-emoji { font-size: 84px; line-height: 1; margin-bottom: 6px; }
.prize-card h3 { font-size: 26px; color: var(--navy); margin: 0 0 4px; text-transform: uppercase; }
.prize-name { font-size: 21px; font-weight: 800; color: var(--txt); margin-bottom: 16px; }
.coupon-box { display: inline-flex; align-items: center; gap: 12px; background: #fdf1d8; border: 2px dashed var(--gold); border-radius: 13px; padding: 13px 18px; margin: 2px 0 14px; }
.coupon-box code { font-size: 22px; font-weight: 900; letter-spacing: 2px; color: var(--navy); }
.copy-btn { background: var(--navy); color: #fff; border: 0; padding: 8px 13px; border-radius: 9px; font-weight: 800; cursor: pointer; font-size: 13px; }
.copy-btn.copied { background: var(--ok); }
.instruction { color: var(--muted); font-size: 14px; max-width: 38ch; margin: 0 auto 20px; }

.spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; }
.spinner--navy { border-color: rgba(23,59,102,.25); border-top-color: var(--navy); }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

@media (max-width: 430px) {
    .steps { grid-template-columns: 1fr; }
    .trust { gap: 14px; }
    .pick-hint { font-size: 13px; padding: 7px 14px; }
}
