/* =====================================================
   ILONA ZIMNOCH — Personal Brand Site
   Style: Prześwit — krem, śliwka, magenta, ochra
   Fonts: Zodiak (serif) + General Sans (sans)
   ===================================================== */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette — Light */
  --bg:          #fdf6ec;
  --bg-alt:      #fbeef3;
  --bg-card:     #ffffff;
  --text:        #241e29;
  --text-muted:  #6c6270;
  --primary:     #c2255c;
  --primary-hover: #93123f;
  --primary-light: #f6d9e4;
  --sand:        #f0ac1e;
  --sand-light:  #efe4ea;
  --dark-section: #241e29;
  --border:      #efe4ea;
  --shadow:      0 2px 16px rgba(36,30,41,0.08);
  --shadow-lg:   0 8px 40px rgba(36,30,41,0.14);

  /* Typography */
  --font-serif: 'Zodiak', Georgia, 'Times New Roman', serif;
  --font-sans:  'General Sans', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;
  --space-3xl:  8rem;

  /* Container */
  --container: 1200px;
  --container-padding: 1.5rem;

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 300ms;

  /* Header height */
  --header-h: 72px;
}

[data-theme="dark"] {
  --bg:          #171319;
  --bg-alt:      #241e29;
  --bg-card:     #2e2634;
  --text:        #f5eff8;
  --text-muted:  #a49aa8;
  --primary:     #e05585;
  --primary-hover: #c2255c;
  --primary-light: #3d1a2a;
  --sand:        #f0ac1e;
  --sand-light:  #2a2030;
  --dark-section: #0e0b12;
  --border:      rgba(245,239,248,0.1);
  --shadow:      0 2px 16px rgba(0,0,0,0.4);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.6);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* === CONTAINER === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; line-height: 1.2; }

.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-title em { font-style: italic; color: var(--primary); }

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

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

.body-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.body-text strong { color: var(--text); font-weight: 600; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(194,37,92,0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* === TAGS === */
.tag {
  display: inline-flex;
  padding: 0.35rem 0.9rem;
  background: var(--sand-light);
  color: var(--text-muted);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(253,246,236,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

[data-theme="dark"] .site-header {
  background: rgba(23,19,25,0.92);
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.nav-container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2rem;
}

.nav-logo {
  flex-shrink: 0;
  color: var(--text);
  transition: opacity var(--duration) var(--ease);
}
.nav-logo:hover { opacity: 0.7; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  padding: 0.5rem 0.875rem;
  border-radius: 100px;
  transition: all var(--duration) var(--ease);
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--sand-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-muted);
  transition: all var(--duration) var(--ease);
  border: 1px solid var(--border);
}
.theme-toggle:hover { color: var(--primary); border-color: var(--primary); }

.icon-sun { display: block; }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.nav-cta { padding: 0.6rem 1.25rem; font-size: 0.85rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =====================================================
   HERO
   ===================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-h);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 70% 50%, rgba(212,184,154,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: italic;
  color: var(--primary);
  display: block;
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 1.5rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3/4;
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-xl) 4px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s var(--ease);
}
.hero-photo-frame:hover .hero-photo { transform: scale(1.03); }

.hero-photo-deco {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 60%;
  height: 60%;
  background: var(--sand);
  opacity: 0.25;
  border-radius: var(--radius-xl);
  z-index: -1;
}

/* Hero stat cards */
.hero-stat-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.875rem 1.25rem;
  box-shadow: var(--shadow);
  text-align: center;
  min-width: 120px;
}

.hero-stat-1 { top: 10%; left: -8%; }
.hero-stat-2 { bottom: 14%; right: -8%; }

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* =====================================================
   ABOUT / O MNIE
   ===================================================== */
.about-section {
  background: var(--bg-alt);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-quote-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
  border-left: 4px solid var(--primary);
}

.quote-icon {
  color: var(--sand);
  margin-bottom: 1rem;
  transform: scale(0.6);
  transform-origin: left;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 1rem;
}

.quote-author {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: normal;
}

.about-deco-block {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 70%;
  height: 70%;
  background: var(--sand-light);
  border-radius: var(--radius-lg);
  z-index: 0;
}

/* Values */
.about-values {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.value-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand-light);
  border-radius: 50%;
  color: var(--primary);
}

.value-item strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.value-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* =====================================================
   SERVICES / OFERTA
   ===================================================== */
.services-section { background: var(--bg); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header .section-desc { margin: 0 auto; }

/* Audience tabs */
.audience-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.audience-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: transparent;
  transition: all var(--duration) var(--ease);
}
.audience-tab:hover { color: var(--text); border-color: var(--primary); }
.audience-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-card.hidden { display: none; }

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand-light);
  border-radius: var(--radius-md);
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.service-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.25rem 0.7rem;
  background: var(--sand-light);
  color: var(--text-muted);
  border-radius: 100px;
  width: fit-content;
}

/* =====================================================
   KNOWLEDGE / WIEDZA
   ===================================================== */
.knowledge-section {
  background: var(--dark-section);
  position: relative;
  overflow: hidden;
}

.knowledge-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 80%, rgba(196,97,74,0.12) 0%, transparent 60%),
              radial-gradient(ellipse 60% 40% at 80% 20%, rgba(212,184,154,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.knowledge-section .section-header { position: relative; z-index: 1; }

/* Filter buttons */
.knowledge-filter {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(212,184,154,0.7);
  border: 1px solid rgba(212,184,154,0.2);
  background: transparent;
  transition: all var(--duration) var(--ease);
}
.filter-btn:hover { color: var(--sand); border-color: rgba(212,184,154,0.4); }
.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Knowledge grid */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.knowledge-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,184,154,0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
}

.knowledge-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(196,97,74,0.4);
  transform: translateY(-4px);
}

.knowledge-card.hidden { display: none; }

.knowledge-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.knowledge-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  background: rgba(196,97,74,0.2);
  color: var(--primary-light);
  border: 1px solid rgba(196,97,74,0.3);
}

.knowledge-number {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: rgba(212,184,154,0.25);
  line-height: 1;
}

.knowledge-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: rgba(249,245,240,0.95);
  line-height: 1.2;
}

.knowledge-author {
  font-size: 0.8rem;
  color: rgba(212,184,154,0.6);
  font-style: italic;
}

.knowledge-excerpt {
  font-size: 0.9rem;
  color: rgba(249,245,240,0.55);
  line-height: 1.65;
  flex: 1;
}

.knowledge-read-more {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-light);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: color var(--duration) var(--ease);
  margin-top: 0.5rem;
}
.knowledge-read-more:hover { color: #fff; }

/* =====================================================
   PROCESS / JAK PRACUJĘ
   ===================================================== */
.process-section { background: var(--bg-alt); }

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 780px;
  margin: 0 auto;
  padding-top: 1rem;
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: flex-start;
  padding: 2.5rem 0;
}

.process-connector {
  width: 2px;
  height: 2rem;
  background: linear-gradient(to bottom, var(--border) 0%, var(--primary) 50%, var(--border) 100%);
  margin-left: 39px;
  opacity: 0.4;
}

.step-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-style: italic;
  font-weight: 300;
  color: var(--sand);
  line-height: 1;
  margin-top: 0.25rem;
}

.step-content h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.step-content p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =====================================================
   WHY / DLACZEGO JA
   ===================================================== */
.why-section { background: var(--bg); }

.why-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.why-check {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 3px;
}

.why-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border-left: 4px solid var(--primary);
  transition: all var(--duration) var(--ease);
}

.stat-block:hover { transform: translateX(4px); box-shadow: var(--shadow); }

.stat-big {
  display: block;
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* =====================================================
   CONTACT / KONTAKT
   ===================================================== */
.contact-section {
  background: var(--bg-alt);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: flex-start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 0.875rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
}
.contact-item:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateX(4px);
}
.contact-item svg { flex-shrink: 0; color: var(--primary); }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.form-input {
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--duration) var(--ease);
  outline: none;
  width: 100%;
}
.form-input::placeholder { color: var(--text-muted); opacity: 0.7; }
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(196,97,74,0.12); }

.form-select { appearance: none; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 120px; }

.form-submit { align-self: flex-start; }

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-success {
  padding: 1rem;
  background: rgba(196,97,74,0.12);
  border: 1px solid rgba(196,97,74,0.3);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--dark-section);
  color: rgba(249,245,240,0.65);
  padding: var(--space-xl) 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 3rem;
  align-items: start;
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(212,184,154,0.1);
}

.footer-logo { color: rgba(249,245,240,0.85); }

.footer-tagline {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  font-style: italic;
  color: rgba(212,184,154,0.5);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: rgba(249,245,240,0.55);
  transition: color var(--duration) var(--ease);
}
.footer-nav a:hover { color: rgba(249,245,240,0.9); }

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(212,184,154,0.2);
  color: rgba(212,184,154,0.6);
  transition: all var(--duration) var(--ease);
}
.footer-social a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: rgba(249,245,240,0.35);
}

/* =====================================================
   MODALS
   ===================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(26,20,16,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.modal-overlay:not([hidden]) {
  opacity: 1;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-panel {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 0;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: transform var(--duration) var(--ease);
}

.modal-overlay:not([hidden]) .modal-panel {
  transform: translateY(0);
}

.modal-close {
  position: sticky;
  top: 1rem;
  float: right;
  margin: 1rem 1rem 0 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text-muted);
  transition: all var(--duration) var(--ease);
  z-index: 10;
  flex-shrink: 0;
}
.modal-close:hover { background: var(--primary); color: #fff; }

.modal-header {
  padding: 2rem 2.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 2rem;
  margin: 0.5rem 0 0.25rem;
}

.modal-author {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.modal-body {
  padding: 2rem 2.5rem 2.5rem;
}

.modal-body p {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.modal-body h4 {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin: 1.5rem 0 0.75rem;
}

.modal-body ul, .modal-body ol {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-body li {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
  list-style: disc;
}

.modal-body ol li { list-style: decimal; }

.modal-insight {
  background: var(--sand-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--primary);
  font-size: 0.9rem !important;
  margin-top: 1.5rem !important;
}

/* Modal grids */
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.25rem 0;
}

.modal-category {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.modal-category h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
  color: var(--primary);
}

.modal-category ul {
  padding-left: 1rem;
  gap: 0.35rem;
}

.modal-category li {
  font-size: 0.875rem;
  list-style: none;
  padding-left: 0;
  color: var(--text);
}

/* Ratio visual */
.modal-ratio-visual {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  align-items: stretch;
}

.ratio-bar {
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  flex: 1;
}

.ratio-bar.positive {
  background: rgba(196,97,74,0.12);
  border: 1px solid rgba(196,97,74,0.25);
  flex: 3;
}

.ratio-bar.negative {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  flex: 1;
}

.ratio-bar span {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--primary);
  display: block;
  margin-bottom: 0.25rem;
}

.ratio-bar p {
  font-size: 0.8rem !important;
  margin: 0 !important;
  color: var(--text);
  opacity: 0.8;
}

.modal-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1.5rem;
}

.modal-tags-list span {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  background: rgba(196,97,74,0.1);
  border: 1px solid rgba(196,97,74,0.2);
  border-radius: 100px;
  color: var(--primary);
}

/* PERMA grid */
.modal-perma-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.25rem 0;
}

.perma-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.perma-letter {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  font-style: italic;
  color: var(--primary);
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
}

.perma-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.perma-item p {
  font-size: 0.85rem !important;
  margin: 0 !important;
  color: var(--text);
  line-height: 1.5;
  opacity: 0.75;
}

/* 4C grid */
.modal-4c-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}

.c-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.c-letter {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 300;
  font-style: italic;
  color: var(--primary);
  line-height: 1;
  flex-shrink: 0;
}

.c-item strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.c-item p {
  font-size: 0.825rem !important;
  margin: 0 !important;
  color: var(--text);
  line-height: 1.5;
  opacity: 0.75;
}

/* Flow diagram */
.modal-flow-diagram {
  position: relative;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin: 1.5rem 0;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.flow-zone {
  text-align: center;
  background: rgba(196,97,74,0.12);
  border: 1px solid rgba(196,97,74,0.25);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  max-width: 280px;
}

.flow-zone-label {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-style: italic;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.flow-zone p {
  font-size: 0.8rem !important;
  margin: 0 !important;
  color: var(--text);
  opacity: 0.8;
}

.flow-state {
  position: absolute;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.flow-state small {
  display: block;
  font-weight: 400;
  font-size: 0.7rem;
}

.flow-state.boredom { bottom: 1.5rem; left: 1.5rem; }
.flow-state.anxiety { top: 1.5rem; right: 1.5rem; }

.modal-pillars-list {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
}

.modal-pillars-list li {
  font-size: 0.95rem !important;
  color: var(--text);
  line-height: 1.6;
  list-style: decimal !important;
}

/* =====================================================
   SCROLL ANIMATIONS
   ===================================================== */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

[data-animate="fade-right"] {
  transform: translateX(-24px);
}

[data-animate="fade-left"] {
  transform: translateX(24px);
}

[data-animate="fade-in-delay"] {
  transform: translateY(16px);
  transition-delay: 0.15s;
}

[data-animate].in-view {
  opacity: 1;
  transform: translate(0, 0);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
  .hero-container {
    gap: 2.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .knowledge-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-container {
    gap: 3rem;
  }

  .why-container {
    gap: 3rem;
  }

  .contact-container {
    gap: 3rem;
  }

  .hero-stat-1 { left: -4%; }
  .hero-stat-2 { right: -4%; }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
    --space-3xl: 4.5rem;
  }

  /* Mobile nav */
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
    z-index: 99;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 0.875rem 0;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 1rem;
  }

  .nav-link:last-child { border-bottom: none; }
  .nav-link:hover { background: transparent; color: var(--primary); }

  .nav-cta { display: none; }

  /* Hero */
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    padding-top: 2rem;
  }

  .hero-title { font-size: clamp(2.25rem, 8vw, 3rem); }
  .hero-desc { margin: 0 auto 1.5rem; }
  .hero-tags { justify-content: center; }
  .hero-ctas { justify-content: center; }

  .hero-visual { order: -1; }

  .hero-photo-frame {
    max-width: 300px;
    aspect-ratio: 3/4;
    margin: 0 auto;
  }

  .hero-stat-1, .hero-stat-2 { display: none; }

  /* About */
  .about-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-deco-block { display: none; }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Knowledge */
  .knowledge-grid {
    grid-template-columns: 1fr;
  }

  /* Process */
  .process-step {
    grid-template-columns: 60px 1fr;
    gap: 1.25rem;
  }

  /* Why */
  .why-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Contact */
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-social { justify-content: flex-start; }

  /* Modal */
  .modal-panel { max-height: 90vh; }
  .modal-header { padding: 1.5rem 1.5rem 1.25rem; }
  .modal-body { padding: 1.5rem; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-4c-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.25rem; }
  .section-title { font-size: 1.75rem; }
  .contact-form { padding: 1.5rem; }
  .process-step { grid-template-columns: 50px 1fr; gap: 1rem; }
  .step-number { font-size: 2.25rem; }
}

/* === FOCUS STYLES === */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 3px;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-animate] { opacity: 1; transform: none; }
  .hero-scroll-hint { animation: none; }
}

/* =====================================================
   KNOWLEDGE SECTION — FIXES
   ===================================================== */

/* Tytuł sekcji na ciemnym tle */
.knowledge-title-main {
  color: #f0e8df;
}
.knowledge-em {
  color: var(--primary-light) !important;
  font-style: italic;
}

/* Karty wiedzy — podwyższony kontrast */
.knowledge-card {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(212,184,154,0.25) !important;
}

.knowledge-card:hover {
  background: rgba(255,255,255,0.13) !important;
  border-color: rgba(196,97,74,0.5) !important;
}

.knowledge-title {
  color: #f0e8df !important;
}

.knowledge-author {
  color: rgba(212,184,154,0.8) !important;
}

.knowledge-excerpt {
  color: rgba(240,232,223,0.72) !important;
}

.knowledge-number {
  color: rgba(212,184,154,0.35) !important;
}

/* Przyciski filtrów na ciemnym tle */
.filter-btn {
  color: rgba(212,184,154,0.8) !important;
  border-color: rgba(212,184,154,0.3) !important;
}
.filter-btn:hover {
  color: #f0e8df !important;
  border-color: rgba(212,184,154,0.6) !important;
}
.filter-btn.active {
  color: #fff !important;
  border-color: var(--primary) !important;
}

/* Lokalizacja w kontakcie */
.contact-location {
  cursor: default;
  font-weight: 500;
  color: var(--text) !important;
}
.contact-location:hover {
  transform: none !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

/* Lokalizacja w stopce */
.footer-location {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: rgba(249,245,240,0.25);
  letter-spacing: 0.05em;
}
