/* ===================================================
   orizdrap.pl — stylesheet
   Paleta: fioletowo-złota
   =================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --violet: #6B2D8C;
  --violet-mid: #8B5CF6;
  --violet-light: #F5F0FA;
  --violet-border: #D8B4FE;
  --gold: #D4AF37;
  --gold-light: #FDF8E7;
  --gold-border: #F0D97A;
  --gradient-cta: linear-gradient(135deg, #6B2D8C, #8B5CF6);
  --gradient-gold: linear-gradient(135deg, #c9952a, #f0c84a, #D4AF37);
  --gradient-hero: linear-gradient(135deg, #2D1B4E 0%, #6B2D8C 60%, #8B5CF6 100%);
  --dark: #1a0a2e;
  --mid: #4B5563;
  --muted: #9CA3AF;
  --white: #fff;
  --cream: #faf9fc;
  --border: #E9D5FF;
  --radius: 14px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--white);
  color: #1a0a2e;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ===================================================
   HEADER
   =================================================== */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 12px rgba(107,45,140,0.08);
}
.logo {
  font-size: 19px; font-weight: 800; color: var(--dark);
  text-decoration: none; letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 10px;
}
.logo-img { height: 26px; width: auto; }
.logo-sep { color: var(--border); font-weight: 300; }
.logo-dot { width: 10px; height: 10px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }

nav { display: flex; align-items: center; gap: 24px; }
nav a { font-size: 14px; font-weight: 600; color: var(--mid); text-decoration: none; transition: color 0.2s; }
nav a:hover { color: var(--violet); }
.nav-cta {
  background: var(--gradient-cta); color: #fff !important;
  padding: 9px 20px; border-radius: 50px; font-size: 13px; font-weight: 700;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.85; }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: all 0.25s; }

@media (max-width: 768px) {
  header { padding: 0 20px; }
  .burger { display: flex; }
  nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0; padding: 12px 0 20px;
    border-bottom: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  nav.open { display: flex; }
  nav a { padding: 13px 24px; font-size: 15px; }
  .nav-cta { margin: 8px 24px 0; border-radius: 12px; text-align: center; }
}

/* ===================================================
   HERO + ZDRAPKA
   =================================================== */
.hero {
  background:
    linear-gradient(135deg, rgba(45,27,78,0.82) 0%, rgba(107,45,140,0.75) 60%, rgba(139,92,246,0.70) 100%),
    url('/images/hero-orizdrap.webp') center center / cover no-repeat;
  padding: 64px 40px 72px;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.hero-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto;
  gap: 56px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,175,55,0.2); border: 1px solid rgba(212,175,55,0.5);
  color: var(--gold); font-size: 11px; font-weight: 800;
  letter-spacing: 1.2px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 50px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 900;
  line-height: 1.18; letter-spacing: -0.5px; margin-bottom: 16px;
}
.hero h1 .accent { color: var(--gold); }
.hero-subtitle { font-size: 1rem; color: rgba(255,255,255,0.8); margin-bottom: 28px; max-width: 460px; }

/* USP bar */
.usp-bar {
  display: flex; gap: 24px; margin-top: 36px; flex-wrap: wrap;
}
.usp-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 700; color: rgba(255,255,255,0.9);
}
.usp-dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }

/* Zdrapka */
.scratch-col { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.scratch-hint {
  font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.8);
  margin-bottom: 12px; letter-spacing: 0.3px; text-align: center;
}
.scratch-wrapper { position: relative; }
.scratch-card {
  width: 260px; height: 340px; position: relative;
  border-radius: 20px; overflow: hidden; cursor: crosshair;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 3px rgba(212,175,55,0.4);
}
.scratch-canvas { position: absolute; top: 0; left: 0; z-index: 2; border-radius: 20px; touch-action: none; }
.scratch-content {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 20px; background: var(--violet-light);
}
.scratch-content img { width: 130px; height: 130px; object-fit: contain; margin-bottom: 12px; border-radius: 10px; }
.scratch-prize-name { font-weight: 800; color: var(--violet); font-size: 1rem; margin-bottom: 4px; text-align: center; }
.scratch-prize-desc { color: var(--mid); font-size: 0.75rem; text-align: center; }

/* Komunikat po zdrapaniu */
.scratch-revealed-msg {
  display: none; margin-top: 16px; text-align: center;
  background: rgba(212,175,55,0.15); border: 1px solid rgba(212,175,55,0.4);
  border-radius: 12px; padding: 14px 20px; color: #fff; max-width: 280px;
}
.scratch-revealed-msg strong { color: var(--gold); display: block; font-size: 1rem; margin-bottom: 4px; }
.scratch-revealed-msg span { font-size: 0.8rem; opacity: 0.85; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .scratch-col { order: -1; }
  .hero { padding: 48px 20px 56px; }
  .scratch-card { width: 240px; height: 320px; }
}

/* ===================================================
   FORMULARZ REJESTRACJI
   =================================================== */
.form-section {
  background: var(--violet-light);
  padding: 72px 40px;
  display: none; /* pokazuje się po zdrapaniu */
}
.form-section.visible { display: block; animation: fadeSlideIn 0.5s ease; }
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.form-main-section { display: block !important; background: var(--cream); padding: 72px 40px; }

.form-section-inner {
  max-width: 860px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 48px; align-items: start;
}
.form-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--violet); margin-bottom: 14px;
}
.form-section-inner h2 { font-size: 1.5rem; font-weight: 900; margin-bottom: 8px; }
.form-prize-badge {
  display: inline-block; background: var(--gold-light); border: 1px solid var(--gold-border);
  color: #7a5c00; font-size: 0.82rem; font-weight: 700;
  padding: 8px 16px; border-radius: 50px; margin-bottom: 20px;
}
.form-steps { display: flex; flex-direction: column; gap: 14px; }
.form-step { display: flex; align-items: flex-start; gap: 12px; }
.step-num {
  width: 30px; height: 30px; background: var(--gradient-cta); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.82rem; flex-shrink: 0;
}
.step-text { font-size: 0.85rem; color: var(--mid); padding-top: 5px; }
.step-text strong { color: var(--dark); display: block; margin-bottom: 2px; }

.reg-card {
  background: #fff; border-radius: var(--radius);
  padding: 32px 28px; box-shadow: 0 6px 32px rgba(107,45,140,0.1);
  border: 1px solid var(--border);
}
.reg-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.reg-card > p { font-size: 0.82rem; color: var(--muted); margin-bottom: 20px; }

.step-indicator { display: flex; gap: 8px; margin-bottom: 20px; }
.step-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: all 0.3s; }
.step-dot.active { background: var(--violet); width: 22px; border-radius: 4px; }

.form-group { margin-bottom: 13px; }
.form-group label { display: block; font-size: 0.79rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.form-group input {
  width: 100%; padding: 11px 13px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.9rem; color: var(--dark); background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-group input:focus { border-color: var(--violet-mid); box-shadow: 0 0 0 3px rgba(139,92,246,0.12); }
.form-group input::placeholder { color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.submit-btn {
  width: 100%; padding: 13px;
  background: var(--gradient-cta); color: #fff;
  border: none; border-radius: 50px;
  font-size: 0.95rem; font-weight: 800; cursor: pointer;
  margin-top: 8px; transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 18px rgba(107,45,140,0.3);
}
.submit-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.step2-hidden { display: none; }
.sms-helper { font-size: 0.75rem; color: var(--muted); text-align: center; margin-top: 8px; }

.status-msg { border-radius: var(--radius-sm); padding: 11px 14px; font-size: 0.83rem; font-weight: 600; margin-top: 12px; display: none; }
.status-msg.error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.status-msg.info { background: var(--violet-light); color: var(--violet); border: 1px solid var(--border); }

.sukces-box { display: none; text-align: center; padding: 20px 0; }
.sukces-icon { margin-bottom: 12px; }
.sukces-box h4 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.sukces-box p { font-size: 0.85rem; color: var(--mid); line-height: 1.6; }

.trust-note {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 13px; font-size: 0.74rem; color: var(--mid);
  margin-top: 20px; display: flex; align-items: flex-start; gap: 8px;
}

@media (max-width: 768px) {
  .form-section, .form-main-section { padding: 52px 20px; }
  .form-section-inner { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .reg-card { padding: 24px 18px; }
}

/* ===================================================
   SEKCJA "CO ZYSKUJESZ"
   =================================================== */
.benefits-section { padding: 72px 40px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--violet); margin-bottom: 14px; display: block; }
.section-title { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 900; margin-bottom: 12px; letter-spacing: -0.3px; }
.section-subtitle { font-size: 0.95rem; color: var(--mid); max-width: 520px; margin-bottom: 44px; line-height: 1.6; }

.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; transition: box-shadow 0.2s, transform 0.2s;
}
.benefit-card:hover { box-shadow: 0 8px 32px rgba(107,45,140,0.1); transform: translateY(-2px); }
.benefit-icon {
  width: 50px; height: 50px; border-radius: 13px; background: var(--violet-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--violet); margin-bottom: 16px;
}
.benefit-card h4 { font-size: 0.92rem; font-weight: 800; margin-bottom: 6px; }
.benefit-card p { font-size: 0.82rem; color: var(--mid); line-height: 1.55; }

@media (max-width: 900px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .benefits-grid { grid-template-columns: 1fr; } benefits-section { padding: 52px 20px; } }

/* ===================================================
   KATALOG IFRAME
   =================================================== */
.catalogue-section { padding: 64px 40px; background: var(--violet-light); }
.catalogue-section .section-inner { max-width: 1100px; margin: 0 auto; }
.catalogue-title { font-size: 1.3rem; font-weight: 900; margin-bottom: 8px; }
.catalogue-subtitle { font-size: 0.88rem; color: var(--mid); margin-bottom: 24px; }
.catalogue-iframe-wrap {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 8px 32px rgba(107,45,140,0.12);
  border: 1px solid var(--border);
}
.catalogue-iframe-wrap iframe { display: block; width: 100%; height: 520px; border: none; }

@media (max-width: 768px) { .catalogue-section { padding: 48px 20px; } .catalogue-iframe-wrap iframe { height: 340px; } }

/* ===================================================
   FAQ
   =================================================== */
.faq-section { padding: 72px 40px; }
.faq-list { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s; }
.faq-item.open { border-color: var(--violet-mid); }
.faq-question {
  padding: 18px 22px; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-size: 0.93rem; font-weight: 700; gap: 14px; user-select: none;
}
.faq-arrow {
  width: 26px; height: 26px; border-radius: 50%; background: var(--violet-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform 0.3s, background 0.2s; color: var(--violet);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); background: var(--violet); color: #fff; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer-inner { padding: 0 22px 20px; font-size: 0.87rem; color: var(--mid); line-height: 1.7; }

@media (max-width: 768px) { .faq-section { padding: 52px 20px; } }

/* ===================================================
   BLOKADA — już zarejestrowana
   =================================================== */
.already-registered {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
  background: var(--gradient-hero); padding: 60px 20px; text-align: center;
}
.already-registered-box {
  background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 20px;
  padding: 48px 40px; max-width: 480px; color: #fff;
}
.already-registered-box h2 { font-size: 1.6rem; font-weight: 900; margin-bottom: 16px; }
.already-registered-box p { font-size: 0.9rem; color: rgba(255,255,255,0.85); line-height: 1.7; margin-bottom: 12px; }
.already-registered-box .prize-highlight {
  background: rgba(212,175,55,0.2); border: 1px solid rgba(212,175,55,0.5);
  border-radius: 12px; padding: 14px 18px; margin: 16px 0;
  color: var(--gold); font-weight: 700; font-size: 0.95rem;
}
.btn-go-shop {
  display: inline-block; background: var(--gradient-gold); color: var(--dark);
  border: none; border-radius: 50px; padding: 14px 32px;
  font-size: 0.95rem; font-weight: 800; text-decoration: none;
  margin-top: 20px; cursor: pointer; transition: opacity 0.2s;
}
.btn-go-shop:hover { opacity: 0.88; }

/* ===================================================
   CONFETTI
   =================================================== */
.confetti-piece {
  position: fixed; top: -10px; width: 8px; height: 14px;
  z-index: 9000; pointer-events: none;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ===================================================
   STOPKA
   =================================================== */
footer {
  background: var(--dark); color: rgba(255,255,255,0.5);
  padding: 40px 40px 28px; font-size: 0.78rem; line-height: 1.8;
}
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-brand .logo-footer { color: #fff; font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; text-decoration: none; }
.footer-brand p { font-size: 0.78rem; max-width: 260px; }
.footer-col h5 { color: #fff; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 12px; }
.footer-col a { display: block; color: rgba(255,255,255,0.5); text-decoration: none; margin-bottom: 7px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.73rem; text-align: center; }
.footer-bottom p { margin-bottom: 4px; }

@media (max-width: 768px) {
  footer { padding: 36px 20px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .footer-brand p { max-width: 100%; }
  .footer-brand .logo-footer { justify-content: center; }
  .footer-col a { display: inline-block; margin: 0 auto 7px; }
}

/* ===================================================
   COOKIE BANNER (prosty)
   =================================================== */
.cookie-simple {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%) translateY(80px);
  width: calc(100% - 32px); max-width: 560px;
  background: var(--dark); color: rgba(255,255,255,0.85);
  border-radius: 14px; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  z-index: 9999; box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: cookieSlide 0.4s 0.5s ease forwards;
  border: 1px solid rgba(212,175,55,0.3);
}
@keyframes cookieSlide { to { transform: translateX(-50%) translateY(0); } }
.cookie-simple p { font-size: 0.79rem; line-height: 1.5; flex: 1; }
.cookie-simple a { color: var(--gold); text-decoration: underline; }
.cookie-simple button {
  background: var(--gradient-cta); color: #fff; border: none;
  border-radius: 50px; padding: 8px 20px; font-size: 0.8rem;
  font-weight: 700; cursor: pointer; white-space: nowrap; font-family: inherit;
}
@media (max-width: 480px) { .cookie-simple { flex-direction: column; align-items: stretch; } .cookie-simple button { width: 100%; } }

/* ===================================================
   SCROLL TO TOP
   =================================================== */
#scrollTopBtn {
  position: fixed; bottom: 24px; right: 20px; z-index: 998;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient-cta); color: #fff;
  border: none; font-size: 1.2rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 14px rgba(107,45,140,0.35);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
#scrollTopBtn.visible { opacity: 1; visibility: visible; transform: translateY(0); }

@media (max-width: 768px) { .benefits-section, .faq-section { padding: 52px 20px; } }
