/* ============================================================================
   SŁAWA: 536 – ŚWIT POPIOŁÓW | Style Strony Prezentacyjnej & Poradnika
   Luksusowy Design AAA, 100% Zero-Overflow, Perfekcyjne Kadrowanie Obrazów
   ============================================================================ */

#landing-page-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  background: #0d0704;
  background: radial-gradient(circle at top center, #261309 0%, #0d0704 60%, #050201 100%);
  color: #e2d7c7;
  font-family: var(--font-slavic), Georgia, serif;
  z-index: 1000;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

#landing-page-screen.hidden {
  display: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#landing-page-screen * {
  box-sizing: border-box !important;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ============================================================================
   1. GÓRNA NAWIGACJA (Luksusowy Header Słowiański)
   ============================================================================ */

.landing-nav {
  position: sticky;
  top: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  padding-top: max(8px, env(safe-area-inset-top));
  padding-bottom: 8px;
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
  background: rgba(18, 10, 6, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--gold-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  z-index: 500;
  box-sizing: border-box;
}

.landing-nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-bottom: 4px;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.95rem, 3.5vw, 1.25rem);
  font-weight: 900;
  color: var(--gold-bright);
  text-decoration: none;
  letter-spacing: 1.5px;
  text-shadow: 0 0 12px rgba(212, 155, 66, 0.6);
  white-space: nowrap;
}

.landing-nav-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.landing-nav-actions .btn-slavic {
  margin: 0;
  padding: 6px 12px;
  font-size: 0.76rem;
  letter-spacing: 0.5px;
  min-height: 32px;
  white-space: nowrap;
}

.landing-nav-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-top: 4px;
}

.landing-nav-bar::-webkit-scrollbar {
  display: none;
}

.landing-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 14px;
  background: rgba(36, 20, 11, 0.85);
  border: 1px solid rgba(212, 155, 66, 0.35);
  color: #e2d7c7;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.landing-nav-link:hover,
.landing-nav-link:active {
  background: linear-gradient(180deg, #78350f 0%, #451a03 100%);
  color: #fff;
  border-color: var(--gold-bright);
  box-shadow: 0 0 10px rgba(212, 155, 66, 0.4);
}

/* ============================================================================
   2. HERO BANNER & OBRAZ GŁÓWNY (ZŁOTE KADROWANIE)
   ============================================================================ */

.landing-hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px 10px;
  background: radial-gradient(circle at center, rgba(30, 15, 8, 0.9) 0%, rgba(5, 2, 1, 0.98) 100%);
  border-bottom: 2px solid var(--gold-dark);
  box-sizing: border-box;
  overflow: hidden;
}

.landing-hero-content {
  width: 100%;
  max-width: 820px;
  background: rgba(13, 7, 4, 0.88);
  padding: 16px 12px;
  border-radius: 10px;
  border: 1px solid rgba(212, 155, 66, 0.45);
  box-shadow: 0 15px 40px rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  box-sizing: border-box;
  margin: 0 auto;
}

/* Ramka Obrazu Głównego */
.landing-hero-cover-wrap {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--gold-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), inset 0 0 15px rgba(212, 155, 66, 0.2);
  margin: 0 auto 16px auto;
  position: relative;
  background: #080402;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 280px;
}

.landing-hero-cover-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 280px;
  display: block;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 6px;
}

.landing-hero-cover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(180deg, transparent 0%, rgba(13, 7, 4, 0.9) 100%);
  pointer-events: none;
}

.landing-hero-badge {
  display: inline-block;
  background: rgba(220, 38, 38, 0.25);
  border: 1px solid #ef4444;
  color: #fca5a5;
  padding: 3px 10px;
  border-radius: 16px;
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.landing-hero-title {
  font-size: clamp(1.35rem, 5vw, 2.6rem);
  color: var(--gold-bright);
  margin: 0 0 8px 0;
  letter-spacing: 1px;
  line-height: 1.15;
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
  word-break: break-word;
}

.landing-hero-subtitle {
  font-size: clamp(0.84rem, 2.2vw, 1.02rem);
  color: #e2d7c7;
  line-height: 1.45;
  margin: 0 auto 14px auto;
  max-width: 680px;
  word-break: break-word;
}

.landing-hero-ctas {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 12px;
}

.landing-cta-btn {
  padding: 10px 16px;
  font-size: 0.86rem;
  margin: 2px;
  box-sizing: border-box;
  text-align: center;
}

.landing-pill-grid {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 4px;
}

.landing-pill {
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(212, 155, 66, 0.35);
  padding: 4px 8px;
  border-radius: 14px;
  font-size: 0.72rem;
  color: #fde047;
  white-space: nowrap;
}

/* ============================================================================
   3. SEKCJE ZAWARTOŚCI & KARTY
   ============================================================================ */

.landing-section {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 36px 12px;
  box-sizing: border-box;
  overflow-x: hidden;
}

.landing-section-header {
  text-align: center;
  margin-bottom: 24px;
  width: 100%;
}

.landing-section-tag {
  color: var(--gold-primary);
  font-size: 0.76rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.landing-section-title {
  font-size: clamp(1.25rem, 4vw, 2rem);
  color: var(--gold-bright);
  margin: 0 0 6px 0;
  line-height: 1.2;
  word-break: break-word;
}

.landing-section-desc {
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto;
  font-size: 0.86rem;
  line-height: 1.45;
  word-break: break-word;
}

/* Cechy Gry */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  width: 100%;
}

.feature-card {
  background: rgba(24, 14, 9, 0.8);
  border: 1px solid rgba(140, 88, 26, 0.4);
  border-radius: 6px;
  padding: 14px;
  box-sizing: border-box;
  width: 100%;
}

.feature-icon-box {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.feature-card-title {
  color: var(--gold-bright);
  font-size: 1rem;
  margin: 0 0 4px 0;
  word-break: break-word;
}

.feature-card-text {
  color: #cbd5e1;
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 0;
  word-break: break-word;
}

/* Showcase Row */
.showcase-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
  width: 100%;
}

.showcase-row.reverse {
  grid-template-columns: 1.1fr 0.9fr;
  direction: rtl;
}

.showcase-row.reverse > * {
  direction: ltr;
}

.showcase-img-wrap {
  border-radius: 6px;
  overflow: hidden;
  border: 1.5px solid rgba(212, 155, 66, 0.4);
  box-shadow: 0 8px 25px rgba(0,0,0,0.8);
  width: 100%;
}

.showcase-img-wrap img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Rejestracja */
.landing-register-box {
  background: rgba(18, 10, 6, 0.92);
  border: 1px solid var(--gold-primary);
  border-radius: 8px;
  padding: 18px 12px;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 12px 35px rgba(0,0,0,0.85);
  box-sizing: border-box;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  width: 100%;
}

.faq-item {
  background: rgba(24, 14, 9, 0.7);
  border: 1px solid rgba(140, 88, 26, 0.35);
  border-radius: 6px;
  padding: 12px;
  box-sizing: border-box;
}

.faq-question {
  color: var(--gold-bright);
  font-size: 0.88rem;
  font-weight: bold;
  margin-bottom: 4px;
  word-break: break-word;
}

.faq-answer {
  color: #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.38;
  margin: 0;
  word-break: break-word;
}

/* Footer */
.landing-footer {
  border-top: 1px solid rgba(140, 88, 26, 0.3);
  background: #080402;
  padding: 20px 12px;
  text-align: center;
  font-size: 0.76rem;
  color: #94a3b8;
  width: 100%;
}

/* ============================================================================
   4. EKSTREMALNA MOBILNOŚĆ: SMARTFON PIONOWY (<= 768px)
   ============================================================================ */

@media (max-width: 768px) {
  .landing-nav {
    padding-top: max(50px, env(safe-area-inset-top, 50px)) !important;
    padding-bottom: 8px;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .landing-logo {
    font-size: 0.92rem;
    letter-spacing: 0.5px;
  }

  .landing-hero {
    padding: 14px 6px;
  }

  .landing-hero-content {
    padding: 12px 8px;
  }

  .landing-hero-cover-wrap {
    max-height: 200px;
  }

  .landing-hero-cover-img {
    max-height: 200px;
  }

  .landing-hero-title {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }

  .landing-hero-subtitle {
    font-size: 0.78rem;
    line-height: 1.35;
    margin-bottom: 10px;
  }

  .landing-hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 4px;
  }

  .landing-cta-btn {
    width: 100%;
    margin: 2px 0;
    font-size: 0.8rem;
    padding: 8px 10px;
  }

  .showcase-row,
  .showcase-row.reverse {
    grid-template-columns: 1fr;
    gap: 14px;
    direction: ltr;
    margin-bottom: 20px;
  }

  .landing-section {
    padding: 24px 6px;
  }

  .landing-register-box {
    padding: 12px 8px;
  }

  .landing-register-box > div:first-child {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  #guide .feature-card {
    padding: 10px 8px;
  }

  #guide ul {
    font-size: 0.78rem !important;
    line-height: 1.5 !important;
  }
}

/* ============================================================================
   5. EKSTREMALNA MOBILNOŚĆ: SMARTFON POZIOMY (Landscape <= 540px)
   ============================================================================ */

@media (orientation: landscape) and (max-height: 540px) {
  .landing-nav {
    padding: 4px 10px;
  }

  .landing-hero {
    padding: 10px 6px;
  }

  .landing-hero-content {
    padding: 10px 12px;
  }

  .landing-hero-cover-wrap {
    max-height: 160px;
  }

  .landing-hero-cover-img {
    max-height: 160px;
  }

  .landing-hero-title {
    font-size: 1.25rem;
    margin-bottom: 4px;
  }

  .landing-hero-subtitle {
    font-size: 0.74rem;
    line-height: 1.28;
    margin-bottom: 8px;
  }

  .landing-hero-ctas {
    flex-direction: row;
    justify-content: center;
    gap: 4px;
  }

  .landing-cta-btn {
    font-size: 0.72rem;
    padding: 5px 8px;
    margin: 0;
  }

  .landing-section {
    padding: 18px 6px;
  }

  .showcase-row,
  .showcase-row.reverse {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}
