/* ==========================================================================
   www.abcdziczyzny.pl — Podlaskie Wyroby
   World-Class Culinary Editorial Stylesheet
   ========================================================================== */

:root {
  /* Core Palette — Podlaskie Wyroby & Puszcza Culinary Editorial */
  --bg-paper: #F7F3EA;
  --bg-card: #FFFDF9;
  --bg-soft: #EFE9DC;
  --bg-warm: #E7DFCE;
  --forest-deep: #1E3026;
  --forest-pine: #293D32;
  --forest-moss: #3B5546;
  --berry-red: #883B30;
  --berry-hover: #6E2D24;
  --berry-tint: rgba(136, 59, 48, 0.08);
  --oak-gold: #C5A367;
  --oak-soft: #E6D3B0;
  --ink: #26221E;
  --ink-secondary: #4A443C;
  --ink-muted: #665E53;
  --line: #D6CEBE;
  --line-strong: #BFB49F;
  --success: #2B6242;
  --success-bg: #E6F0EA;
  --warning: #9A5B13;
  --warning-bg: #FDF3E2;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout & Radii */
  --wrap: min(1240px, 92vw);
  --wrap-narrow: min(860px, 92vw);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(30, 48, 38, 0.06);
  --shadow-md: 0 10px 30px rgba(30, 48, 38, 0.09);
  --shadow-lg: 0 22px 48px rgba(20, 32, 25, 0.16);
  --transition: 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--bg-paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: clip;
}

/* Accessibility & Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--forest-deep);
  color: #FFFDF9;
  padding: 12px 20px;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
}
.skip-link:focus {
  left: 12px;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color var(--transition), opacity var(--transition);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--oak-gold);
  outline-offset: 3px;
}

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

/* Typography Hierarchy */
h1, h2, h3, h4, .editorial-title {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

h1 {
  font-size: clamp(2.35rem, 4.6vw, 4.15rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  margin-bottom: 14px;
}

h3 {
  font-size: clamp(1.28rem, 2vw, 1.62rem);
  margin-bottom: 10px;
}

h4 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

p {
  margin: 0 0 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--berry-red);
}

.eyebrow-light {
  color: var(--oak-soft);
}

.lead {
  font-size: clamp(1.06rem, 1.35vw, 1.24rem);
  line-height: 1.6;
  color: var(--ink-secondary);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.wrap-narrow {
  width: var(--wrap-narrow);
  margin-inline: auto;
}

/* ==========================================================================
   Buttons & Pills
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  line-height: 1.25;
}

.btn-primary {
  background: var(--berry-red);
  color: #FFFDF9;
  border-color: var(--berry-red);
}
.btn-primary:hover {
  background: var(--berry-hover);
  border-color: var(--berry-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-forest {
  background: var(--forest-pine);
  color: #FFFDF9;
  border-color: var(--forest-pine);
}
.btn-forest:hover {
  background: var(--forest-deep);
  transform: translateY(-1px);
}

.btn-paper {
  background: var(--bg-paper);
  color: var(--forest-deep);
  border-color: var(--bg-paper);
}
.btn-paper:hover {
  background: #FFFDF9;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover {
  border-color: var(--forest-pine);
  background: rgba(41, 61, 50, 0.05);
}

.btn-outline-light {
  background: transparent;
  color: #FFFDF9;
  border-color: rgba(255, 253, 249, 0.35);
}
.btn-outline-light:hover {
  background: rgba(255, 253, 249, 0.12);
  border-color: var(--oak-soft);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.83rem;
}

.btn-xs {
  padding: 5px 10px;
  font-size: 0.76rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-deer {
  background: #E8EDE9;
  color: var(--forest-deep);
}
.badge-roe {
  background: #F4E8E5;
  color: var(--berry-red);
}
.badge-boar {
  background: #F3EAD9;
  color: #704A14;
}
.badge-guide {
  background: var(--bg-soft);
  color: var(--ink-secondary);
}

/* ==========================================================================
   Top Utility Strip & Sticky Header
   ========================================================================== */
.utility-bar {
  background: var(--forest-deep);
  color: rgba(255, 253, 249, 0.88);
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(197, 163, 103, 0.25);
}
.utility-bar > .wrap,
.site-header > .wrap {
  width: min(1360px, 95vw);
}
.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 7px 0;
  flex-wrap: wrap;
}
.utility-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 20px;
  flex-wrap: wrap;
}
.utility-left strong {
  color: var(--oak-soft);
}
.utility-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--oak-gold);
  background: var(--oak-gold);
  color: var(--forest-deep);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition);
}
.utility-pdf-btn:hover {
  background: var(--oak-soft);
  border-color: var(--oak-soft);
  transform: translateY(-1px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(247, 243, 234, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-wrap {
  width: 46px;
  height: 40px;
  background: var(--forest-deep);
  border-radius: var(--radius-sm);
  padding: 4px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--forest-deep);
  line-height: 1.1;
}
.brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
}

.main-nav {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a,
.main-nav .nav-tab-btn {
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--ink-secondary);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition);
}
.main-nav a:hover,
.main-nav .nav-tab-btn:hover {
  background: var(--bg-soft);
  color: var(--forest-deep);
}
.main-nav a.active,
.main-nav a.is-active,
.main-nav .nav-tab-btn.is-active {
  background: var(--forest-deep);
  color: #FFFDF9;
  box-shadow: var(--shadow-sm);
}
.nav-tab-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(136, 59, 48, 0.14);
  color: var(--berry-red);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  flex-shrink: 0;
}
.main-nav .nav-tab-btn.is-active .nav-tab-num {
  background: var(--oak-gold);
  color: var(--forest-deep);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.icon-btn:hover {
  border-color: var(--forest-pine);
  background: var(--bg-soft);
}
.icon-btn kbd {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-muted);
}

.mobile-menu-btn {
  display: none;
}

/* Reading Progress Hairline */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--berry-red), var(--oak-gold));
  transition: width 0.08s linear;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  background: radial-gradient(circle at 12% 20%, #2F4639 0%, var(--forest-deep) 70%);
  color: #FFFDF9;
  padding: clamp(36px, 5.5vw, 76px) 0;
  border-bottom: 4px solid var(--oak-gold);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero-section h1 {
  color: #FFFDF9;
  margin: 12px 0 18px;
}

.hero-section .lead {
  color: rgba(255, 249, 235, 0.88);
  max-width: 54ch;
  margin-bottom: 24px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 253, 249, 0.16);
}
.trust-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--oak-soft);
}
.trust-item span {
  font-size: 0.8rem;
  color: rgba(255, 249, 235, 0.78);
}

/* ==========================================================================
   Photo & Reel Placeholder Frames (.photo-frame & .reel-frame)
   ========================================================================== */
.photo-frame,
.reel-frame {
  margin: 0;
  position: relative;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition);
}

.hero-section .photo-frame {
  background: rgba(255, 253, 249, 0.06);
  border-color: rgba(197, 163, 103, 0.55);
  color: #FFFDF9;
}

.photo-frame.aspect-16x9 .frame-canvas { aspect-ratio: 16 / 9; }
.photo-frame.aspect-4x3 .frame-canvas { aspect-ratio: 4 / 3; }
.photo-frame.aspect-3x2 .frame-canvas { aspect-ratio: 3 / 2; }
.photo-frame.aspect-1x1 .frame-canvas { aspect-ratio: 1 / 1; }

.reel-frame .frame-canvas {
  aspect-ratio: 9 / 16;
  max-height: 490px;
  margin-inline: auto;
  width: 100%;
}

.frame-canvas {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  background-image:
    radial-gradient(circle at 50% 45%, rgba(197, 163, 103, 0.12) 0%, transparent 65%),
    repeating-linear-gradient(
      45deg,
      rgba(41, 61, 50, 0.025),
      rgba(41, 61, 50, 0.025) 12px,
      transparent 12px,
      transparent 24px
    );
}

.hero-section .frame-canvas {
  background-image:
    radial-gradient(circle at 50% 45%, rgba(197, 163, 103, 0.18) 0%, transparent 68%);
}

.frame-canvas img.frame-preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.frame-placeholder-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 34ch;
}

.frame-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(41, 61, 50, 0.1);
  color: var(--forest-pine);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-section .frame-icon {
  background: rgba(197, 163, 103, 0.2);
  color: var(--oak-soft);
}
.reel-frame .frame-icon {
  width: 58px;
  height: 58px;
  background: var(--berry-red);
  color: #FFFDF9;
  box-shadow: 0 6px 20px rgba(136, 59, 48, 0.3);
}

.frame-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(30, 48, 38, 0.09);
  color: var(--forest-deep);
}
.hero-section .frame-badge {
  background: rgba(255, 253, 249, 0.14);
  color: var(--oak-soft);
}
.reel-frame .frame-badge {
  background: var(--berry-tint);
  color: var(--berry-red);
}

.frame-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.frame-desc {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.45;
}
.hero-section .frame-desc {
  color: rgba(255, 249, 235, 0.8);
}

.compact-hero .photo-frame.has-image {
  border-color: rgba(197, 163, 103, 0.55);
}
.photo-frame.has-image .frame-placeholder-content,
.reel-frame.has-image .frame-placeholder-content {
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   Section Layout & Editorial Cards
   ========================================================================== */
.section {
  padding: clamp(48px, 6vw, 84px) 0;
  border-bottom: 1px solid var(--line);
}

.section-soft {
  background-color: var(--bg-soft);
}

.section-forest {
  background: var(--forest-deep);
  color: #FFFDF9;
}
.section-forest h2,
.section-forest h3,
.section-forest h4 {
  color: #FFFDF9;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.section-head-main {
  max-width: 72ch;
}
.section-head-main p {
  color: var(--ink-secondary);
  margin-bottom: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
}

.card-accent-top {
  border-top: 4px solid var(--berry-red);
}
.card-forest-top {
  border-top: 4px solid var(--forest-pine);
}
.card-gold-top {
  border-top: 4px solid var(--oak-gold);
}

/* ==========================================================================
   Interactive Module 1: First Step Selector & Taste Guide
   ========================================================================== */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.scenario-btn {
  text-align: left;
  background: var(--bg-card);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--transition);
}
.scenario-btn:hover {
  border-color: var(--forest-pine);
  transform: translateY(-2px);
}
.scenario-btn.is-active {
  border-color: var(--berry-red);
  background: #FFF9F7;
  box-shadow: var(--shadow-md);
}
.scenario-btn strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--ink);
}
.scenario-btn span {
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.scenario-detail-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--berry-red);
  border-radius: var(--radius-md);
  padding: 26px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.taste-panel {
  margin-top: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
}

/* ==========================================================================
   Interactive Module 2: Portion Cost Calculator & 350 PLN Cart Planner
   ========================================================================== */
.tool-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.range-slider {
  width: 100%;
  accent-color: var(--berry-red);
  cursor: pointer;
}

.calc-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}
.calc-metric span {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.calc-metric strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--berry-red);
  line-height: 1.15;
  margin-top: 4px;
}

/* Cart Builder 350 PLN Progress */
.preset-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.preset-tab {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-paper);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.preset-tab.is-active,
.preset-tab:hover {
  background: var(--forest-pine);
  color: #FFFDF9;
  border-color: var(--forest-pine);
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-paper);
}
.cart-item-info strong {
  display: block;
  font-size: 0.92rem;
}
.cart-item-info small {
  color: var(--ink-muted);
  font-size: 0.78rem;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  font-weight: 700;
  cursor: pointer;
}
.qty-btn:hover {
  background: var(--forest-pine);
  color: #fff;
}

.shipping-meter {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  margin-bottom: 16px;
}
.shipping-bar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin: 10px 0 8px;
}
.shipping-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--berry-red), var(--success));
  transition: width 0.35s ease;
}

/* ==========================================================================
   Tables & Responsive Editorial Tables
   ========================================================================== */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

table.editorial-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.93rem;
}
.editorial-table th {
  background: var(--forest-deep);
  color: #FFFDF9;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 16px;
}
.editorial-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.editorial-table tr:last-child td {
  border-bottom: none;
}
.editorial-table tbody tr:hover {
  background: rgba(239, 233, 220, 0.45);
}

/* ==========================================================================
   Module 3: Boar Charcuterie & Board Builder
   ========================================================================== */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.filter-pill {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  color: var(--ink-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-pill:hover {
  border-color: var(--forest-pine);
  color: var(--forest-deep);
}
.filter-pill.is-active {
  background: var(--berry-red);
  border-color: var(--berry-red);
  color: #FFFDF9;
}

.board-planner {
  margin-top: 28px;
  background: var(--forest-deep);
  color: #FFFDF9;
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}
.board-planner h3,
.board-planner h4 {
  color: #FFFDF9;
}
.board-planner .photo-frame {
  background: rgba(255, 253, 249, 0.08);
  border-color: rgba(197, 163, 103, 0.5);
  color: #FFFDF9;
}
.board-planner .frame-desc {
  color: rgba(255, 249, 235, 0.8);
}
.board-planner .frame-badge {
  background: rgba(255, 253, 249, 0.14);
  color: var(--oak-soft);
}

/* ==========================================================================
   Module 4: Meat Cut Map & Thawing Planner
   ========================================================================== */
.cuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.cut-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.cut-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.delivery-box {
  margin-top: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}

.alert-card {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--warning-bg);
  border-left: 4px solid var(--warning);
  margin-top: 16px;
}

/* ==========================================================================
   Module 5: Prep, Marinade Scaler & Plate Pairings
   ========================================================================== */
.marinade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 18px;
}

.marinade-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--oak-gold);
  border-radius: var(--radius-md);
  padding: 22px;
}

.pairing-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

/* ==========================================================================
   Module 6: Rescue Diagnostics & 71°C Probe Assistant
   ========================================================================== */
.rescue-panel {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  align-items: start;
}

.rescue-triggers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rescue-trigger {
  text-align: left;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-card);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition);
}
.rescue-trigger:hover {
  border-color: var(--berry-red);
}
.rescue-trigger.is-active {
  background: var(--berry-red);
  color: #FFFDF9;
  border-color: var(--berry-red);
}

.rescue-answer-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.temp-meter-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: var(--berry-red);
  color: #FFFDF9;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
}

/* ==========================================================================
   Module 7: Five Interactive Recipes (Portions, Checklists, Timers, Cook Mode)
   ========================================================================== */
.recipe-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.recipe-tab {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  transition: all var(--transition);
}
.recipe-tab small {
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-weight: 500;
}
.recipe-tab:hover {
  border-color: var(--forest-pine);
}
.recipe-tab.is-active {
  background: var(--forest-deep);
  color: #FFFDF9;
  border-color: var(--forest-deep);
}
.recipe-tab.is-active small {
  color: var(--oak-soft);
}

.recipe-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 3vw, 36px);
  box-shadow: var(--shadow-md);
  margin-bottom: 22px;
}

.recipe-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.recipe-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}
.meta-pill {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.recipe-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  margin-bottom: 24px;
}

.portion-pills {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.portion-btn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  font-weight: 700;
  cursor: pointer;
}
.portion-btn.is-active {
  background: var(--berry-red);
  color: #FFFDF9;
  border-color: var(--berry-red);
}

.recipe-columns {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
}

.ingredients-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ingredients-list li {
  border-bottom: 1px solid var(--line);
}
.ingredient-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 4px;
  cursor: pointer;
}
.ingredient-label input {
  width: 17px;
  height: 17px;
  accent-color: var(--forest-pine);
  flex-shrink: 0;
}
.ingredient-label strong {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--forest-deep);
  white-space: nowrap;
}
.ingredient-label input:checked + span {
  text-decoration: line-through;
  color: var(--ink-muted);
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step-item {
  display: flex;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-paper);
  transition: all var(--transition);
}
.step-item.is-done {
  opacity: 0.62;
  background: var(--bg-soft);
}
.step-num-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--forest-pine);
  background: #FFFDF9;
  color: var(--forest-pine);
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-item.is-done .step-num-btn {
  background: var(--forest-pine);
  color: #FFFDF9;
}

.step-timer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.timer-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--berry-red);
  background: #FFFDF9;
  color: var(--berry-red);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.timer-trigger:hover {
  background: var(--berry-red);
  color: #FFFDF9;
}

/* Cook Mode Fullscreen */
.recipe-card.cook-mode {
  position: fixed;
  inset: 0;
  z-index: 1200;
  margin: 0;
  border-radius: 0;
  overflow-y: auto;
  padding: 32px clamp(20px, 5vw, 64px) 100px;
  font-size: 1.12rem;
}

/* Floating Timer Dock */
.timer-dock {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1150;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
}
.timer-pill {
  background: var(--forest-deep);
  color: #FFFDF9;
  border: 2px solid var(--oak-gold);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.timer-pill.is-finished {
  background: var(--berry-red);
  animation: pulseTimer 1s infinite alternate;
}
@keyframes pulseTimer {
  from { transform: scale(1); }
  to { transform: scale(1.03); }
}
.timer-time {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--oak-soft);
}

/* ==========================================================================
   Module 8: Fridge Cheat Sheet ("Ściąga na lodówkę")
   ========================================================================== */
.fridge-sheet {
  background: #FFFDF9;
  border: 2px solid var(--forest-pine);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.checklist-item input {
  width: 19px;
  height: 19px;
  margin-top: 3px;
  accent-color: var(--forest-pine);
}
.checklist-item input:checked + span {
  text-decoration: line-through;
  color: var(--ink-muted);
}

/* ==========================================================================
   Module 9: 30 Articles Hub & Reader
   ========================================================================== */
.articles-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.search-input-wrap {
  position: relative;
  flex: 1 1 280px;
  max-width: 420px;
}
.search-input-wrap input {
  width: 100%;
  padding: 11px 16px 11px 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  font-family: var(--font-sans);
  font-size: 0.94rem;
}
.search-input-wrap svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
}

.progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 600;
}
.progress-mini-track {
  width: 90px;
  height: 7px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.progress-mini-fill {
  height: 100%;
  background: var(--success);
  width: 0%;
  transition: width 0.3s ease;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--transition);
}
.article-card:hover {
  border-color: var(--forest-pine);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.article-card.is-read {
  border-left: 4px solid var(--success);
}
.article-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.article-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--berry-red);
}
.article-card h3 {
  font-size: 1.15rem;
  line-height: 1.28;
}
.article-card p {
  font-size: 0.89rem;
  color: var(--ink-muted);
  margin: 0;
  flex: 1;
}
.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}

/* Article Reader Drawer / Modal & Standalone Article Layout */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(18, 28, 22, 0.72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(12px, 3vw, 36px);
  overflow-y: auto;
}
.modal-backdrop.is-open {
  display: flex;
}

.modal-dialog {
  width: min(1040px, 100%);
  background: var(--bg-paper);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-block: auto;
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--forest-deep);
  color: #FFFDF9;
  padding: 16px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #FFFDF9;
  font-size: 1.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.modal-body {
  padding: clamp(22px, 4vw, 44px);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 36px;
  align-items: start;
}

.article-prose h2 {
  font-size: 1.55rem;
  margin-top: 28px;
  margin-bottom: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.article-prose p {
  font-size: 1.03rem;
  line-height: 1.75;
  color: var(--ink);
}
.article-prose a {
  color: var(--berry-red);
  font-weight: 600;
}

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 84px;
}

.commerce-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--forest-pine);
  border-radius: var(--radius-md);
  padding: 18px;
}

.article-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 26px;
  margin-top: 32px;
  border-top: 2px solid var(--line);
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer, Cookies Banner & Privacy Modal
   ========================================================================== */
.site-footer {
  background: var(--forest-deep);
  color: rgba(255, 249, 235, 0.88);
  padding: 54px 0 30px;
  border-top: 4px solid var(--oak-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 253, 249, 0.14);
}
.footer-brand img {
  width: 94px;
  height: auto;
  margin-bottom: 14px;
}
.footer-col h4 {
  color: var(--oak-soft);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}
.footer-links a,
.footer-links button {
  background: none;
  border: none;
  padding: 0;
  color: rgba(255, 249, 235, 0.85);
  font-family: inherit;
  font-size: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}
.footer-links a:hover,
.footer-links button:hover {
  color: var(--oak-soft);
  text-decoration: underline;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  font-size: 0.82rem;
  color: rgba(255, 249, 235, 0.7);
  flex-wrap: wrap;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1400;
  max-width: 980px;
  margin-inline: auto;
  background: #FFFDF9;
  color: var(--ink);
  border: 2px solid var(--forest-pine);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cookie-banner.is-visible {
  display: flex;
}
.cookie-banner-text h4 {
  margin-bottom: 4px;
}
.cookie-banner-text p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-secondary);
}
.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  z-index: 1600;
  background: var(--forest-deep);
  color: #FFFDF9;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1040px) {
  .hero-grid,
  .scenario-detail-box,
  .tool-split,
  .board-planner,
  .delivery-box,
  .rescue-panel,
  .recipe-hero-grid,
  .recipe-columns,
  .article-layout {
    grid-template-columns: 1fr;
  }
  .scenario-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4,
  .articles-grid,
  .marinade-grid,
  .pairing-pills,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-sidebar {
    position: static;
  }
}

@media (max-width: 1360px) {
  .brand-sub,
  .icon-btn kbd {
    display: none;
  }
  .header-inner {
    gap: 10px;
  }
  .main-nav a,
  .main-nav .nav-tab-btn {
    padding: 6px 8px;
    font-size: 0.77rem;
    gap: 5px;
  }
}

@media (max-width: 1140px) {
  .brand-title {
    font-size: 1.04rem;
  }
  .main-nav a,
  .main-nav .nav-tab-btn {
    padding: 5px 6px;
    font-size: 0.73rem;
    gap: 4px;
  }
  .nav-tab-num {
    width: 15px;
    height: 15px;
    font-size: 0.62rem;
  }
}

@media (max-width: 1020px) {
  #open-search-btn span {
    display: none;
  }
  .main-nav {
    display: none;
  }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    top: 100%;
    background: var(--bg-paper);
    border-bottom: 2px solid var(--forest-pine);
    padding: 12px 4vw 18px;
    box-shadow: var(--shadow-md);
    gap: 6px;
  }
  .main-nav.is-open a,
  .main-nav.is-open .nav-tab-btn {
    width: 100%;
    padding: 9px 12px;
    font-size: 0.9rem;
    gap: 8px;
    white-space: normal;
    justify-content: flex-start;
    text-align: left;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 760px) {
  .utility-bar > .wrap,
  .site-header > .wrap {
    width: 100%;
    padding-inline: 12px;
  }
  .utility-inner {
    gap: 8px 12px;
    padding: 6px 0;
  }
  .utility-left {
    flex: 1;
    min-width: 0;
    font-size: 0.72rem;
    gap: 4px 10px;
  }
  .utility-left span:nth-child(2) {
    display: none;
  }
  .header-inner {
    gap: 8px;
    padding: 8px 0;
  }
  .brand-link {
    gap: 7px;
    min-width: 0;
  }
  .brand-logo-wrap {
    width: 38px;
    height: 34px;
    padding: 3px 4px;
    flex-shrink: 0;
  }
  .brand-title {
    font-size: 0.98rem;
    white-space: nowrap;
  }
  .header-tools {
    gap: 5px;
  }
  .header-tools .btn-sm {
    padding: 6px 9px;
    font-size: 0.75rem;
    white-space: nowrap;
  }
  .header-tools .icon-btn,
  .mobile-menu-btn {
    padding: 6px 9px;
  }
  .subtab-btn {
    white-space: normal;
    width: 100%;
    text-align: left;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .scenario-grid,
  .articles-grid,
  .marinade-grid,
  .pairing-pills,
  .footer-grid,
  .hero-trust-strip,
  .calc-result-grid {
    grid-template-columns: 1fr;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   2-Level Tab Architecture & Zero-Scroll UX
   ========================================================================== */
.tab-view {
  display: none;
}
.tab-view.is-active {
  display: block;
  animation: fadeTab 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tab-view > .section {
  padding: clamp(24px, 3vw, 42px) 0 48px;
  border-bottom: none;
}
.tab-view > .section > .wrap > .section-head {
  margin-bottom: 22px;
}

@keyframes fadeTab {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subtab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.subtab-btn {
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all var(--transition);
}
.subtab-btn:hover {
  background: var(--bg-soft);
  color: var(--forest-deep);
}
.subtab-btn.is-active {
  background: var(--berry-red);
  color: #FFFDF9;
  box-shadow: var(--shadow-sm);
}

.subtab-panel {
  display: none;
}
.subtab-panel.is-active {
  display: block;
  animation: fadeTab 0.18s ease;
}

.compact-hero {
  background: radial-gradient(circle at 12% 20%, #2F4639 0%, var(--forest-deep) 70%);
  color: #FFFDF9;
  padding: clamp(22px, 3vw, 34px) clamp(20px, 3.5vw, 40px);
  border-bottom: 3px solid var(--oak-gold);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}
.compact-hero .hero-grid {
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(22px, 3vw, 42px);
  align-items: center;
}
.compact-hero h1 {
  color: #FFFDF9;
  font-size: clamp(1.85rem, 3.1vw, 2.65rem);
  margin: 8px 0 12px;
}
.compact-hero .lead {
  color: rgba(255, 249, 235, 0.9);
  font-size: 0.98rem;
  line-height: 1.58;
  margin-bottom: 18px;
  max-width: 58ch;
}

.hero-guide-box {
  background: rgba(255, 253, 249, 0.08);
  border: 1px solid rgba(197, 163, 103, 0.36);
  border-radius: var(--radius-md);
  padding: 15px 18px;
}
.hero-subhead {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: var(--oak-soft);
  margin: 0 0 6px;
}
.hero-guide-box p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 249, 235, 0.88);
  margin: 0 0 12px;
}
.hero-feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-chip {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(197, 163, 103, 0.45);
  background: rgba(20, 32, 25, 0.42);
  color: var(--oak-soft);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.hero-chip:hover {
  background: var(--oak-gold);
  color: var(--forest-deep);
  border-color: var(--oak-gold);
}

/* Welcome Video Overlay on Hero Frame */
.welcome-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  border: none;
  padding: 20px;
  background: linear-gradient(180deg, rgba(20, 32, 25, 0.25) 0%, rgba(20, 32, 25, 0.78) 100%);
  color: #FFFDF9;
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  text-align: center;
  transition: background var(--transition);
}
.welcome-video-overlay:hover {
  background: linear-gradient(180deg, rgba(20, 32, 25, 0.35) 0%, rgba(20, 32, 25, 0.85) 100%);
}
.welcome-video-play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--oak-gold);
  color: var(--forest-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition), background var(--transition);
}
.welcome-video-overlay:hover .welcome-video-play-btn {
  transform: scale(1.08);
  background: var(--oak-soft);
}
.welcome-video-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(20, 32, 25, 0.82);
  border: 1px solid rgba(197, 163, 103, 0.7);
  color: var(--oak-soft);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.welcome-video-caption {
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(255, 249, 235, 0.9);
  max-width: 34ch;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.welcome-video-stage {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.welcome-video-stage video {
  width: 100%;
  max-height: 62vh;
  background: #000;
  display: block;
}
.welcome-video-placeholder-box {
  padding: 36px 24px;
  text-align: center;
}
.welcome-video-play-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--berry-red);
  color: #FFFDF9;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

/* Bottom Full-Width Start Pathways ("Od czego zacząć?") */
.hero-start-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(197, 163, 103, 0.35);
}
.hero-start-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hero-start-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--oak-soft);
}
.hero-start-title {
  margin: 0;
  color: #FFFDF9;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  order: -1;
}
.start-pathways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.start-pathway-card {
  background: rgba(255, 253, 249, 0.07);
  border: 1px solid rgba(255, 253, 249, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.start-pathway-card:hover {
  background: rgba(255, 253, 249, 0.11);
  border-color: var(--oak-gold);
  transform: translateY(-2px);
}
.pathway-step {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--oak-soft);
}
.start-pathway-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: #FFFDF9;
  line-height: 1.3;
}
.start-pathway-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 249, 235, 0.84);
}
.pathway-actions {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pathway-cta-btn {
  width: 100%;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--oak-gold);
  background: var(--oak-gold);
  color: var(--forest-deep);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
}
.pathway-cta-btn:hover {
  background: var(--oak-soft);
  border-color: var(--oak-soft);
}
.pathway-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pathway-pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 253, 249, 0.28);
  background: rgba(20, 32, 25, 0.45);
  color: rgba(255, 249, 235, 0.92);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.pathway-pill:hover {
  border-color: var(--oak-soft);
  color: var(--oak-soft);
  background: rgba(197, 163, 103, 0.16);
}

.quick-tab-hub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.quick-hub-card {
  text-align: left;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 253, 249, 0.22);
  background: rgba(255, 253, 249, 0.08);
  color: #FFFDF9;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all var(--transition);
}
.quick-hub-card:hover {
  background: rgba(197, 163, 103, 0.2);
  border-color: var(--oak-gold);
  transform: translateY(-1px);
}
.quick-hub-card strong {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--oak-soft);
}
.quick-hub-card span {
  font-size: 0.78rem;
  color: rgba(255, 249, 235, 0.82);
}

.tab-step-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 32px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}
.tab-step-indicator {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-muted);
}

/* Sticky Mobile Bottom Nav */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 960px) {
  .compact-hero .hero-grid {
    grid-template-columns: 1fr;
  }
  .start-pathways-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .quick-tab-hub {
    grid-template-columns: 1fr;
  }
  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: rgba(255, 253, 249, 0.97);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--forest-pine);
    box-shadow: 0 -6px 24px rgba(20, 32, 25, 0.14);
  }
  .mobile-bottom-btn {
    border: none;
    background: transparent;
    padding: 9px 4px 10px;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ink-secondary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
  .mobile-bottom-btn.is-active {
    color: var(--berry-red);
    background: rgba(136, 59, 48, 0.08);
  }
  body {
    padding-bottom: 64px;
  }
  .cookie-banner {
    bottom: 70px;
  }
}

/* ==========================================================================
   Print Styles (Ściąga na lodówkę & Single Recipes / Articles)
   ========================================================================== */
@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
    font-size: 11pt;
    line-height: 1.45;
  }
  .utility-bar,
  .site-header,
  .site-footer,
  .cookie-banner,
  .mobile-bottom-nav,
  .tab-step-footer,
  .subtab-bar,
  .timer-dock,
  .btn,
  button,
  .skip-link,
  .modal-backdrop:not(.is-open) {
    display: none !important;
  }

  body.print-sheet .tab-view:not(#tab-view-narzedzia) {
    display: none !important;
  }
  body.print-sheet #tab-view-narzedzia {
    display: block !important;
  }
  body.print-sheet #tab-view-narzedzia .subtab-panel:not(#subtab-narzedzia-lodowka) {
    display: none !important;
  }
  body.print-sheet #subtab-narzedzia-lodowka {
    display: block !important;
  }
  body.print-sheet #lodowka {
    padding: 0 !important;
    border: none !important;
  }
  body.print-sheet .fridge-sheet {
    border: 2px solid #000 !important;
    box-shadow: none !important;
  }

  /* Custom Composer PDF Print Mode */
  body.print-custom-pdf > *:not(#pdf-print-root) {
    display: none !important;
  }
  body.print-custom-pdf #pdf-print-root {
    display: block !important;
    padding: 0;
    margin: 0;
  }
  body.print-custom-pdf .pdf-print-doc-header {
    border-bottom: 2px solid var(--forest-deep);
    padding-bottom: 12px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
  }
  body.print-custom-pdf .pdf-print-doc-header h1 {
    font-size: 20pt;
    margin: 4px 0;
    color: var(--forest-deep);
  }
  body.print-custom-pdf .pdf-print-block {
    margin-bottom: 24px;
    page-break-after: auto;
  }
  body.print-custom-pdf .pdf-print-art-media {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 14px;
    align-items: start;
    margin: 12px 0 16px;
  }
  body.print-custom-pdf .pdf-print-hero-img {
    width: 100%;
    border-radius: 6px;
    max-height: 240px;
    object-fit: cover;
  }
  body.print-custom-pdf .pdf-print-prod-box {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #F7F3EA;
    border: 1px solid #D6CEBE;
    border-radius: 6px;
    padding: 8px;
    font-size: 9.5pt;
  }
  body.print-custom-pdf .pdf-print-prod-box img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
  }
  body.print-custom-pdf .compact-hero {
    background: #F7F3EA !important;
    color: #1E3026 !important;
    border: 1px solid #D6CEBE !important;
  }
  body.print-custom-pdf .compact-hero h1,
  body.print-custom-pdf .compact-hero h2,
  body.print-custom-pdf .compact-hero h3,
  body.print-custom-pdf .compact-hero p,
  body.print-custom-pdf .compact-hero .lead {
    color: #26221E !important;
  }
  body.print-custom-pdf .card,
  body.print-custom-pdf .recipe-card,
  body.print-custom-pdf .photo-frame {
    break-inside: avoid;
  }
}

/* ==========================================================================
   PDF Hub Modal & Printable Composer Container
   ========================================================================== */
.tab-footer-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pdf-hub-body {
  padding: 24px;
  max-height: 82vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pdf-hub-section h3 {
  font-size: 1.2rem;
}

.pdf-packs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.pdf-pack-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdf-pack-card.pdf-pack-featured {
  background: linear-gradient(155deg, rgba(30, 48, 38, 0.08), rgba(197, 163, 103, 0.14));
  border-color: var(--oak-gold);
}

.pdf-pack-card h4 {
  margin: 2px 0 0;
  font-size: 1rem;
  line-height: 1.3;
}

.pdf-pack-card p {
  margin: 0 0 auto;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-secondary);
}

.pdf-composer-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.pdf-composer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pdf-composer-cols > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pdf-composer-cols strong {
  font-size: 0.84rem;
  color: var(--forest-deep);
  margin-bottom: 2px;
}

.pdf-chk {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--ink-secondary);
  cursor: pointer;
}

.pdf-chk input {
  margin-top: 3px;
  accent-color: var(--forest-pine);
}

.pdf-items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.pdf-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}

.pdf-item-row:hover {
  border-color: var(--oak-gold);
  background: var(--bg-soft);
}

.pdf-item-row strong {
  display: block;
  font-size: 0.86rem;
  color: var(--ink);
  line-height: 1.3;
}

.pdf-item-row small {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.pdf-articles-list {
  max-height: 310px;
  overflow-y: auto;
  padding-right: 4px;
}

.pdf-print-root {
  display: none;
}

.pdf-print-portion-note {
  background: #EFE9DC;
  border-left: 4px solid #883B30;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .pdf-packs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pdf-composer-cols,
  .pdf-items-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .pdf-packs-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Embedded Article Reels & Video Gallery Tab
   ========================================================================== */
.reel-frame.has-video {
  background: var(--bg-card);
}

.reel-frame.has-video .frame-canvas {
  padding: 0;
  background: #111b15;
  aspect-ratio: 9 / 16;
  max-height: 560px;
}

.reel-video-player,
.gallery-video-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #111b15;
}

.reel-caption {
  padding: 12px 14px;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.reel-caption .frame-badge {
  align-self: flex-start;
}

.reel-caption-title {
  font-family: var(--font-serif);
  font-size: 0.96rem;
  line-height: 1.3;
  color: var(--ink);
}

.videos-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.video-gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.video-gallery-card:hover {
  border-color: var(--forest-pine);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.video-gallery-card.is-special {
  border: 2px solid var(--oak-gold);
}

.video-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #111b15;
}

.video-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.video-card-body h3 {
  font-size: 1.06rem;
  line-height: 1.28;
  margin: 0;
}

.video-card-sub {
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin: 0;
  flex: 1;
}

.video-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
}

.video-standalone-note {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-muted);
}

@media (max-width: 1120px) {
  .videos-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .videos-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .videos-gallery-grid {
    grid-template-columns: 1fr;
  }
}
