/* ============================================================
   Maciej Matera - Craft-inspired Theme
   ============================================================
   A second design pass for the landing page. Same components,
   same content - completely new visual language:
   - airy cream + sky-blue palette
   - pastel cards (lavender, mint, butter, peach, sky, coral)
   - serif display (Newsreader) + Plus Jakarta Sans body
   - generous rounded corners and soft shadows (iOS feel)
   - subtle cloud illustrations
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- Tokens ------------------------------------------- */

:root {
  /* Surfaces */
  --c-cream:        #FAF7F0;
  --c-cream-2:      #F4EFE5;
  --c-paper:        #FFFFFF;
  --c-ink:          #1B1B1D;
  --c-ink-2:        #3F3D3A;
  --c-muted:        #807A70;
  --c-line:         rgba(27, 27, 29, 0.08);
  --c-line-strong:  rgba(27, 27, 29, 0.16);

  /* Sky */
  --c-sky-1:        #DCEBF6;
  --c-sky-2:        #C5DCEF;
  --c-sky-3:        #A9C9E5;
  --c-sky-deep:     #4F7CA8;

  /* Pastel cards (Craft palette) */
  --c-lavender:     #D9CFEE;
  --c-lavender-ink: #3B2F61;
  --c-mint:         #B9DEC8;
  --c-mint-ink:     #1F4A38;
  --c-butter:       #F5DC8E;
  --c-butter-ink:   #5B4416;
  --c-peach:        #F3CDB0;
  --c-peach-ink:    #5A3520;
  --c-coral:        #EFB6AE;
  --c-coral-ink:    #5A2620;
  --c-sage:         #C9D7B5;
  --c-sage-ink:     #2D4218;

  /* Accent (warm orange - for emphasis) */
  --c-accent:       #E07A4B;
  --c-accent-deep:  #B85A30;

  /* Dark surfaces (used sparingly) */
  --c-night:        #1B1B1D;
  --c-night-soft:   #28272A;

  /* Radii (iOS-generous) */
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   22px;
  --r-xl:   28px;
  --r-2xl:  36px;
  --r-pill: 999px;

  /* Shadows (soft, warm) */
  --sh-1: 0 1px 2px rgba(27,27,29,.04), 0 1px 1px rgba(27,27,29,.03);
  --sh-2: 0 4px 14px rgba(27,27,29,.05), 0 2px 4px rgba(27,27,29,.03);
  --sh-3: 0 16px 40px -12px rgba(27,27,29,.10), 0 6px 14px -6px rgba(27,27,29,.06);
  --sh-lift: 0 30px 60px -20px rgba(27,27,29,.18), 0 8px 18px -8px rgba(27,27,29,.10);

  /* Fonts */
  --f-serif: "Newsreader", "Charter", "Iowan Old Style", Georgia, serif;
  --f-sans:  "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ---------- Reset / base ------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  overflow-x: clip;
  max-width: 100vw;
  font-family: var(--f-sans);
  color: var(--c-ink);
  background: var(--c-cream);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

em { font-style: italic; font-family: var(--f-serif); font-weight: 500; }

/* Loader from index - hide it (we don't need craft.do-style loader) */
.g-loader { display: none !important; }

/* Lucide icons inherit currentColor */
[data-lucide] { width: 1em; height: 1em; stroke-width: 1.75; }

/* ---------- Layout primitives -------------------------------- */

.g-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 28px;
}

@media (max-width: 720px) {
  .g-section { padding: 64px 20px; }
}

/* Section header (number + eyebrow + title + lead) */
.g-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.g-section-header .g-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: var(--c-paper);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--c-ink-2);
  text-transform: uppercase;
}
.g-section-header .g-section-num,
.g-section-header [data-num]::before {
  display: none; /* don't show numeric prefix as block - we keep section-num inline-only */
}

/* Common eyebrow chip (used in hero, stats, contact) */
.g-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(27,27,29,0.04);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--c-ink-2);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Display / heading typography */
.g-display,
.g-h2,
.g-section-header h2,
.g-section-header .g-h2 {
  font-family: var(--f-serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--c-ink);
  line-height: 1.05;
  text-wrap: balance;
}

.g-section-header h2,
.g-section-header .g-h2,
.g-h2 {
  font-size: clamp(34px, 4.6vw, 56px);
  margin: 18px 0 16px;
}

.g-section-header p,
.g-section-header .g-lead {
  font-family: var(--f-sans);
  font-size: 17px;
  color: var(--c-ink-2);
  margin: 0 auto;
  max-width: 580px;
  line-height: 1.6;
}

/* ---------- Buttons ------------------------------------------ */

.g-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  transition: transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s, background .18s, color .18s, border-color .18s;
  cursor: pointer;
}
.g-btn--lg { padding: 16px 26px; font-size: 16px; }
.g-btn--full { width: 100%; }

.g-btn--primary,
.g-btn--accent {
  background: var(--c-ink);
  color: #fff;
  box-shadow: var(--sh-2);
}
.g-btn--primary:hover,
.g-btn--accent:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh-3);
  background: #000;
}

.g-btn--secondary,
.g-btn--accent-ghost {
  background: var(--c-paper);
  color: var(--c-ink);
  border-color: var(--c-line-strong);
}
.g-btn--secondary:hover,
.g-btn--accent-ghost:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh-2);
  background: #fff;
}

.g-btn [data-lucide] {
  width: 16px; height: 16px;
  transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.g-btn:hover [data-lucide="arrow-right"] { transform: translateX(3px); }

/* ---------- NAV ---------------------------------------------- */

.g-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  margin: 0 auto;
  background: rgba(250, 247, 240, 0.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(27,27,29,0.06);
}
.g-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.g-brand img { width: 22px; height: 22px; }

.g-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.g-nav-links a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--c-ink-2);
  transition: background .18s, color .18s;
}
.g-nav-links a:hover { background: rgba(27,27,29,.05); color: var(--c-ink); }

.g-nav-cta { display: flex; align-items: center; gap: 8px; }

.g-nav-burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
  background: var(--c-paper);
  color: var(--c-ink);
  align-items: center;
  justify-content: center;
}

@media (max-width: 880px) {
  .g-nav-links { display: none; }
  .g-nav-burger { display: inline-flex; }
  .g-nav-cta .g-btn { display: none; }
}

.g-nav-scrim {
  position: fixed; inset: 0;
  background: rgba(15,15,18,0.4);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
  z-index: 60;
}
.g-nav-scrim.open { opacity: 1; pointer-events: auto; }

.g-nav-mobile {
  position: fixed;
  top: 12px; right: 12px; left: 12px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lift);
  padding: 20px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-12px) scale(.98);
  opacity: 0;
  pointer-events: none;
  z-index: 70;
  transition: transform .25s cubic-bezier(.22,1,.36,1), opacity .2s;
}
.g-nav-mobile.open {
  transform: none; opacity: 1; pointer-events: auto;
}
.g-nav-mobile a {
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 16px;
  color: var(--c-ink);
  font-weight: 500;
}
.g-nav-mobile a:hover { background: var(--c-cream-2); }
.g-nav-mobile-cta { margin-top: 8px; }
.g-nav-mobile-cta .g-btn { width: 100%; }
/* CTA w menu mobilnym: nie pozwól, by reguła `.g-nav-mobile a` (ciemny kolor)
   zamalowała biały tekst na ciemnym przycisku */
.g-nav-mobile-cta a.g-btn,
.g-nav-mobile-cta a.g-btn:hover { color: #fff; }

/* ---------- HERO --------------------------------------------- */

.g-hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: 80px 28px 100px;
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
}

/* Sky gradient + clouds backdrop */
.g-hero::before {
  content: "";
  position: absolute;
  inset: -40px 12px auto 12px;
  height: 620px;
  border-radius: var(--r-2xl);
  background:
    radial-gradient(60% 70% at 12% 18%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(48% 60% at 85% 22%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(38% 50% at 70% 70%, rgba(255,255,255,0.5), transparent 60%),
    linear-gradient(180deg, var(--c-sky-2) 0%, var(--c-sky-1) 55%, rgba(220,235,246,0) 100%);
  z-index: -2;
}

/* Soft cloud puffs */
.g-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(20px 14px at 14% 12%, #fff 60%, transparent 62%),
    radial-gradient(28px 18px at 18% 14%, #fff 60%, transparent 62%),
    radial-gradient(22px 14px at 22% 12%, #fff 60%, transparent 62%),
    radial-gradient(18px 12px at 78% 18%, #fff 60%, transparent 62%),
    radial-gradient(26px 16px at 82% 20%, #fff 60%, transparent 62%),
    radial-gradient(16px 10px at 86% 18%, #fff 60%, transparent 62%),
    radial-gradient(20px 14px at 8% 38%, #fff 55%, transparent 60%),
    radial-gradient(24px 16px at 12% 40%, #fff 55%, transparent 60%);
  opacity: .9;
  z-index: -1;
  pointer-events: none;
}

/* Hide the lightning bolts from original Hero - they don't fit this aesthetic */
.g-hero-bolts { display: none !important; }

.g-hero-eyebrow { margin-bottom: 28px; }
.g-hero-eyebrow .g-eyebrow {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.9);
  color: var(--c-sky-deep);
  backdrop-filter: blur(8px);
}

.g-display {
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 auto 22px;
  max-width: 920px;
  font-weight: 400;
}
.g-display em {
  font-style: italic;
  font-weight: 500;
  color: var(--c-accent);
}
.g-blink {
  display: inline-block;
  color: var(--c-accent);
  animation: g-blink 1.2s steps(2, end) infinite;
}
@keyframes g-blink { 50% { opacity: 0; } }

.g-lead {
  font-size: 19px;
  color: var(--c-ink-2);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.55;
}

.g-hero-cta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.g-hero-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  color: var(--c-ink-2);
  font-size: 14px;
}
.g-hero-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.9);
}
.g-hero-meta [data-lucide] { color: var(--c-sky-deep); width: 16px; height: 16px; }

/* ---------- MARQUEE ------------------------------------------ */

.g-marquee {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  padding: 32px 28px 64px;
  max-width: 1180px;
  margin: 0 auto;
}
.g-marquee-label { text-align: center; }
.g-marquee-track {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.g-marquee-row {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: g-marquee 60s linear infinite;
}
@keyframes g-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.g-marquee-item {
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--c-ink-2);
  white-space: nowrap;
}

/* ---------- AUDIENCE ----------------------------------------- */

.g-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) { .g-audience-grid { grid-template-columns: 1fr; } }

.g-audience-card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--r-xl);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-2);
  transition: transform .25s, box-shadow .25s;
}
.g-audience-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lift); }

.g-audience-card:nth-child(1) { background: var(--c-lavender); border-color: transparent; }
.g-audience-card:nth-child(2) { background: var(--c-mint);     border-color: transparent; }
.g-audience-card:nth-child(3) { background: var(--c-butter);   border-color: transparent; }

.g-audience-card:nth-child(1) { color: var(--c-lavender-ink); }
.g-audience-card:nth-child(2) { color: var(--c-mint-ink); }
.g-audience-card:nth-child(3) { color: var(--c-butter-ink); }

.g-audience-tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.55);
  margin-bottom: 18px;
}
.g-audience-title {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.g-audience-desc {
  font-size: 15.5px;
  line-height: 1.55;
  margin: 0 0 18px;
  opacity: .85;
}
.g-audience-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 14px;
}
.g-audience-list li {
  padding: 8px 12px;
  background: rgba(255,255,255,0.55);
  border-radius: var(--r-md);
  font-weight: 500;
}

/* ---------- MAG GRID (Problems / Solutions) ------------------ */

.g-mag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .g-mag-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g-mag-grid { grid-template-columns: 1fr; } }

.g-mag-card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--r-xl);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-2);
  display: flex; flex-direction: column;
  min-height: 250px;
  transition: transform .25s, box-shadow .25s;
}
.g-mag-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lift); }

.g-mag-num {
  position: absolute;
  top: 22px; right: 24px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-muted);
  letter-spacing: 0.05em;
}
.g-mag-title {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 10px;
  padding-right: 40px;
}
.g-mag-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-ink-2);
  margin: 0 0 auto;
  padding-bottom: 18px;
}
.g-mag-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--c-line);
}
.g-mag-label {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-muted);
}
.g-mag-arrow {
  width: 32px; height: 32px;
  border-radius: var(--r-pill);
  background: var(--c-ink);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .25s;
}
.g-mag-arrow:hover { transform: translate(2px, -2px); }
.g-mag-arrow [data-lucide] { width: 14px; height: 14px; }

/* Problems: colored pastel cards in pattern */
#problemy .g-mag-card:nth-child(6n+1) { background: var(--c-peach);    color: var(--c-peach-ink);    border-color: transparent; }
#problemy .g-mag-card:nth-child(6n+2) { background: var(--c-paper); }
#problemy .g-mag-card:nth-child(6n+3) { background: var(--c-butter);   color: var(--c-butter-ink);   border-color: transparent; }
#problemy .g-mag-card:nth-child(6n+4) { background: var(--c-paper); }
#problemy .g-mag-card:nth-child(6n+5) { background: var(--c-coral);    color: var(--c-coral-ink);    border-color: transparent; }
#problemy .g-mag-card:nth-child(6n)   { background: var(--c-paper); }

/* Solutions: colored pastel pattern, different mix */
#pomagam .g-mag-card:nth-child(6n+1) { background: var(--c-mint);     color: var(--c-mint-ink);     border-color: transparent; }
#pomagam .g-mag-card:nth-child(6n+2) { background: var(--c-paper); }
#pomagam .g-mag-card:nth-child(6n+3) { background: var(--c-lavender); color: var(--c-lavender-ink); border-color: transparent; }
#pomagam .g-mag-card:nth-child(6n+4) { background: var(--c-paper); }
#pomagam .g-mag-card:nth-child(6n+5) { background: var(--c-sage);     color: var(--c-sage-ink);     border-color: transparent; }
#pomagam .g-mag-card:nth-child(6n)   { background: var(--c-paper); }

/* Inside colored cards: foot border and desc color */
.g-mag-card:not([style*="background: rgb(255"]):not(.is-paper) .g-mag-num,
#problemy .g-mag-card:nth-child(6n+1) .g-mag-num,
#problemy .g-mag-card:nth-child(6n+3) .g-mag-num,
#problemy .g-mag-card:nth-child(6n+5) .g-mag-num,
#pomagam .g-mag-card:nth-child(6n+1) .g-mag-num,
#pomagam .g-mag-card:nth-child(6n+3) .g-mag-num,
#pomagam .g-mag-card:nth-child(6n+5) .g-mag-num { color: currentColor; opacity: .55; }

#problemy .g-mag-card:nth-child(6n+1) .g-mag-desc,
#problemy .g-mag-card:nth-child(6n+3) .g-mag-desc,
#problemy .g-mag-card:nth-child(6n+5) .g-mag-desc,
#pomagam .g-mag-card:nth-child(6n+1) .g-mag-desc,
#pomagam .g-mag-card:nth-child(6n+3) .g-mag-desc,
#pomagam .g-mag-card:nth-child(6n+5) .g-mag-desc { color: currentColor; opacity: .82; }

#problemy .g-mag-card:nth-child(6n+1) .g-mag-foot,
#problemy .g-mag-card:nth-child(6n+3) .g-mag-foot,
#problemy .g-mag-card:nth-child(6n+5) .g-mag-foot,
#pomagam .g-mag-card:nth-child(6n+1) .g-mag-foot,
#pomagam .g-mag-card:nth-child(6n+3) .g-mag-foot,
#pomagam .g-mag-card:nth-child(6n+5) .g-mag-foot { border-top-color: rgba(0,0,0,.12); }

#problemy .g-mag-card:nth-child(6n+1) .g-mag-label,
#problemy .g-mag-card:nth-child(6n+3) .g-mag-label,
#problemy .g-mag-card:nth-child(6n+5) .g-mag-label,
#pomagam .g-mag-card:nth-child(6n+1) .g-mag-label,
#pomagam .g-mag-card:nth-child(6n+3) .g-mag-label,
#pomagam .g-mag-card:nth-child(6n+5) .g-mag-label { color: currentColor; opacity: .65; }

/* ---------- PORTFOLIO --------------------------------------- */

.g-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 880px) { .g-portfolio-grid { grid-template-columns: 1fr; } }

.g-portfolio-card {
  display: flex; flex-direction: column;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-2);
  transition: transform .25s, box-shadow .25s;
  color: inherit;
}
.g-portfolio-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lift); }

.g-portfolio-preview {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--c-sky-1), var(--c-cream-2));
  border-bottom: 1px solid var(--c-line);
  display: flex; align-items: stretch; justify-content: stretch;
}
.g-portfolio-preview image-slot { width: 100%; height: 100%; }

.g-portfolio-body { padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 16px; }

.g-portfolio-tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--c-cream-2);
  align-self: flex-start;
}
.g-portfolio-title {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.18;
  margin: 0;
  letter-spacing: -0.005em;
}

.g-portfolio-story {
  display: flex; flex-direction: column; gap: 12px;
  margin: 0; padding: 16px 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.g-portfolio-story > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  font-size: 14.5px;
  line-height: 1.5;
}
.g-portfolio-story dt {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-muted);
  padding-top: 3px;
}
.g-portfolio-story dd { margin: 0; color: var(--c-ink-2); }

.g-portfolio-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.g-portfolio-pill {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--c-cream-2);
  border-radius: var(--r-pill);
  color: var(--c-ink-2);
}

.g-portfolio-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
}
.g-portfolio-foot > span:first-child { white-space: nowrap; }
.g-portfolio-arrow {
  flex-shrink: 0;
  width: 32px; height: 32px; border-radius: var(--r-pill);
  background: var(--c-ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.g-portfolio-arrow [data-lucide] { width: 14px; height: 14px; }

.g-portfolio-cta { text-align: center; margin-top: 40px; }

/* ---------- TESTIMONIALS ------------------------------------ */

.g-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) { .g-testimonials-grid { grid-template-columns: 1fr; } }

.g-tmcard {
  margin: 0;
  padding: 28px 26px;
  border-radius: var(--r-xl);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-2);
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
}
.g-testimonials-grid .g-tmcard:nth-child(1) { background: var(--c-sky-1); border-color: transparent; }
.g-testimonials-grid .g-tmcard:nth-child(2) { background: var(--c-butter); border-color: transparent; color: var(--c-butter-ink); }
.g-testimonials-grid .g-tmcard:nth-child(3) { background: var(--c-mint);   border-color: transparent; color: var(--c-mint-ink); }

.g-tmcard-mark {
  width: 26px; height: 26px;
  color: currentColor;
  opacity: .35;
}
.g-tmcard-text {
  font-family: var(--f-serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 0;
  flex: 1;
}
.g-tmcard-by { display: flex; align-items: center; gap: 12px; }
.g-tmcard-avatar {
  width: 42px; height: 42px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.6);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 14px;
}
.g-tmcard-name { font-weight: 600; font-size: 15px; }
.g-tmcard-role { font-size: 13px; opacity: .7; }

/* ---------- PROCESS ----------------------------------------- */

.g-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .g-process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .g-process-grid { grid-template-columns: 1fr; } }

.g-process-step {
  padding: 28px 24px;
  border-radius: var(--r-xl);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-1);
  position: relative;
}
.g-process-num {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 44px;
  line-height: 1;
  color: var(--c-accent);
  margin-bottom: 16px;
}
.g-process-title {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 8px;
}
.g-process-desc {
  font-size: 14.5px;
  color: var(--c-ink-2);
  line-height: 1.55;
  margin: 0;
}

/* ---------- STATS ------------------------------------------- */

.g-stats-section {
  background: var(--c-night);
  color: #fff;
  margin: 64px 16px;
  border-radius: var(--r-2xl);
  overflow: hidden;
  position: relative;
}
.g-stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 60% at 20% 20%, rgba(224,122,75,0.2), transparent 60%),
    radial-gradient(40% 50% at 90% 80%, rgba(96,140,180,0.2), transparent 60%);
  pointer-events: none;
}
.g-stats-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 32px;
}
.g-stats-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.g-stats-head .g-eyebrow {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--c-accent) !important;
}
.g-h2--on-dark {
  color: #fff !important;
  font-size: clamp(32px, 4.4vw, 52px);
  margin: 16px 0 0;
}

.g-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 880px) { .g-stats-grid { grid-template-columns: repeat(2, 1fr); } }

.g-stat {
  padding: 28px 24px;
  border-radius: var(--r-xl);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  text-align: left;
}
.g-stat--accent { background: var(--c-accent); border-color: transparent; }

.g-stat-big {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.g-stat-big i { font-style: italic; font-weight: 500; opacity: .85; font-size: 36px; }
.g-stat-lbl { font-size: 14px; opacity: .85; }

/* ---------- ABOUT ------------------------------------------- */

.g-about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 880px) {
  .g-about-grid { grid-template-columns: 1fr; gap: 24px; }
}

.g-about-photo {
  aspect-ratio: 1;
  background: var(--c-lavender);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--sh-3);
}
.g-about-photo image-slot { width: 100%; height: 100%; display: block; }

.g-about-body { padding-top: 12px; }
.g-about-lead {
  font-family: var(--f-serif);
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 18px;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.g-about-body p {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--c-ink-2);
  margin: 0 0 18px;
}
.g-about-list {
  list-style: none;
  margin: 24px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.g-about-list li {
  padding: 14px 18px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  font-size: 15px;
  color: var(--c-ink-2);
}
.g-about-list li strong { color: var(--c-ink); font-weight: 600; }

/* ---------- CONTACT ----------------------------------------- */

.g-contact-section {
  background: linear-gradient(180deg, var(--c-sky-1) 0%, var(--c-cream) 100%);
  margin: 64px 16px;
  border-radius: var(--r-2xl);
  overflow: hidden;
}
.g-contact-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 880px) {
  .g-contact-inner { grid-template-columns: 1fr; padding: 56px 28px; gap: 32px; }
}

.g-contact-left .g-eyebrow {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.9);
  color: var(--c-accent-deep) !important;
}
.g-contact-title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 18px 0 14px;
}
.g-contact-title em { color: var(--c-accent); }
.g-contact-lead {
  font-size: 17px;
  color: var(--c-ink-2);
  margin: 0 0 28px;
}
.g-contact-direct {
  display: flex; flex-direction: column; gap: 12px;
}
.g-contact-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--c-paper);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
}
.g-contact-row [data-lucide] {
  width: 20px; height: 20px;
  color: var(--c-sky-deep);
}
.g-contact-lbl {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-muted);
}
.g-contact-val { font-weight: 500; font-size: 15px; color: var(--c-ink); }

/* Form */
.g-contact-form {
  background: var(--c-paper);
  border-radius: var(--r-2xl);
  padding: 36px 32px;
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-3);
}
.g-contact-form-title {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 26px;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.g-contact-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}
.g-field { display: flex; flex-direction: column; gap: 6px; }
.g-field--wide { grid-column: 1 / -1; }
.g-field > span {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-muted);
}
.g-field input,
.g-field select,
.g-field textarea {
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-line-strong);
  background: var(--c-cream);
  color: var(--c-ink);
  outline: none;
  transition: border-color .18s, background .18s;
}
.g-field input:focus,
.g-field select:focus,
.g-field textarea:focus {
  border-color: var(--c-sky-deep);
  background: #fff;
}
.g-field textarea { resize: vertical; min-height: 88px; font-family: inherit; }

.g-contact-fine {
  font-size: 13px;
  color: var(--c-muted);
  margin: 12px 0 0;
  text-align: center;
}

.g-contact-success {
  text-align: center;
  padding: 32px 16px;
}
.g-contact-success [data-lucide] {
  width: 56px; height: 56px;
  color: var(--c-mint-ink);
  margin: 0 auto 12px;
}
.g-contact-success h3 {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 28px;
  margin: 0 0 8px;
}
.g-contact-success p { color: var(--c-ink-2); margin: 0; }

/* ---------- FAQ -------------------------------------------- */

.g-faq {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.g-faq-item {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: background .2s;
}
.g-faq-item:hover { background: #fff; }
.g-faq-item--open { box-shadow: var(--sh-2); }

.g-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 19px;
  color: var(--c-ink);
  letter-spacing: -0.005em;
}
.g-faq-q [data-lucide] {
  width: 20px; height: 20px;
  color: var(--c-muted);
}
.g-faq-a {
  padding: 0 24px 22px;
  color: var(--c-ink-2);
  font-size: 15.5px;
  line-height: 1.6;
}

/* ---------- FOOTER ----------------------------------------- */

.g-footer {
  background: var(--c-night);
  color: rgba(255,255,255,0.85);
  margin: 0 16px 16px;
  border-radius: var(--r-2xl);
  padding: 56px 40px 32px;
}
.g-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.g-brand--footer img {
  filter: invert(1) brightness(2);
  height: 28px;
}
.g-footer-nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.g-footer-nav a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  color: rgba(255,255,255,0.8);
  transition: background .18s, color .18s;
}
.g-footer-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }

.g-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
}
.g-footer-bottom a:hover { color: #fff; }
.g-footer-legal { display: inline-flex; gap: 10px; align-items: center; }
.g-footer-legal span[aria-hidden] { opacity: .4; }

/* ---------- Section spacing tweaks --------------------------- */

#dlakogo  { padding-top: 40px; }
#problemy { padding-top: 64px; }

/* ---------- Subtle entrance animation ----------------------- */

@media (prefers-reduced-motion: no-preference) {
  .g-section > *,
  .g-hero > *,
  .g-stats-inner > * {
    opacity: 0;
    transform: translateY(14px);
    animation: g-fadeup .7s cubic-bezier(.22,1,.36,1) forwards;
  }
  .g-hero > *:nth-child(1) { animation-delay: .05s; }
  .g-hero > *:nth-child(2) { animation-delay: .12s; }
  .g-hero > *:nth-child(3) { animation-delay: .2s; }
  .g-hero > *:nth-child(4) { animation-delay: .28s; }
  .g-hero > *:nth-child(5) { animation-delay: .36s; }
}
@keyframes g-fadeup {
  to { opacity: 1; transform: none; }
}
