/* =========================================================
   Akademia Palik.IT — Main Stylesheet
   Loaded via wp_enqueue_scripts() w functions.php
   ========================================================= */

/* =========================================================
   1. CSS DESIGN TOKENS
   ========================================================= */
:root {
  /* Brand colours */
  --c-yellow:     #EFC84A;   /* primary brand yellow */
  --c-ink:        #1F1B14;   /* near-black */
  --c-cream:      #FAF8F3;   /* background */
  --c-surface:    #F4F0E8;   /* warm cream cards */
  --c-muted:      #EDE9DF;
  --c-muted-fg:   #7A7060;
  --c-border:     #DDD8CE;
  --c-white:      #FFFFFF;
  --c-red:        #E54B4B;

  /* Fonts */
  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-sans:    "Inter", system-ui, sans-serif;

  /* Radius */
  --r-sm:   0.5rem;
  --r-base: 0.75rem;
  --r-lg:   1rem;
  --r-xl:   1.5rem;
  --r-2xl:  2rem;
  --r-3xl:  3rem;
  --r-full: 9999px;

  /* Shadows */
  --shadow-card:  0 10px 30px -12px rgba(31,27,20,0.18);
  --shadow-brand: 0 20px 50px -20px rgba(239,200,74,0.55);

  /* Layout */
  --max-w: 1280px;
  --px:    1.5rem;

  /* Transitions */
  --t: 220ms cubic-bezier(0.4,0,0.2,1);

  /* Grid line */
  --grid-line: rgba(31,27,20,0.055);
}

/* =========================================================
   2. RESET + BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-ink);
  background-color: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01","cv11";
  margin: 0;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* =========================================================
   3. UTILITY
   ========================================================= */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}

.section-pad { padding-block: 6rem; }
.section-pad-sm { padding-block: 3.5rem; }

/* Colour sections */
.bg-dark   { background-color: var(--c-ink);    color: var(--c-cream); }
.bg-yellow { background-color: var(--c-yellow); color: var(--c-ink); }
.bg-cream  { background-color: var(--c-cream); }

/* Grid background pattern */
.bg-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Highlight underline */
.highlight {
  position: relative;
  display: inline-block;
}
.highlight > span {
  position: relative;
  z-index: 1;
  padding-inline: 0.2em;
}
.highlight::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0.1em;
  height: 0.35em;
  background-color: var(--c-yellow);
  z-index: 0;
  transform: rotate(-0.5deg);
}

/* Badge pill */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: var(--c-yellow);
  color: var(--c-ink);
  padding: 0.375rem 0.875rem;
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.badge--dark {
  background-color: var(--c-ink);
  color: var(--c-cream);
}

.badge--red {
  background-color: var(--c-red);
  color: #fff;
}

/* Eyebrow label */
.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* =========================================================
   4. BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--r-base);
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color var(--t), color var(--t), box-shadow var(--t), gap var(--t);
  line-height: 1;
}

.btn--primary {
  background-color: var(--c-ink);
  color: var(--c-cream);
}
.btn--primary:hover {
  background-color: var(--c-yellow);
  color: var(--c-ink);
}

.btn--outline {
  background-color: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.btn--outline:hover {
  background-color: var(--c-ink);
  color: var(--c-cream);
}

.btn--yellow {
  background-color: var(--c-yellow);
  color: var(--c-ink);
}
.btn--yellow:hover {
  box-shadow: var(--shadow-brand);
}

.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; transition: transform var(--t); }
.btn:hover svg { transform: translateX(3px); }

/* =========================================================
   5. SITE HEADER
   ========================================================= */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250,248,243,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 2rem;
}

/* Logo */
.site-logo img {
  height: 48px;
  width: auto;
}
.site-logo .text-logo {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--c-ink);
  text-decoration: none;
}

/* Primary nav */
#primary-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}

#primary-menu a {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--c-ink);
  transition: color var(--t);
}
#primary-menu a:hover { color: var(--c-muted-fg); }

#primary-menu .menu-cta > a {
  background-color: var(--c-ink);
  color: var(--c-cream);
  padding: 0.625rem 1.125rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  text-decoration: none;
  transition: opacity var(--t);
}
#primary-menu .menu-cta > a:hover { opacity: 0.85; }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--c-ink);
}
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }

/* WooCommerce cart icon in nav */
.header-cart {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--c-ink);
  position: relative;
}
.header-cart .cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: var(--c-yellow);
  color: var(--c-ink);
  font-size: 0.625rem;
  font-weight: 700;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   6. MOBILE NAV
   ========================================================= */
@media (max-width: 767px) {
  .nav-toggle { display: flex; }

  #primary-menu {
    display: none;
    position: fixed;
    inset: 80px 0 0 0;
    background-color: var(--c-cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem var(--px);
    gap: 1.5rem;
    border-top: 2px solid var(--c-border);
    overflow-y: auto;
    z-index: 99;
  }

  #primary-menu.is-open { display: flex; }

  #primary-menu a { font-size: 1.125rem; }
  #primary-menu .menu-cta > a { font-size: 1rem; width: 100%; justify-content: center; }
}

/* =========================================================
   7. HERO SECTION
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--c-cream);
}

/* Grid overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.7;
  pointer-events: none;
}

/* Yellow blob */
.hero::after {
  content: "";
  position: absolute;
  top: -8rem; left: -8rem;
  width: 24rem; height: 24rem;
  background-color: var(--c-yellow);
  opacity: 0.35;
  border-radius: 40%;
  filter: blur(60px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-block: 5rem;
}

@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 7fr 5fr; align-items: center; }
}

/* Text side */
.hero-content { display: flex; flex-direction: column; gap: 1.5rem; }

.hero-title {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: 1.25rem;
}

.hero-title__block {
  display: block;
}

.hero-rotator {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
  background-color: rgba(239, 200, 74, 0.5);
  color: var(--c-ink);
  padding: 0.05em 0.35em;
  border-radius: var(--r-base);
}

.hero-rotator__item {
  display: inline-block;
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.hero-rotator__item.is-animating-out {
  opacity: 0;
  transform: translateY(-25%);
}

.hero-rotator__item.is-animating-in {
  opacity: 0;
  transform: translateY(25%);
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-rotator__item {
    transition: none !important;
    transform: none !important;
  }
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--c-muted-fg);
  max-width: 38rem;
  text-wrap: balance;
}
.hero-lead strong { color: var(--c-ink); }

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 0.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 2rem;
  margin-top: 2.5rem;
}

.hero-stat {
  border-left: 4px solid var(--c-yellow);
  padding-left: 1rem;
}

.hero-stat__num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1;
}

.hero-stat__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-muted-fg);
  margin-top: 0.25rem;
}

/* Image side */
.hero-image {
  position: relative;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--c-yellow);
  border-radius: var(--r-3xl);
  transform: rotate(3deg);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--c-ink);
  border-radius: var(--r-3xl);
  transform: rotate(-2deg) translate(12px, 12px);
}

.hero-image img,
.hero-image .hero-image__placeholder {
  position: relative;
  z-index: 1;
  border-radius: var(--r-3xl);
  width: 100%;
  display: block;
}

.hero-image__placeholder {
  aspect-ratio: 4/5;
  background-color: var(--c-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

/* Floating cards */
.hero-card {
  position: absolute;
  z-index: 2;
  background-color: var(--c-cream);
  border: 2px solid var(--c-ink);
  border-radius: var(--r-lg);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-card);
}

.hero-card--instructor {
  bottom: -1rem;
  left: -1rem;
}

.hero-card--badge {
  top: -1rem;
  right: -1rem;
  background-color: var(--c-ink);
  color: var(--c-cream);
  border-color: var(--c-ink);
}

.hero-card__label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-muted-fg);
}

.hero-card--badge .hero-card__label { color: var(--c-yellow); }

.hero-card__name {
  font-size: 0.875rem;
  font-weight: 700;
  margin-top: 0.125rem;
}

/* =========================================================
   8. MARQUEE / TOOLS STRIP
   ========================================================= */
.tools-strip {
  background-color: var(--c-ink);
  color: var(--c-cream);
  border-top: 4px solid var(--c-yellow);
  border-bottom: 4px solid var(--c-yellow);
}

.tools-strip-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 1.25rem;
  flex-wrap: wrap;
}

.tools-strip__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--c-yellow);
  white-space: nowrap;
  flex-shrink: 0;
}

.tools-strip__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
}

.tools-strip__list li {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1rem;
  opacity: 0.8;
  transition: opacity var(--t);
}
.tools-strip__list li:hover { opacity: 1; }

/* =========================================================
   9. PRODUCTS SECTION — WooCommerce grid
   ========================================================= */
.products-section {
  position: relative;
  overflow: hidden;
  background-color: var(--c-cream);
}

/* Grid bg pattern */
.products-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.6;
  pointer-events: none;
}

.products-section__inner {
  position: relative;
  z-index: 1;
}

/* Section header row */
.products-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.products-header__left { display: flex; flex-direction: column; gap: 0.5rem; }

.products-header__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  max-width: 36rem;
  text-wrap: balance;
  margin-top: 0.5rem;
}

.products-header__desc {
  color: var(--c-muted-fg);
  max-width: 26rem;
  margin-top: 0.375rem;
}

.products-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--c-ink);
  border-bottom: 2px solid var(--c-yellow);
  padding-bottom: 0.125rem;
  transition: gap var(--t);
  white-space: nowrap;
  align-self: flex-end;
}
.products-header__cta:hover { gap: 0.875rem; }
.products-header__cta svg { width: 1rem; height: 1rem; transition: transform var(--t); }
.products-header__cta:hover svg { transform: translateX(3px); }

/* 4-column grid */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px)  { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }

/* ─── Product Card ─── */
.product-card {
  display: flex;
  flex-direction: column;
  background-color: var(--c-white);
  border: 2px solid var(--c-ink);
  border-radius: var(--r-xl);
  overflow: hidden;
  text-decoration: none;
  color: var(--c-ink);
  box-shadow: var(--shadow-card);
  transition: transform var(--t), box-shadow var(--t);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-brand);
}

/* Thumbnail */
.product-card__thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: var(--c-surface);
  overflow: hidden;
}

.product-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  transition: transform 500ms ease;
}

.product-card:hover .product-card__thumb img {
  transform: scale(1.06);
}

.product-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: 0.2;
}

/* Badge on image */
.product-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--c-yellow);
  color: var(--c-ink);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: var(--r-full);
  line-height: 1.5;
}

.product-card__badge--dark  { background-color: var(--c-ink);  color: var(--c-cream); }
.product-card__badge--red   { background-color: var(--c-red);  color: #fff; }

/* Out of stock overlay */
.product-card--outofstock .product-card__thumb::after {
  content: "Niedostępny";
  position: absolute;
  inset: 0;
  background-color: rgba(31,27,20,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Body */
.product-card__body {
  padding: 1.25rem 1.375rem 1.375rem;
  border-top: 2px solid var(--c-ink);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.product-card__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.product-card__excerpt {
  font-size: 0.8125rem;
  color: var(--c-muted-fg);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer row: price + arrow */
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--c-muted);
}

.product-card__price {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.1875rem;
}

.product-card__price del {
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.4;
  margin-right: 0.25rem;
}

/* WooCommerce price elements */
.product-card__price .woocommerce-Price-amount { color: var(--c-ink); }
.product-card__price ins { text-decoration: none; }

.product-card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background-color: var(--c-yellow);
  color: var(--c-ink);
  border-radius: var(--r-sm);
  flex-shrink: 0;
  transition: background-color var(--t), transform var(--t);
}

.product-card:hover .product-card__arrow {
  background-color: var(--c-ink);
  color: var(--c-cream);
  transform: translate(2px, -2px);
}

.product-card__arrow svg { width: 0.875rem; height: 0.875rem; }

/* Empty state */
.products-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--c-muted-fg);
  font-size: 1.0625rem;
}

/* =========================================================
   10. PROBLEM SECTION
   ========================================================= */
.problem-section { position: relative; overflow: hidden; }

.problem-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.problem-section::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 24rem; height: 24rem;
  background-color: var(--c-yellow);
  opacity: 0.08;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.problem-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .problem-inner { grid-template-columns: 5fr 7fr; align-items: start; gap: 4rem; }
}

.problem-title { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; text-wrap: balance; margin-top: 0.625rem; }
.problem-title span { color: var(--c-yellow); }

.problem-content { display: flex; flex-direction: column; gap: 1.25rem; }
.problem-content p { font-size: 1.0625rem; opacity: 0.9; }
.problem-content em { font-style: italic; }
.problem-content strong { color: var(--c-yellow); font-style: normal; }

.problem-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.problem-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
}

.problem-list li::before {
  content: "✓";
  font-weight: 700;
  color: var(--c-yellow);
  flex-shrink: 0;
  margin-top: 0.1em;
}

/* =========================================================
   11. PROJECTS GRID (6 projektów)
   ========================================================= */
.projects-section { background-color: var(--c-cream); }

.projects-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.projects-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  max-width: 36rem;
  margin-top: 0.5rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px)  { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
  border-radius: var(--r-xl);
  background-color: var(--c-white);
  border: 2px solid var(--c-ink);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: background-color var(--t), transform var(--t);
  cursor: default;
}

.project-card:hover {
  background-color: var(--c-yellow);
  transform: translateY(-4px);
}

.project-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-card__icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--c-yellow);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  transition: background-color var(--t);
}

.project-card:hover .project-card__icon {
  background-color: var(--c-ink);
}

.project-card__num {
  font-family: var(--f-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--c-muted-fg);
  transition: color var(--t);
}
.project-card:hover .project-card__num { color: var(--c-ink); }

.project-card__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.0625rem;
  margin-top: 1.25rem;
}

.project-card__desc {
  font-size: 0.875rem;
  color: var(--c-muted-fg);
  margin-top: 0.5rem;
  line-height: 1.55;
  transition: color var(--t);
}
.project-card:hover .project-card__desc { color: rgba(31,27,20,0.7); }

/* =========================================================
   12. CURRICULUM / STEPS
   ========================================================= */
.curriculum-section { background-color: var(--c-ink); color: var(--c-cream); }

.curriculum-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 3.5rem;
}

@media (min-width: 640px)  { .curriculum-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .curriculum-grid { grid-template-columns: repeat(4, 1fr); } }

.step-card {
  position: relative;
  background-color: var(--c-cream);
  color: var(--c-ink);
  border-radius: var(--r-xl);
  padding: 2rem;
  border: 2px solid var(--c-yellow);
}

.step-card__num {
  position: absolute;
  top: -0.875rem;
  left: 1.5rem;
  background-color: var(--c-yellow);
  color: var(--c-ink);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-full);
}

.step-card__title {
  font-size: 1.125rem;
  margin-top: 0.5rem;
}

.step-card__desc {
  font-size: 0.875rem;
  color: var(--c-muted-fg);
  margin-top: 0.75rem;
  line-height: 1.55;
}

/* =========================================================
   13. ABOUT SECTION
   ========================================================= */
.about-section { background-color: var(--c-cream); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .about-inner { grid-template-columns: 5fr 7fr; align-items: center; gap: 4rem; }
}

.about-photo {
  position: relative;
}

.about-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--c-yellow);
  border-radius: var(--r-2xl);
  transform: rotate(3deg);
}

.about-photo img {
  position: relative;
  z-index: 1;
  border-radius: var(--r-2xl);
  border: 2px solid var(--c-ink);
  width: 100%;
  max-width: 28rem;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top;
}

.about-content { display: flex; flex-direction: column; gap: 1.25rem; }

.about-title { font-size: clamp(2rem, 5vw, 3.25rem); margin-top: 0.625rem; }

.about-text { font-size: 1.0625rem; color: var(--c-muted-fg); line-height: 1.7; }

.about-text a {
  color: var(--c-ink);
  font-weight: 600;
  text-underline-offset: 4px;
  text-decoration-color: var(--c-yellow);
  text-decoration-thickness: 3px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.about-tag {
  border: 2px solid var(--c-ink);
  border-radius: var(--r-full);
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* =========================================================
   13b. SOCIAL PROOF / HISTORIE KURSANTÓW
   ========================================================= */
.social-proof-section {
  background-color: var(--c-surface);
  border-top: 2px solid var(--c-ink);
  border-bottom: 2px solid var(--c-ink);
}

.social-proof-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 48rem;
  margin-bottom: 3.5rem;
}

.social-proof-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.social-proof-subtitle {
  font-size: 1.125rem;
  color: var(--c-muted-fg);
  line-height: 1.6;
}

.social-proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .social-proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .social-proof-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.proof-card {
  background-color: var(--c-white);
  border: 2px solid var(--c-ink);
  border-radius: var(--r-2xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform var(--t), box-shadow var(--t);
  position: relative;
}

.proof-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -10px rgba(31,27,20,0.18);
}

.proof-card--placeholder {
  background-color: var(--c-cream);
  border: 2px dashed var(--c-ink);
}

.proof-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.proof-card__avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--r-full);
  border: 2px solid var(--c-ink);
  background-color: var(--c-yellow);
  color: var(--c-ink);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.proof-card__avatar--dark {
  background-color: var(--c-ink);
  color: var(--c-cream);
}

.proof-card__avatar--dashed {
  background-color: transparent;
  border: 2px dashed var(--c-ink);
  color: var(--c-ink);
  font-size: 1.35rem;
}

.proof-card__badge-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 0.95rem;
  height: 0.95rem;
  background-color: #10B981;
  border: 2px solid var(--c-white);
  border-radius: var(--r-full);
}

.proof-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.proof-card__name {
  font-family: var(--f-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.2;
}

.proof-card__role {
  font-size: 0.8125rem;
  color: var(--c-muted-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proof-card__tag {
  align-self: flex-start;
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--r-full);
  background-color: var(--c-cream);
  border: 1px solid var(--c-border);
  color: var(--c-ink);
  margin-bottom: 0.875rem;
}

.proof-card--placeholder .proof-card__tag {
  background-color: var(--c-yellow);
  border-color: var(--c-ink);
}

.proof-card__body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--c-ink);
  margin-bottom: 1.25rem;
  flex: 1;
}

/* Stylizowany mini-ekran / mockup */
.proof-screen {
  border: 2px solid var(--c-ink);
  border-radius: var(--r-base);
  overflow: hidden;
  background-color: var(--c-cream);
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px -2px rgba(31,27,20,0.08);
}

.proof-screen__bar {
  background-color: #E8E3D8;
  border-bottom: 1.5px solid var(--c-ink);
  padding: 0.4rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.proof-screen__dots {
  display: flex;
  gap: 0.3rem;
}

.proof-screen__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--r-full);
}
.proof-screen__dot--red    { background-color: #EF4444; }
.proof-screen__dot--yellow { background-color: #F59E0B; }
.proof-screen__dot--green  { background-color: #10B981; }

.proof-screen__url {
  font-family: monospace;
  font-size: 0.6875rem;
  color: var(--c-muted-fg);
  background: var(--c-white);
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(31,27,20,0.15);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 14rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proof-screen__view {
  padding: 0.85rem;
  background-color: #FFFFFF;
  min-height: 115px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.proof-screen__view--rybka {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #ffffff;
  padding: 0.875rem 1rem;
  position: relative;
  overflow: hidden;
}

.proof-screen__view--rybka::after {
  content: "";
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.proof-screen__view--krolowa {
  background: linear-gradient(145deg, #102821 0%, #1A3C34 60%, #15312B 100%);
  color: #ffffff;
  padding: 0.875rem 1rem;
  position: relative;
  overflow: hidden;
}

.proof-screen__view--krolowa::after {
  content: "";
  position: absolute;
  top: -25px;
  right: -25px;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(239, 200, 74, 0.22) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.proof-screen__view--empty {
  background-color: var(--c-cream);
  border: 2px dashed rgba(31,27,20,0.25);
  border-radius: var(--r-sm);
  margin: 0.5rem;
  min-height: 95px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--c-muted-fg);
  padding: 0.75rem;
}

.proof-screen-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.proof-screen-title {
  font-family: var(--f-display);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
}

.proof-screen-tag {
  font-size: 0.625rem;
  font-weight: 600;
  background: rgba(255,255,255,0.25);
  padding: 0.15rem 0.45rem;
  border-radius: var(--r-full);
  backdrop-filter: blur(4px);
}

.proof-screen-sub {
  font-size: 0.6875rem;
  opacity: 0.9;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.proof-screen-action {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.625rem;
  font-weight: 600;
  background: var(--c-yellow);
  color: var(--c-ink);
  padding: 0.25rem 0.6rem;
  border-radius: 0.25rem;
  width: fit-content;
}

.proof-card__footer {
  margin-top: auto;
  padding-top: 0.875rem;
  border-top: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.proof-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-ink);
  text-decoration: none;
  transition: color var(--t), gap var(--t);
}

.proof-card__link:hover {
  color: #B45309;
  gap: 0.55rem;
}

.proof-card__link svg {
  transition: transform var(--t);
}

.proof-card__link:hover svg {
  transform: translate(2px, -2px);
}

.proof-card__btn {
  width: 100%;
  justify-content: center;
}

/* =========================================================
   14. PILLARS (yellow section)
   ========================================================= */
.pillars-section { background-color: var(--c-yellow); }

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px)  { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pillars-grid { grid-template-columns: repeat(4, 1fr); } }

.pillar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pillar__icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--c-ink);
  color: var(--c-yellow);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
}

.pillar__title { font-size: 1.125rem; font-weight: 700; }
.pillar__desc  { font-size: 0.875rem; opacity: 0.8; }

/* =========================================================
   15. SIGNUP CTA
   ========================================================= */
.signup-section { background-color: var(--c-ink); color: var(--c-cream); }

.signup-box {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--c-yellow);
  border-radius: var(--r-2xl);
  background-color: var(--c-cream);
  color: var(--c-ink);
  padding: 3.5rem;
}

.signup-box::before {
  content: "";
  position: absolute;
  top: -5rem; right: -5rem;
  width: 20rem; height: 20rem;
  background-color: var(--c-yellow);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
}

.signup-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .signup-inner { grid-template-columns: 1fr 1fr; align-items: center; }
}

.signup-title { font-size: clamp(2rem, 5vw, 3.25rem); margin-top: 0.625rem; }

.signup-form { display: flex; flex-direction: column; gap: 0.75rem; }
.signup-form label { font-size: 0.875rem; font-weight: 600; }

.signup-row {
  display: flex;
  gap: 0.75rem;
  flex-direction: column;
}

@media (min-width: 480px) { .signup-row { flex-direction: row; } }

.signup-input {
  flex: 1;
  border: 2px solid var(--c-ink);
  border-radius: var(--r-base);
  padding: 0.875rem 1.25rem;
  font-family: var(--f-sans);
  font-size: 0.9375rem;
  background-color: var(--c-cream);
  color: var(--c-ink);
  outline: none;
  transition: border-color var(--t);
}
.signup-input:focus { border-color: var(--c-yellow); }
.signup-input::placeholder { color: var(--c-muted-fg); }

.signup-note { font-size: 0.75rem; color: var(--c-muted-fg); }

/* =========================================================
   16. FOOTER
   ========================================================= */
#site-footer {
  background-color: var(--c-cream);
  border-top: 2px solid var(--c-ink);
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.footer-brand img { height: 2rem; width: auto; }

.footer-copy {
  font-size: 0.875rem;
  color: var(--c-muted-fg);
}

.footer-nav,
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--c-ink);
  transition: color var(--t);
}
.footer-nav a:hover { color: var(--c-yellow); }

/* =========================================================
   16b. FOOTER CONTACT
   ========================================================= */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-contact {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.footer-contact__header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-contact__title {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
}

.footer-contact__lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-muted-fg);
  max-width: 44rem;
  margin-top: 0.75rem;
}

.footer-contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 34rem;
}

.footer-contact__card {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  background-color: var(--c-white);
  border: 2px solid var(--c-ink);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--c-ink);
  box-shadow: var(--shadow-card);
  transition: background-color var(--t), transform var(--t), box-shadow var(--t);
}

.footer-contact__card:hover {
  background-color: var(--c-yellow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-brand);
}

.footer-contact__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  background-color: var(--c-yellow);
  color: var(--c-ink);
  border-radius: var(--r-base);
  transition: background-color var(--t), color var(--t);
}

.footer-contact__card:hover .footer-contact__icon {
  background-color: var(--c-ink);
  color: var(--c-yellow);
}

.footer-contact__icon svg { width: 1.25rem; height: 1.25rem; }

.footer-contact__meta {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.footer-contact__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--c-muted-fg);
  transition: color var(--t);
}

.footer-contact__value {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--c-ink);
  white-space: nowrap;
  transition: color var(--t);
}

.footer-contact__card:hover .footer-contact__label,
.footer-contact__card:hover .footer-contact__value { color: var(--c-ink); }

/* =========================================================
   17. WOOCOMMERCE — ARCHIWUM / SKLEP
   ========================================================= */
.woocommerce-page .site-main { padding-block: 4rem; }

/* WC buttons → nasze style */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background-color: var(--c-ink) !important;
  color: var(--c-cream) !important;
  border: none;
  border-radius: var(--r-base);
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.25rem;
  transition: background-color var(--t), color var(--t);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background-color: var(--c-yellow) !important;
  color: var(--c-ink) !important;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background-color: var(--c-yellow) !important;
  color: var(--c-ink) !important;
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background-color: var(--c-ink) !important;
  color: var(--c-cream) !important;
}

/* Prices */
.woocommerce .price,
.woocommerce-page .price {
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--c-ink);
}

/* WC sale badge */
.woocommerce span.onsale {
  background-color: var(--c-red);
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 0.75rem;
  min-width: 0;
  min-height: 0;
  padding: 0.25rem 0.625rem;
  line-height: 1.5;
  top: 1rem;
  left: 1rem;
}

/* Breadcrumbs */
.woocommerce .woocommerce-breadcrumb {
  font-size: 0.875rem;
  color: var(--c-muted-fg);
  margin-bottom: 2rem;
}

.woocommerce .woocommerce-breadcrumb a { color: var(--c-muted-fg); }

/* Single product */
.woocommerce div.product .product_title {
  font-family: var(--f-display);
  letter-spacing: -0.02em;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--c-ink);
}

/* Checkout inputs */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 2px solid var(--c-border);
  border-radius: var(--r-base);
  padding: 0.75rem 1rem;
  font-family: var(--f-sans);
  font-size: 0.9375rem;
  transition: border-color var(--t);
  width: 100%;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  border-color: var(--c-yellow);
  outline: none;
}

/* =========================================================
   18. GENERIC POST / PAGE CONTENT
   ========================================================= */
.entry-content {
  max-width: 720px;
  margin-inline: auto;
  padding-block: 3rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 { margin-block: 1.5rem 0.75rem; }

.entry-content p  { margin-bottom: 1rem; line-height: 1.75; }

.entry-content a  { text-underline-offset: 3px; text-decoration-color: var(--c-yellow); text-decoration-thickness: 2px; }

.entry-content ul,
.entry-content ol {
  padding-left: 1.5rem;
  list-style: disc;
  margin-bottom: 1rem;
}

.entry-content img { border-radius: var(--r-base); }

/* =========================================================
   19. PAGINATION
   ========================================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination a,
.pagination .current {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-base);
  border: 2px solid var(--c-border);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--c-ink);
  transition: background-color var(--t), border-color var(--t), color var(--t);
}

.pagination a:hover {
  border-color: var(--c-ink);
}

.pagination .current {
  background-color: var(--c-yellow);
  border-color: var(--c-yellow);
}

/* =========================================================
   20. COMMENTS (uproszczone)
   ========================================================= */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  border: 2px solid var(--c-border);
  border-radius: var(--r-base);
  padding: 0.75rem 1rem;
  font-family: var(--f-sans);
  font-size: 0.9375rem;
  width: 100%;
  transition: border-color var(--t);
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--c-yellow); outline: none; }

.comment-form .submit { /* reuse .btn */ }
