/* ========================================
   MKaroni — Design System & Styles
   Editorial Warm Gourmet
   ======================================== */

/* ---- Lokalna czcionka Holy Ravioli NF ---- */
@font-face {
  font-family: 'Holy Ravioli NF';
  src: url('../assets/fonts/Holy Ravioli NF/HolyRavioliNF.woff') format('woff'),
       url('../assets/fonts/Holy Ravioli NF/HolyRavioliNF.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---- 1. CSS Custom Properties ---- */
:root {
  /* Colors — Warm Gourmet Espresso Palette */
  --bg-primary: #1A1512;        /* Deep espresso */
  --bg-secondary: #221C18;      /* Roasted chestnut */
  --bg-elevated: #2A231E;       /* Warm brown */
  --bg-glass: rgba(26, 21, 18, 0.82);
  --bg-glass-light: rgba(250, 246, 240, 0.06);
  --bg-cream: #FAF6F0;          /* Cream white for light accents */

  --text-primary: #FAF6F0;      /* Cream white */
  --text-secondary: #B8A99A;    /* Warm muted */
  --text-muted: #7A6B5D;        /* Espresso muted */
  --text-accent: #D4A745;       /* Olive gold */

  --accent-terracotta: #C8522C; /* Main accent - terracotta/paprika */
  --accent-gold: #D4A745;       /* Gold olive oil */
  --accent-sage: #7B9E87;       /* Sage/rosemary green */
  --accent-warm: #B5623A;       /* Warm clay */

  --border-subtle: rgba(200, 150, 100, 0.1);
  --border-glow: rgba(200, 82, 44, 0.3);  /* Terracotta glow */

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --fs-hero: clamp(2.8rem, 12vw, 10rem);
  --fs-h1: clamp(2.4rem, 5.5vw, 4.5rem);
  --fs-h2: clamp(1.8rem, 3.2vw, 2.8rem);
  --fs-h3: clamp(1.3rem, 2.2vw, 1.9rem);
  --fs-body: clamp(0.95rem, 1.1vw, 1.1rem);
  --fs-small: 0.875rem;
  --fs-caption: 0.75rem;
  --fs-mono: 0.8rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-2xl: 12rem;

  /* Animation - smoother 2026 curves */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);  /* smoother out */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Layout */
  --nav-height: 72px;
  --container-max: 1280px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
}

/* ---- 2. Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

::selection {
  background: var(--accent-terracotta);
  color: var(--bg-primary);
}

/* Grain/Noise Texture Overlay */
.grain-overlay {
  position: relative;
  isolation: isolate;
}
.grain-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ---- 3. Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text-secondary);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-sage);
}

/* ---- 4. Layout & Animations ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.section {
  padding: var(--space-2xl) 0;
}

/* Reading progress bar - pure CSS scroll-driven */
@supports (animation-timeline: scroll()) {
  .reading-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-terracotta), var(--accent-gold));
    width: 100%;
    transform-origin: left;
    animation: progress-grow linear;
    animation-timeline: scroll();
    z-index: 1001;
  }
}

@keyframes progress-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Staggered reveal animations - zoptymalizowane pod telefony (GPU) */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: transform, opacity; /* Przenosi element na warstwę GPU zapobiegając klatkowaniu przy pierwszym scrollu */
}
.reveal-up.in-view, .reveal-up.revealed { 
  opacity: 1; 
  transform: translateY(0); 
  will-change: auto; /* Zwalnia pamięć GPU po zakończeniu animacji */
}
.reveal-up.delay-1 { transition-delay: 0.1s; }
.reveal-up.delay-2 { transition-delay: 0.2s; }
.reveal-up.delay-3 { transition-delay: 0.3s; }
.reveal-up.delay-4 { transition-delay: 0.4s; }

/* Smooth image hover parallax */
.parallax-hover {
  transition: transform 0.6s var(--ease-out);
}
.parallax-hover:hover {
  transform: scale(1.04) translateY(-4px);
}

/* ---- 5. Components ---- */

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--accent-terracotta), var(--accent-warm));
  color: var(--bg-cream);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: all 0.3s var(--ease-out);
  width: fit-content;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 82, 44, 0.3);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: var(--fs-caption);
  border-radius: 100px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem;
  background: transparent;
  border: 1px solid var(--border-glow);
  color: var(--accent-terracotta);
  border-radius: 100px;
  transition: all 0.3s var(--ease-out);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.btn-outline:hover {
  background: var(--accent-terracotta);
  color: var(--bg-primary);
  border-color: var(--accent-terracotta);
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px;
  background: var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.bento-cell {
  background: var(--bg-elevated);
  padding: 1.15rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4rem;
}
.bento-cell .bento-label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  width: 100%;
}
.bento-cell .bento-value {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  color: var(--text-primary);
  text-align: center;
  width: 100%;
  line-height: 1.2;
}

/* Dedykowane zmniejszenie czcionki dla trudności (np. 'Średniozaawansowany' / 'Intermediate') */
.bento-cell-diff .bento-value {
  font-size: clamp(0.78rem, 1.1vw, 0.96rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  word-break: normal;
}

/* Ad Slot styles */
.ad-slot {
  min-height: 100px;
  margin: 3rem 0;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid var(--border-subtle);
}
.ad-label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.ad-native-card {
  position: relative;
  border-color: var(--border-glow);
}
.ad-google-slot {
  background: transparent;
  border: none;
  padding: 1.5rem 1rem;
  box-sizing: border-box;
  transition: all 0.3s var(--ease-out);
}
.ad-google-slot .ad-google-box {
  background: rgba(34, 28, 24, 0.55);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-out);
}
.ad-google-slot:hover .ad-google-box {
  border-color: rgba(200, 150, 100, 0.35);
}
.ad-google-slot ins.adsbygoogle {
  background: transparent;
}
.ad-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}
.ad-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 60px;
  z-index: 998;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: center;
  align-items: center;
}
.ad-bottom-bar .ad-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
}

/* Premium/Pro blur styles */
.premium-locked {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.premium-locked .premium-content,
.callout-pro-blurred {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
  transition: filter 0.4s ease;
}
.premium-locked .premium-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, transparent 0%, rgba(26,21,18,0.85) 60%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}
.premium-badge {
  background: var(--accent-gold);
  color: var(--bg-primary);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.premium-cta-bar {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  border-radius: 100px;
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 999;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.btn-premium {
  background: linear-gradient(135deg, var(--accent-terracotta), var(--accent-warm));
  color: var(--bg-cream);
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
}

/* ========================================
   MKARONI PRO — Aktywny Użytkownik (.is-pro-member)
   ======================================== */
body.is-pro-member .callout-pro-blurred,
body.is-pro-member .premium-content {
  filter: none !important;
  user-select: auto !important;
  pointer-events: auto !important;
}

body.is-pro-member #proSection,
body.is-pro-member .pro-cta-section,
body.is-pro-member .premium-overlay,
body.is-pro-member .pro-unlock-link,
body.is-pro-member .ad-slot,
body.is-pro-member .premium-cta-bar {
  display: none !important;
}

body.is-pro-member .pro-tag {
  color: #2ecc71 !important;
}

body.is-pro-member .pro-tip-box {
  border-color: rgba(46, 204, 113, 0.35) !important;
  border-top-color: #2ecc71 !important;
  box-shadow: 0 -10px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(46, 204, 113, 0.2) !important;
}

/* Przycisk w navbarze */
.nav-pro-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.95rem;
  background: rgba(212, 167, 69, 0.12);
  border: 1px solid rgba(212, 167, 69, 0.4);
  border-radius: 100px;
  color: var(--accent-gold) !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pro-ravioli-icon {
  width: 15px;
  height: 15px;
  display: inline-block;
  vertical-align: -2px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-pro-btn:hover .pro-ravioli-icon {
  transform: rotate(15deg) scale(1.15);
}

.nav-pro-btn:hover {
  background: var(--accent-gold);
  color: var(--bg-primary) !important;
  box-shadow: 0 0 20px rgba(212, 167, 69, 0.4);
  transform: translateY(-2px);
}

.nav-pro-btn.is-active-pro {
  background: rgba(46, 204, 113, 0.15);
  border-color: #2ecc71;
  color: #2ecc71 !important;
}

/* Skromniejszy, elegancki styl na telefonach (w menu mobilnym) */
.mobile-menu .nav-pro-btn {
  font-family: var(--font-body) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  padding: 0.45rem 1.15rem !important;
  margin: 0.5rem auto 0 !important;
  background: rgba(212, 167, 69, 0.08) !important;
  border: 1px solid rgba(212, 167, 69, 0.28) !important;
  border-radius: 100px !important;
  color: var(--accent-gold) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
  transition: all 0.25s ease !important;
}

.mobile-menu .nav-pro-btn:hover,
.mobile-menu .nav-pro-btn:active {
  background: rgba(212, 167, 69, 0.16) !important;
  border-color: rgba(212, 167, 69, 0.45) !important;
  transform: none !important;
}

.mobile-menu .nav-pro-btn.is-active-pro {
  background: rgba(46, 204, 113, 0.08) !important;
  border-color: rgba(46, 204, 113, 0.35) !important;
  color: #2ecc71 !important;
}

@media (max-width: 768px) {
  .nav-pro-btn {
    font-size: 0.78rem !important;
    padding: 0.28rem 0.75rem !important;
    border-color: rgba(212, 167, 69, 0.25) !important;
    background: rgba(212, 167, 69, 0.06) !important;
    box-shadow: none !important;
  }
}

/* ========================================
   MKARONI PRO — Luxury Modal UI
   ======================================== */
.pro-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  overscroll-behavior: contain;
}

.pro-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pro-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 11, 9, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.pro-modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(135deg, #221C18 0%, #1A1512 100%);
  border: 1px solid rgba(212, 167, 69, 0.35);
  border-top: 1px solid rgba(212, 167, 69, 0.75);
  border-radius: 28px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 167, 69, 0.15);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.pro-modal-card::-webkit-scrollbar {
  width: 6px;
}
.pro-modal-card::-webkit-scrollbar-track {
  background: rgba(250, 246, 240, 0.04);
  border-radius: 10px;
}
.pro-modal-card::-webkit-scrollbar-thumb {
  background: rgba(212, 167, 69, 0.35);
  border-radius: 10px;
}
.pro-modal-card::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

.pro-modal-overlay.is-open .pro-modal-card {
  transform: translateY(0) scale(1);
}

.pro-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(250, 246, 240, 0.05);
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.pro-modal-close:hover {
  background: var(--accent-terracotta);
  border-color: var(--accent-terracotta);
  color: #fff;
  transform: rotate(90deg);
}

.pro-modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pro-badge-gold {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(212, 167, 69, 0.12);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(212, 167, 69, 0.25);
}

.pro-modal-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.pro-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 auto;
}

.pro-pricing-banner {
  background: rgba(250, 246, 240, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.pro-price-tag {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
}

.pro-currency {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--accent-gold);
  font-weight: 500;
  opacity: 0.9;
}

.pro-amount {
  font-family: var(--font-body);
  font-size: 2.15rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.pro-period {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-left: 0.35rem;
}

.pro-cancel-badge {
  display: block;
  font-family: var(--font-body);
  font-size: 0.74rem;
  color: var(--accent-sage);
  margin-top: 0.35rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.pro-perks-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 2rem;
}

.pro-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.pro-perk-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
  line-height: 1.2;
}

.pro-perk-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.pro-perk-item p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.pro-action-box {
  text-align: center;
}

.btn-pro-checkout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--accent-terracotta) 0%, #D4A745 100%);
  box-shadow: 0 10px 28px rgba(200, 82, 44, 0.4);
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
}

.btn-pro-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(200, 82, 44, 0.55), 0 0 20px rgba(212, 167, 69, 0.3);
}

.pro-secure-notice {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
}

.pro-vip-restore {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.pro-vip-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.25s ease;
}

.pro-vip-toggle:hover {
  color: var(--accent-gold);
}

.pro-vip-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.pro-vip-form input {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: 0.6rem 1rem;
  color: var(--text-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.pro-vip-form input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

/* Akordeony dla Already subscribed? oraz VIP Promo Code */
.pro-accordion-wrapper {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.pro-accordion-item {
  background: rgba(250, 246, 240, 0.03);
  border: 1px solid rgba(212, 167, 69, 0.2);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pro-accordion-item:hover {
  border-color: rgba(212, 167, 69, 0.4);
  background: rgba(250, 246, 240, 0.05);
}

.pro-accordion-item.is-open {
  border-color: rgba(212, 167, 69, 0.55);
  background: rgba(250, 246, 240, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.pro-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: transparent;
  border: none;
  color: #D5C7B8;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  font-family: inherit;
}

.pro-accordion-toggle:hover {
  color: #FFFFFF;
}

.pro-accordion-item.is-open .pro-accordion-toggle {
  color: var(--accent-gold);
  border-bottom: 1px solid rgba(212, 167, 69, 0.15);
}

.pro-accordion-icon {
  font-size: 0.7rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--accent-gold);
}

.pro-accordion-item.is-open .pro-accordion-icon {
  transform: rotate(180deg);
}

.pro-accordion-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.3s ease;
  padding: 0 1.25rem;
}

.pro-accordion-item.is-open .pro-accordion-body {
  max-height: 450px;
  opacity: 1;
  padding: 1rem 1.25rem 1.25rem;
}

.pro-vip-form,
.pro-magic-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

.pro-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.pro-form-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.pro-vip-form input,
.pro-magic-form input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(250, 246, 240, 0.08);
  border: 1px solid rgba(212, 167, 69, 0.35);
  border-radius: 14px;
  padding: 0.85rem 1.15rem;
  color: #FAF6F0;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.pro-vip-form input::placeholder,
.pro-magic-form input::placeholder {
  color: rgba(250, 246, 240, 0.45);
}

.pro-vip-form input:focus,
.pro-magic-form input:focus {
  outline: none;
  background: rgba(250, 246, 240, 0.12);
  border-color: var(--accent-gold);
  box-shadow: 0 0 16px rgba(212, 167, 69, 0.25);
}

.btn-form-submit {
  width: 100%;
  padding: 0.95rem 1.4rem;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 100px;
  border: none;
  background: linear-gradient(135deg, var(--accent-terracotta) 0%, #D4A745 100%);
  color: #FFFFFF !important;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(200, 82, 44, 0.35);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
}

.btn-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(200, 82, 44, 0.5), 0 0 20px rgba(212, 167, 69, 0.3);
}

.pro-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(250, 246, 240, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

/* Toast powiadomień */
.pro-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10001;
  background: rgba(34, 28, 24, 0.95);
  border: 1px solid rgba(212, 167, 69, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  padding: 1rem 1.5rem;
  border-radius: 16px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.4s var(--ease-out);
}

.pro-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ========================================
   MKARONI PRO — Member Dashboard Styling
   ======================================== */
.pro-member-status-box {
  background: rgba(34, 28, 24, 0.85);
  border: 1px solid rgba(46, 204, 113, 0.35);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pro-member-status-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
}

.pro-member-status-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pro-member-status-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pro-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.45);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2ecc71;
  white-space: nowrap;
}

.pro-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 10px #2ecc71;
  animation: pulseGreenDot 2s infinite;
}

@keyframes pulseGreenDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.pro-member-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.btn-cancel-stripe {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.4rem;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(200, 82, 44, 0.95) 0%, rgba(212, 167, 69, 0.95) 100%);
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(200, 82, 44, 0.35);
  transition: all 0.3s var(--ease-out);
}

.btn-cancel-stripe:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(200, 82, 44, 0.5);
  color: #fff !important;
}

.pro-stripe-note {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-secondary);
  background: rgba(250, 246, 240, 0.04);
  border: 1px dashed var(--border-subtle);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  text-align: center;
  margin-top: 0.5rem;
}

.pro-stripe-note strong {
  color: var(--accent-gold);
}

.btn-deactivate-pro {
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 100px;
  background: transparent;
  border: 1px solid rgba(200, 150, 100, 0.25);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-deactivate-pro:hover {
  border-color: var(--accent-terracotta);
  color: var(--accent-terracotta);
  background: rgba(200, 82, 44, 0.08);
}

/* Ingredient checklist */
.ingredient-item {
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  padding: 0.85rem 0.4rem !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  font-size: var(--fs-body);
  color: var(--text-secondary);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
  box-sizing: border-box;
}
.ingredient-item input[type="checkbox"] {
  display: inline-block !important;
  appearance: auto;
  -webkit-appearance: auto;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  accent-color: #2ecc71;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}
.ingredient-item .ingredient-name {
  flex: 1 1 auto;
  text-align: left;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.35;
  padding-right: 0.5rem;
}
.ingredient-item .ingredient-amount {
  margin-left: auto !important;
  text-align: right !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.02em;
}
.ingredient-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}
.ingredient-item:has(input:checked),
.ingredient-item.is-checked,
.ingredient-item.checked {
  text-decoration: none !important;
  opacity: 1 !important;
}
.ingredient-item input[type="checkbox"]:checked ~ .ingredient-name,
.ingredient-item input[type="checkbox"]:checked ~ .ingredient-amount,
.ingredient-item:has(input:checked) .ingredient-name,
.ingredient-item:has(input:checked) .ingredient-amount,
.ingredient-item.is-checked .ingredient-name,
.ingredient-item.checked .ingredient-name,
.ingredient-item.is-checked .ingredient-amount,
.ingredient-item.checked .ingredient-amount {
  color: #2ecc71 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}
.ingredient-item .check-icon {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  flex-shrink: 0;
  background: transparent;
}
.ingredient-item:has(input:checked) .check-icon,
.ingredient-item.is-checked .check-icon,
.ingredient-item.checked .check-icon {
  background: #2ecc71 !important;
  border-color: #2ecc71 !important;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.4);
}
.ingredient-item .check-icon svg {
  display: none !important;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s ease;
  color: #12100e;
}
.ingredient-item:has(input:checked) .check-icon svg,
.ingredient-item.is-checked .check-icon svg,
.ingredient-item.checked .check-icon svg {
  display: block !important;
  opacity: 1 !important;
  transform: scale(1) !important;
  stroke: #12100e !important;
}


/* ---- 6. Navigation ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  /* Bez animowania backdrop-filter — animacja blura klatka po klatce zacinała pierwszy scroll na telefonie */
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.navbar .container,
.nav-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.navbar.scrolled {
  background: rgba(26, 21, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-subtle);
}

.nav-logo, .logo {
  justify-self: start;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  transition: color 0.3s var(--ease-out);
  text-decoration: none;
}

.nav-logo span, .logo span {
  color: var(--accent-terracotta);
}

.nav-logo:hover, .logo:hover {
  color: var(--accent-terracotta);
}

.nav-links {
  justify-self: center;
  display: flex;
  gap: clamp(1.2rem, 2vw, 2.5rem);
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  position: relative;
  text-decoration: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-terracotta);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-social, .social-icons {
  justify-self: end;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.nav-social a, .social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.nav-social a:hover, .social-icons a:hover {
  background: var(--accent-terracotta);
  border-color: var(--accent-terracotta);
  color: var(--bg-cream);
  transform: translateY(-2px);
}

.nav-social a svg, .social-icons a svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Language Selector (i18n) — Desktop & Mobile Dropdown
   ========================================================================== */
.lang-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
}

.lang-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 36px;
  padding: 0 0.65rem 0 0.55rem;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
  background: rgba(250, 246, 240, 0.04);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lang-toggle-btn:hover,
.lang-dropdown-wrapper.is-open .lang-toggle-btn {
  background: var(--accent-terracotta);
  border-color: var(--accent-terracotta);
  color: var(--bg-cream);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(200, 82, 44, 0.35);
}

.lang-toggle-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 155px;
  background: rgba(26, 21, 18, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(212, 167, 69, 0.3);
  border-radius: 16px;
  padding: 0.45rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(212, 167, 69, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: all 0.25s var(--ease-out);
  z-index: 1010;
  pointer-events: none;
}

.lang-dropdown-wrapper.is-open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-option-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-option-btn:hover {
  background: rgba(200, 82, 44, 0.18);
  color: var(--text-primary);
}

.lang-option-btn.active {
  background: rgba(212, 167, 69, 0.16);
  color: var(--accent-gold);
  font-weight: 700;
}

.lang-opt-flag {
  font-size: 1.05rem;
  line-height: 1;
}

.lang-opt-name {
  flex: 1;
}

.lang-opt-check {
  font-size: 0.82rem;
  color: var(--accent-gold);
}

/* Mobile Language Dropdown (in mobile menu) — Identyczny z PC, rozwija się do góry */
.mobile-lang-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.75rem;
  z-index: 1010;
}

.mobile-lang-dropdown-wrapper .lang-toggle-btn {
  height: 40px;
  padding: 0 1rem 0 0.85rem;
  font-size: 0.82rem;
  background: rgba(250, 246, 240, 0.08);
}

.mobile-lang-dropdown-wrapper .lang-dropdown-menu {
  top: auto;
  bottom: calc(100% + 10px);
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateY(8px) scale(0.96);
  min-width: 175px;
}

.mobile-lang-dropdown-wrapper.is-open .lang-dropdown-menu {
  transform: translateX(-50%) translateY(0) scale(1);
}

.nav-hamburger, .hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-hamburger span, .hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 1px;
}

.nav-hamburger.active span:nth-child(1),
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.active span:nth-child(2),
.hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3),
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(26, 21, 18, 0.98);
  backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.5vh, 1.75rem);
  padding: 2rem 1rem;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.5vh, 2.1rem);
  color: var(--text-primary);
  transition: color 0.3s;
}

.mobile-menu a:hover { color: var(--accent-terracotta); }

.mobile-menu .mobile-social {
  display: flex;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.mobile-menu .mobile-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: initial; /* kasuje font-size: 2rem */
  transition: all 0.3s ease;
}

.mobile-menu .mobile-social a:hover {
  background: var(--accent-terracotta);
  border-color: var(--accent-terracotta);
  color: var(--bg-cream);
  transform: translateY(-2px);
}

.mobile-menu .mobile-social a svg {
  width: 20px;
  height: 20px;
}

/* ---- 7. Hero Section ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at center, rgba(26, 21, 18, 0.2) 15%, var(--bg-primary) 85%),
    linear-gradient(to bottom, transparent 40%, var(--bg-primary) 100%);
  z-index: 1; /* przyciemnienie tuż nad slajdami */
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 2;
}

/* CSS Slideshow */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slideshow .slide {
  position: absolute;
  inset: -15px; /* Rozszerzenie ucinające białe brzegi wynikające z filtru blur */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  filter: blur(5px) contrast(1.15) saturate(1.2);
  image-rendering: auto;
  animation: heroCrossfade 9s infinite;
  will-change: opacity, transform, filter; /* Wymuszona akceleracja sprzętowa */
}

@media (max-width: 768px) {
  .hero-slideshow .slide {
    /* Na telefonach filtry typu blur/contrast drastycznie zacinają pierwszy scroll (GPU lag). Zmniejszamy/upraszczamy */
    filter: blur(4px) contrast(1.05);
  }
}

@keyframes heroCrossfade {
  0% { opacity: 0; transform: scale(1.15); }
  10% { opacity: 1; transform: scale(1.05); }
  33% { opacity: 1; transform: scale(1.05); }
  43% { opacity: 0; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(1.15); }
}

.hero-slideshow .slide:nth-child(1) { animation-delay: 0s; }
.hero-slideshow .slide:nth-child(2) { animation-delay: 3s; }
.hero-slideshow .slide:nth-child(3) { animation-delay: 6s; }

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  position: relative;
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Efekt Ravioli przez ::before — oryginalna litera trzyma szerokość, Ravioli nakłada się na wierzch */
.interactive-title .hero-letter {
  display: inline-block;
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform;
}

/* Ravioli overlay — absolutnie pozycjonowany, nie wpływa na layout */
.interactive-title .hero-letter::before {
  content: attr(data-letter);
  position: absolute;
  inset: 0;
  font-family: 'Holy Ravioli NF', serif;
  color: #ffffff;
  text-align: center;
  line-height: inherit;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.75), 0 0 24px rgba(255, 255, 255, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  will-change: opacity;
}

/* Automatyczna animacja cyklu: 2s łącznie */
.interactive-title .hero-letter.active {
  animation: heroLetterPulse 2s ease-in-out forwards;
}

.interactive-title .hero-letter.active::before {
  animation: heroRavioliPulse 2s ease-in-out forwards;
}

@keyframes heroLetterPulse {
  0% {
    color: var(--text-primary);
    transform: translateY(0);
  }
  30% {
    color: rgba(250, 246, 240, 0);
  }
  50% {
    color: rgba(250, 246, 240, 0);
    transform: translateY(-6px);
  }
  70% {
    color: rgba(250, 246, 240, 0);
  }
  100% {
    color: var(--text-primary);
    transform: translateY(0);
  }
}

@keyframes heroRavioliPulse {
  0% { opacity: 0; }
  30% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; }
}

/* Na hover na komputerze — bezpośrednie podświetlenie */
.interactive-title .hero-letter:hover {
  color: rgba(250, 246, 240, 0);
  transform: translateY(-6px);
}

.interactive-title .hero-letter:hover::before {
  opacity: 1;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.3vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.hero-tagline {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-secondary);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%) translateZ(0); /* translateZ wymusza warstwę GPU */
  will-change: transform;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: var(--fs-caption);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-indicator .arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-terracotta), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Flour particles */
.flour-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.pasta-particle {
  position: absolute;
  width: var(--size, 11px);
  height: var(--size, 11px);
  top: -20px;
  left: var(--x, 50%);
  opacity: var(--opacity, 0.25);
  animation: floatPasta var(--duration, 10s) var(--delay, 0s) linear infinite;
  transform-origin: center center;
}

@keyframes floatPasta {
  0% {
    transform: translateY(-20px) translateX(0) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: var(--opacity, 0.35);
  }
  85% {
    opacity: var(--opacity, 0.2);
  }
  100% {
    transform: translateY(105vh) translateX(30px) rotate(var(--rot, 180deg));
    opacity: 0;
  }
}

/* ---- 8. Featured Recipe ---- */
.featured-section {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.section-label {
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  margin-bottom: var(--space-sm);
  display: block;
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), border-color 0.4s ease;
  cursor: pointer;
  text-decoration: none;
  /* Ambient glow — delikatna poświata wokół całej karty (o połowę mniejsza niż w wideo przepisów) */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4),
              0 0 24px rgba(200, 82, 44, 0.22);
}

@media (min-width: 769px) {
  .featured-card {
    height: 430px;
    min-height: 430px;
    max-height: 430px;
  }
}

.featured-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 82, 44, 0.45);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55),
              0 0 32px rgba(200, 82, 44, 0.35);
}

.featured-card-image {
  position: relative;
  overflow: hidden;
  height: 100%;
  width: 100%;
  min-width: 0;
  min-height: 280px;
}

.featured-card-image img,
.featured-card-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-out);
}

.featured-card:hover .featured-card-image img,
.featured-card:hover .featured-card-image video {
  transform: scale(1.08);
}

.featured-card-image .badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold);
  border: 1px solid var(--border-subtle);
}

.featured-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.8rem, 2.8vw, 2.8rem);
  padding-left: clamp(2.2rem, 3.8vw, 4rem);
  box-sizing: border-box;
  min-width: 0;
}

@media (min-width: 769px) {
  .featured-card-content {
    height: 100%;
  }
}

.featured-card-content h2,
.featured-card-content h3 {
  font-size: clamp(1.5rem, 2.2vw, 1.95rem) !important;
  margin-bottom: 0.65rem !important;
  line-height: 1.25;
}

.featured-card-content .recipe-description,
.featured-card-content p {
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  line-height: 1.55;
  margin-bottom: 1.25rem !important;
}

.featured-card-content .recipe-meta {
  margin-bottom: 1.5rem !important;
}

/* ---- 9. Recipe Grid ---- */
.recipe-grid-section {
  padding: var(--space-xl) 0;
  background: var(--bg-secondary);
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.recipe-carousel-col {
  display: flex;
  flex-direction: column;
}

.carousel-col-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.carousel-stack {
  position: relative;
  width: 100%;
  display: grid;
  /* Ustalamy proporcję stosu kart opartą o aspect-ratio obrazka + miejsce na content.
     Grid area sprawia, że wszystkie karty lądują jedna na drugiej. */
}

.carousel-stack .carousel-item {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.4s var(--ease-out);
  pointer-events: none;
  z-index: 1;
}

.carousel-stack .carousel-item.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.recipe-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  transition: transform 0.4s var(--ease-out);
}

.recipe-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
}

.card-image {
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.recipe-card-content h3 {
  margin-bottom: 0.5rem;
  font-size: var(--fs-h3);
}

/* ---- 10. About Section ---- */
.about-section {
  padding: var(--space-xl) 0 var(--space-2xl);
  text-align: center;
}

.about-content {
  max-width: 620px;
  margin: 0 auto;
}

.about-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  border: 2px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(200, 82, 44, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-terracotta);
}

.about-content h2 {
  margin-bottom: var(--space-xs);
}

.about-content .about-handle {
  font-size: var(--fs-small);
  color: var(--accent-gold);
  margin-bottom: var(--space-md);
}

.about-content p {
  margin-bottom: var(--space-sm);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--bg-glass-light);
  border-color: var(--border-glow);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, var(--accent-terracotta), transparent);
  margin: var(--space-md) auto;
  border: none;
}

/* ---- 11. Newsletter Section ---- */
.newsletter-section {
  padding: var(--space-xl) 0;
  background: var(--bg-secondary);
  text-align: center;
}
.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}
.newsletter-content h2 {
  margin-bottom: 1rem;
}
.newsletter-content p {
  margin-bottom: 2rem;
}
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-input {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: 0.85rem 1.5rem;
  color: var(--text-primary);
  font-family: var(--font-body);
}
.newsletter-input:focus {
  outline: none;
  border-color: var(--accent-terracotta);
}

/* ---- 12. Recipe Hero ---- */
.recipe-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center; /* Centruje całość w pionie jak na stronie głównej */
  overflow: hidden;
}

.recipe-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.recipe-hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Nakładka przyciemniająca by tekst był czytelny, ale wideo w tle wyraźnie widoczne */
.recipe-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,21,18,0.85) 0%, rgba(26,21,18,0.25) 50%, rgba(26,21,18,0.45) 100%);
  z-index: 1;
  pointer-events: none;
}

.recipe-hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-height) + 2rem) clamp(1.5rem, 4vw, 3rem) var(--space-lg);
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

.recipe-category {
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  margin-bottom: 0.75rem;
  display: block;
}

.recipe-hero-content h1 {
  margin-bottom: 0.5rem;
}

.recipe-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ---- 13. Recipe Details Section ---- */
.recipe-details {
  padding: var(--space-2xl) 0;
  background: var(--bg-primary);
}

.recipe-details-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  align-items: start;
}

.ingredients-card {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.ingredients-card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 1.5rem;
  color: var(--accent-terracotta);
}

.method-card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 1.5rem;
  color: var(--accent-terracotta);
}

.method-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.method-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.method-step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(200, 82, 44, 0.2);
  flex-shrink: 0;
  width: 3rem;
  text-align: center;
}

.method-step p {
  font-size: var(--fs-body);
  line-height: 1.8;
}


/* ---- 14. Recipe Pinned Scroll Storytelling ---- */
.recipe-storyteller-pinned {
  position: relative;
  background: var(--bg-primary);
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.pinned-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pinned-stage-grid {
  display: grid;
  grid-template-columns: 1fr clamp(260px, 24vw, 340px) 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 1350px;
  width: 100%;
  padding: 0 2rem;
  position: relative;
}

.center-column-frame {
  display: flex;
  justify-content: center;
  align-items: center;
}

.stage-frame {
  width: clamp(260px, 24vw, 340px);
  height: clamp(360px, 34vw, 480px);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(200, 82, 44, 0.35);
  box-shadow: 0 25px 80px rgba(0,0,0,0.92), 0 0 50px rgba(200, 82, 44, 0.2);
  overflow: hidden;
  position: relative;
  background: var(--bg-secondary);
  transform: scale(1);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), border-color 0.6s ease;
}

.stage-frame:hover {
  transform: scale(1.03);
  border-color: var(--accent-terracotta);
  box-shadow: 0 30px 90px rgba(0,0,0,0.95), 0 0 60px rgba(200, 82, 44, 0.35);
}

.stage-frame .step-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.6s ease, transform 1s var(--ease-out);
  will-change: opacity, transform;
}

.stage-frame .step-img.active {
  opacity: 1;
  transform: scale(1);
}

.left-column-stack,
.right-column-stack {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
}

/* Lewa kolumna (kroki) — karta wyżej */
.left-column-stack .step-main-box {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(calc(-50% - 40px)); /* Wyżej */
  opacity: 0;
  pointer-events: none;
  /* Nowoczesne szkło + gradient tła */
  background: linear-gradient(135deg, rgba(42, 35, 30, 0.95) 0%, rgba(34, 28, 24, 0.98) 100%);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid rgba(200, 82, 44, 0.2);
  border-top: 1px solid rgba(200, 82, 44, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 2px 0 rgba(200, 82, 44, 0.15) inset;
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out), border-color 0.3s ease;
  will-change: opacity, transform;
}

/* Prawa kolumna (tipy) — karta niżej */
.right-column-stack .callout-box {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(calc(-50% + 40px)); /* Niżej */
  opacity: 0;
  pointer-events: none;
  /* Inne tło — chłodniejszy odcień szkła */
  background: linear-gradient(135deg, rgba(28, 24, 36, 0.95) 0%, rgba(22, 18, 28, 0.98) 100%);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid rgba(180, 130, 255, 0.12);
  border-top: 1px solid rgba(212, 167, 69, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 2px 0 rgba(212, 167, 69, 0.1) inset;
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out), border-color 0.3s ease;
  will-change: opacity, transform;
}

/* Aktywna karta lewa */
.left-column-stack .step-main-box.active {
  opacity: 1;
  transform: translateY(calc(-50% - 40px));
  pointer-events: auto;
  border-color: rgba(200, 82, 44, 0.45);
}

/* Aktywna karta prawa */
.right-column-stack .callout-box.active {
  opacity: 1;
  transform: translateY(calc(-50% + 40px));
  pointer-events: auto;
  border-top-color: rgba(212, 167, 69, 0.5);
}

/* Passed — wychodzi w górę (lewe) lub dół (prawe) */
.left-column-stack .step-main-box.passed {
  opacity: 0;
  transform: translateY(calc(-50% - 100px));
  pointer-events: none;
}

.right-column-stack .callout-box.passed {
  opacity: 0;
  transform: translateY(calc(-50% + 100px));
  pointer-events: none;
}

.callout-box {
  padding: clamp(1.25rem, 2vw, 1.75rem);
}

.step-main-box {
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
}

.callout-tag {
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  margin-bottom: 0.5rem;
  display: block;
}

.callout-box h4 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.callout-box p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Pro Tip — statyczny blok zawsze widoczny poniżej tipu bazowego */
.callout-pro-extra {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 167, 69, 0.25);
  position: relative;
}

/* Treść Pro Tipu jest rozmyta — zachęca do odblokowania */
.callout-pro-blurred {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
  margin-bottom: 0.75rem;
}

.pro-tag {
  color: var(--accent-gold) !important;
}

.pro-unlock-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: var(--fs-small);
  color: var(--accent-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 167, 69, 0.4);
  transition: border-color 0.2s ease;
}

.pro-unlock-link:hover {
  border-color: var(--accent-gold);
}

.step-badge {
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  margin-bottom: 0.75rem;
  display: inline-block;
  background: rgba(200, 82, 44, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
}

.step-main-box h2 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.step-main-box p {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text-secondary);
}



.step-indicators {
  position: fixed;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.indicator-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
}

.indicator-dot.active {
  background: var(--accent-terracotta);
  border-color: var(--accent-terracotta);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(200, 82, 44, 0.4);
  transform: scale(1.15);
}

/* ---- 15. Footer ---- */
.footer,
.site-footer {
  padding: var(--space-lg) 0 var(--space-md);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  text-align: center;
  width: 100%;
}

.footer-content,
.footer-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  margin: 0 auto;
}

.footer-logo,
.site-footer .logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.25rem;
}

.footer-text,
.footer-copy {
  font-size: var(--fs-small);
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

/* ---- 16. Responsive ---- */
@media (max-width: 1024px) {
  .recipe-details-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .ingredients-card {
    position: static;
  }
}

@media (max-width: 768px) {
  /* Wersja na telefony: tekst na zdjęciu, duży odtwarzacz wideo, miękki gradientowy blur */
  .featured-card {
    display: block;
    position: relative;
    height: 75vh;
    min-height: 450px;
    max-height: 750px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    /* Subtelny Ambient Glow o połowę mniejszy wokół całej karty na telefonie */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45),
                0 0 24px rgba(200, 82, 44, 0.22);
  }
  .featured-card:hover,
  .featured-card:active {
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5),
                0 0 28px rgba(200, 82, 44, 0.3);
    transform: none;
  }
  .featured-card-image {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
    min-height: 0;
  }
  
  .featured-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: 55% !important;
    padding: 4.8rem 1.25rem 1.25rem !important;
    box-sizing: border-box;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  
  /* Tło z płynnym rozmyciem (blur) przechodzące nad białym tytułem i lekko nad żółte napisy */
  .featured-card-content::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
      to top,
      rgba(20, 16, 14, 0.98) 0%,
      rgba(20, 16, 14, 0.88) 55%,
      rgba(20, 16, 14, 0.45) 80%,
      rgba(20, 16, 14, 0) 100%
    );
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    -webkit-mask-image: linear-gradient(to top, black 0%, black 72%, transparent 100%);
    mask-image: linear-gradient(to top, black 0%, black 72%, transparent 100%);
  }

  .featured-card-content p {
    display: none; 
  }
  .featured-card-content h3 {
    font-size: 1.55rem !important;
    margin-bottom: 0.35rem !important;
    color: var(--text-primary);
    line-height: 1.25 !important;
  }
  .featured-card-content .recipe-meta {
    margin-bottom: 1rem !important;
  }
  .featured-card-content .recipe-meta .mono-label {
    font-size: 0.7rem;
  }
  .featured-card-image .badge {
    top: 1rem;
    left: 1rem;
  }
}

@media (max-width: 992px) {
  /* Zmieniamy layout grida opowieści na mniejszych ekranach */
  .pinned-stage-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
    height: 100vh; 
    padding: 0 1rem;
    max-width: 100%;
    align-content: center;
  }
  
  /* Środek: Zdjęcie główne wędruje wyżej */
  .center-column-frame {
    order: 1; /* na samej górze gridu */
    width: 100%;
  }

  .stage-frame {
    width: clamp(280px, 90vw, 400px);
    height: clamp(320px, 60vh, 400px);
  }

  /* Prawa: Wskazówki (tipy) - wrzucamy je nad zdjęcie, mały pływający overlay */
  .right-column-stack {
    position: absolute;
    top: 5vh;
    left: 0;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
  }

  .right-column-stack .callout-box {
    position: absolute;
    top: 0;
    left: auto;
    right: auto;
    width: 90%;
    max-width: 380px;
    background: rgba(22, 18, 28, 0.85); /* bardziej przezroczyste na mobile */
    padding: 1rem;
    font-size: 0.85rem;
  }
  .right-column-stack .callout-box h4 {
    font-size: 1rem;
  }
  
  /* Lewa: Główne kroki pod zdjęciem */
  .left-column-stack {
    order: 2;
    position: relative;
    height: 25vh; /* Rezerwujemy dół ekranu na opisy */
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .left-column-stack .step-main-box {
    position: absolute;
    top: 0;
    left: auto;
    right: auto;
    width: 95%;
    max-width: 450px;
  }

  /* Odwołujemy transformy pionowe, używamy prostszego fade/scale */
  .left-column-stack .step-main-box,
  .right-column-stack .callout-box {
    transform: translateY(20px) scale(0.95);
  }
  
  .left-column-stack .step-main-box.active,
  .right-column-stack .callout-box.active {
    transform: translateY(0) scale(1);
  }
  
  .left-column-stack .step-main-box.passed,
  .right-column-stack .callout-box.passed {
    transform: translateY(-20px) scale(0.95);
  }
  
  .step-indicators {
    left: 0.5rem;
    gap: 0.5rem;
    z-index: 20;
  }

  .indicator-dot {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
    --fs-hero: clamp(2.2rem, 10vw, 4rem); /* Jeszcze mniejszy na małym ekranie */
  }
  .interactive-title {
    letter-spacing: 0.05em; /* Zmniejszamy spacje by się zmieściło */
  }
  
  /* Na telefonach: wsparcie dla kliknięcia/tapnięcia z animacją czcionki Ravioli */
  .interactive-title .hero-letter {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .interactive-title .hero-letter.active,
  .interactive-title .hero-letter:active {
    color: transparent;
    transform: translateY(-4px);
  }
  .interactive-title .hero-letter.active::before,
  .interactive-title .hero-letter:active::before {
    opacity: 1;
  }

  .navbar .container,
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-links {
    display: none;
  }
  
  .nav-social,
  .mobile-social,
  .social-icons {
    display: none !important;
  }
  
  .nav-hamburger {
    display: flex;
  }
  .social-links {
    flex-direction: column;
    align-items: center;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .newsletter-form {
    flex-direction: column;
  }

  /* Sekcja O mnie na telefonie: kompaktowy layout, wszystko wyżej, bez konieczności kolejnego scrolla */
  html.home-snap body > section#about {
    justify-content: flex-start !important;
    padding-top: 1rem !important;
    padding-bottom: 0.5rem !important;
    min-height: calc(100svh - var(--nav-height)) !important;
  }

  .about-container {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
  }

  .about-section .section-label {
    margin-bottom: 0.2rem !important;
    font-size: 0.68rem !important;
  }

  .about-title {
    font-size: 1.55rem !important;
    margin-bottom: 0.15rem !important;
  }

  .about-handle {
    margin-bottom: 0.6rem !important;
    font-size: 0.72rem !important;
  }

  .about-avatar {
    width: 84px !important;
    height: 84px !important;
    margin: 0 auto 0.65rem auto !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4) !important;
  }

  .about-bio {
    font-size: 0.86rem !important;
    line-height: 1.4 !important;
    margin: 0 auto 0.75rem auto !important;
    max-width: 92% !important;
  }

  .about-social-buttons {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.45rem !important;
    margin: 0.5rem auto 0.75rem auto !important;
    max-width: 310px !important;
    width: 100% !important;
  }

  .about-social-btn {
    padding: 0.5rem 0.65rem !important;
    font-size: 0.78rem !important;
    justify-content: center !important;
    gap: 0.45rem !important;
  }

  .about-social-btn svg {
    width: 15px !important;
    height: 15px !important;
  }

  .about-footer {
    margin-top: 0.5rem !important;
  }

  .about-footer-inner {
    padding: 0.6rem 0 0.25rem 0 !important;
  }

  .about-footer-inner .logo {
    font-size: 1.25rem !important;
    margin-bottom: 0.2rem !important;
  }

  .about-footer-inner p {
    font-size: 0.68rem !important;
  }
}

/* ---- 16b. Section Paging — strona główna (html.home-snap) ----
   Przewijaniem sekcjami steruje JS (initHomeSectionPaging w main.js)
   zarówno na telefonie (touch swipe), jak i na komputerze (wheel scroll).
   CSS scroll-snap celowo NIE jest używany — powodował docinanie z opóźnieniem. */
html.home-snap body > section:not(.ad-slot),
html.home-snap body > section.ad-google-slot {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

@supports (min-height: 100svh) {
  html.home-snap body > section:not(.ad-slot),
  html.home-snap body > section.ad-google-slot {
    min-height: calc(100svh - var(--nav-height));
  }
}

html.home-snap body > section:not(.ad-slot) > .container,
html.home-snap body > section.ad-google-slot > .container {
  width: 100%;
}

/* ---- About Section (The Maker) ---- */
.about-section {
  position: relative;
}

.about-avatar {
  display: block;
  margin: 0 auto 1.5rem auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.about-bio {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 auto 2rem auto;
  max-width: 650px;
  color: var(--text-secondary);
}

.about-handle {
  margin-bottom: 1.5rem;
  color: var(--accent-gold);
}

.about-footer {
  margin-top: 2rem;
}

.about-footer-inner {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
}

/* ---- About Social Buttons ---- */
.about-social-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin: 1.5rem auto 2.25rem;
  max-width: 680px;
}

.about-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.35rem;
  border-radius: 100px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.about-social-btn svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.about-social-btn:hover {
  transform: translateY(-3px);
  color: var(--bg-cream);
}

.about-social-btn:hover svg {
  transform: scale(1.15);
}

.about-social-btn.btn-ig:hover {
  border-color: #E1306C;
  box-shadow: 0 8px 24px rgba(225, 48, 108, 0.35);
  color: #fff;
}

.about-social-btn.btn-tt:hover {
  border-color: #00f2fe;
  box-shadow: 0 8px 24px rgba(0, 242, 254, 0.35);
  color: #fff;
}

.about-social-btn.btn-yt:hover {
  border-color: #FF0000;
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.35);
  color: #fff;
}

.about-social-btn.btn-fb:hover {
  border-color: #1877F2;
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.35);
  color: #fff;
}

/* ---- 17. Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .step-img {
    transition: opacity 0.01ms !important;
    transform: none !important;
  }
  .step-img.active {
    transform: none !important;
  }
}

/* ========================================================
   Delikatny wskaźnik i przełącznik Cook Mode w zakładce składników
   ======================================================== */
.cook-mode-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0.2rem auto 1.4rem;
  gap: 0.45rem;
}

.cook-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.95rem;
  background: rgba(250, 246, 240, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.cook-mode-btn:hover {
  background: rgba(250, 246, 240, 0.08);
  color: var(--text-primary);
  border-color: rgba(200, 150, 100, 0.25);
  transform: translateY(-1px);
}

.cook-mode-btn .cook-mode-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

/* Stan aktywny (Pro: ekran nie gaśnie) */
.cook-mode-btn.is-active {
  background: rgba(46, 204, 113, 0.08);
  border-color: rgba(46, 204, 113, 0.35);
  color: var(--text-primary);
}

.cook-mode-btn.is-active .cook-mode-dot {
  background: #2ecc71;
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.7);
}

/* Stan ostrzeżenia (np. tryb oszczędzania energii w telefonie blokuje API) */
.cook-mode-btn.is-warning {
  background: rgba(212, 167, 69, 0.08);
  border-color: rgba(212, 167, 69, 0.35);
  color: var(--accent-gold);
}

.cook-mode-btn.is-warning .cook-mode-dot {
  background: var(--accent-gold);
  box-shadow: 0 0 8px rgba(212, 167, 69, 0.7);
}

/* Stan zablokowany (dla gości bez Pro) */
.cook-mode-btn.is-locked {
  opacity: 0.85;
}

.cook-mode-hint {
  font-size: 0.75rem;
  color: var(--accent-gold);
  text-align: center;
  max-width: 340px;
  line-height: 1.35;
}

/* Ukrycie Cook Mode na ekranach desktopowych (PC / laptopy powyżej 992px - funkcja dedykowana telefonom/tabletom) */
@media (min-width: 993px) {
  .cook-mode-wrapper {
    display: none !important;
  }
}

